/* =========================================================================
   Craniosacral Therapy NY — shared design system
   One stylesheet for the whole site. Edit here; rebuild to apply everywhere.
   Sections:
     1. Tokens / reset / base
     2. Layout primitives (container, grid)
     3. Header, navigation, flyout
     4. Buttons, pills, eyebrows
     5. Hero
     6. Sections & cards (goals, doctor, steps, expect, CTA)
     7. Long-form article prose (rewritten content pages)
     8. Testimonials & Google reviews slider
     9. FAQ, pricing tables, figures, breadcrumbs, callouts
    10. Footer
    11. Responsive
   ========================================================================= */

/* 1. Tokens / reset / base ------------------------------------------------ */
:root {
  --color-navy: #0f2238;
  --color-teal: #1ca7a2;
  --color-teal-dark: #16908b;
  --color-teal-soft: #e0f3f2;
  --color-neutral-bg: #f6f4f1;
  --color-neutral-soft: #fbf9f7;
  --color-border-subtle: #e5e7eb;
  --color-text-main: #1c2633;
  --color-text-muted: #6b7280;
  --color-star: #f4b400;
  --radius-card: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 16px 40px rgba(15, 34, 56, 0.08);
  --shadow-subtle: 0 6px 20px rgba(15, 34, 56, 0.06);
  --max-width: 1200px;
  --measure: 70ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text-main);
  background-color: #fdfdfd;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--color-navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.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;
}

/* 2. Layout primitives ---------------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }

/* 3. Header / nav / flyout ------------------------------------------------- */
.announcement-bar {
  background: var(--color-teal); color: #fff; font-size: 0.875rem;
  text-align: center; padding: 6px 16px;
}
.announcement-bar a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }

.site-header { background: #fff; box-shadow: 0 1px 8px rgba(15, 34, 56, 0.08); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 8px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--color-navy); }
.logo-image { width: 320px; max-width: 60vw; height: auto; object-fit: contain; flex-shrink: 0; border-radius: 6px; }

/* Toggle button */
.flyout-toggle {
  position: relative; padding: 6px 4px; color: inherit; background: transparent;
  border: none; font: inherit; cursor: pointer; line-height: inherit;
}
.flyout-toggle--mobile { display: none; }

/* Desktop dropdown nav */
.site-nav--dropdown { display: flex; align-items: center; gap: 16px; }
.site-nav--dropdown .site-nav-menu {
  list-style: none; display: flex; flex-wrap: wrap; row-gap: 18px; column-gap: 16px;
  margin: 0; padding: 0; align-items: center; font-size: 0.95rem;
}
.site-nav--dropdown .site-nav-item { position: relative; }
.site-nav--dropdown .site-nav-item > a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 4px; color: var(--color-text-main);
}
.site-nav--dropdown .site-nav-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  border-radius: 999px; background: var(--color-teal); opacity: 0; transform: scaleX(0.2);
  transform-origin: center; transition: opacity 0.16s ease, transform 0.16s ease;
}
.site-nav--dropdown .site-nav-item > a:hover::after,
.site-nav--dropdown .site-nav-item > a:focus-visible::after { opacity: 1; transform: scaleX(1); }
.site-nav--dropdown .site-nav-item--has-sub > a::before {
  content: "▾"; order: 2; font-size: 0.82em; color: var(--color-text-muted);
}
.site-nav--dropdown .site-nav-submenu {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0;
  min-width: 250px; max-width: min(360px, 92vw); max-height: min(520px, 72vh); overflow: auto;
  background: #fff; border: 1px solid var(--color-border-subtle); border-radius: 14px;
  box-shadow: var(--shadow-soft); display: none; z-index: 3000;
}
.site-nav--dropdown .site-nav-item:nth-last-child(-n+3) > .site-nav-submenu { left: auto; right: 0; }
.site-nav--dropdown .site-nav-item:hover > .site-nav-submenu,
.site-nav--dropdown .site-nav-item:focus-within > .site-nav-submenu { display: block; }
.site-nav--dropdown .site-nav-submenu a {
  display: block; padding: 9px 10px; border-radius: 12px; color: var(--color-text-main); line-height: 1.25;
}
.site-nav--dropdown .site-nav-submenu a:hover,
.site-nav--dropdown .site-nav-submenu a:focus-visible { background: var(--color-teal-soft); }

/* Mobile flyout overlay */
html.flyout-open, body.flyout-open { overflow: hidden; }
.flyout { position: fixed; inset: 0; z-index: 2000; pointer-events: none; visibility: hidden; }
.flyout__backdrop { position: absolute; inset: 0; background: rgba(15, 34, 56, 0.48); opacity: 0; transition: opacity 0.18s ease; }
.flyout__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 92vw);
  background: #fff; border-left: 1px solid var(--color-border-subtle); box-shadow: var(--shadow-soft);
  transform: translateX(102%); transition: transform 0.22s ease; display: flex; flex-direction: column;
}
.flyout[data-state="open"] { pointer-events: auto; visibility: visible; }
.flyout[data-state="open"] .flyout__backdrop { opacity: 1; }
.flyout[data-state="open"] .flyout__panel { transform: translateX(0); }
.flyout__top { padding: 16px 18px; border-bottom: 1px solid var(--color-border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flyout__title { font-weight: 650; color: var(--color-text-main); }
.flyout__close { border: 1px solid var(--color-border-subtle); background: #fff; color: var(--color-text-main); border-radius: 999px; padding: 8px 12px; cursor: pointer; font: inherit; }
.flyout__close:hover { border-color: var(--color-teal); }
.flyout__nav { padding: 14px 18px 18px; overflow: auto; }
.flyout__section { padding: 12px 0; border-bottom: 1px solid var(--color-border-subtle); }
.flyout__section:last-child { border-bottom: none; }
.flyout__section-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font-weight: 650; color: var(--color-text-main); }
.flyout__section-link:hover, .flyout__section-link:focus-visible { color: var(--color-teal); }
.flyout__sub { list-style: none; padding: 8px 0 0 14px; margin: 0; display: grid; gap: 4px; }
.flyout__sub a { display: block; padding: 6px 0; color: var(--color-text-muted); }
.flyout__sub a:hover, .flyout__sub a:focus-visible { color: var(--color-text-main); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .flyout__backdrop, .flyout__panel, .flyout-toggle::after { transition: none; }
}

/* 4. Buttons / pills / eyebrows ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px;
  border-radius: 999px; font-size: 0.95rem; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}
.btn-primary { background: var(--color-teal); color: #fff; box-shadow: 0 14px 30px rgba(23, 162, 155, 0.35); }
.btn-primary:hover { background: var(--color-teal-dark); box-shadow: 0 18px 36px rgba(23, 162, 155, 0.42); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--color-teal); color: var(--color-teal); }
.btn-outline:hover { background: var(--color-teal-soft); }

.section-title-eyebrow, .hero-content-eyebrow {
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.16em; color: var(--color-teal);
  font-weight: 600; margin-bottom: 8px;
}
.hero-content-eyebrow { letter-spacing: 0.18em; }

/* 5. Hero ----------------------------------------------------------------- */
.hero { background: linear-gradient(135deg, #f6f9fb 0%, #fdfcfb 50%, #f6f9fb 100%); padding: 40px 0 32px; }
.hero-grid { align-items: center; }
.hero h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 12px; color: var(--color-navy); }
.hero-subtitle { max-width: 520px; color: var(--color-text-muted); font-size: 1rem; margin-bottom: 20px; }
.hero-credentials { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 20px; }
.hero-credentials span { display: inline-flex; align-items: center; gap: 6px; }
.hero-credentials span::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--color-teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 0.85rem; color: var(--color-text-muted); }
.hero-media { display: flex; justify-content: flex-end; }
.hero-image-frame { max-width: 460px; width: 100%; border-radius: 20px; overflow: hidden; background: #e5edf2; box-shadow: var(--shadow-soft); position: relative; }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-badge {
  position: absolute; left: 20px; bottom: 20px; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); border-radius: 999px; padding: 6px 12px; font-size: 0.8rem;
  display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-muted);
  box-shadow: 0 12px 30px rgba(15, 34, 56, 0.25);
}
.hero-image-badge-dot { width: 8px; height: 8px; border-radius: 999px; background: #34d399; }

/* Pill strip */
.pill-row { margin-top: 32px; }
.pill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.info-pill { display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 10px 16px; background: #fff; border: 1px solid var(--color-border-subtle); box-shadow: var(--shadow-subtle); }
/* Adaptive chip: a circle for short labels (CST), expands to a pill for words (Stress) so text is always contained. */
.pill-icon { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--color-teal-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; color: var(--color-teal-dark); flex-shrink: 0; }
.info-pill-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.info-pill-text { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.35; }

/* 6. Sections & cards ----------------------------------------------------- */
.section { padding: 56px 0; }
.section--muted { background: var(--color-neutral-bg); }
.section--band { background: #fff; padding: 56px 0; }
.section h2 { font-size: 1.7rem; margin: 0 0 10px; color: var(--color-navy); }
.section-lead { max-width: 560px; font-size: 0.98rem; color: var(--color-text-muted); margin-bottom: 20px; }

.why-list { margin: 16px 0 0; padding-left: 18px; font-size: 0.95rem; color: var(--color-text-main); }
.why-list li { margin-bottom: 8px; }
.why-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 12px; }

.doctor-card { background: #fff; border-radius: var(--radius-card); padding: 18px 18px 20px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 10px; }
.doctor-header { display: flex; align-items: center; gap: 14px; }
.doctor-avatar { width: 64px; height: 64px; border-radius: 999px; overflow: hidden; background: #e5edf2; flex-shrink: 0; }
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-name { font-weight: 600; color: var(--color-navy); }
.doctor-credentials { font-size: 0.85rem; color: var(--color-text-muted); }
.doctor-bio { font-size: 0.9rem; color: var(--color-text-main); }
.doctor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.doctor-tag { font-size: 0.75rem; padding: 4px 8px; border-radius: 999px; background: var(--color-neutral-soft); color: var(--color-text-muted); }

.goals-header { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.goals-note { font-size: 0.85rem; color: var(--color-text-muted); }
.goals-grid .goal-card { grid-column: span 3; }
.goal-card { background: #fff; border-radius: var(--radius-card); padding: 18px 18px 20px; box-shadow: var(--shadow-subtle); border: 1px solid rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; gap: 8px; }
.goal-icon { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--color-teal-soft); background: var(--color-teal-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; color: var(--color-teal-dark); margin-bottom: 4px; align-self: flex-start; }
.goal-title { font-weight: 600; font-size: 0.98rem; color: var(--color-navy); }
.goal-text { font-size: 0.9rem; color: var(--color-text-muted); flex-grow: 1; }
.goal-link { margin-top: 6px; font-size: 0.88rem; color: var(--color-teal); font-weight: 500; }
.goal-link span { display: inline-block; transform: translateX(0); transition: transform 0.16s ease; }
.goal-link:hover span { transform: translateX(2px); }

/* Patient story / steps / band */
.band-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.steps-title { font-size: 1rem; font-weight: 600; color: var(--color-navy); margin-bottom: 10px; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.step-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
/* Adaptive: a circle for short content (1, 7, 16) that grows into a rounded pill to fully contain longer labels (2000, Today). */
.step-badge { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--color-teal-soft); color: var(--color-teal-dark); font-size: 0.78rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; white-space: nowrap; line-height: 1; }
.step-body-title { font-size: 0.95rem; font-weight: 600; color: var(--color-navy); }
.step-body-text { font-size: 0.88rem; color: var(--color-text-muted); }

/* Expect / media */
.expect-grid { align-items: center; }
.image-frame { border-radius: var(--radius-lg); overflow: hidden; background: #e5edf2; box-shadow: var(--shadow-subtle); }
.expect-list { margin: 14px 0 0; padding-left: 18px; font-size: 0.95rem; color: var(--color-text-main); }
.expect-list li { margin-bottom: 8px; }
.expect-note { margin-top: 10px; font-size: 0.85rem; color: var(--color-text-muted); }

/* CTA */
.section--cta { background: var(--color-neutral-soft); border-top: 1px solid var(--color-border-subtle); border-bottom: 1px solid rgba(15, 34, 56, 0.06); padding: 32px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner p { margin: 4px 0 0; font-size: 0.95rem; color: var(--color-text-muted); max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 7. Long-form article prose ---------------------------------------------- */
.prose { max-width: var(--measure); font-size: 1rem; color: var(--color-text-main); }
.prose.prose--wide { max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; color: var(--color-navy); margin: 2em 0 0.5em; line-height: 1.25; }
.prose h3 { font-size: 1.18rem; color: var(--color-navy); margin: 1.6em 0 0.4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose a:not(.btn) { color: var(--color-teal-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--color-teal); }
.prose strong { color: var(--color-navy); }
.prose blockquote { margin: 1.4em 0; padding: 0.4em 0 0.4em 1.1em; border-left: 4px solid var(--color-teal); color: var(--color-text-main); font-style: italic; }

/* Content two-column wrapper used on rewritten pages */
.content-grid { align-items: start; }
.content-aside { position: sticky; top: 96px; }
.aside-card { background: #fff; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-card); padding: 18px; box-shadow: var(--shadow-subtle); margin-bottom: 20px; }
.aside-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--color-navy); }
.aside-card ul { margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--color-text-muted); }
.aside-card li { margin-bottom: 6px; }

/* 8. Testimonials & Google reviews slider --------------------------------- */
.quote-card { background: #fff; border-radius: var(--radius-lg); padding: 24px 24px 22px; box-shadow: var(--shadow-soft); border-left: 4px solid var(--color-teal); position: relative; }
.quote-card::before { content: "\201C"; position: absolute; top: -6px; left: 16px; font-size: 3rem; color: rgba(28, 38, 51, 0.09); pointer-events: none; }
.quote-text { font-size: 0.98rem; color: var(--color-text-main); margin-bottom: 12px; }
.quote-meta { font-size: 0.85rem; color: var(--color-text-muted); }
.quote-meta strong { color: var(--color-navy); }

.stars { display: inline-flex; gap: 2px; color: var(--color-star); font-size: 0.95rem; line-height: 1; letter-spacing: 1px; }
.stars[aria-label] { vertical-align: middle; }

/* Reviews slider */
.reviews { background: var(--color-neutral-bg); }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.reviews-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--color-text-muted); }
.reviews-badge .g-logo { font-weight: 700; letter-spacing: 0.02em; }
.reviews-badge .g-logo b:nth-child(1){color:#4285F4}.reviews-badge .g-logo b:nth-child(2){color:#EA4335}.reviews-badge .g-logo b:nth-child(3){color:#FBBC05}.reviews-badge .g-logo b:nth-child(4){color:#4285F4}.reviews-badge .g-logo b:nth-child(5){color:#34A853}.reviews-badge .g-logo b:nth-child(6){color:#EA4335}
.reviews-viewport { overflow: hidden; }
/* Flex track: align-items:stretch makes every card the same height as the tallest,
   on desktop and mobile, regardless of review length. */
.reviews-track {
  display: flex; align-items: stretch; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 2px 16px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.review-card {
  flex: 0 0 320px; min-width: 0;            /* fixed-ish width, no shrink */
  scroll-snap-align: start; background: #fff; border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card); box-shadow: var(--shadow-subtle); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 880px) { .review-card { flex-basis: calc((100% - 40px) / 3); } }
.review-card__head { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 999px; background: var(--color-teal-soft); color: var(--color-teal-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.review-author { font-weight: 600; color: var(--color-navy); font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: var(--color-text-muted); }
.review-text { font-size: 0.92rem; color: var(--color-text-main); margin: 0; }
.review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { align-self: flex-start; background: none; border: none; padding: 0; color: var(--color-teal-dark); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; }
.review-reply { margin-top: 4px; padding: 10px 12px; background: var(--color-neutral-soft); border-radius: 10px; font-size: 0.85rem; color: var(--color-text-muted); }
.review-reply strong { color: var(--color-navy); }
.reviews-controls { display: flex; gap: 8px; }
.reviews-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--color-border-subtle); background: #fff; color: var(--color-navy); cursor: pointer; font-size: 1.1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.reviews-btn:hover { border-color: var(--color-teal); color: var(--color-teal); }
.reviews-btn:disabled { opacity: 0.4; cursor: default; }

/* Single testimonial block for individual pages */
.testimonial { display: grid; gap: 14px; }
.testimonial .review-card { max-width: 760px; }

/* 9. FAQ / pricing / figures / breadcrumbs / callouts --------------------- */
.faq { display: grid; gap: 10px; max-width: var(--measure); }
.faq details { background: #fff; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-card); padding: 0 16px; box-shadow: var(--shadow-subtle); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--color-navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-teal); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin-top: 0; }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--color-text-main); }

.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-subtle); }
.price-table caption { text-align: left; font-size: 0.85rem; color: var(--color-text-muted); padding: 10px 14px; }
.price-table th, .price-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-border-subtle); font-size: 0.95rem; }
.price-table thead th { background: var(--color-neutral-soft); color: var(--color-navy); }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }

/* Responsive map embed (keyless Google Maps iframe) */
.map-frame { width: 100%; max-width: 460px; }
.map-embed { display: block; width: 100%; aspect-ratio: 16 / 11; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); background: #e5edf2; }

figure.media { margin: 0 0 1.4em; }
figure.media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); }
figure.media figcaption { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 8px; }

.breadcrumb { font-size: 0.82rem; color: var(--color-text-muted); max-width: var(--max-width); margin: 0 auto; padding: 16px 24px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--color-border-subtle); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--color-teal-dark); }

/* Base box applies to both so a bare .callout--warn (no .callout) still renders correctly. */
.callout, .callout--warn { background: var(--color-teal-soft); border-radius: var(--radius-card); padding: 16px 18px; font-size: 0.92rem; color: var(--color-text-main); margin: 1.4em 0; }
.callout--warn { background: #fff4e5; }
.callout p, .callout--warn p { margin: 0; }
.callout strong, .callout--warn strong { color: var(--color-navy); }
.disclaimer { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 12px; }

/* Inline highlighted link (for links inside cards/muted text that aren't .prose) */
.link { color: var(--color-teal-dark); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.link:hover, .link:focus-visible { color: var(--color-teal); }

/* Featured-article band (e.g., an external publication featuring the practice) */
.feature { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--color-teal-soft); border: 1px solid #c9e7e5; border-left: 4px solid var(--color-teal); border-radius: var(--radius-card); padding: 22px 24px; }
.feature__body { max-width: 700px; min-width: 0; }
.feature__kicker { display: inline-flex; align-items: center; gap: 8px; }
.feature__title { font-size: 1.25rem; color: var(--color-navy); margin: 6px 0 8px; line-height: 1.3; }
.feature__title a { color: inherit; }
.feature__title a:hover { color: var(--color-teal-dark); }
.feature p { margin: 0; color: var(--color-text-main); font-size: 0.95rem; }
.feature .btn { flex-shrink: 0; }
@media (max-width: 640px) { .feature .btn { width: 100%; } }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.tag { font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; background: var(--color-neutral-soft); border: 1px solid var(--color-border-subtle); color: var(--color-text-muted); }

/* Forms (contact page) */
.form-card { background: #fff; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-subtle); }
form { display: grid; gap: 14px; }
label { display: block; font-weight: 600; color: var(--color-navy); margin-bottom: 6px; font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border-subtle); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(28, 167, 162, 0.15); }
textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.small-note { font-size: 0.9rem; color: var(--color-text-muted); }
.form-alert { background: #fdecec; border: 1px solid #f5c2c0; color: #8a1f1a; border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; }

/* Blog -------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-card); box-shadow: var(--shadow-subtle); overflow: hidden; display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: #e5edf2; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.post-card__title { font-size: 1.1rem; margin: 0; color: var(--color-navy); line-height: 1.3; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--color-teal-dark); }
.post-card__excerpt { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; flex-grow: 1; }
.post-meta { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-empty { background: #fff; border: 1px dashed var(--color-border-subtle); border-radius: var(--radius-card); padding: 36px; text-align: center; color: var(--color-text-muted); }
.blog-empty a { color: var(--color-teal-dark); text-decoration: underline; }

/* Blog post article */
.post { max-width: 820px; }
.post-header h1 { font-size: 2rem; color: var(--color-navy); margin: 6px 0 10px; line-height: 1.2; }
figure.post-hero { margin: 0 0 24px; }
figure.post-hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); }
.post-back { margin-top: 24px; }
.post-back a { color: var(--color-teal-dark); }

/* 10. Footer -------------------------------------------------------------- */
.site-footer { background: #0b1421; color: #d1d5db; margin-top: auto; padding-top: 36px; }
/* Dedicated footer grid: 4 balanced columns on desktop, 2 on tablet, 1 on phone. */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px 36px; align-items: start; }
.footer-col { min-width: 0; }
.footer-heading { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: #e5e7eb; margin-bottom: 10px; }
.footer-contact p, .footer-hours p { margin: 0 0 6px; font-size: 0.9rem; }
.footer-contact { overflow-wrap: break-word; }
.footer-contact a { color: #e5e7eb; }
.footer-contact a:hover { text-decoration: underline; }
.footer-hours span { display: inline-block; width: 70px; font-size: 0.86rem; color: #9ca3af; }
.footer-memberships { font-size: 0.85rem; }
.footer-nav-links { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.footer-nav-links a { color: #d1d5db; }
.footer-nav-links a:hover { color: #fff; text-decoration: underline; }
.membership-list { list-style: none; display: grid; gap: 10px; margin: 8px 0 0; padding: 0; }
.membership { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; line-height: 1.3; color: #cbd5e1; }
.membership-logo-chip { height: 48px; min-width: 48px; max-width: 116px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 6px 8px; }
.membership-logo-chip img { max-height: 36px; max-width: 100px; width: auto; height: auto; object-fit: contain; display: block; }
.membership-name { min-width: 0; }
.footer-bottom { border-top: 1px solid rgba(55, 65, 81, 0.8); margin-top: 22px; }
.footer-bottom-inner { padding: 10px 24px 14px; font-size: 0.8rem; color: #9ca3af; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-bottom-inner a { color: #9ca3af; }
.footer-bottom-inner a:hover { color: #d1d5db; }

/* 11. Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-12 { gap: 20px; }
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { justify-content: center; grid-row: 1; margin-bottom: 18px; }
  .hero-content { grid-row: 2; }
  .band-inner { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 980px) {
  .site-nav--dropdown .site-nav-menu { display: none; }
  .flyout-toggle--mobile { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--color-border-subtle); }
}
@media (hover: none) and (pointer: coarse) {
  .site-nav--dropdown .site-nav-menu { display: none; }
  .flyout-toggle--mobile { display: inline-flex; }
}
@media (max-width: 880px) {
  .pill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goals-grid .goal-card { grid-column: span 6; }
  .expect-grid { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .content-aside { position: static; }
  .grid-12 > .col-span-3, .grid-12 > .col-span-4, .grid-12 > .col-span-5,
  .grid-12 > .col-span-6, .grid-12 > .col-span-7, .grid-12 > .col-span-8 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pill-grid { grid-template-columns: minmax(0, 1fr); }
  .goals-grid .goal-card { grid-column: span 12; }
  .hero h1 { font-size: 1.6rem; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-image { width: 200px; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
  .review-card { flex-basis: 85%; }
  .price-table th, .price-table td { padding: 9px 10px; font-size: 0.85rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
