/* ==========================================================================
   Milestones Pediatric Dentistry — site stylesheet
   2026 visual refresh: same brand palette as the original 2016 design
   (colors below are unchanged), rebuilt with warmer rounded type, softer
   card-based components, and organic shapes in place of hard-edged solid
   color blocks. No copy on the site was changed as part of this refresh —
   only how existing text and images are presented.
   ========================================================================== */

@font-face { font-family: 'Baloo 2'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/baloo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/baloo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/baloo-2-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2'); }

:root {
  --color-pink: #F3BABF;
  --color-pink-soft: #F8D3D7;
  --color-accent: #E63848;
  --color-accent-dark: #C22536;
  --color-mint: #68DDB3;
  --color-dark: #171D21;
  --color-white: #FFFFFF;
  --color-gray: #7F7F7F;
  --color-gray-light: #BBBDC0;
  --color-gray-bg: #F7F5F5;

  /* Soft tints of the same brand hues — used for card/section backgrounds
     instead of full-strength solid color blocks. */
  --mint-tint: #EAFBF5;
  --coral-tint: #FDECEE;
  --pink-tint: #FDF3F4;

  --font-heading: 'Baloo 2', 'Poppins', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Arial, Helvetica, sans-serif;

  --max-width: 1200px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(23, 29, 33, 0.10);
  --shadow-lift: 0 22px 50px rgba(23, 29, 33, 0.16);
  --shadow-button: 0 6px 16px rgba(230, 56, 72, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin-bottom: 0.75em; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin-bottom: 0.5em; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-button);
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn img, .btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-secondary {
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: none;
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover { background: var(--color-pink); color: var(--color-accent-dark); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
/* NOTE: the frosted-glass effect below is applied via a ::before layer
   rather than directly on .site-header. backdrop-filter (like transform/
   filter/perspective) makes the element it's set on the containing block
   for any position:fixed descendant -- and .main-nav (the mobile slide-out
   menu) lives inside this header in the markup. Putting backdrop-filter
   directly on .site-header silently collapsed the open mobile menu down to
   the header's own ~70px height instead of the full viewport, because its
   fixed positioning was resolving against the header's box instead of the
   page. Moving it to a ::before sidesteps that entirely while looking
   identical. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 20px rgba(23,29,33,0.06);
  border-bottom: 1px solid var(--color-gray-bg);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { width: 150px; height: auto; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle img { width: 26px; height: 26px; }

.main-nav {
  position: fixed;
  inset: 0 0 0 30%;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 600;
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
.main-nav.is-open { transform: translateX(0); }
.nav-close {
  display: flex;
  margin: 14px 14px 0 auto;
  width: 40px;
  height: 40px;
  background: var(--color-gray-bg);
  border-radius: 50%;
  border: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-dark);
}
.nav-list {
  padding: 10px 30px 30px;
}
.nav-list > li { border-bottom: 1px solid var(--color-gray-bg); }
.nav-list > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-list > li > a:hover, .nav-list > li > a:focus-visible { background: var(--coral-tint); color: var(--color-accent); }
.nav-list > li.current > a { background: var(--color-accent); color: #fff; }

.has-submenu > .submenu-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.has-submenu.is-expanded > .submenu-toggle::after { transform: rotate(-135deg); }
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.has-submenu.is-expanded .submenu { max-height: 220px; }
.submenu li a {
  display: block;
  padding: 10px 4px 10px 18px;
  font-size: 0.95rem;
  color: var(--color-gray);
}
.submenu li a:hover { color: var(--color-accent); }

.nav-cta { padding: 20px 4px 4px; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23,29,33,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* Must stay below .site-header's stacking context (z-index: 500) so it
     doesn't intercept clicks meant for .main-nav, which is nested inside
     the header and therefore capped at the header's stacking level. */
  z-index: 400;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

body.nav-open, body.lightbox-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    box-shadow: none;
    background: none;
    overflow: visible;
  }
  .nav-close { display: none; }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .nav-list > li { border-bottom: none; position: relative; }
  .nav-list > li > a { padding: 10px 18px; font-size: 1rem; border-radius: 999px; }
  .submenu {
    max-height: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    box-shadow: var(--shadow-lift);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    padding: 10px;
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu,
  .has-submenu.is-expanded .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .has-submenu > .submenu-toggle::after { display: none; }
  .submenu li a { padding: 10px 14px; border-radius: 12px; }
  .submenu li a:hover { background: var(--coral-tint); color: var(--color-accent); }
  .nav-cta { padding: 0 0 0 10px; }
  .nav-cta .btn { font-size: 0.8rem; padding: 12px 18px; }
}

/* ---------- Hero (2026 redesign: copy column + blob-art photo frame,
   matching the approved homepage mockup) ---------- */
.hero { padding: 32px 0 40px; overflow: hidden; background: var(--color-white); }
.hero .container { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 940px) {
  .hero .container { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 14px;
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--color-dark);
}
.hero__title em { font-style: normal; color: var(--color-mint); }
.hero__lede { font-size: 1.1rem; color: #40474c; max-width: 46ch; margin: 0 0 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  box-shadow: none;
  border: 2px solid var(--color-gray-light);
}
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--color-dark); background: transparent; transform: translateY(-2px); }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px 8px 10px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-bg);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(23, 29, 33, 0.05);
  color: #40474c;
}
.trust-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.trust-chip:nth-child(1) .dot { background: var(--color-mint); }
.trust-chip:nth-child(2) .dot { background: var(--color-accent); }
.trust-chip:nth-child(3) .dot { background: #eda23e; }

.hero__art { position: relative; }
.hero__blob {
  position: absolute;
  inset: -6% -10% -10% -6%;
  background: var(--color-mint);
  opacity: 0.35;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  z-index: 0;
}
.hero__blob2 {
  position: absolute;
  width: 46%;
  height: 46%;
  right: -8%;
  bottom: -10%;
  background: var(--color-pink);
  opacity: 0.55;
  border-radius: 63% 37% 37% 63% / 47% 41% 59% 53%;
  z-index: 0;
}
/* Same crop reasoning as before: the source photo has a large flat-white
   area baked into its right half (the girl only occupies the left ~48%),
   so anchoring object-position to the left keeps her fully in frame
   instead of centering into that blank space. */
.hero__photo-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 1 / 1.02;
}
.hero__photo-frame picture { display: block; width: 100%; height: 100%; }
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
/* 16:9 responsive video embed (Solea / YouTube) */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section--tight { padding: 32px 0; }
.section--pink { background: var(--color-pink); }
.section--gray { background: var(--color-gray-bg); }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
@media (min-width: 900px) { .section { padding: 76px 0; } }

.section-head { max-width: 68ch; margin-bottom: 28px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Quicklink tile grid (elevated white cards, icon-on-top/label-below) */
.tile-grid { padding: 36px 0; }
.tile-grid--doodle {
  background-image: url("../images/dental-doodle.webp");
  background-size: cover;
  background-position: center;
  padding: 44px 0;
}
.tile-grid__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) { .tile-grid__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .tile-grid__grid { grid-template-columns: repeat(4, 1fr); } }
.tile-grid__extra { max-width: 1100px; margin: 16px auto 0; display: flex; justify-content: center; }
.tile-grid__extra .tile { width: 100%; max-width: 260px; }

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-bg);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  box-shadow: 0 6px 20px rgba(23, 29, 33, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  width: 100%;
  text-align: center;
  cursor: pointer;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.tile__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(23, 29, 33, 0.14);
  transition: transform 0.25s ease;
}
.tile:hover .tile__icon, .tile:focus-visible .tile__icon { transform: scale(1.08) rotate(-2deg); }
.tile__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__label {
  display: block;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

/* Title bar — used for the page-top title and mid-page "GREETINGS!"-style
   banners alike. Softened from the original hard-edged full-width bar into
   a floating rounded pill/card, keeping the same dark brand color, weight
   and caps treatment. */
.black-bar { width: min(92%, 760px); margin: 0 auto; }
/* Standalone mid-page banners (e.g. the homepage "GREETINGS!" bar) sit
   directly in a .section with no photo behind them, unlike the page-title
   bars in .page-hero (which get their own spacing from that component) —
   so give this case its own breathing room before the body copy below it. */
.section > .black-bar { margin-bottom: 32px; }
.black-bar h1, .black-bar h2 {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 18px 28px;
  font-size: clamp(1.4rem, 4.2vw, 2.2rem);
  margin: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(23, 29, 33, 0.18);
}

/* Page hero: title pill, optionally floating over a full-bleed rounded photo */
.page-hero { position: relative; }
.page-hero__photo {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.page-hero .black-bar { padding: 34px 0; }
.page-hero--photo .black-bar {
  position: absolute;
  top: 34px; left: 50%;
  transform: translateX(-50%);
  padding: 0;
  width: min(92%, 760px);
}

/* Poster section: soft rounded icon badge + big colorful heading + thin rule */
.poster {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 48px 6px;
  justify-items: center;
  text-align: center;
}
@media (min-width: 700px) {
  .poster {
    grid-template-columns: 150px 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px 48px 6px;
    justify-items: start;
    text-align: left;
  }
}
.poster__icon {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-lg);
  background: var(--mint-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(23, 29, 33, 0.08);
}
.poster__icon img { width: 100%; max-width: 108px; margin: 0 auto; display: block; }
.poster__head { border-top: 2px solid var(--color-gray-light); padding-top: 18px; width: 100%; }
.poster__title {
  color: var(--color-mint);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
  margin: 0;
}

/* Plain content blocks: flowing text separated by thin rules (replaces the
   old boxed card-grid look, to match the real site's simple divided text) */
/* Same widened side padding as .bio, and for the same reason: clearance
   from the Modento widget's fixed-position floating ribbon. */
.content-flow { max-width: 900px; margin: 0 auto; padding: 0 48px; }
.content-flow > * { padding: 22px 0; border-bottom: 1px solid var(--color-gray-light); }
.content-flow > *:last-child { border-bottom: none; }
.content-flow h3 { margin-bottom: 0.5em; }

/* Body-copy links (PDF downloads, inline references, etc.) need to read as
   links wherever they appear in flowing text — the global `a` reset above
   strips color/underline for chrome elements (nav, tiles, footer) that style
   themselves, but that same reset left download links buried in paragraphs
   and lists looking like plain text. This is a blanket rule so any future
   link dropped into body copy is covered automatically, not just today's. */
.content-flow a, .plain-list a, .bio a, .symptom-card a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.content-flow a:hover, .plain-list a:hover, .bio a:hover, .symptom-card a:hover,
.content-flow a:focus-visible, .plain-list a:focus-visible, .bio a:focus-visible, .symptom-card a:focus-visible {
  color: var(--color-accent-dark);
}

.two-col {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col--reverse .two-col__media { order: 2; }
}
.two-col__media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* Emergency Care Q&amp;A — plain always-visible text (the real site has no
   accordion; every question is just another divided content block) */
.faq-item h3 { margin-bottom: 0.4em; }
.faq-item p { color: var(--color-dark); }

/* Insurance list — a single plain centered list, not a card grid */
.plain-list {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}
.plain-list li { padding: 5px 0; }

/* Office tour — a plain static photo grid (no carousel) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 48px;
}
@media (min-width: 560px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }

/* Tour photos are clickable to enlarge — the link wraps each thumbnail, so
   give it a visible hover/focus affordance (a subtle zoom + darkening on the
   image itself) to signal it's interactive, without disturbing the grid. */
.photo-grid__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.photo-grid__link img { transition: transform 0.25s ease, filter 0.25s ease; }
.photo-grid__link:hover img, .photo-grid__link:focus-visible img {
  transform: scale(1.06);
  filter: brightness(0.85);
}
.photo-grid__link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.photo-grid__link::after {
  content: "\2921";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.photo-grid__link:hover::after, .photo-grid__link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox — full-screen viewer for the office tour photos */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 12, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(94vw, 1100px); text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
}
.lightbox__caption {
  color: #fff;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover,
.lightbox__close:focus-visible, .lightbox__prev:focus-visible, .lightbox__next:focus-visible {
  background: rgba(255,255,255,0.25);
}
.lightbox__close {
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox__prev, .lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  font-size: 1.3rem;
}
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
@media (max-width: 560px) {
  .lightbox { padding: 70px 12px; }
  .lightbox__prev, .lightbox__next { width: 42px; height: 42px; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
}

/* Doctor bio — photo floats top-right so text wraps it, then continues full
   width once the photo ends (matches the real page instead of a boxed card).
   It's always nested inside a .content-flow, which already constrains width
   and provides the side padding — .bio only needs the clearfix, no width/
   padding of its own (that would double up and push the text in twice). */
.bio::after { content: ""; display: table; clear: both; }
.bio__photo {
  float: right;
  width: 42%;
  max-width: 320px;
  margin: 0 0 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 640px) {
  .bio__photo { float: none; width: 100%; max-width: none; margin: 0 0 20px; }
}

/* "GO TO TOP" hand-drawn doodle link before the footer on longer pages */
.goto-top { display: flex; justify-content: center; padding: 34px 0 8px; }
.goto-top img { width: 130px; }

/* Symptom list (tongue-tie) — plain text groups, no cards */
.symptom-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (min-width: 700px) { .symptom-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 40px; } }
.symptom-card h3 { font-size: 1.05rem; }
.symptom-card ul { margin-top: 6px; }
.symptom-card li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 0.95rem;
}
.symptom-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-dark);
}

/* Contact page */
.map-embed {
  max-width: 900px;
  margin: 24px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; max-width: 420px; }
.hours-table td { padding: 6px 4px; border-bottom: 1px solid var(--color-gray-light); font-size: 0.95rem; }
.hours-table td:first-child { font-weight: 700; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--color-accent);
  font-weight: 700;
}
.map-link img { width: 20px; height: 20px; }

/* Forms */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field input,
.form-field textarea {
  border: 2px solid var(--color-gray-light);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-dark);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--color-gray); }
.form-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 18px;
}
.form-status--success { background: #E4F6EC; color: #1E7A46; }
.form-status--error { background: #FCE7E9; color: var(--color-accent-dark); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
/* Simple centered footer, matching the real site (no multi-column dark
   footer with social icons — just logo, contact lines, and a copyright).
   Same three lines of text as before, restyled as soft pill chips instead
   of stacked plain text — no HTML/copy changes, CSS only. */
.simple-footer { padding: 48px 0 30px; text-align: center; background: var(--mint-tint); }
.simple-footer__logo { width: 150px; margin: 0 auto 22px; }
.simple-footer__divider {
  max-width: 240px;
  margin: 0 auto;
  border: none;
  border-top: 2px solid var(--color-mint);
  opacity: 0.5;
}
.simple-footer__contact {
  padding: 24px 0 6px;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.simple-footer__contact p {
  margin: 0;
  background: var(--color-white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(23,29,33,0.05);
}
.simple-footer__contact a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.simple-footer__contact a:hover, .simple-footer__contact a:focus-visible { color: var(--color-accent-dark); }
.simple-footer__copyright { color: var(--color-gray); font-size: 0.82rem; margin-top: 30px; }

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
