/* ==========================================================================
   CHILD CARE — Children's Hospital
   Design System & Styles
   Demo / portfolio website. All content is fictional.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --teal: #159B91;
  --teal-dark: #0E746D;
  --teal-light: #5FC4BB;
  --navy: #142B49;
  --navy-soft: #24405f;
  --mint: #DDF4EE;
  --pale-blue: #F0F8FC;
  --cream: #FFF9F2;
  --white: #FFFFFF;
  --yellow: #FFD34F;
  --coral: #F38A9B;
  --lavender: #B7A0ED;
  --green: #A6D6B2;
  --ink: #142B49;
  --muted: #5C6B7E;
  --line: #E4EAF0;

  --grad-teal: linear-gradient(135deg, #159B91 0%, #12B3A6 60%, #35C7B6 100%);
  --grad-warm: linear-gradient(160deg, #FFF9F2 0%, #F0F8FC 100%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(20, 43, 73, .05);
  --shadow-sm: 0 8px 24px rgba(20, 43, 73, .07);
  --shadow: 0 16px 40px rgba(20, 43, 73, .10);
  --shadow-lg: 0 30px 60px rgba(20, 43, 73, .14);
  --shadow-teal: 0 14px 30px rgba(21, 155, 145, .28);

  --font: "Nunito", "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }

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

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-mint { background: var(--mint); }
.bg-pale { background: var(--pale-blue); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mw-70 { max-width: 70ch; }
.mw-60 { max-width: 60ch; }
.lead { font-size: 1.13rem; color: var(--muted); }

/* ---------- Eyebrow / section header ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--mint);
  border-radius: var(--radius-pill);
  padding: .45rem 1rem;
  margin-bottom: 1rem;
}
.eyebrow--plain { background: none; padding: 0; }
.eyebrow--light { color: #D9FFF8; background: rgba(255, 255, 255, .14); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn-primary { box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 18px 34px rgba(21,155,145,.34); }

.btn-secondary {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); box-shadow: var(--shadow-sm); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light { --btn-bg: #fff; --btn-fg: var(--teal-dark); }
.btn-light:hover { background: var(--cream); }

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 800;
  color: var(--teal);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(20,43,73,.08);
  border-bottom-color: var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 900; font-size: 1.32rem; letter-spacing: .04em; color: var(--navy); }
.brand-sub { font-size: .6rem; letter-spacing: .22em; font-weight: 800; color: var(--teal); margin-top: 3px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .15rem; }
.main-nav a {
  display: block;
  padding: .6rem .8rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: var(--teal); background: var(--mint); }
.main-nav a.active { color: var(--teal); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: .15rem;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--yellow);
}
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn { padding: .8rem 1.25rem; font-size: .95rem; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy);
  position: relative; transition: .25s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
  transition: .25s var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  border-top: 0 solid var(--line);
  background: #fff;
  transition: max-height .35s var(--ease), border-width .35s;
}
.mobile-nav.is-open { max-height: 80vh; overflow-y: auto; border-top-width: 1px; }
.mobile-nav ul { padding: 1rem 0; }
.mobile-nav a {
  display: block;
  padding: .85rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.active { color: var(--teal); }
.mobile-nav .btn { margin: 1rem 1.25rem 1.5rem; width: calc(100% - 2.5rem); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--grad-warm);
  text-align: center;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  font-size: .85rem; color: var(--muted); margin-bottom: 1rem; font-weight: 700;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span[aria-current] { color: var(--teal); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--grad-warm);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1rem; }
.hero .hl { color: var(--teal); position: relative; display: inline-block; }
.hero .hl::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .04em;
  height: .22em; border-radius: var(--radius-pill);
  background: var(--yellow); z-index: -1; opacity: .85;
}
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  margin: 1.6rem 0 2rem;
}
.trust-item { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .95rem; }
.trust-item .ico {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--mint); color: var(--teal);
}
.trust-item .ico svg { width: 18px; height: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-media { position: relative; z-index: 2; }
.hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  aspect-ratio: 5 / 5.4;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; pointer-events: none; }
.blob-1 { width: 340px; height: 340px; background: radial-gradient(circle at 30% 30%, rgba(21,155,145,.20), transparent 70%); top: -80px; right: -60px; }
.blob-2 { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, rgba(255,211,79,.30), transparent 70%); bottom: -70px; left: -60px; }

.doodle { position: absolute; z-index: 1; opacity: .9; pointer-events: none; }
.doodle svg { width: 100%; height: 100%; }
.doodle--heart { width: 44px; height: 44px; top: 12%; left: 42%; animation: floaty 6s ease-in-out infinite; }
.doodle--star { width: 38px; height: 38px; bottom: 18%; right: 46%; animation: floaty 7s ease-in-out infinite reverse; }
.doodle--cloud { width: 130px; height: 80px; top: 6%; left: 6%; opacity: .8; }
.doodle--cross { width: 40px; height: 40px; bottom: 8%; left: 44%; animation: floaty 8s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split--sidebar { grid-template-columns: 1.5fr 1fr; align-items: start; }
.split-media { position: relative; }
.split-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .8rem;
  font-weight: 800;
}
.badge-float .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; flex: none;
}
.badge-float .ico svg { width: 22px; height: 22px; }
.badge-float small { display: block; font-weight: 700; color: var(--muted); font-size: .78rem; }
.badge-float--bl { left: -18px; bottom: -18px; }
.badge-float--tr { right: -18px; top: 14px; }

/* feature list with icons */
.feature-list { display: grid; gap: 1.1rem; margin: 1.75rem 0 2rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-item .ico {
  width: 48px; height: 48px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--mint); color: var(--teal);
}
.feature-item .ico svg { width: 24px; height: 24px; }
.feature-item h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: .96rem; }

/* checklist */
.checklist { display: grid; gap: .85rem; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 700; color: var(--navy-soft); }
.checklist .check {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
}
.checklist .check svg { width: 14px; height: 14px; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.8rem;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.service-card { display: flex; flex-direction: column; text-align: left; }
.service-card .ico {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  transition: transform .28s var(--ease);
}
.service-card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.service-card .ico svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .94rem; flex-grow: 1; margin-bottom: 1rem; }
.grid-6 .service-card { padding: 1.5rem 1.35rem; }
.grid-6 .service-card h3 { font-size: 1.02rem; }
.grid-6 .service-card p { font-size: .9rem; }
.grid-6 .service-card .ico { width: 52px; height: 52px; border-radius: 16px; }

.ico-teal   { background: rgba(21,155,145,.12); color: #159B91; }
.ico-yellow { background: rgba(255,211,79,.22); color: #B98A00; }
.ico-coral  { background: rgba(243,138,155,.16); color: #D4566B; }
.ico-lav    { background: rgba(183,160,237,.18); color: #7E5FD8; }
.ico-green  { background: rgba(166,214,178,.28); color: #3E8557; }
.ico-blue   { background: rgba(64,150,210,.14); color: #2E77A8; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.testimonial .quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem; line-height: .6; color: var(--teal-light);
  margin-bottom: .4rem;
}
.testimonial p { color: var(--navy-soft); font-size: 1.02rem; }
.testimonial .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testimonial .avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--mint);
}
.testimonial .who strong { display: block; font-size: .95rem; }
.testimonial .who span { font-size: .82rem; color: var(--muted); }
.stars { color: var(--yellow); letter-spacing: .1em; margin-bottom: .6rem; }

.tag-demo {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  color: var(--coral);
  background: rgba(243,138,155,.14);
  border-radius: var(--radius-pill);
  padding: .25rem .7rem;
  margin-top: .75rem;
}

/* ---------- Doctor cards ---------- */
.doctor-card { text-align: center; padding: 1.6rem; display: flex; flex-direction: column; }
.doctor-card .portrait {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden;
  margin-bottom: 1.1rem; background: var(--mint);
}
.doctor-card .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.doctor-card:hover .portrait img { transform: scale(1.05); }
.doctor-card h3 { margin-bottom: .15rem; font-size: 1.15rem; }
.doctor-card .specialty { color: var(--teal); font-weight: 800; font-size: .88rem; letter-spacing: .02em; margin-bottom: .7rem; }
.doctor-card p { color: var(--muted); font-size: .92rem; }
.doctor-card .actions { display: grid; gap: .6rem; margin-top: auto; padding-top: 1rem; }
.doctor-card .actions .btn { padding: .7rem 1rem; font-size: .9rem; }

/* ---------- Milestones / steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps::before {
  content: ""; position: absolute; top: 62px; left: 8%; right: 8%;
  height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--teal-light) 0 14px, transparent 14px 26px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step .step-art {
  width: 124px; height: 124px; margin: 0 auto 1rem; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
  display: grid; place-items: center; border: 5px solid #fff;
}
.step .step-art img { width: 100%; height: 100%; object-fit: cover; }
.step .step-num {
  width: 30px; height: 30px; margin: -.9rem auto .6rem; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: .85rem;
  display: grid; place-items: center; position: relative; z-index: 2; border: 3px solid #fff;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Article / resource cards ---------- */
.resource-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.resource-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.resource-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.resource-card:hover .thumb img { transform: scale(1.06); }
.resource-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.resource-card .cat {
  align-self: flex-start;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--mint); padding: .3rem .7rem; border-radius: var(--radius-pill);
  margin-bottom: .8rem;
}
.resource-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.resource-card p { color: var(--muted); font-size: .94rem; flex-grow: 1; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grad-teal);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.18), transparent 45%);
  pointer-events: none;
}
.cta-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 240px 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.cta-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/3.4; background: rgba(255,255,255,.12); }
.cta-art img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.92); }
.cta-blocks { display: grid; gap: 1rem; }
.cta-block {
  display: flex; gap: .9rem; align-items: flex-start;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 1.1rem;
}
.cta-block .ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: rgba(255,255,255,.9); color: var(--teal-dark); display: grid; place-items: center;
}
.cta-block .ico svg { width: 22px; height: 22px; }
.cta-block h3 { color: #fff; font-size: 1rem; margin-bottom: .1rem; }
.cta-block p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.9); }

/* ---------- Contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.info-card { text-align: center; padding: 1.6rem 1.2rem; }
.info-card .ico {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 1rem;
  display: grid; place-items: center; background: var(--mint); color: var(--teal);
}
.info-card .ico svg { width: 26px; height: 26px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.info-card p { color: var(--muted); font-size: .92rem; margin: 0; }

.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); background: var(--pale-blue); aspect-ratio: 16/8;
  position: relative; display: grid; place-items: center;
}
.map-frame .map-note { position: relative; z-index: 2; text-align: center; color: var(--navy); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.col-span-2 { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .92rem; color: var(--navy); }
.field .req { color: var(--coral); }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--pale-blue);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(21,155,145,.14);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral); background: #fff5f7; }
.field .error { color: #D4566B; font-size: .82rem; font-weight: 700; display: none; }
.field.invalid .error { display: block; }

.checkbox-row { display: flex; gap: .7rem; align-items: flex-start; }
.checkbox-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.checkbox-row label { font-weight: 600; color: var(--navy-soft); font-size: .92rem; }
.checkbox-row.invalid label { color: #D4566B; }

.radio-group { display: flex; flex-wrap: wrap; gap: .7rem; }
.radio-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: .6rem 1rem; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: .2s var(--ease); background: var(--pale-blue);
}
.radio-pill:has(input:checked) { border-color: var(--teal); background: var(--mint); color: var(--teal-dark); }
.radio-pill input { accent-color: var(--teal); }

.form-note { font-size: .85rem; color: var(--muted); }

/* inline alert */
.alert {
  border-radius: 16px; padding: 1rem 1.2rem; font-weight: 700;
  display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.4rem;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-info { background: var(--pale-blue); color: var(--navy); border: 1px solid #D7E7F2; }
.alert-success { background: var(--mint); color: var(--teal-dark); border: 1px solid #BFE7DF; }
.alert-warn { background: #FFF6E0; color: #8A5B00; border: 1px solid #F6E1A8; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,43,73,.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  padding: 1.25rem;
}
.modal-overlay.is-open { display: flex; animation: fadeIn .25s var(--ease); }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  max-width: 520px; width: 100%; padding: 2.5rem 2rem; text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn .35s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal .modal-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.25rem;
  background: var(--mint); color: var(--teal); display: grid; place-items: center;
}
.modal .modal-icon svg { width: 44px; height: 44px; }
.modal h2 { font-size: 1.6rem; }
.modal p { color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--teal); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-teal);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--teal-dark); transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); color: var(--navy); padding-top: 4rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.4fr;
  gap: 2.2rem;
  padding-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-tag { font-weight: 800; color: var(--teal); margin-bottom: .6rem; }
.footer-grid p { color: var(--muted); font-size: .92rem; }
.footer-col h4 {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--muted); font-size: .94rem; }
.footer-col a:hover { color: var(--teal); }

.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; color: var(--navy); border: 1px solid var(--line); transition: .2s var(--ease);
}
.socials a:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.newsletter { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 150px; min-width: 0;
  padding: .75rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-family: inherit; font-size: .92rem;
}
.newsletter input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21,155,145,.14); }
.newsletter .btn { padding: .75rem 1.1rem; font-size: .9rem; }
.newsletter-msg { font-size: .82rem; font-weight: 700; margin-top: .5rem; }
.newsletter-msg.ok { color: var(--teal-dark); }
.newsletter-msg.err { color: #D4566B; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: .88rem; color: var(--muted);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--teal); }
.footer-disclaimer {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-size: .82rem; color: var(--muted);
  margin-bottom: 1.5rem; display: flex; gap: .7rem; align-items: flex-start;
}
.footer-disclaimer svg { width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Prose (articles) ---------- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--navy-soft); }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; display: grid; gap: .5rem; }
.prose ul li { list-style: disc; }
.prose .article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); aspect-ratio: 16/8; }
.prose .article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; font-weight: 700; margin-bottom: 1.5rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta svg { width: 16px; height: 16px; color: var(--teal); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .9rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color .25s var(--ease); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem; font-weight: 800; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--teal); line-height: 1; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--teal); }
.faq-item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: .8rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.center-cta { display: flex; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; gap: .8rem; }
.hr-soft { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 3000;
  background: var(--teal); color: #fff; padding: .7rem 1.2rem; border-radius: 12px;
  font-weight: 800; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-col--contact, .footer-col--news { grid-column: span 1; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .main-nav, .header-actions .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .brand-mark { width: 42px; height: 42px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; }
  .hero-media .frame { aspect-ratio: 16/11; max-width: 620px; margin-inline: auto; }
  .doodle--heart, .doodle--star, .doodle--cross { display: none; }

  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-art { max-width: 260px; margin-inline: auto; }
  .cta-blocks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split-media { order: 0; }
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 1.6rem, var(--maxw)); }
  .grid-6, .grid-4, .grid-3, .grid-2, .steps, .info-grid { grid-template-columns: 1fr; }
  .cta-blocks { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .center-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .badge-float--bl { left: 0; bottom: -14px; }
  .badge-float--tr { right: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-sub { letter-spacing: .16em; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: .52rem; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .back-to-top, .cta-banner { display: none; }
}
