/* ==========================================================================
   Dunluce Family Practice — Premium Design System
   Author: Digital Odyssey (www.DigitalOdyssey.agency)
   A modern, accessible, high-end healthcare experience.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — Charcoal / Black (from Dunluce logo) */
  --blue-900: #171211;
  --blue-800: #241a18;
  --blue-700: #45161a;
  --blue-600: #6e1a20;
  --blue-500: #9c2229;
  --blue-100: #f6e7e6;
  --blue-50:  #fbf4f3;

  /* Accent — Dunluce Red (from logo) */
  --teal-600: #c1141b;
  --teal-500: #e01f26;
  --teal-100: #fbe1e1;
  --green-600: #8f1216;
  --green-500: #c1141b;
  --green-100: #f8dedd;

  /* Neutrals — Warm Grey / Soft White */
  --white: #ffffff;
  --soft-white: #f8fafb;
  --grey-50: #f3f5f7;
  --grey-100: #e9edf1;
  --grey-200: #d7dee4;
  --grey-300: #b7c1cb;
  --grey-400: #8a97a4;
  --grey-500: #64707c;
  --grey-600: #47525d;
  --grey-700: #313a43;
  --ink: #17222c;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--soft-white);
  --text: var(--grey-700);
  --heading: var(--blue-900);
  --muted: var(--grey-500);
  --border: var(--grey-100);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", Georgia, serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — soft, layered */
  --shadow-xs: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-sm: 0 4px 12px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.12);
  --shadow-glow: 0 20px 50px rgba(224, 31, 38, 0.22);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--teal-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--teal-100); color: var(--blue-900); }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

.section { padding-block: clamp(4rem, 3rem + 6vw, 8rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); }
.bg-alt { background: var(--bg-alt); }
.bg-blue {
  background: linear-gradient(155deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: #e9dedb;
}
.bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-blue h4 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--green-500));
  border-radius: 2px;
}
.bg-blue .eyebrow { color: var(--teal-100); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.bg-blue .lead { color: #d9cbc8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--green-600));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 26px 60px rgba(224, 31, 38, 0.34); }
.btn-secondary {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--grey-200);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { color: var(--blue-900); transform: translateY(-3px); border-color: var(--teal-500); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.5);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
/* Center the primary nav links between the brand and the actions */
.nav .container-wide > nav[aria-label="Primary"] { flex: 1 1 auto; display: flex; justify-content: center; }
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-800), var(--teal-600));
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--blue-900); letter-spacing: -0.02em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; }

/* Uploaded logo image */
.brand-logo { height: 46px; width: auto; display: block; }
/* White logo over the dark hero (transparent nav); full colour once the nav turns solid on scroll */
.nav:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.footer .brand-logo { height: 42px; filter: brightness(0) invert(1); }
@media (max-width: 480px) { .brand-logo { height: 40px; } }

/* Hero clinic photo */
.hero-card-img img.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Photo inside a media frame (split sections) */
.media-frame img.media-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Doctor head-shot photo */
.doctor-photo img.doctor-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Clinic photo slideshow */
.slideshow {
  position: relative; max-width: 1000px; margin-inline: auto;
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 16/10; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); background: var(--grey-100);
}
.slideshow .slides { position: absolute; inset: 0; }
.slideshow .slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease);
}
.slideshow .slide.is-active { opacity: 1; visibility: visible; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow .slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(10,6,5,0.75), transparent);
  color: #fff; font-weight: 600; font-size: 1.05rem;
}
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: none; cursor: pointer; z-index: 3;
  background: rgba(255,255,255,0.9); color: var(--blue-900);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.slide-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slide-nav svg { width: 22px; height: 22px; }
.slide-nav.prev { left: 1rem; }
.slide-nav.next { right: 1rem; }
.slide-dots {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 3;
}
.slide-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; background: transparent; transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.slide-dots button.is-active { background: #fff; transform: scale(1.15); }
@media (max-width: 560px) {
  .slideshow { aspect-ratio: 4/3; }
  .slide-nav { width: 40px; height: 40px; }
  .slideshow .slide figcaption { font-size: 0.95rem; padding: 2rem 1.1rem 1rem; }
}

/* Nav on transparent hero (light text) */
.nav:not(.scrolled) .brand-name { color: #fff; }
.nav:not(.scrolled) .brand-sub { color: var(--teal-100); }
.nav:not(.scrolled) .nav-links > li > a { color: rgba(255,255,255,0.92); }
.nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav:not(.scrolled) .nav-cta-call { color: #fff; border-color: rgba(255,255,255,0.4); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--grey-700);
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links > li > a:hover { color: var(--teal-600); background: rgba(23,162,176,0.08); }
.nav:not(.scrolled) .nav-links > li > a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.nav-links a .caret { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.nav-links li:hover a .caret { transform: rotate(180deg); }

/* Mega / dropdown menu */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  z-index: 20;
}
.mega.mega-2 { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; }
.nav-links li:hover .mega,
.nav-links li:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega::before {
  content: "";
  position: absolute; top: -18px; left: 0; right: 0; height: 20px;
}
.mega a {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.7rem 0.8rem; border-radius: var(--r-md);
  color: var(--grey-700); transition: background 0.2s var(--ease);
}
.mega a:hover { background: var(--blue-50); }
.mega a .m-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-100), var(--green-100));
  color: var(--teal-600);
}
.mega a .m-ico svg { width: 20px; height: 20px; }
.mega a .m-title { display: block; font-weight: 700; font-size: 0.95rem; color: var(--blue-900); margin-bottom: 1px; }
.mega a .m-desc { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-cta-call {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: 0.95rem;
  color: var(--blue-800);
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
}
.nav-cta-call:hover { border-color: var(--teal-500); color: var(--teal-600); }
.nav-cta-call svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin: -8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: #fff;
  z-index: 999;
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu details { border-bottom: 1px solid var(--border); }
.mobile-menu summary {
  list-style: none; cursor: pointer;
  font-weight: 700; font-size: 1.1rem; color: var(--blue-900);
  padding: 1rem 0; display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-600); font-weight: 400; }
.mobile-menu details[open] summary::after { content: "−"; }
.mobile-menu .m-sub { padding: 0 0 1rem 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-menu .m-sub a { padding: 0.5rem 0; color: var(--grey-600); font-weight: 500; }
.mobile-menu > a.m-link {
  font-weight: 700; font-size: 1.1rem; color: var(--blue-900);
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.75rem; }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-900) 0%, #2b1513 45%, #4d151a 100%);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg .orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
}
.orb-1 { width: 460px; height: 460px; top: -120px; right: -80px; background: radial-gradient(circle, var(--teal-500), transparent 70%); animation: float 14s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; bottom: -120px; left: -60px; background: radial-gradient(circle, var(--green-500), transparent 70%); animation: float 18s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 55%; background: radial-gradient(circle, var(--blue-500), transparent 70%); opacity: 0.35; animation: float 22s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent 75%);
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem; border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 600; color: #f7ecea;
  margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c47b; box-shadow: 0 0 0 4px rgba(52,196,123,0.3); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(64,183,130,0.35); } 50% { box-shadow: 0 0 0 8px rgba(64,183,130,0); } }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--teal-100), var(--green-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-copy p.lead { color: #e9dedb; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.45rem 0.9rem; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 600; color: #f0e6e4;
}
.trust-chip svg { width: 15px; height: 15px; color: var(--green-500); }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.hero-card-img {
  border-radius: var(--r-lg);
  aspect-ratio: 4/3.4;
  background:
    linear-gradient(160deg, rgba(224,31,38,0.15), rgba(143,18,22,0.12)),
    linear-gradient(160deg, #2b1513, #1a0e0d);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.hero-card-img svg { width: 62%; height: auto; opacity: 0.96; }
.hero-float {
  position: absolute;
  background: #fff; color: var(--blue-900);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 600; font-size: 0.9rem;
}
.hero-float .hf-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.hero-float small { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.hero-float-1 { top: 6%; left: -6%; animation: float 6s ease-in-out infinite; }
.hero-float-1 .hf-ico { background: var(--green-100); color: var(--green-600); }
.hero-float-2 { bottom: 8%; right: -5%; animation: float 7s ease-in-out infinite reverse; }
.hero-float-2 .hf-ico { background: var(--teal-100); color: var(--teal-600); }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }
.hero-wave svg { width: 100%; height: auto; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: #fff;
  overflow: hidden;
}
.page-hero .hero-bg { z-index: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 800px; }
.page-hero p { color: #e9dedb; max-width: 660px; font-size: 1.15rem; margin-top: 0.5rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: #c4b3af; margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumb a { color: #e9dedb; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #ab9a96; }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-ico {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-100));
  color: var(--teal-600);
  margin-bottom: 1.3rem;
  transition: transform 0.4s var(--ease);
}
.card:hover .card-ico { transform: scale(1.08) rotate(-4deg); }
.card-ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.92rem; margin-top: 1rem; color: var(--teal-600);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Service card w/ accent bar */
.service-card { overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--green-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }

/* ---------- Trust / Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat {
  text-align: center; padding: 1.75rem 1rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
  font-weight: 600; line-height: 1;
  background: linear-gradient(120deg, var(--blue-700), var(--teal-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 0.6rem; font-weight: 600; color: var(--grey-600); font-size: 0.95rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; margin: 0; }
.feature-list .fl-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-100), var(--green-100));
  color: var(--teal-600);
}
.feature-list .fl-ico svg { width: 22px; height: 22px; }
.feature-list h4 { margin: 0 0 0.15rem; font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; color: var(--blue-900); }
.feature-list p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.media-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.2;
  position: relative;
  background: linear-gradient(160deg, var(--blue-100), var(--teal-100));
  display: grid; place-items: center;
}
.media-frame svg.illus { width: 78%; height: auto; }
.media-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  border-radius: var(--r-md); padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-md); display: flex; gap: 0.75rem; align-items: center;
}
.media-badge .mb-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; }
.media-badge strong { display: block; color: var(--blue-900); font-size: 0.95rem; }
.media-badge small { color: var(--muted); }

/* ---------- Doctors ---------- */
.doctor-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-photo {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--blue-100), var(--teal-100));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.doctor-photo svg { width: 60%; height: auto; }
.doctor-photo .doc-tag {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.92); color: var(--teal-600);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
}
.doctor-body { padding: 1.5rem; }
.doctor-body h3 { font-size: 1.35rem; margin-bottom: 0.15rem; }
.doctor-cred { color: var(--teal-600); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.9rem; }
.doctor-meta { display: grid; gap: 0.5rem; margin-bottom: 1.2rem; }
.doctor-meta div { display: flex; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.doctor-meta strong { color: var(--grey-700); font-weight: 700; min-width: 92px; display: inline-block; }

/* ---------- Timeline / Patient journey ---------- */
.journey { position: relative; }
.journey-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; }
.journey-track::before {
  content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--green-500)); border-radius: 3px; opacity: 0.35;
}
.journey-step { text-align: center; position: relative; }
.journey-node {
  width: 70px; height: 70px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: #fff; border: 3px solid var(--teal-100);
  display: grid; place-items: center; color: var(--teal-600);
  position: relative; z-index: 2; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.journey-step:hover .journey-node { transform: scale(1.08); border-color: var(--teal-500); }
.journey-node svg { width: 30px; height: 30px; }
.journey-node .step-num {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--green-600));
  color: #fff; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center;
}
.journey-step h4 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 0.25rem; color: var(--blue-900); }
.journey-step p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testi-track {
  display: flex; gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(400px, 82vw);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 1rem; color: #f5a623; }
.testi-stars svg { width: 18px; height: 18px; }
.testi-quote { font-size: 1.05rem; color: var(--grey-700); margin-bottom: 1.5rem; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: 0.85rem; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.testi-author strong { display: block; color: var(--blue-900); font-size: 0.95rem; }
.testi-author small { color: var(--muted); }
.carousel-controls { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--grey-200); background: #fff; color: var(--blue-800);
  cursor: pointer; display: grid; place-items: center;
  transition: all 0.25s var(--ease);
}
.carousel-btn:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-2px); }
.carousel-btn svg { width: 20px; height: 20px; }

/* ---------- Accordion / FAQ ---------- */
.accordion { max-width: 840px; margin-inline: auto; }
.acc-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 0.85rem; overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.acc-item.open { box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.acc-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.3rem 1.5rem; font-family: var(--font-sans); font-weight: 700; font-size: 1.08rem;
  color: var(--blue-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.acc-q .acc-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-50); color: var(--teal-600); display: grid; place-items: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.acc-q .acc-icon svg { width: 16px; height: 16px; }
.acc-item.open .acc-q .acc-icon { transform: rotate(45deg); background: var(--teal-500); color: #fff; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc-a-inner { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.cta-band .container { position: relative; z-index: 2; }
.cta-inner { text-align: center; max-width: 760px; margin-inline: auto; padding-block: 1rem; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #e9dedb; font-size: 1.15rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Booking form ---------- */
.booking-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.form-card {
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--grey-700); margin-bottom: 0.45rem; }
.field label .req { color: var(--teal-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--grey-200); border-radius: var(--r-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--soft-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(23,162,176,0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.form-success {
  display: none; text-align: center; padding: 1rem;
  background: #e5f6ec; color: #1f7a4d;
  border-radius: var(--r-md); font-weight: 600; margin-top: 1rem;
}
.form-success.show { display: block; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info-list { display: grid; gap: 1.25rem; }
.info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-item .ii-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-100), var(--green-100));
  color: var(--teal-600); display: grid; place-items: center;
}
.info-item h4 { margin: 0 0 0.2rem; font-family: var(--font-sans); font-size: 1rem; }
.info-item p, .info-item a { margin: 0; color: var(--muted); font-size: 0.95rem; }
.map-frame {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  min-height: 340px; height: 100%;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--blue-900); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .today td { color: var(--teal-600); }

/* ---------- Resource cards ---------- */
.resource-card {
  display: flex; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.4rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.resource-card .rc-ico {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-100)); color: var(--teal-600);
  display: grid; place-items: center;
}
.resource-card h4 { margin: 0 0 0.15rem; font-family: var(--font-sans); font-size: 1.05rem; }
.resource-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.resource-card .rc-arrow { margin-left: auto; color: var(--grey-300); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.resource-card:hover .rc-arrow { transform: translateX(4px); color: var(--teal-500); }

/* ---------- Pills / chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--blue-50); color: var(--blue-700);
  padding: 0.4rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 600;
}
.chip svg { width: 14px; height: 14px; color: var(--teal-600); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; padding-top: 0.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--grey-600); }
.prose ul { padding-left: 1.3rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.legal-updated {
  display: inline-block; background: var(--blue-50); color: var(--blue-700);
  padding: 0.4rem 0.9rem; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.toc {
  background: var(--soft-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem;
}
.toc h4 { margin: 0 0 0.75rem; font-family: var(--font-sans); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.35rem; }
.callout {
  background: var(--blue-50); border-left: 4px solid var(--teal-500);
  border-radius: var(--r-sm); padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--grey-700); }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--blue-900), #0a0605);
  color: #c9bcb9; padding-top: 4rem;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h5 { color: #fff; font-family: var(--font-sans); font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.65rem; }
.footer a { color: #a9c2d6; font-size: 0.93rem; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: var(--teal-100); }
.footer-about p { font-size: 0.93rem; line-height: 1.7; margin: 1rem 0 1.25rem; max-width: 320px; }
.footer-contact { display: grid; gap: 0.6rem; }
.footer-contact div { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--teal-500); flex-shrink: 0; margin-top: 3px; }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 0.7rem 0.9rem; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff; font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: #ab9a96; }
.newsletter-form input:focus { outline: none; border-color: var(--teal-500); }
.newsletter-form button {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--teal-600), var(--green-600)); color: #fff; display: grid; place-items: center;
  transition: transform 0.25s var(--ease);
}
.newsletter-form button:hover { transform: translateY(-2px) scale(1.05); }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #e9dedb;
  transition: all 0.25s var(--ease);
}
.social-row a:hover { background: var(--teal-600); color: #fff; transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.75rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom .legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-agency { text-align: center; padding-bottom: 1.75rem; font-size: 0.85rem; color: #ab9a96; }
.footer-agency a { color: var(--teal-100); font-weight: 600; }
.footer-agency a:hover { color: #fff; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  display: none; gap: 0.6rem; padding: 0.7rem;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(10,37,64,0.1);
}
.sticky-cta .btn { flex: 1; padding: 0.85rem; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].in { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].in { transform: none; }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].in { transform: none; }
[data-reveal="blur"] { filter: blur(10px); }
[data-reveal="blur"].in { filter: blur(0); }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal-500), var(--green-500));
  z-index: 1100; transition: width 0.1s linear;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-inline: auto; }
.maxw-720 { max-width: 720px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--blue-900); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .journey-track { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .journey-track::before { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta-call { display: none; }
  /* On mobile the primary nav is empty and the top Book button is covered by the
     sticky bottom bar + mobile menu, so hide both to keep the header from overflowing. */
  .nav .container-wide > nav[aria-label="Primary"] { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .booking-wrap, .contact-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .journey-track { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .toc ol { columns: 1; }
  .hero-float { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
