:root {
  --white: #fff;
  --peach-light: #ffe8d8;
  --peach: #ffd7b5;
  --orange: #ffb38a;
  --primary: #ff6700;
  --text-dark: #1a1a1a;
  --text-light: #474747;
  --blue: #1b42a2;
  --blue-light: #3977ec;
  --radius: 22px;
  --shadow: 0 6px 38px 0 rgba(255,103,0,0.08);
  --blob: radial-gradient(circle at 70% 0%, #ffd7b5 0%, #ffe8d8 80%, transparent 100%);
}

body {
  font-family: 'Montserrat', 'Lexend', sans-serif;
  background: linear-gradient(135deg, var(--white) 60%, var(--peach-light) 100%);
  color: var(--text-dark);
  margin: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* NAV BAR */
.nav-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 2.5px solid var(--peach-light);
  padding: 0 2vw;
  height: 64px;
  box-shadow: 0 2px 12px #ff670003;
  justify-content: space-between;
  position: relative;
  z-index: 30;
  font-family: 'Montserrat', 'Lexend', sans-serif;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 32; /* Ensure logo stays above mobile menu */
}
.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px #ffd7b545;
  transition: transform 0.18s, box-shadow 0.22s;
}
.nav-logo.bounce-hover:hover {
  transform: scale(1.13) rotate(-5deg);
  box-shadow: 0 8px 30px #ff67001a;
}
.nav-title {
  font-family: 'Lexend', 'Montserrat', sans-serif;
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  margin-left: 4px;
  transition: color 0.18s, text-shadow 0.18s;
  user-select: none;
}
.nav-title:hover {
  color: var(--orange);
  text-shadow: 0 2px 8px #ffd7b5;
  cursor: pointer;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 31;
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 27px;
  height: 20px;
}
.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.2s ease-in-out;
}
.hamburger-icon.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 45px;
  margin: 0;
  align-items: center;
  list-style: none;
}
.nav-link {
  font-size: 1.13rem;
  color: var(--text-light);
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  opacity: 0.85;
  transition: color 0.18s, opacity 0.18s;
  position: relative;
}
.nav-link:hover, .nav-link:focus {
  color: var(--primary);
  opacity: 1;
}

/* Animated underline */
.underline-anim {
  display: inline-block;
  position: relative;
}
.underline-anim::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--orange), var(--primary) 70%);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(.77,0,.18,1);
  transform-origin: left;
}
.underline-anim:hover::after, .underline-anim:focus::after {
  transform: scaleX(1);
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 220px; /* REDUCE gap from 44px or higher to bring them closer */
  flex-wrap: wrap;
  min-height: 440px;
  padding: 0 0 40px 0;
  background: none;
}
.hero-content {
  max-width: 650px;
  min-width: 320px;
  margin-left: 2vw !important; /* Less than before */
  margin-right: 0 !important;
  animation: fadeInLeft 1s;
}
h1 {
  font-family: 'Lexend', 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.4em;
  line-height: 1.1;
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--orange), var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  color: #444;
  font-size: 1.13rem;
  font-weight: 500;
  margin-bottom: 1.7em;
  line-height: 1.6;
}
.hero-cta-text {
  font-size: 1rem;
  color: var(--primary);
  background: var(--peach-light);
  padding: 3px 10px;
  border-radius: 10px;
  margin-left: 5px;
  animation: pulse 2s infinite;
}
.btn-cta {
  background: linear-gradient(90deg, var(--primary), var(--orange) 90%);
  color: #fff !important;
  font-weight: 700;
  border-radius: 32px;
  padding: 14px 36px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #ff670022;
  border: none;
  letter-spacing: 0.03em;
  transition: background .16s, transform .16s, box-shadow .14s;
  display: inline-block;
  cursor: pointer;
}
.btn-cta:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 32px #ff670022;
}
.hero-visuals {
  flex: 0 0 auto;
  margin: 0 0 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 350px;
}

.hero.hero-centered {
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  text-align: left;
}
.hero-images-cluster.hero-images-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-img-stack {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
  min-width: 340px;
  min-height: 320px;
}
.hero-img {
  border-radius: 26px;
  box-shadow: 0 4px 22px var(--peach-light);
  object-fit: cover;
  opacity: 0.97;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hero-img.big {
  width: 230px;
  height: 300px;
  z-index: 2;
  background: var(--white);
  position: relative;
  left: 46px;
  animation: floatUp 3.5s infinite alternate;
}
.hero-img.small {
  width: 110px;
  height: 150px;
  position: absolute;
  opacity: 0.95;
  top: 80px;
  z-index: 1;
  filter: blur(0.5px);
  box-shadow: 0 2px 12px var(--orange);
  animation: floatSide 4s infinite alternate;
}
.hero-img.small.left {
  left: -28px;
  animation-delay: 0.4s;
}
.hero-img.small.right {
  right: -28px;
  animation-delay: 1.7s;
}

/* UNIQUE INTERACTIVE ANIMATION SECTION */
.interactive-cards-section {
  position: relative;
  padding: 90px 0 60px 0;
  background: linear-gradient(120deg, var(--white) 80%, #fff4ec 100%);
  overflow: visible;
}
.interactive-cards-blob {
  position: absolute;
  top: -70px; left: 30vw; right: 0; bottom: 0;
  width: 70vw; height: 430px;
  background: var(--blob);
  filter: blur(28px) brightness(1.2);
  z-index: 1;
  pointer-events: none;
  animation: blobMorph 10s infinite alternate;
}
@keyframes blobMorph {
  0% { border-radius: 56% 44% 67% 33% / 58% 49% 51% 42%; }
  100% { border-radius: 33% 67% 44% 56% / 42% 51% 49% 58%; }
}
.interactive-cards-title {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.magic-gradient {
  background: linear-gradient(90deg, var(--blue), var(--primary) 70%, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sparkle-emoji {
  font-size: 2rem;
  animation: sparkle 1.6s infinite alternate;
  display: inline-block;
}
@keyframes sparkle {
  0% { transform: scale(1) rotate(-8deg);}
  100% { transform: scale(1.2) rotate(4deg);}
}
.cards-float-hint {
  text-align: center;
  margin-top: 23px;
  color: var(--primary);
  font-size: 1.08rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
  animation: pulse 2.1s infinite;
}
.interactive-cards-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
  position: relative;
  min-height: 250px;
  user-select: none;
}
.magic-card {
  flex: 1 1 170px;
  min-width: 170px;
  max-width: 210px;
  background: linear-gradient(135deg, #fff 70%, #e8f7ff 100%);
  border-radius: 25px;
  box-shadow: 0 8px 28px #ff67001b, 0 1.5px 8px #3977ec12;
  padding: 34px 18px 22px 18px;
  margin: 20px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: grab;
  transition: 
    box-shadow 0.32s cubic-bezier(.77,0,.18,1),
    transform 0.33s cubic-bezier(.77,0,.18,1),
    background 0.22s, 
    filter 0.17s;
  z-index: 2;
  will-change: transform, box-shadow;
  border: 2px solid #e5f1ff;
  opacity: 0.93;
  perspective: 600px;
}
.magic-card:active {
  cursor: grabbing;
}
.magic-card:hover, .magic-card:focus {
  box-shadow: 0 16px 48px #3977ec24, 0 2.5px 12px #ff67001a;
  background: linear-gradient(120deg, #f5faff 80%, #fff 100%);
  transform: scale(1.08) rotateY(-7deg) rotateZ(1.5deg) translateY(-7px);
  z-index: 8;
  opacity: 1;
  filter: brightness(1.07) saturate(1.04);
  border-color: var(--blue);
}
.magic-card-icon {
  font-size: 2.1rem;
  color: var(--blue-light);
  margin-bottom: 14px;
  transition: color 0.15s;
}
.magic-card:hover .magic-card-icon {
  color: var(--primary);
  animation: cardIconSpin 1.1s;
}
@keyframes cardIconSpin {
  0% { transform: rotate(0);}
  60% { transform: rotate(360deg);}
  100% { transform: rotate(0);}
}
.magic-card-title {
  font-family: 'Lexend', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 8px;
  color: var(--blue);
  letter-spacing: -0.5px;
}
.magic-card-desc {
  font-size: 0.97rem;
  color: #3b3b5c;
  text-align: center;
}
.magic-card.drag-over {
  filter: drop-shadow(0 0 12px #3977ec90) brightness(1.13);
  background: linear-gradient(120deg, #e2f7fc 80%, #fff 100%);
  border-color: var(--primary);
  transform: scale(1.11) rotateY(10deg) rotateZ(-2deg) translateY(-5px);
  z-index: 10;
}

/* TOOLKIT SECTION */
.toolkit-section {
  max-width: 1200px;
  margin: 50px auto 0 auto;
  padding: 0 3vw 62px 3vw;
}
.toolkit-title {
  text-align: center;
  font-family: 'Lexend', 'Montserrat', sans-serif;
  font-size: 2.18rem;
  font-weight: 700;
  color: #12143b;
  margin-bottom: 37px;
  letter-spacing: -1.2px;
}
.toolkit-title span {
  color: var(--blue);
  font-style: italic;
  font-weight: 700;
}
.toolkit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.toolkit-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px #3977ec18;
  border: 1.5px solid #e7e7e7;
  padding: 32px 24px 28px 24px;
  min-width: 240px;
  max-width: 280px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .15s, box-shadow .14s, border .18s;
  cursor: pointer;
  position: relative;
  animation-delay: calc(var(--i, 0) * 110ms);
}
.toolkit-card:hover {
  transform: translateY(-13px) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 15px 45px #3977ec33;
  border: 1.5px solid var(--primary);
  background: linear-gradient(135deg, #fff 70%, #f5faff 100%);
}
.toolkit-icon {
  background: linear-gradient(135deg, #f5faff, #e6f0ff 80%);
  color: var(--blue-light);
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  box-shadow: 0 2px 8px #3977ec2a;
  transition: background 0.18s, color 0.18s;
}
.toolkit-h {
  font-size: 1.08rem;
  font-family: 'Lexend', 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1b42a2;
  margin-bottom: 7px;
}
.toolkit-desc {
  color: #555;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
}
.toolkit-card-highlight {
  background: linear-gradient(135deg, #3977ec 60%, #6dc0ff 100%);
  color: #fff;
  box-shadow: 0 8px 36px #3977ec55;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 260px;
  max-width: 320px;
  position: relative;
  overflow: hidden;
  border: none;
}
.toolkit-highlight-title {
  font-family: 'Lexend', 'Montserrat', sans-serif;
  font-size: 1.11rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.highlight-btn {
  background: #fff;
  color: #3977ec;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 17px;
  border: none;
  margin-bottom: 22px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px #3977ec2a;
  transition: background 0.18s, color 0.18s;
}
.highlight-btn:hover {
  background: #3977ec;
  color: #fff;
}
.toolkit-highlight-img {
  width: 90%;
  border-radius: 10px;
  margin-top: 8px;
  box-shadow: 0 4px 22px #fff8;
}

/* FEATURES STREAM */
.features-stream-section {
  background: linear-gradient(90deg, #fff 84%, #e6f0ff 100%);
  padding: 32px 0 48px 0;
}
.features-stream-title {
  text-align: center;
  font-family: 'Lexend', 'Montserrat', sans-serif;
  font-size: 1.51rem;
  font-weight: 700;
  color: #12143b;
  margin-bottom: 21px;
  letter-spacing: -0.5px;
}
.features-stream-title span {
  color: var(--blue);
  font-style: italic;
}
.features-stream-list {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  align-items: flex-start;
}
.feature-pill {
  background: #f7f8fa;
  color: #3977ec;
  border-radius: 17px;
  padding: 10px 20px;
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 2px 12px #3977ec13;
  border: 1.3px solid #e6f0ff;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  cursor: pointer;
}
.feature-pill:hover {
  background: #3977ec;
  color: #fff;
  box-shadow: 0 8px 22px #3977ec33;
}

/* MODERN FOOTER */
.lawbook-footer {
  background: #181818;
  color: var(--peach-light);
  padding: 55px 0 0 0;
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
}
.footer-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px 30px;
  padding: 0 40px;
}
.footer-col {
  flex: 1 1 250px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}
.footer-logo {
  width: 120px;
  margin-bottom: 18px;
  filter: brightness(1.3);
  border-radius: 7px;
}
.footer-desc {
  font-size: 1.07rem;
  color: var(--peach-light);
  max-width: 340px;
  line-height: 1.5;
}
.footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 13px;
}
.footer-links ul li a {
  font-size: 1.2rem;
  color: var(--peach-light);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  position: relative;
  opacity: 0.75;
}
.footer-links ul li a.active,
.footer-links ul li a:hover {
  color: var(--primary);
  opacity: 1;
}
.footer-location-title {
  font-weight: 700;
  color: var(--peach-light);
  margin-bottom: 11px;
  font-size: 1.08rem;
}
.footer-col address {
  font-style: normal;
  color: var(--peach-light);
  font-size: 1.04rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.footer-social a {
  color: var(--peach-light);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid #232323;
  padding: 18px 0;
  text-align: center;
  color: var(--orange);
  font-size: 1.02rem;
  margin-top: 36px;
  letter-spacing: 0.01em;
}

/* FLOATING CHATBOT */
#chatbot-fab {
  position: fixed;
  bottom: 32px;
  right: 36px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--primary), var(--orange) 90%);
  border-radius: 50%;
  box-shadow: 0 4px 24px var(--primary), 0 0 0 4px var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1200;
  transition: box-shadow 0.18s;
  animation: bounceIn 2s;
}
#chatbot-fab:hover {
  box-shadow: 0 8px 40px var(--primary), 0 0 0 7px var(--peach);
}
.fab-ai-icon {
  width: 42px;
  height: 42px;
  pointer-events: none;
  filter: drop-shadow(0 2px 7px var(--orange));
  animation: swing 2.5s infinite;
}
#chatbot-widget {
  display: none;
  position: fixed;
  bottom: 110px;
  right: 45px;
  width: 370px;
  height: 510px;
  background: var(--white);
  border-radius: 26px;
  box-shadow: 0 8px 36px #ff670033;
  z-index: 1100;
  overflow: hidden;
  flex-direction: column;
  border: 2.5px solid var(--primary);
  animation-duration: 0.45s;
}
.chatbot-header {
  background: linear-gradient(135deg, var(--primary) 60%, var(--white) 100%);
  color: #fff;
  padding: 16px 19px;
  font-weight: 700;
  font-size: 1.13rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px #ff670009;
  border-bottom: 1.5px solid var(--peach-light);
}
.chatbot-ai-icon {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--white);
  margin-right: 9px;
  border: 2.5px solid var(--peach);
  box-shadow: 0 2px 7px var(--orange);
}
.close-chat {
  color: var(--primary);
  cursor: pointer;
  font-size: 26px;
  font-weight: bold;
  opacity: 0.5;
  margin-left: auto;
  transition: opacity 0.2s, color 0.2s;
}
.close-chat:hover { opacity: 1; color: var(--primary);}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 19px;
  background: var(--peach-light);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.chat-input-container {
  padding: 14px 14px 17px 14px;
  border-top: 1px solid var(--peach-light);
  background: var(--white);
  display: flex;
  gap: 8px;
  align-items: center;
}
#user-input {
  flex: 1;
  padding: 11px 16px;
  border: 1.7px solid var(--peach);
  border-radius: 19px;
  outline: none;
  font-size: 1rem;
  background: var(--peach-light);
  color: var(--dark);
  transition: border 0.16s;
}
#user-input:focus { border-color: var(--primary);}
#send-button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 19px;
  padding: 10px 19px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.16rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.16s;
  box-shadow: 0 2px 8px #ff670009;
  display: flex;
  align-items: center;
  justify-content: center;
}
#send-button:hover {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px #ff670022;
}
.message {
  max-width: 82%;
  padding: 11px 18px;
  border-radius: 15px;
  margin: 0 0 7px 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 10px #ff67000a;
  word-break: break-word;
  animation: fadeIn 0.5s;
}
.user-message {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.bot-message {
  background: var(--orange);
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

/* Animations */
@keyframes floatUp {
  0% { transform: translateY(0);}
  100% { transform: translateY(-18px);}
}
@keyframes floatSide {
  0% { transform: translateY(0);}
  100% { transform: translateY(15px);}
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--peach);}
  100% { box-shadow: 0 0 0 10px transparent;}
}
@keyframes swing {
  0% {transform: rotate(-8deg);}
  50% {transform: rotate(15deg);}
  100% {transform: rotate(-8deg);}
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
  .nav-links { gap: 16px; }
  .toolkit-grid { gap: 15px; }
  .hero-img-stack { min-width: 280px; min-height: 250px; }
  .hero-img.big { width: 190px; height: 260px; }
  .hero { gap: 80px; }
  h1 { font-size: 2.3rem; }
}

@media (max-width: 900px) {
  /* Nav changes */
  .mobile-menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 25;
  }
  .nav-links.active {
    transform: translateY(0);
  }

  .nav-left {
    display: flex !important;
  }
  
  .nav-title {
    display: inline-block !important;
  }
  
  /* Card grid */
  .interactive-cards-grid { 
    gap: 15px; 
    padding: 0 15px;
  }
  .magic-card { 
    min-width: 140px; 
    max-width: 170px;
    padding: 25px 15px 15px;
  }
  .magic-card:hover {
    transform: scale(1.05) translateY(-5px);
  }
  
  /* Layout changes */
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding-top: 20px;
  }
  .hero-content {
    text-align: center;
    align-items: center;
    margin: 0 auto !important;
    padding: 0 20px;
  }
  .hero-visuals {
    margin: 0 auto;
    justify-content: center; /* Center horizontally */
  }
  .hero-img-stack {
    margin: 0 auto; /* Center the stack */
    transform: scale(0.9);
    min-width: 280px; /* Slightly narrower */
  }
  
  .toolkit-section { padding: 0 15px 40px; }
  .toolkit-title { 
    font-size: 1.8rem; 
    margin-bottom: 25px;
  }
  .toolkit-title span {
    display: block;
    margin-top: 5px;
  }
  
  /* Footer */
  .footer-container { 
    gap: 40px 15px; 
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  /* Header and text */
  .nav-bar {
    padding: 10px 15px;
    height: auto;
  }
  .nav-title { font-size: 1.3rem; }
  .nav-logo { width: 34px; height: 34px; }
  .nav-links { top: 54px; }
  
  /* Hero section */
  .hero {
    min-height: auto;
    padding: 20px 0 30px;
  }
  h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .hero-img-stack {
    transform: scale(0.8);
    min-width: 240px;
  }
  .hero-img.big { 
    width: 160px; 
    height: 220px; 
    left: 30px;
  }
  .hero-img.small { 
    width: 80px; 
    height: 110px; 
    top: 50px;
  }
  
  /* Magic cards */
  .interactive-cards-section {
    padding: 60px 0 40px;
  }
  .interactive-cards-title h2 { font-size: 1.7rem; }
  .sparkle-emoji { font-size: 1.5rem; }
  .magic-card {
    min-width: 130px;
    max-width: 150px;
    padding: 20px 12px 15px;
    margin: 10px 0;
  }
  .magic-card-icon { font-size: 1.8rem; }
  .magic-card-title { font-size: 1rem; }
  .magic-card-desc { font-size: 0.85rem; }
  
  /* Toolkit cards */
  .toolkit-grid { gap: 15px; }
  .toolkit-card {
    min-width: 100%;
    padding: 20px 15px;
  }
  
  /* Chatbot */
  #chatbot-widget {
    width: 90vw;
    height: 70vh;
    right: 5vw;
    left: 5vw;
    bottom: 100px;
  }
  #chatbot-fab {
    width: 50px;
    height: 50px;
    right: 20px;
    bottom: 20px;
  }
  .chatbot-header { font-size: 1rem; }
  
  /* Footer */
  .lawbook-footer { padding: 40px 0 0; }
  .footer-container { padding: 0 15px; }
  .footer-col { min-width: 100%; }
  .footer-desc { font-size: 0.95rem; }
  .footer-links ul li a { font-size: 1.1rem; }
  .footer-disclaimer { font-size: 0.85rem !important; }
}

/* Small screen (iPhone SE, etc) */
@media (max-width: 375px) {
  h1 { font-size: 1.6rem; }
  .hero-img-stack {
    transform: scale(0.7);
  }
  .magic-card {
    min-width: 140px;
    flex: 0 0 calc(50% - 15px);
  }
  .toolkit-card { padding: 15px 12px; }
  .toolkit-h { font-size: 1rem; }
  .toolkit-desc { font-size: 0.85rem; }
}