/* ==========================================================================
   Dearness Family Dentistry - Redesign Concept
   Design tokens live at the top so this file can be dropped into a
   WordPress child theme, a Squarespace/Wix custom-CSS panel, or used as-is.
   ========================================================================== */

:root {
  /* ---- Brand colors (mockup direction) ---- */
  --color-navy: #12263f;          /* primary dark - bands, headings */
  --color-navy-dark: #0c1b2e;     /* topbar / footer */
  --color-navy-soft: #1c3450;

  /* Primary accent - the practice's real logo blue */
  --color-accent: #0085bd;
  --color-accent-light: #57b4dd; /* baby blue - accents on dark backgrounds */
  --color-accent-dark: #0a6f9c;  /* deeper blue - accents on light backgrounds */

  --color-cream: #f6f1e7;         /* warm page background */
  --color-cream-soft: #fbf8f2;
  --color-white: #ffffff;

  --color-ink: #22303f;
  --color-ink-muted: #5c6672;
  --color-line: #e5ddcb;
  --color-line-dark: #24405f;
  --color-legacy-navy: #003e73;

  /* ---- Type ---- */
  --font-display: "Playfair Display", "Baskerville Old Face", Georgia, serif;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2.5rem, 1.9rem + 2.8vw, 4rem);
  --fs-h2: clamp(1.8rem, 1.45rem + 1.5vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-body: 1.0425rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.78rem;

  /* ---- Spacing ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 4.25rem;
  --space-2xl: 5.5rem;

  /* ---- Layout ---- */
  --content-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 45px -20px rgba(18, 38, 63, 0.28);
  --shadow-card: 0 12px 30px -14px rgba(18, 38, 63, 0.2);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-navy); margin: 0 0 0.5em; line-height: 1.12; font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
button { font-family: inherit; }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }
section { position: relative; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--color-navy);
  color: var(--color-white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  z-index: 200; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Type utilities
   ========================================================================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.8rem;
}
.eyebrow--on-navy { color: var(--color-accent-light); }
.eyebrow--navy { color: var(--color-navy); }
.accent-italic { font-style: italic; color: var(--color-accent); font-weight: 600; }
.accent-rule { display: block; width: 54px; height: 3px; background: var(--color-accent); border-radius: 2px; margin: 0.4rem 0 1.4rem; }
.accent-rule.is-centered { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto var(--space-lg); text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background 0.35s var(--ease-soft), color 0.35s var(--ease-soft);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -16px rgba(18, 38, 63, 0.45); }
.btn-gold { background: var(--color-accent); color: var(--color-navy-dark); }
.btn-gold:hover { background: var(--color-accent-light); box-shadow: var(--shadow-card); }
.btn-navy { background: var(--color-navy); color: var(--color-white); }
.btn-navy:hover { background: var(--color-navy-soft); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; border-color: var(--color-navy); color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--color-white); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-navy); }
.btn-link {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  padding: 0; color: var(--color-accent-dark); font-weight: 600; border: 0; background: none;
}
.btn-link::after { content: "\2192"; margin-left: 0.45em; transition: margin 0.4s var(--ease-out); }
.btn-link:hover::after { margin-left: 0.85em; }
.btn-link--light { color: var(--color-accent-light); }
.btn-link--underline { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
  background: var(--color-navy-dark);
  color: #cfd8e3;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; flex: 1; justify-content: space-between; max-width: 780px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-info a:hover { color: var(--color-accent-light); }
.topbar-info .icon { color: var(--color-accent-light); }
.topbar-social { display: flex; gap: 0.9rem; }
.topbar-social a { display: inline-flex; align-items: center; justify-content: center; }
.topbar-social a:hover { color: var(--color-accent-light); }
.icon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

@media (max-width: 880px) {
  .topbar { font-size: 0.78rem; }
  .topbar .container {
    flex-wrap: nowrap;
    justify-content: center;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    gap: 1rem;
  }
  .topbar-info {
    flex: 0 1 auto;
    max-width: none;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
  }
  /* Keep the phone number; hide address + email so the bar stays one short row */
  .topbar-info a:nth-child(1),
  .topbar-info a:nth-child(3) { display: none; }
  .topbar-social { gap: 0.7rem; }
}

@media (max-width: 420px) {
  .topbar-social { display: none; }
}

/* ==========================================================================
   Brand - uses the practice's real logo
   ========================================================================== */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; display: block; }
/* footer sits on dark navy; the blue logo needs a light chip to stay legible */
.logo-chip {
  display: inline-block;
  background: var(--color-cream-soft);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
}
.logo-chip img { height: 34px; width: auto; display: block; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.45s var(--ease-out), background 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: transparent;
  box-shadow: 0 12px 32px -20px rgba(18, 38, 63, 0.38);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
  gap: 1.5rem;
}
.main-nav { display: flex; align-items: center; gap: 1.1rem; }
.main-nav ul { display: flex; gap: 1.05rem; }
.main-nav a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active { border-bottom-color: var(--color-accent); color: var(--color-accent-dark); }
.main-nav .btn { padding: 0.75rem 1rem; letter-spacing: 0.06em; font-size: 0.78rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle svg { width: 28px; height: 28px; color: var(--color-navy); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 2rem;
    z-index: 150;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.4rem; width: 100%; }
  .main-nav a:not(.btn) { color: var(--color-white); font-size: 1rem; }
  .main-nav .btn { width: 100%; justify-content: center; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(10,24,38,0.5); z-index: 90; }
  .nav-scrim.is-open { display: block; }
}

/* ==========================================================================
   Hero (homepage) - full-bleed image with navy scrim
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* 36vw keeps an ultrawide hero tall enough that the vertical crop
     cannot cut off either face in the 3:2 consultation photo. */
  min-height: max(clamp(500px, 66vh, 660px), 36vw);
  padding-bottom: clamp(96px, 12vw, 158px);
  overflow: hidden;
  background: var(--color-navy-dark);
}
.hero-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Desktop sits a little lower in the photo so more of the patient
     shows above the wave. 40% 46% still keeps both faces in frame. */
  object-position: 40% 46%;
  transform-origin: 40% 46%;
  z-index: 0;
  transform: scale(1.08);
  animation: hero-settle 16s var(--ease-soft) forwards;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(97deg,
    rgba(12, 27, 46, 0.86) 0%,
    rgba(12, 27, 46, 0.68) 24%,
    rgba(12, 27, 46, 0.32) 48%,
    rgba(12, 27, 46, 0.08) 66%,
    rgba(12, 27, 46, 0) 80%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 560px; padding: 2.5rem 0; }
.hero-copy h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 22px rgba(6, 14, 26, 0.55), 0 1px 2px rgba(6, 14, 26, 0.45);
}
.hero-copy .accent-italic { color: var(--color-accent-light); text-shadow: 0 2px 16px rgba(6, 14, 26, 0.4); }
.hero-copy p {
  color: #fff;
  font-size: 1.08rem;
  max-width: 38ch;
  margin-bottom: 0;
  text-shadow: 0 1px 14px rgba(6, 14, 26, 0.5);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.9rem; }

/* One quiet Cinderella sparkle; glitter tail rides the same border path */
.hero-actions .btn-gold {
  position: relative;
  overflow: visible;
}
.cinderella-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.cinderella-orbit {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  overflow: visible;
}
.cinderella-orbit .orbit-tail {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  x: 1px;
  y: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  rx: 5px;
  opacity: 0;
}
.cinderella-sparkle,
.cinderella-dust {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
.cinderella-sparkle {
  width: 20px;
  height: 20px;
}
.cinderella-sparkle svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cinderella-dust {
  border-radius: 50%;
  background: #fff;
}
@supports (offset-path: inset(0 round 4px)) {
  .cinderella-orbit .orbit-tail {
    animation: orbit-tail 6s ease-in-out infinite;
    animation-delay: 1.4s;
  }
  .cinderella-orbit .orbit-tail-far {
    stroke-width: 2px;
    stroke-dasharray: 15 85;
    filter: blur(1.4px);
  }
  .cinderella-orbit .orbit-tail-mid {
    stroke-width: 1.35px;
    stroke-dasharray: 8 92;
    filter: blur(0.55px);
  }
  .cinderella-orbit .orbit-tail-near {
    stroke-width: 1.6px;
    stroke-dasharray: 3.5 96.5;
    filter: blur(0.15px);
  }
  .cinderella-sparkle,
  .cinderella-dust {
    offset-path: inset(-2px round 5px);
    offset-anchor: center;
    offset-rotate: 0deg;
    animation: btn-border-sparkle 6s ease-in-out infinite;
  }
  .cinderella-sparkle {
    filter:
      drop-shadow(0 0 2px #fff)
      drop-shadow(0 0 6px rgba(255, 227, 154, 0.7));
    animation-delay: 1.4s;
  }
  .cinderella-sparkle svg {
    animation: sparkle-twinkle 2.2s ease-in-out infinite;
  }
  .cinderella-dust {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
  }
  .cinderella-dust.d1 { width: 4px; height: 4px; animation-delay: 1.52s; }
  .cinderella-dust.d2 { width: 3px; height: 3px; animation-delay: 1.61s; }
  .cinderella-dust.d3 { width: 3.5px; height: 3.5px; animation-delay: 1.7s; }
  .cinderella-dust.d4 { width: 2.5px; height: 2.5px; animation-delay: 1.79s; }
  .cinderella-dust.d5 { width: 3px; height: 3px; animation-delay: 1.88s; }
  .cinderella-dust.d6 { width: 2px; height: 2px; animation-delay: 1.97s; }
}
@keyframes btn-border-sparkle {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  62% {
    opacity: 0.9;
  }
  74% {
    offset-distance: 100%;
    opacity: 0;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}
@keyframes orbit-tail {
  0% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  8% {
    opacity: var(--tail-opacity, 0.45);
  }
  62% {
    opacity: var(--tail-opacity, 0.45);
  }
  74% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}
.orbit-tail-far { --tail-opacity: 0.16; }
.orbit-tail-mid { --tail-opacity: 0.32; }
.orbit-tail-near { --tail-opacity: 0.62; }
@keyframes sparkle-twinkle {
  0%, 100% { transform: scale(0.96) rotate(0deg); }
  50% { transform: scale(1.08) rotate(6deg); }
}
.hero-sweep {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}
.hero-sweep svg { width: 100%; height: clamp(70px, 9vw, 130px); display: block; }
@media (max-width: 700px) {
  .hero {
    min-height: 0;
    padding-bottom: 72px;
  }
  .hero-bg {
    /* Phone keeps the higher anchor. Cap the photo height so a tall, narrow
       hero cannot crop either woman off the side; navy shows below if needed. */
    object-position: 40% 34%;
    height: min(100%, 124vw);
    transform: none;
    animation: none;
  }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(12, 27, 46, 0.88) 0%,
      rgba(12, 27, 46, 0.42) 42%,
      rgba(12, 27, 46, 0.62) 100%);
  }
  .hero-copy { max-width: 100%; padding: 1.75rem 0 0.4rem; }
  .hero-actions { margin-top: 1.25rem; }
}

/* ==========================================================================
   Welcome panel (homepage)
   ========================================================================== */
.welcome {
  background: var(--color-cream);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}
.welcome-panel {
  position: relative;
  z-index: 3;
  background: var(--color-white);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.welcome-panel .welcome-copy h2 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem); }
.welcome-panel .welcome-copy p { color: var(--color-ink-muted); font-size: 0.98rem; max-width: 40ch; }
.welcome-copy .story-actions { margin-top: 0.35rem; }
.welcome-media img {
  width: 100%;
  height: clamp(320px, 30vw, 430px);
  object-fit: cover;
  object-position: 35% 50%;
  border-radius: 150px 150px 14px 14px;
}
.welcome-highlights {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.welcome-highlight {
  position: relative;
  padding: 0 clamp(1.25rem, 2.5vw, 2rem);
  text-align: left;
}
.welcome-highlight:first-child { padding-left: 0; }
.welcome-highlight:last-child { padding-right: 0; }
.welcome-highlight + .welcome-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-line) 18%,
    var(--color-line) 82%,
    transparent 100%
  );
}
.welcome-highlight-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.55rem;
  line-height: 1;
}
.welcome-highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.welcome-highlight p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.92rem;
  max-width: 28ch;
  line-height: 1.55;
}
.welcome-highlight p a {
  color: var(--color-accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.welcome-highlight p a:hover { color: var(--color-accent); }
@media (max-width: 880px) {
  .welcome-panel { grid-template-columns: 1fr; }
  .welcome-media img { border-radius: 90px 90px 12px 12px; }
  .welcome-highlights {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding-top: 1.5rem;
  }
  .welcome-highlight {
    padding: 0;
  }
  .welcome-highlight + .welcome-highlight {
    padding-top: 1.35rem;
    border-top: 1px solid var(--color-line);
  }
  .welcome-highlight + .welcome-highlight::before { display: none; }
  .welcome-highlight p { max-width: none; }
}

/* ==========================================================================
   Services band (navy)
   ========================================================================== */
.services-band {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
}
.services-band .section-head h2 { color: var(--color-white); }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; }
.service-tile {
  text-align: center;
  padding: 0.85rem 1.1rem 0.5rem;
  transition: transform 0.55s var(--ease-out);
}
.service-tile + .service-tile { border-left: 1px solid rgba(255,255,255,0.14); }
.service-tile:hover { transform: translateY(-6px); }
.service-tile .icon-wrap {
  width: 88px; height: 88px;
  margin: 0 auto 0.85rem;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.service-tile .svc-gif {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.service-tile h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.55rem;
  line-height: 1.5;
}
.service-tile p { color: #aab7c6; font-size: 0.85rem; margin: 0; line-height: 1.55; }
@media (max-width: 1060px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .service-tile:nth-child(3n+1) { border-left: none; }
  .service-tile .icon-wrap { width: 80px; height: 80px; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-tile { border-left: none !important; }
  .service-tile:nth-child(2n) { border-left: 1px solid rgba(255,255,255,0.14) !important; }
  .service-tile .icon-wrap { width: 72px; height: 72px; }
}

/* Service cards (interior services hub) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-card .icon-wrap {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.service-card .icon-wrap img {
  width: 56px;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
}
.service-card p { color: var(--color-ink-muted); font-size: 0.95rem; }

/* ==========================================================================
   Children's Corner (homepage, full-bleed split)
   ========================================================================== */
.kids-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-cream);
  min-height: 460px;
}
.kids-media { position: relative; overflow: hidden; }
.kids-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 78%;
}
.kids-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.kids-copy h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); max-width: 12ch; }
.kids-copy p { color: var(--color-ink-muted); max-width: 42ch; }
.kids-badge { flex-shrink: 0; }
.kids-badge img {
  width: 248px;
  height: 248px;
  display: block;
  animation: kids-spin 18s linear infinite;
  transform-origin: center;
}
.kids-badge:hover img { animation-play-state: paused; }
@media (max-width: 880px) {
  .kids-split { grid-template-columns: 1fr; }
  .kids-media { min-height: 300px; }
  .kids-content { flex-direction: column-reverse; align-items: flex-start; gap: 1.5rem; }
  .kids-badge img { width: 180px; height: 180px; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-section {
  background: var(--color-cream-soft);
  padding: var(--space-2xl) 0;
  text-align: center;
}
.testimonial-section .eyebrow { color: var(--color-navy); }
.testimonial-stage { position: relative; max-width: 860px; margin: 0 auto; padding: 0 3.5rem; }
.testimonial-stage::before,
.testimonial-stage::after {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--color-accent);
  line-height: 1;
  position: absolute;
  top: -0.5rem;
}
.testimonial-stage::before { content: "\201C"; left: 0; }
.testimonial-stage::after { content: "\201D"; right: 0; }
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.55rem);
  color: var(--color-navy);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.testimonial-author { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--color-ink); }
.testimonial-flag { font-size: 0.74rem; color: var(--color-ink-muted); letter-spacing: 0.02em; margin-top: 1.5rem; }
.testimonial-flag::before { content: "\25C6"; color: var(--color-accent); margin-right: 0.4rem; font-size: 0.6rem; vertical-align: 1px; }
.dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: #ddd3c0; cursor: pointer; padding: 0; }
.dots button.is-active { background: var(--color-accent); }
@media (max-width: 640px) {
  .testimonial-stage { padding: 0 1.5rem; }
  .testimonial-stage::before, .testimonial-stage::after { font-size: 2.8rem; top: -0.25rem; }
}

/* ==========================================================================
   CTA band (navy) + office card
   ========================================================================== */
.cta-band {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
}
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { color: var(--color-white); max-width: 14ch; }
.cta-copy p { color: #aab7c6; max-width: 44ch; }
.cta-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.cta-band--centered { overflow: visible; }
.cta-band--centered .container {
  display: block;
  text-align: center;
}
.cta-band--centered .cta-copy {
  max-width: 38rem;
  margin-inline: auto;
}
.cta-band--centered .cta-copy h2 {
  max-width: min(11.5em, calc(100vw - 3rem));
  margin-inline: auto;
}
.cta-band--centered .cta-copy p {
  margin-inline: auto;
}
.cta-band--centered .cta-actions {
  justify-content: center;
}
.cta-band--centered .cta-actions .btn-link {
  min-width: 0;
  white-space: normal;
  text-align: center;
}
.cta-watermark {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 17rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.07);
  pointer-events: none;
  z-index: 0;
}
.office-card {
  position: relative;
  z-index: 1;
  background: var(--color-cream-soft);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}
.office-card-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.office-card-body .eyebrow { margin-bottom: 0.9rem; }
.office-card-body address { font-style: normal; line-height: 1.8; font-size: 0.97rem; margin-bottom: 1.1rem; }
.office-card-body address strong { color: var(--color-navy); }
.office-card-body address a { color: var(--color-accent-dark); font-weight: 500; }
.office-card-body address a:hover { color: var(--color-accent); text-decoration: underline; }
.office-card-media { position: relative; }
.office-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-watermark { display: none; }
}
@media (max-width: 640px) {
  .office-card { grid-template-columns: 1fr; }
  .office-card-media { min-height: 200px; }
  .cta-band--centered .cta-copy h2 { max-width: none; }
  .cta-band--centered .cta-actions { flex-direction: column; gap: 1rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-navy-dark); color: #aab7c6; padding: var(--space-xl) 0 0; font-size: 0.92rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-line-dark);
}
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { font-family: var(--font-display); font-style: italic; color: #cfd8e3; line-height: 1.55; }
.footer-col h4 {
  color: var(--color-accent-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.footer-social a {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border: 1px solid var(--color-accent-dark); border-radius: 50%; color: var(--color-accent-light);
}
.footer-social a:hover { border-color: var(--color-accent-light); background: rgba(0,133,189,0.14); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.25rem 0 0.65rem; font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--color-accent-light); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-credit {
  margin: 0;
  padding: 0 0 1.15rem;
  text-align: center;
  font-size: 0.74rem;
  color: #7f8b9a;
  letter-spacing: 0.02em;
}
.footer-credit a {
  color: var(--color-accent-light);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-credit a:hover { color: #9fd4ef; }
@media (max-width: 1060px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Interior page hero
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.page-hero h1 { color: var(--color-white); }
.page-hero h1::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  margin: 1.1rem auto 0;
  background: var(--color-accent-light);
  border-radius: 2px;
}
.page-hero p { color: #c7d1de; max-width: 60ch; margin-inline: auto; margin-top: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: #9fb0c4; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--color-accent-light); }

.page-hero--photo {
  position: relative;
  min-height: clamp(480px, 68vh, 720px);
  display: flex;
  align-items: flex-start;
  padding: var(--space-lg) 0 0;
  overflow: hidden;
  background: var(--color-navy-dark);
}
.page-hero--photo .page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}
.page-hero--photo .page-hero-bg--mid {
  object-position: center 52%;
}
.page-hero--photo.page-hero--mid {
  min-height: clamp(480px, 58vh, 640px);
}
.page-hero--photo p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 22px rgba(12, 27, 46, 0.8);
}
.page-hero--photo .page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(12, 27, 46, 0.82) 0%,
    rgba(12, 27, 46, 0.38) 18%,
    rgba(12, 27, 46, 0.06) 38%,
    rgba(12, 27, 46, 0.0) 58%,
    rgba(12, 27, 46, 0.18) 100%
  );
}
.page-hero--photo .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-hero--photo h1 {
  text-shadow: 0 8px 28px rgba(12, 27, 46, 0.45);
}
.page-hero--photo.page-hero--team {
  padding-top: 10.5rem;
}
.page-hero--photo.page-hero--team .page-hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(12, 27, 46, 0.28) 0%,
    rgba(12, 27, 46, 0.5) 22%,
    rgba(12, 27, 46, 0.42) 42%,
    rgba(12, 27, 46, 0.08) 62%,
    rgba(12, 27, 46, 0.12) 100%
  );
}
.page-hero--photo.page-hero--mid .page-hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(12, 27, 46, 0.8) 0%,
    rgba(12, 27, 46, 0.4) 20%,
    rgba(12, 27, 46, 0.12) 42%,
    rgba(12, 27, 46, 0.06) 100%
  );
}
@media (max-width: 700px) {
  .page-hero--photo {
    min-height: 440px;
  }
  .page-hero--photo.page-hero--team {
    padding-top: 6.75rem;
  }
  .page-hero--photo .page-hero-bg { object-position: center 40%; }
  .page-hero--photo.page-hero--mid {
    min-height: 460px;
  }
  .page-hero--photo .page-hero-bg--mid { object-position: center 48%; }
  .page-hero--photo h1 {
    font-size: clamp(1.55rem, 6.4vw, 2.35rem);
  }
  .page-hero--photo p {
    padding-inline: 0.35rem;
  }
}

/* ==========================================================================
   Generic interior blocks
   ========================================================================== */
.split { padding: var(--space-2xl) 0; }
.split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.split-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.split.reverse .container { direction: rtl; }
.split.reverse .split-media, .split.reverse .split-copy { direction: ltr; }
.split-copy p { color: var(--color-ink-muted); }
.split-copy ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; color: var(--color-ink-muted); }
.split-copy li { margin-bottom: 0.4em; }
@media (max-width: 880px) {
  .split .container { grid-template-columns: 1fr; direction: ltr !important; }
  .split-media { order: -1; }
}

.photo-duo,
.photo-trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: start;
}
.photo-trio { grid-template-columns: repeat(3, 1fr); }
.photo-duo img,
.photo-trio img,
.photo-feature {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.photo-duo img,
.photo-trio img { aspect-ratio: 4/3; height: auto; }
.photo-feature {
  aspect-ratio: 16/9;
  max-height: 440px;
  margin: 0 auto var(--space-lg);
}
.photo-caption {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin-top: 0.55rem;
}
@media (max-width: 880px) {
  .photo-duo,
  .photo-trio { grid-template-columns: 1fr; }
}

.photo-duo.kids-corner-duo { margin-bottom: var(--space-md); }
.photo-duo img.kids-room { object-position: 80% 48%; }
.photo-duo img.kids-table { object-position: 50% 38%; }
.kids-corner-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.kids-corner-copy-grid p,
.kids-corner-copy-grid li { color: var(--color-ink-muted); }
.kids-corner-copy-grid ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0;
}
.kids-corner-copy-grid li { margin-bottom: 0.4em; }
@media (max-width: 880px) {
  .kids-corner-copy-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.fun-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: left;
}
.fun-link-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.fun-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.fun-link-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.fun-link-sesame { object-position: center 42%; }
.fun-link-daniel { object-position: center 58%; }
.fun-link-tooth { object-position: center 40%; }
.fun-link-card span {
  display: block;
  padding: 0.95rem 1.1rem 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.98rem;
}
@media (max-width: 880px) {
  .fun-link-grid { grid-template-columns: 1fr; }
}

.colouring-cta {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-lg);
  align-items: center;
  text-align: left;
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.colouring-cta > img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}
.colouring-cta h3 { margin: 0.35rem 0 0.55rem; }
.colouring-cta-copy > p { color: var(--color-ink-muted); margin: 0 0 1.3rem; max-width: 60ch; }
.colouring-cta .btn .icon { width: 18px; height: 18px; fill: currentColor; }
.colouring-cta-note {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0.9rem 0 0;
}
@media (max-width: 880px) {
  .colouring-cta { grid-template-columns: 1fr; gap: var(--space-md); justify-items: center; text-align: center; }
  .colouring-cta > img { max-width: 240px; }
  .colouring-cta-copy > p { margin-left: auto; margin-right: auto; }
  .colouring-cta .btn { white-space: normal; max-width: 100%; padding-left: 1.35rem; padding-right: 1.35rem; }
}

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.content-section { padding: var(--space-2xl) 0; }
.content-section.tight { padding: var(--space-lg) 0; }
.content-section.on-cream-soft { background: var(--color-cream-soft); }
.callout {
  background: var(--color-cream-soft);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.25rem; max-width: none; margin-left: auto; margin-right: auto; }
.team-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.team-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease-soft); }
/* Her source photo sits lower in the frame than the other doctors. */
.team-card img.portrait-prior { transform: scale(1.13); transform-origin: center 98%; }
.team-card:hover img { transform: scale(1.045); }
.team-card:hover img.portrait-prior { transform: scale(1.18); }
.team-card .team-body { padding: var(--space-md); }
.team-card h3 { margin-bottom: 0.2rem; }
.team-card .role { color: var(--color-accent-dark); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem; display: block; }
.team-card p { color: var(--color-ink-muted); font-size: 0.94rem; }
.team-card p:last-child { margin-bottom: 0; }
.bio-more { margin-top: 0.15rem; }
.bio-preview.is-clamped { overflow: hidden; max-height: 16em; }
.bio-more summary,
.bio-toggle {
  cursor: pointer;
  list-style: none;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.35rem 0 0;
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
}
.bio-more summary::-webkit-details-marker,
.bio-more summary::marker { display: none; content: none; }
.bio-more summary:hover,
.bio-toggle:hover { color: var(--color-navy); }
.bio-more .bio-more-close,
.bio-toggle .bio-more-close { display: none; }
.bio-more[open] .bio-more-open,
.bio-toggle.is-open .bio-more-open { display: none; }
.bio-more[open] .bio-more-close,
.bio-toggle.is-open .bio-more-close { display: inline; }
.bio-more[open] summary { margin-top: 0.15rem; }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}
.staff-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.staff-grid .team-card .team-body { padding: 1.1rem 1rem 1.25rem; }
.staff-grid .team-card .role { margin-bottom: 0; }
@media (max-width: 1100px) {
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}
.staff-note { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-card); display: grid; grid-template-columns: 220px 1fr; gap: var(--space-md); align-items: center; }
.staff-note img { border-radius: var(--radius-md); }
.staff-note.staff-note--wide {
  grid-template-columns: 1fr;
  padding: 0 0 var(--space-md);
  overflow: hidden;
}
.staff-note.staff-note--wide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.staff-note.staff-note--wide > div { padding: 0 var(--space-md); }
@media (max-width: 700px) {
  .staff-note { grid-template-columns: 1fr; }
}

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); }
.value-item { text-align: center; }
.value-item .icon-wrap { width: 88px; height: 88px; margin: 0 auto 0.9rem; border-radius: 50%; background: var(--color-navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.value-item .icon-wrap svg { width: 28px; height: 28px; color: #bfe6fb; filter: drop-shadow(0 0 2px #57b4dd) drop-shadow(0 0 5px rgba(0, 133, 189, 0.55)); }
.value-item .icon-wrap .svc-gif {
  width: 62%;
  height: 62%;
  max-width: 62%;
  object-fit: contain;
  display: block;
}
.value-item h3 { font-size: 1rem; }
.value-item p { color: var(--color-ink-muted); font-size: 0.92rem; }

/* Hours / contact */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td, .hours-table th { padding: 0.55rem 0; border-bottom: 1px solid var(--color-line); text-align: left; font-weight: 400; }
.hours-table th { font-weight: 700; color: var(--color-navy); font-family: var(--font-display); }
.hours-table td:last-child { text-align: right; color: var(--color-ink-muted); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table.data-table td:last-child { text-align: left; color: var(--color-ink); }
.hours-table.data-table td:first-child { font-weight: 600; color: var(--color-navy); white-space: nowrap; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.contact-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-card); }
.contact-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; }
.contact-card .icon-wrap { width: 44px; height: 44px; border-radius: 50%; background: var(--color-navy); color: #bfe6fb; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .icon-wrap svg { filter: drop-shadow(0 0 2px #57b4dd) drop-shadow(0 0 4px rgba(0, 133, 189, 0.5)); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--color-line); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
form.contact-form { display: grid; gap: 1rem; }
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--color-navy); display: block; margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--color-line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; background: var(--color-white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--color-accent); outline-offset: 1px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* FAQ accordion */
.accordion-item { border-bottom: 1px solid var(--color-line); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-weight: 600; color: var(--color-navy); font-size: 1rem;
}
.accordion-trigger .plus { font-size: 1.3rem; color: var(--color-accent-dark); transition: transform 0.2s ease; }
.accordion-item.is-open .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--color-ink-muted); }
.accordion-panel > div { padding-bottom: 1.1rem; }

/* Placeholder flag (honesty guardrail) */
.placeholder-flag {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: #fdf1d6; color: #8a6110; border: 1px solid #ecd8a3; border-radius: 999px;
  padding: 0.15rem 0.65rem; margin-bottom: 0.6rem;
}

/* ==========================================================================
   Conversion / trust helpers (client revision)
   ========================================================================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 133, 189, 0.18);
  border: 1px solid rgba(87, 180, 221, 0.45);
  color: #d7f0fb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-copy { max-width: 620px; }
.hero-copy > * {
  animation: fade-up 1.05s var(--ease-out) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.44s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.6s; }
.page-hero .container {
  animation: fade-up 0.9s var(--ease-out) both;
}

.story-band { padding: var(--space-2xl) 0; background: var(--color-cream-soft); }
.story-band .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: center;
}
.story-band.has-media .container {
  grid-template-columns: 1.05fr 0.95fr;
}
.story-band p { color: var(--color-ink-muted); }
.story-band .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  color: var(--color-navy);
  line-height: 1.45;
}
.story-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.story-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 880px) {
  .story-band .container,
  .story-band.has-media .container { grid-template-columns: 1fr; }
  .story-media img { min-height: 260px; max-height: 360px; }
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: left;
  margin-top: var(--space-lg);
}
.review-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
.review-card .stars { color: #d4a017; letter-spacing: 0.08em; margin-bottom: 0.7rem; font-size: 0.95rem; }
.review-card p { color: var(--color-ink-muted); font-size: 0.95rem; }
.review-card .review-meta { font-size: 0.82rem; font-weight: 600; color: var(--color-navy); margin: 0; }
.google-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
@media (max-width: 880px) {
  .review-grid { grid-template-columns: 1fr; }
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.expect-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
.expect-card .step {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-navy);
  color: #bfe6fb;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.expect-card p { color: var(--color-ink-muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 800px) {
  .expect-grid { grid-template-columns: 1fr; }
}

.booking-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.booking-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.booking-card p { color: var(--color-ink-muted); margin: 0 0 0.4rem; }
.booking-card .btn, .booking-card .btn-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 800px) {
  .booking-paths { grid-template-columns: 1fr; }
}

.faq-wrap { max-width: 760px; margin: 0 auto; }

.team-card.is-placeholder .portrait-ph {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #d7e8f2 0%, #b7c9d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ==========================================================================
   Motion - premium, restrained
   ========================================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes kids-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-anim [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js-anim [data-reveal].is-in .accent-rule {
  transform-origin: left center;
  animation: rule-draw 0.7s var(--ease-out) 0.15s both;
}

.review-card,
.expect-card,
.booking-card,
.contact-card,
.welcome-panel,
.office-card {
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.review-card:hover,
.expect-card:hover,
.booking-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg { transform: none; animation: none; }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
  .hero-copy > *,
  .page-hero .container { animation: none; }
  .kids-badge img { animation: none; }
  .cinderella-sparkles { display: none; }
}
