﻿/* =============================================================================
   Lifetime Tutors — Design system & layout
   Edit CSS variables below to tune brand colors globally.
   Public marketing site (root index.html + *.html): this file ONLY — css/styles.css
   App / STAAR practice UI stylesheet (do NOT use for marketing fixes): staar/assets/css/theme.css
   ============================================================================= */

:root {
  --pink-50: #fff0f3;
  --pink-100: #ffe0e8;
  --pink-200: #ffc2d4;
  --pink-300: #ff8fab;
  --pink-400: #fb6f92;
  --pink-500: #e84580;
  --pink-600: #c9366d;
  --plum-900: #2d1645;
  --plum-800: #3d1f5c;
  --plum-700: #5b3a7d;
  --plum-600: #6b4d8a;
  --plum-500: #7e5ea7;
  --plum-400: #9a7fc2;
  --plum-300: #b89cd8;
  --plum-200: #d4c2ea;
  --plum-100: #ede0f5;
  --plum-50: #f6f0fb;
  --lav-400: #c4a8e0;
  --lav-300: #d8c4f0;
  --lav-200: #e8d8f6;
  --lav-100: #f3ebf9;
  --cream: #fdf5f7;
  --gold: #d4a853;
  --gold-light: #f5e6c8;
  --warm-white: #fef8fa;
  --warm-gray-50: #fcf7f9;
  --warm-gray-100: #f3edef;
  --warm-gray-200: #e2dbd3;
  --warm-gray-600: #78716c;
  --warm-gray-700: #57534e;
  --warm-gray-800: #3e3a36;
  --warm-gray-900: #1c1917;
  --green-50: #f0fdf4;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --glow-plum: rgba(232, 69, 128, 0.15);
  --glow-lav: rgba(251, 111, 146, 0.18);
  --glow-rose: rgba(91, 58, 125, 0.12);
  --grad-hero: linear-gradient(135deg, #1a0e2e 0%, #2d1645 30%, #3d1f5c 60%, #2d1645 100%);
  --grad-plum: linear-gradient(135deg, var(--plum-600), var(--plum-400));
  --grad-plum-lav: linear-gradient(135deg, var(--pink-500), var(--plum-500));
  --grad-rose-plum: linear-gradient(135deg, var(--pink-500), var(--plum-500));
  --grad-soft: linear-gradient(135deg, var(--pink-50), var(--plum-50));
  --grad-card: linear-gradient(145deg, #fff 0%, var(--warm-gray-50) 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 8px 32px var(--glow-plum), 0 4px 16px var(--glow-lav);
  /* Text on dark backgrounds — hierarchy for WCAG-friendly contrast */
  --on-dark-strong: #ffffff;
  --on-dark-medium: rgba(255, 255, 255, 0.86);
  --on-dark-soft: rgba(255, 255, 255, 0.74);
  --on-dark-muted: rgba(255, 255, 255, 0.64);
  --on-dark-accent: var(--pink-400);
  --on-dark-link: var(--lav-200);
  --text-shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.35);
  --text-shadow-hero: 0 4px 20px rgba(0, 0, 0, 0.4);
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container: min(1180px, 92vw);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  /* Header lockup + bar height (sync --nav-h for mobile overlay) */
  --nav-height: 80px;
  --logo-height: 48px;
  --nav-link-gap: 20px;
  --logo-right-space: 18px;
  --right-controls-gap: 14px;
  --nav-h: var(--nav-height);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--warm-gray-800);
  background: var(--warm-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.will-animate {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.will-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----- Navigation (homepage: transparent → solid; subpages: solid light) ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 0;
  border-bottom: none;
  overflow: visible;
  background: rgba(26, 14, 46, 0.55);
  transition: background 0.4s, box-shadow 0.4s;
}

.page-home .nav {
  background: rgba(26, 14, 46, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  border-bottom: none;
}

.page-home .nav.scrolled {
  background: rgba(254, 248, 250, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.page-sub .nav {
  background: rgba(254, 248, 250, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--right-controls-gap);
  overflow: visible;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Approved header lockup — no plate behind logo; depth from box-shadow on image (archived marketing CSS) */
.nav .nav-logo {
  flex-shrink: 0;
  margin-inline-end: calc(var(--logo-right-space) - var(--right-controls-gap));
  padding: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav .nav-logo-img {
  width: auto;
  display: block;
  object-fit: contain;
}

.nav .nav-logo img {
  width: auto;
}

/* Full PNG lockup (icon + LIFETIME TUTORS wordmark) */
.nav-logo--lockup {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav .nav-logo--lockup .nav-logo-img {
  height: 48px;
  width: auto;
  max-height: 52px;
  max-width: min(280px, 58vw);
  border-radius: 12px;
  object-fit: contain;
  filter: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
  transition: box-shadow 0.35s ease;
}

.page-home .nav:not(.scrolled) .nav-logo--lockup .nav-logo-img {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

.page-home .nav.scrolled .nav-logo--lockup .nav-logo-img,
.page-sub .nav .nav-logo--lockup .nav-logo-img {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}

/* Footer lockup — height + width:auto + object-fit:contain avoids stretch in grid/flex */
.footer .footer-brand .nav-logo img,
.footer-brand .nav-logo--lockup .nav-logo-img,
.footer-logo img,
.site-footer .footer-brand img {
  height: 56px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: none;
  filter: none;
}

/* Publications - footer logo proportional (no stretch) */
.page-publications .footer .footer-brand .nav-logo--lockup .nav-logo-img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .nav .nav-logo--lockup .nav-logo-img {
    height: 42px;
    max-width: min(220px, 72vw);
  }
}

@media (max-width: 480px) {
  .nav .nav-logo {
    margin-inline-end: 12px;
  }

  .nav .nav-logo--lockup .nav-logo-img {
    height: 42px;
    max-width: min(220px, 72vw);
  }
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  color: #fff;
  transition: color 0.4s;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}

.nav-logo-text .logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.page-home .nav.scrolled .nav-logo-text,
.page-sub .nav-logo-text {
  color: var(--plum-800);
  text-shadow: none;
}

.page-sub .nav-logo-text .logo-sub {
  color: var(--warm-gray-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--nav-link-gap);
  flex-wrap: wrap;
  justify-content: flex-end;
  min-height: 0;
  min-width: 0;
  overflow: visible;
}

@media (min-width: 769px) {
  .nav-links {
    flex-wrap: nowrap;
    margin-left: auto;
    padding-left: 0;
    position: relative;
    z-index: 1005;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }

  .lang-toggle {
    margin-left: auto;
  }
}

.nav-links > a {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 2.5rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.3s;
  position: relative;
}

.page-home .nav.scrolled .nav-links a,
.page-sub .nav-links a {
  color: var(--warm-gray-700);
}

.nav-links a:hover {
  color: var(--pink-400);
}
.page-home .nav.scrolled .nav-links a:hover,
.page-sub .nav-links a:hover {
  color: var(--pink-500);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-plum-lav);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--plum-600);
}
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.48rem 1.2rem !important;
  background: var(--grad-plum-lav) !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.nav-cta::after {
  display: none !important;
}

/* ----- Homepage “More” dropdown (desktop); full list on mobile overlay ----- */
.nav-dropdown {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  align-self: center;
  display: flex;
  align-items: center;
}

.nav-dropdown-mobile-label {
  display: none;
}

.nav-dropdown-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  min-height: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  border-radius: 6px;
  transition: color 0.3s, background 0.2s;
}

/* On sub-pages (light nav), the "More" button should be dark */
.page-sub .nav-dropdown-toggle,
.page-home .nav.scrolled .nav-dropdown-toggle {
  color: var(--warm-gray-700);
}

.nav-dropdown-toggle:hover {
  color: var(--pink-400);
}

.page-sub .nav-dropdown-toggle:hover,
.page-home .nav.scrolled .nav-dropdown-toggle:hover {
  color: var(--pink-500);
}

.nav-dropdown-toggle:focus {
  outline: none;
}

.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--pink-400);
  outline-offset: 3px;
}

.nav-dropdown-icon {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--warm-gray-700) !important;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: var(--plum-50);
  color: var(--pink-500) !important;
}

.nav-dropdown-menu a:focus-visible {
  outline: 2px solid var(--pink-400);
  outline-offset: -2px;
}

.nav-dropdown-menu a.active {
  color: var(--plum-600) !important;
  font-weight: 600;
}

@media (min-width: 769px) {
  .nav-dropdown-toggle {
    display: inline-flex;
  }

  /* Pull panel up slightly so its hit box overlaps the toggle — removes the dead zone where :hover
     was lost between “More” and the menu (menu had pointer-events: none until visible). */
  .nav-dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: -10px;
    min-width: 220px;
    max-width: min(280px, 70vw);
    padding: 18px 0 12px;
    margin-left: 0;
    margin-right: 0;
    background: rgba(254, 248, 250, 0.98);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--warm-gray-100);
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
    padding-top: 0.25rem;
  }

  .nav-dropdown-mobile-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.25rem;
  }

  .nav-dropdown-toggle {
    display: none !important;
  }

  .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: static;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    padding: 0;
    font-size: 1.15rem !important;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  position: relative;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  position: absolute;
  left: 8px;
  right: 8px;
  width: auto;
  transition: all 0.3s;
}
.page-home .nav.scrolled .nav-toggle span,
.page-sub .nav-toggle span {
  background: var(--warm-gray-800);
}
.nav-toggle span:nth-child(1) {
  top: 12px;
}
.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span:nth-child(3) {
  bottom: 12px;
}
.nav-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Fixed nav clearance: apply once on #main (wraps #hero on index — avoid padding on .hero + #main) */
#main {
  padding-top: calc(var(--nav-height) + 16px);
  margin-top: 0;
  border-top: none;
  background-color: #ffffff;
}

/* Subpages: warm main fill for areas not covered by opaque sections */
.page-sub #main {
  background-color: var(--cream);
}

/* Publications + Specialties: nav clearance lives inside .page-hero so purple is continuous (no cream band under fixed nav) */
.page-publications #main,
.page-specialties #main {
  padding-top: 0;
  background-color: var(--cream);
}

.page-publications .page-hero,
.page-specialties .page-hero {
  padding-top: calc(var(--nav-height) + 16px + 2.5rem) !important;
  margin-top: 0;
}

/* Homepage: flush under fixed nav — same fill as hero (no seam / extra band) */
.page-home #main {
  padding-top: var(--nav-height);
  background: var(--grad-hero);
}

.page-home .hero {
  margin-top: 0;
  border-top: none;
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(
      to bottom,
      rgba(42, 18, 69, 0.45),
      rgba(42, 18, 69, 0.75)
    ),
    var(--grad-hero);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  border-top: none;
  padding-bottom: clamp(7rem, 12vw, 10rem);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -10%;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  background: radial-gradient(circle, rgba(232, 69, 128, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}

/* Premium violet glow (replaces previous corner blob on ::after) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(168, 85, 247, 0.25),
    transparent 60%
  );
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: drift linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(40px);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  line-height: 1.4;
}

.hero-text {
  max-width: 720px;
}

.hero-brand-label,
.hero .hero-brand-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Serif Display", Georgia, serif !important;
  font-size: 1rem;
  font-weight: 400;
  color: #fff !important;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
  opacity: 1 !important;
}

.hero-brand-label svg,
.hero .hero-brand-label svg {
  flex-shrink: 0;
  color: #fff !important;
  opacity: 0.85;
}

.hero-kicker {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lav-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pink-300);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--pink-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(251, 111, 146, 0.5);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(251, 111, 146, 0);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  color: var(--on-dark-strong);
  text-shadow: var(--text-shadow-hero);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pink-300), var(--lav-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  color: var(--on-dark-medium);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--on-dark-medium);
}

.hero-bullets li svg {
  flex-shrink: 0;
  color: var(--pink-300);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  min-height: 48px;
  background: var(--grad-plum-lav);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--glow-plum), 0 6px 20px var(--glow-lav);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1) contrast(1.05);
  animation: gentle-bob 6s ease-in-out infinite;
}

@keyframes gentle-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-img {
    animation: none;
  }

  .hero h1,
  .page-hero h1,
  .cta-banner h2,
  .section.section-cta h2,
  [data-surface="dark"] .section-header h2,
  .section-dark .section-header h2,
  .section-plum .section-header h2,
  .section-gradient .section-header h2,
  .section-dark h1,
  .section-dark h2,
  .section-dark h3,
  .section-plum h1,
  .section-plum h2,
  .section-plum h3,
  .section-gradient h1,
  .section-gradient h2,
  .section-gradient h3 {
    text-shadow: none;
  }
}

.trust-bar {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 2;
}

.trust-bar-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark-muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ----- Sections (global vertical rhythm) ----- */
.section {
  padding-block: var(--section-pad);
  padding-inline: 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  padding-block: var(--section-pad);
  padding-inline: 0;
  background: var(--cream);
}

@media (max-width: 768px) {
  .section,
  .section-alt {
    padding-block: 3rem;
  }
}

.section-mesh {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 50%, var(--warm-white) 100%);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pink-500);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  color: var(--warm-gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.06rem;
  color: var(--warm-gray-600);
  font-weight: 300;
  line-height: 1.65;
}

/* ----- Dark surfaces (homepage #main gradient + reusable utilities) ----- */
[data-surface="dark"] {
  color: var(--on-dark-medium);
}

[data-surface="dark"] .section-header .section-label {
  color: var(--on-dark-accent);
}

[data-surface="dark"] .section-header h2 {
  color: var(--on-dark-strong);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

[data-surface="dark"] .section-header p,
[data-surface="dark"] .section-sub {
  color: var(--on-dark-soft);
}

[data-surface="dark"] .section-header a {
  color: var(--on-dark-link);
}

[data-surface="dark"] .section-header a:hover {
  color: var(--on-dark-strong);
}

[data-surface="dark"] .parent-feature {
  color: var(--warm-gray-700);
}

[data-surface="dark"] .parent-feature h4 {
  color: var(--warm-gray-900);
}

[data-surface="dark"] .parent-feature p {
  color: var(--warm-gray-600);
}

/* Optional utilities: add class on .section for dark blocks + shared on-dark copy */
.section-dark,
.section-plum,
.section-gradient {
  color: var(--on-dark-medium);
}

.section-dark {
  background-color: var(--plum-900);
}

.section-plum {
  background: linear-gradient(135deg, var(--plum-900), var(--plum-700));
}

.section-gradient {
  background: var(--grad-hero);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-plum h1,
.section-plum h2,
.section-plum h3,
.section-gradient h1,
.section-gradient h2,
.section-gradient h3 {
  color: var(--on-dark-strong);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.section-dark p,
.section-plum p,
.section-gradient p {
  color: var(--on-dark-soft);
}

.section-dark .section-label,
.section-plum .section-label,
.section-gradient .section-label {
  color: var(--on-dark-accent);
}

.section-dark a,
.section-plum a,
.section-gradient a {
  color: var(--on-dark-link);
}

.section-dark a:hover,
.section-plum a:hover,
.section-gradient a:hover {
  color: var(--on-dark-strong);
}

.section-dark .section-header h2,
.section-plum .section-header h2,
.section-gradient .section-header h2 {
  color: var(--on-dark-strong);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.section-dark .section-header p,
.section-plum .section-header p,
.section-gradient .section-header p {
  color: var(--on-dark-soft);
}

/* Light cards / nested UI on dark sections keep their own surfaces */
.section-dark .parent-feature,
.section-dark .testimonial-card,
.section-plum .parent-feature,
.section-plum .testimonial-card,
.section-gradient .parent-feature,
.section-gradient .testimonial-card {
  color: var(--warm-gray-700);
}

.section-dark .parent-feature h4,
.section-plum .parent-feature h4,
.section-gradient .parent-feature h4 {
  color: var(--warm-gray-900);
}

.section-dark .parent-feature p,
.section-plum .parent-feature p,
.section-gradient .parent-feature p {
  color: var(--warm-gray-600);
}

/* ----- About ----- */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(126, 94, 167, 0.12), 0 12px 40px rgba(61, 31, 92, 0.08);
  border: 4px solid #fff;
}

.about-float-card {
  position: absolute;
  bottom: -1.25rem;
  right: -1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 1rem);
}

.about-float-card .afc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-plum-lav);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-float-card .afc-icon svg {
  width: 24px;
  height: 24px;
}

.about-float-card .afc-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.about-float-card .afc-sub {
  font-size: 0.78rem;
  color: var(--warm-gray-600);
  font-weight: 400;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  color: var(--warm-gray-900);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--warm-gray-700);
  margin-bottom: 1.15rem;
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-stat {
  text-align: center;
  padding: 1.15rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--pink-500), var(--plum-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--warm-gray-600);
  margin-top: 0.25rem;
}

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}

.service-card {
  background: var(--grad-card);
  border: 1px solid var(--warm-gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-plum-lav);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--plum-100);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.si-plum {
  background: var(--plum-50);
}
.si-plum svg {
  color: var(--plum-600);
}
.si-lav {
  background: var(--lav-100);
}
.si-lav svg {
  color: var(--plum-500);
}
.si-gold {
  background: var(--gold-light);
}
.si-gold svg {
  color: var(--gold);
}
.si-pink {
  background: var(--pink-50);
}
.si-pink svg {
  color: var(--pink-500);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--warm-gray-900);
  margin-bottom: 0.55rem;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--warm-gray-600);
  font-weight: 300;
  line-height: 1.62;
  flex: 1;
}

.service-tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-popular {
  background: var(--pink-50);
  color: var(--pink-600);
}
.tag-new {
  background: var(--lav-100);
  color: var(--plum-600);
}

.service-link {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum-600);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s, color 0.25s;
}

.service-link:hover {
  gap: 0.5rem;
  color: var(--pink-500);
}

.service-link svg {
  width: 16px;
  height: 16px;
}

/* ----- Why choose ----- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--warm-gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s, border-color 0.35s, transform 0.35s;
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--plum-100);
  transform: translateY(-3px);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.why-icon svg {
  width: 24px;
  height: 24px;
  color: var(--plum-600);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--warm-gray-900);
  margin-bottom: 0.45rem;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--warm-gray-600);
  font-weight: 300;
  line-height: 1.65;
}

/* ----- How it works (4 steps) ----- */
.how-it-works {
  background: var(--cream);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--grad-plum-lav);
  opacity: 0.22;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--plum-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step:hover .step-num {
  border-color: var(--plum-300);
  box-shadow: var(--shadow-glow);
}

.step-num svg {
  width: 36px;
  height: 36px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--warm-gray-900);
  margin-bottom: 0.45rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  font-weight: 300;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ----- Parents (homepage #parents — overrides .section padding; !important wins cascade) ----- */
#parents {
  position: relative;
  z-index: 1;
  padding-top: 1.25rem !important;
  padding-bottom: 1.4rem !important;
}

#parents .container {
  position: relative;
  z-index: 2;
}

#parents::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(28px, 4vw, 44px);
  background: linear-gradient(
    to bottom,
    rgba(45, 22, 69, 0) 0%,
    var(--cream) 100%
  );
  pointer-events: none;
  z-index: 1;
}

#parents .section-header {
  margin-bottom: 1.25rem !important;
}

#parents .section-header .section-label {
  margin-bottom: 0.4rem !important;
}

#parents .section-header h2 {
  margin-bottom: 0.35rem !important;
}

#parents .section-header p {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.parents-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.parent-feature {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.parent-feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--plum-100);
}

.pf-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-icon svg {
  width: 22px;
  height: 22px;
  color: var(--plum-500);
}

.parent-feature h4 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  margin-bottom: 0.3rem;
}

.parent-feature p {
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  font-weight: 300;
  line-height: 1.6;
}

.parents-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.parents-card-stack {
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 300px !important;
}

.pcs-card {
  position: absolute;
  width: 260px;
  max-width: 90vw;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-gray-100);
}

.pcs-card:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 3;
}
.pcs-card:nth-child(2) {
  top: 48px;
  left: 32px;
  z-index: 2;
  transform: rotate(3deg);
}
.pcs-card:nth-child(3) {
  top: 96px;
  left: 8px;
  z-index: 1;
  transform: rotate(-2deg);
}

.pcs-card h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--plum-500);
  margin-bottom: 0.5rem;
}

.pcs-card p {
  font-size: 0.88rem;
  color: var(--warm-gray-700);
  line-height: 1.55;
}

.pcs-progress {
  width: 100%;
  height: 6px;
  background: var(--warm-gray-100);
  border-radius: 3px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.pcs-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-plum-lav);
}

/* ----- Testimonials ----- */
.testimonials {
  background: linear-gradient(180deg, var(--warm-white), var(--cream));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tc-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.85rem;
}

.tc-stars svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  fill: var(--gold);
}

.testimonial-card blockquote {
  font-size: 0.96rem;
  color: var(--warm-gray-700);
  font-weight: 300;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.1rem;
  line-height: 1.7;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--warm-gray-100);
  padding-top: 1rem;
}

.tc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--plum-600);
  flex-shrink: 0;
}

.tc-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.tc-role {
  font-size: 0.78rem;
  color: var(--warm-gray-600);
}

.tc-note {
  font-size: 0.75rem;
  color: var(--warm-gray-600);
  margin-top: 0.75rem;
  font-style: normal;
}

/* ----- CTA booking ----- */
.cta-section {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background: radial-gradient(circle, rgba(126, 94, 167, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 0 0.5rem;
}

.cta-content .section-label {
  color: var(--lav-300);
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.5vw, 2.85rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-content p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 540px;
  margin: 0 auto 1.75rem;
  font-weight: 300;
  line-height: 1.65;
}

.cta-content .btn-primary {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

.booking-placeholder {
  max-width: 520px;
  margin: 2.25rem auto 0;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  line-height: 1.6;
}

.booking-placeholder code {
  font-size: 0.78rem;
  opacity: 0.55;
  display: block;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--warm-gray-900);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--warm-gray-600);
  font-weight: 300;
  margin-bottom: 1.35rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--plum-500);
}

.contact-item span,
.contact-item a {
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--plum-600);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.contact-item a:hover {
  border-color: var(--plum-300);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-row a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum-600);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--plum-100);
  transition: background 0.25s, border-color 0.25s;
}

.social-row a:hover {
  background: var(--plum-50);
  border-color: var(--plum-200);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-gray-100);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm-gray-800);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--warm-gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--warm-gray-800);
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--plum-300);
  box-shadow: 0 0 0 3px var(--glow-plum);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--warm-gray-600);
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  padding: 0.92rem;
  min-height: 48px;
  background: var(--grad-plum-lav);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

/* ----- Footer ----- */
.footer {
  background: var(--plum-900);
  color: var(--on-dark-soft);
  padding-top: 3rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.footer-inner > div:not(.footer-brand) {
  min-width: 0;
}

.footer-brand .nav-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 0.75rem;
}

.footer-brand .nav-logo-text {
  color: var(--on-dark-strong);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 320px;
  font-weight: 300;
}

.footer h4 {
  color: var(--on-dark-strong);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer ul {
  display: grid;
  gap: 0.55rem;
}

.footer ul li {
  margin-bottom: 0;
}

.footer ul a {
  font-size: 0.88rem;
  color: var(--on-dark-muted);
  transition: color 0.3s;
}

.footer ul a:hover {
  color: var(--on-dark-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.8rem;
}

/* ----- Inner pages: breadcrumb + page-hero (global rhythm) ----- */
.breadcrumb {
  font-size: 0.9rem;
}

/* Breadcrumbs on site live in dark heroes — use on-dark tokens (lavender links, readable current page) */
.page-hero .breadcrumb,
.hero .breadcrumb,
.section-dark .breadcrumb,
.section-plum .breadcrumb,
.section-gradient .breadcrumb,
.cta-banner .breadcrumb,
.section.section-cta .breadcrumb {
  color: var(--on-dark-soft);
}

.page-hero .breadcrumb a,
.hero .breadcrumb a,
.section-dark .breadcrumb a,
.section-plum .breadcrumb a,
.section-gradient .breadcrumb a,
.cta-banner .breadcrumb a,
.section.section-cta .breadcrumb a {
  color: var(--on-dark-link);
  font-weight: 500;
  transition: color 0.3s;
}

.page-hero .breadcrumb span,
.hero .breadcrumb span,
.section-dark .breadcrumb span,
.section-plum .breadcrumb span,
.section-gradient .breadcrumb span,
.cta-banner .breadcrumb span,
.section.section-cta .breadcrumb span {
  margin: 0 0.4rem;
  color: var(--on-dark-muted);
}

.page-hero .breadcrumb a:hover,
.hero .breadcrumb a:hover,
.section-dark .breadcrumb a:hover,
.section-plum .breadcrumb a:hover,
.section-gradient .breadcrumb a:hover,
.cta-banner .breadcrumb a:hover,
.section.section-cta .breadcrumb a:hover {
  color: var(--on-dark-strong);
}

.page-hero {
  padding: 7.5rem 0 clamp(4rem, 7vw, 6rem);
  background: linear-gradient(135deg, var(--plum-900), var(--plum-700));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-sub .page-hero {
  padding-bottom: clamp(4rem, 7vw, 6rem);
  margin-bottom: 0;
}

/* First section after inner hero: trim gap; STAAR uses .page-hero outside #main */
.page-sub .page-hero + .section {
  margin-top: 0;
  border-top: none;
  padding-top: clamp(1rem, 2vw, 1.75rem);
}

.page-sub #main > .page-hero + .section {
  padding-top: 0.5rem;
}

.page-sub .page-hero + .section .section-header {
  margin-top: 0;
  margin-bottom: 1.75rem;
}

/* Publications + Specialties: pull first content block closer (hero fade unchanged) */
.page-publications #main > .page-hero + .section .section-header,
.page-specialties #main > .page-hero + .section .section-header {
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-specialties #main > .page-hero + .section .content-block {
  margin-top: 0;
}

.page-publications #main > .page-hero + .section .pub-grid {
  margin-top: 0.5rem;
}

/* Publications + Specialties: cream handoff for hero fade (first section uses --cream) */
.page-publications .page-hero::after,
.page-specialties .page-hero::after {
  left: 0;
  right: 0;
  width: auto;
  height: 64px;
  background: linear-gradient(to bottom, rgba(45, 22, 69, 0), var(--cream));
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(232, 69, 128, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* Premium fade into first light section (default: white; Publications/Specialties override to --cream) */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(to bottom, rgba(45, 22, 69, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
  z-index: 1;
  border-radius: 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--on-dark-strong);
  text-shadow: var(--text-shadow-soft);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pink-300), var(--lav-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--on-dark-medium);
  font-size: 1.06rem;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  line-height: 1.65;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--warm-gray-900);
  margin-bottom: 0.85rem;
}

.content-block p {
  color: var(--warm-gray-700);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-gray-100);
}

.info-card h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--warm-gray-900);
  margin-bottom: 0.75rem;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.7;
}

.credentials-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--warm-gray-800);
}

.credentials-list li {
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.credentials-list .credential-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--warm-gray-600);
  font-size: 0.92rem;
  font-weight: 300;
}

.numbered-list {
  counter-reset: step;
}

.numbered-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--warm-gray-100);
  counter-increment: step;
}

.numbered-item:last-child {
  border-bottom: none;
}

.numbered-item::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--plum-600);
  border: 1.5px solid var(--plum-100);
}

.numbered-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--warm-gray-900);
  margin-bottom: 0.45rem;
}

.numbered-item ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--warm-gray-700);
}

.numbered-item ul li {
  margin-bottom: 0.25rem;
  font-weight: 300;
}

.process-commitment {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--warm-gray-100);
}

.numbered-item p {
  font-size: 0.9rem;
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.fc-icon svg {
  width: 24px;
  height: 24px;
  color: var(--plum-500);
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--warm-gray-600);
  font-weight: 300;
  line-height: 1.6;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  border: 1px solid var(--warm-gray-100);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  padding: 1.1rem 1.35rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  text-align: left;
}

.faq-q svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--plum-400);
  transition: transform 0.3s;
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s;
}

.faq-item.open .faq-a {
  max-height: 560px;
  padding: 0 1.35rem 1.1rem;
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.7;
}

.faq-a a {
  color: var(--pink-600);
  font-weight: 500;
  border-bottom: 1px solid var(--plum-200);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--grad-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--plum-100);
  transition: background 0.3s, transform 0.3s;
}

.link-card:hover {
  transform: translateY(-2px);
  background: var(--plum-50);
}

.link-card svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--plum-500);
}

.link-card span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--plum-700);
}

.cta-banner {
  background: var(--grad-hero);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(circle, rgba(184, 156, 216, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  color: var(--on-dark-strong);
  text-shadow: var(--text-shadow-soft);
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  color: var(--on-dark-medium);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 1.35rem;
  position: relative;
  z-index: 2;
}

/* STAAR case study — closing CTA (matches cta-banner treatment for ghost + solid buttons) */
.section.section-cta {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: var(--grad-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section.section-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(circle, rgba(184, 156, 216, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section.section-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  color: var(--on-dark-strong);
  text-shadow: var(--text-shadow-soft);
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 2;
}

.section.section-cta .container > p:not(.section-cta-foot) {
  color: var(--on-dark-medium);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

.section-cta-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.section-cta-foot {
  margin: 1.75rem 0 0;
  margin-bottom: 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.section-cta-foot a {
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.section-cta-foot a:hover {
  color: var(--on-dark-accent);
}

.page-article {
  max-width: 760px;
  margin: 0 auto;
}

.page-article h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--warm-gray-900);
  margin: 2rem 0 1rem;
}

.page-article p {
  color: var(--warm-gray-700);
  font-weight: 300;
  margin-bottom: 1rem;
}

.page-article ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.page-article li {
  margin-bottom: 0.55rem;
  color: var(--warm-gray-700);
  font-weight: 300;
}

/* Scholarships page */
.provider-badge {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--green-500);
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.provider-badge-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-badge-icon svg {
  width: 32px;
  height: 32px;
  color: var(--green-600);
}

.provider-badge h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--warm-gray-900);
  margin-bottom: 0.35rem;
}

.provider-badge p {
  font-size: 0.92rem;
  color: var(--warm-gray-600);
  font-weight: 300;
}

.accepted-list {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.accepted-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warm-gray-100);
  transition: border-color 0.3s;
}

.accepted-item:hover {
  border-color: var(--green-500);
}

.accepted-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.accepted-check svg {
  width: 16px;
  height: 16px;
  color: var(--green-600);
}

.accepted-item span {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--warm-gray-900);
}

.scholarship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.scholarship-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.scholarship-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scholarship-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-plum-lav);
}

.sc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-icon svg {
  width: 22px;
  height: 22px;
  color: var(--plum-500);
}

.scholarship-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--warm-gray-900);
}

.scholarship-card > p {
  font-size: 0.9rem;
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.sc-facts {
  padding: 0.75rem 1rem;
  background: var(--warm-gray-50);
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.sc-facts h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--plum-600);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.sc-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  color: var(--warm-gray-700);
  font-weight: 300;
}

.sc-fact:last-child {
  margin-bottom: 0;
}

.sc-fact svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--plum-400);
  margin-top: 2px;
}

.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--plum-600);
}

.sc-link svg {
  width: 16px;
  height: 16px;
}

.specialist-callout {
  max-width: 920px;
  margin: 0 auto;
  background: var(--grad-soft);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: center;
  border: 1px solid var(--plum-100);
}

.specialist-callout-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.specialist-callout-icon svg {
  width: 40px;
  height: 40px;
  color: var(--plum-500);
}

.specialist-callout h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--warm-gray-900);
  margin-bottom: 0.5rem;
}

.specialist-callout p {
  font-size: 0.94rem;
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.75;
}

.how-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.how-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
}

.how-card-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-plum-lav);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.how-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  margin-bottom: 0.45rem;
}

.how-card p {
  font-size: 0.87rem;
  color: var(--warm-gray-600);
  font-weight: 300;
  line-height: 1.6;
}

.contact-stripe {
  background: #fff;
  border-top: 1px solid var(--warm-gray-100);
  padding: 2.25rem 0;
  text-align: center;
}

.contact-stripe p {
  font-size: 0.94rem;
  color: var(--warm-gray-600);
  margin-bottom: 0.45rem;
}

.contact-stripe a {
  color: var(--pink-600);
  font-weight: 600;
}

.contact-stripe strong {
  color: var(--warm-gray-900);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-brand-label {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-bullets {
    align-items: center;
  }
  .hero-visual {
    order: 0;
  }
  .hero-visual-img {
    max-width: min(92vw, 480px);
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image-wrap {
    max-width: 420px;
    margin: 0 auto;
  }
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-row::before {
    display: none;
  }
  .parents-grid {
    grid-template-columns: 1fr;
  }
  .parents-visual {
    order: -1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner .footer-brand {
    grid-column: 1 / -1;
  }

  /* Fourth column (jump / quick links) uses full width on tablet for balance */
  .footer-inner > div:nth-child(4) {
    grid-column: 1 / -1;
  }
  .content-block {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scholarship-grid {
    grid-template-columns: 1fr;
  }
  .specialist-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .specialist-callout-icon {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 14, 46, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    z-index: 999;
    padding: calc(var(--nav-h) + 1rem) 2rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.15rem !important;
    color: #fff !important;
  }
  .page-sub .nav-links a {
    color: #fff !important;
  }
  .nav-links .nav-cta {
    margin-top: 0.5rem;
  }
  .steps-row {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-inner > div:nth-child(4) {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .trust-bar {
    position: relative;
    bottom: auto;
    padding: 2rem 0 0;
  }
  .hero {
    padding-bottom: 3rem;
  }
  .page-home .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-home .hero-visual {
    order: -1;
    width: 100%;
  }
  .page-home .hero-visual-img {
    width: min(80vw, 380px);
    max-width: 100%;
    height: auto;
  }
  .link-cards {
    grid-template-columns: 1fr;
  }
  .how-cards {
    grid-template-columns: 1fr;
  }
  .provider-badge {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  .parents-card-stack {
    width: 260px;
    height: 300px !important;
  }
  .pcs-card {
    width: 230px;
  }
}

/* =============================================================================
   Language Toggle
   ============================================================================= */

/* =============================================================================
   Google Translate — hide every part of the widget UI
   ============================================================================= */
#google_translate_element {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.goog-te-banner-frame,
#goog-te-banner-frame,
.goog-te-balloon-frame,
.skiptranslate > iframe {
  display: none !important;
}
body {
  top: 0 !important;
  position: static !important;
}
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget img { display: none !important; }

/* =============================================================================
   Language Toggle — always visible on dark AND light nav backgrounds
   ============================================================================= */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  gap: 0.35rem;
  padding: 0.34rem 0.82rem;
  background: linear-gradient(135deg, var(--pink-400), var(--plum-600));
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(251, 111, 146, 0.28);
}

.lang-toggle:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.lang-toggle svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lang-toggle {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }
}

/* =============================================================================
   Portfolio & STAAR case study
   ============================================================================= */
.featured-project {
  border: 1px solid var(--plum-100);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #fff 0%, var(--plum-50) 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.featured-project-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.featured-project-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  height: clamp(260px, 42vw, 380px);
  background: var(--grad-hero);
  position: relative;
}

.featured-project-visual .case-screenshot-ph {
  min-height: 220px;
  border-radius: var(--radius-lg);
}

.featured-project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.featured-project-body h2,
.featured-project-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--plum-900);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.featured-project-kicker {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-bottom: 0.35rem;
}

.featured-project-sub {
  color: var(--warm-gray-700);
  font-weight: 300;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.featured-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.portfolio-subtext {
  max-width: 720px;
  margin: 0 auto;
}

.portfolio-project-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--warm-gray-100);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
}

.portfolio-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-project-card .portfolio-card-banner {
  min-height: 200px;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.portfolio-project-card .portfolio-card-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-screenshot-slot {
  margin: 1.5rem 0;
}

.case-screenshot-slot figcaption {
  font-size: 0.85rem;
  color: var(--warm-gray-600);
  margin-top: 0.5rem;
  font-weight: 400;
}

.case-screenshot-ph {
  border-radius: var(--radius-md);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(45, 22, 69, 0.35) 0%,
    rgba(107, 77, 138, 0.25) 50%,
    rgba(232, 69, 128, 0.15) 100%
  );
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
}

.page-sub .case-screenshot-ph {
  border-color: var(--plum-200);
  background: linear-gradient(145deg, var(--plum-50) 0%, var(--warm-white) 100%);
  color: var(--plum-700);
}

.case-study-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--warm-gray-900);
  margin-bottom: 0.75rem;
}

.case-study-section p + h2 {
  margin-top: 1.75rem;
}

.case-study-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--plum-800);
  margin: 1.25rem 0 0.5rem;
}

.case-study-section p,
.case-study-section li {
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.75;
}

.case-study-section ul.case-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.case-study-section ul.case-list li {
  margin-bottom: 0.5rem;
}

.case-quick-highlights {
  margin: 1rem 0 1.35rem;
  padding: 0;
  list-style: none;
}

.case-quick-highlights li {
  margin-bottom: 0.45rem;
  padding-left: 0;
  font-size: 1.02rem;
}

.page-hero .case-quick-highlights--hero {
  max-width: 420px;
  margin: 1rem auto 0;
  text-align: left;
}

.page-hero .case-quick-highlights--hero li {
  color: var(--on-dark-medium);
  font-size: 0.95rem;
}

.case-tech-box {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--warm-gray-50);
  border: 1px solid var(--warm-gray-200);
}

.case-tech-box h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.case-tech-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--warm-gray-700);
}

.case-tech-box li {
  margin-bottom: 0.4rem;
}

.btn-outline-plum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  min-height: 48px;
  background: transparent;
  border: 2px solid var(--plum-500);
  color: var(--plum-800);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}

.btn-outline-plum:hover {
  background: var(--plum-50);
  border-color: var(--plum-600);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .featured-project-grid {
    grid-template-columns: 1fr;
  }
}

/* STAAR case study: framed mockup images */
.case-mockup-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--warm-gray-100);
  line-height: 0;
}

.case-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

.case-screenshot-slot--hero {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.case-screenshot-slot--hero figcaption {
  text-align: center;
  margin-top: 1rem;
}

.case-mockup-hero-band {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.case-duo-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.case-duo-screenshots .case-screenshot-slot {
  margin: 0;
}

@media (max-width: 900px) {
  .case-duo-screenshots {
    grid-template-columns: 1fr;
  }
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: 2rem;
}

.case-gallery-grid figure {
  margin: 0;
}

.case-gallery-grid .case-mockup-wrap {
  box-shadow: var(--shadow-md);
}

.case-gallery-grid figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .case-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card-banner--thumb {
  min-height: 0;
  height: 200px;
  padding: 0;
  overflow: hidden;
  background: var(--plum-50);
  align-items: stretch;
}

.portfolio-card-banner--thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Tall platform infographic (portrait overview graphic) */
.case-mockup-wrap--infographic {
  max-width: min(720px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, #eef2f8 0%, #e2e8f0 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  line-height: 0;
}

.case-mockup-img--infographic {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 900px) {
  .case-mockup-wrap--infographic {
    max-width: min(880px, 100%);
  }
}

/* STAAR case study — Platform Experience (reference UI crops, site-themed frames) */
.staar-platform-experience .staar-pe-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.7;
}

.staar-pe-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--plum-100);
  background: linear-gradient(145deg, var(--plum-50) 0%, var(--pink-50) 50%, var(--lav-100) 100%);
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  line-height: 0;
}

.staar-pe-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.staar-pe-hero {
  margin: 0 auto 2.5rem;
  max-width: 100%;
}

.staar-pe-hero .staar-pe-frame {
  aspect-ratio: 16 / 9;
  max-height: min(520px, 70vh);
  margin: 0 auto;
}

.staar-pe-img--hero {
  object-position: center 8%;
}

.staar-pe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.staar-pe-card .staar-pe-frame {
  aspect-ratio: 4 / 3;
  margin-bottom: 0.85rem;
}

.staar-pe-img--module {
  object-position: center 24%;
}

.staar-pe-img--dashboard {
  object-position: center 40%;
}

.staar-pe-img--reports {
  object-position: center 56%;
}

.staar-pe-img--login {
  object-position: center 72%;
}

.staar-pe-img--email {
  object-position: center 88%;
}

.staar-pe-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--plum-900);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.staar-pe-card p {
  font-size: 0.95rem;
  color: var(--warm-gray-700);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

.staar-pe-card--span {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.staar-pe-hero figcaption {
  text-align: center;
  margin-top: 0.85rem;
}

@media (max-width: 768px) {
  .staar-pe-grid {
    grid-template-columns: 1fr;
  }

  .staar-pe-hero .staar-pe-frame {
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .staar-pe-img--hero {
    object-position: center 10%;
  }
}

/* =============================================================================
   Publications + Specialties — page-scoped first-section gap only (no global .section
   change). Hero ::after fade, nav, submenu, logo, footer, homepage untouched.
   ============================================================================= */

/* ── Task 1: Publications top gap ── */
.page-publications .page-hero {
  padding-bottom: 6rem !important;
}

.page-publications #main > .page-hero + .section {
  margin-top: 0 !important;
  border-top: none !important;
  padding-top: 0.25rem !important;
  padding-block-start: 0.25rem !important;
}

.page-publications #main > .page-hero + .section > .container {
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

.page-publications #main > .page-hero + .section .section-header {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  margin-bottom: 0.75rem !important;
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

.page-publications #main > .page-hero + .section .pub-grid {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* ── Task 2: Learning Differences / Specialties top gap ── */
.page-specialties .page-hero {
  padding-bottom: 1.25rem !important;
  isolation: isolate;
}
/* === LOCKED: SPECIALTIES HERO POSITIONING ===
   Controls vertical placement of hero text above fade.
   DO NOT MODIFY unless adjusting hero layout intentionally.
   Depends on fade height and z-index layering.
*/
.page-specialties .page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.page-specialties .page-hero::after {
  z-index: 1;
  height: 32px !important;
}

.page-specialties #main > .page-hero + .section {
  margin-top: 0 !important;
  border-top: none !important;
  padding-top: 0.25rem !important;
  padding-block-start: 0.25rem !important;
}

.page-specialties #main > .page-hero + .section > .container {
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

.page-specialties #main > .page-hero + .section .content-block {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
  padding-block-start: 0 !important;
  align-items: start;
  align-content: start;
}

.page-specialties #main > .page-hero + .section .section-label,
.page-specialties #main > .page-hero + .section h2,
.page-specialties #main > .page-hero + .section p,
.page-specialties #main > .page-hero + .section ul {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* ── Task 3: Publications footer logo sizing ── */
.page-publications .footer .footer-brand .nav-logo--lockup .nav-logo-img {
  height: 56px !important;
  width: auto !important;
  max-width: 100% !important;
  border-radius: 6px;
  object-fit: contain;
}

/* =============================================================================
   Footer logo — global proportional rendering override (no stretch on any page)
   Header logo, nav, submenu, footer columns, spacing fixes untouched.
   ============================================================================= */
.footer .footer-brand .nav-logo,
.footer-brand .nav-logo--lockup {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
}

.footer .footer-brand .nav-logo img,
.footer-brand .nav-logo--lockup .nav-logo-img,
.footer-logo img,
.site-footer .footer-brand img {
  display: block !important;
  width: auto !important;
  height: 56px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.page-publications .footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-publications .footer .footer-brand .nav-logo,
.page-publications .footer .footer-brand .nav-logo--lockup {
  width: auto !important;
  max-width: max-content !important;
  flex: 0 0 auto !important;
}

.page-publications .footer .footer-brand .nav-logo--lockup .nav-logo-img {
  width: auto !important;
  height: 56px !important;
  max-width: none !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}

/* =============================================================================
   Privacy Policy page — premium legal card layout (.page-privacy scoped only)
   Header, nav, submenu, logo, footer, hero, global styles untouched.
   ============================================================================= */

/* ── Privacy: zero #main white-strip, move nav clearance into hero ── */
.page-privacy #main {
  padding-top: 0;
}

.page-privacy .page-hero {
  padding-top: calc(var(--nav-height) + 16px + 2rem) !important;
  padding-bottom: 1.5rem !important;
}

.page-privacy .page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 2.5rem;
}

.page-privacy #main > .page-hero + .section {
  margin-top: 0 !important;
  border-top: none !important;
  padding-top: 2rem !important;
  padding-block-start: 2rem !important;
}

.page-privacy #main > .page-hero + .section > .container {
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

.page-privacy .section-alt {
  background: var(--warm-gray-100);
}

.page-privacy .policy-card {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow:
    0 2px 8px rgba(45, 22, 69, 0.06),
    0 8px 32px rgba(45, 22, 69, 0.10);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 5vw, 3.5rem);
}

.page-privacy .policy-meta {
  font-size: 0.82rem;
  color: var(--warm-gray-600);
  letter-spacing: 0.02em;
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--warm-gray-200);
}

.page-privacy .policy-meta strong {
  color: var(--plum-700);
  font-weight: 600;
}

.page-privacy .policy-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--plum-900);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.page-privacy .policy-card h3:first-of-type {
  margin-top: 0;
}

.page-privacy .policy-card p {
  font-size: 0.97rem;
  color: var(--warm-gray-700);
  line-height: 1.8;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.page-privacy .policy-card ul {
  margin: 0.5rem 0 0.85rem 0;
  padding-left: 1.4rem;
}

.page-privacy .policy-card li {
  font-size: 0.97rem;
  color: var(--warm-gray-700);
  line-height: 1.75;
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}

.page-privacy .policy-card a {
  color: var(--plum-600);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--plum-200);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.page-privacy .policy-card a:hover {
  color: var(--plum-800);
  text-decoration-color: var(--plum-400);
}

@media (max-width: 600px) {
  .page-privacy .policy-card {
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
}
