/* ============================================================
   RABBIT CREEK DENTAL — Base Stylesheet v3.0
   Unified design system: semantic tokens, 4-level type scale,
   glass-morphism cards, gradient buttons, consistent spacing
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (Custom Properties)
   ============================================================ */
:root {
  /* ── COLOUR PALETTE ─────────────────────────────────────── */
  /* Teal — action: buttons, links, accents, eyebrows         */
  --color-primary:       #00B4D8;
  --color-primary-dark:  #0097b8;
  --color-primary-light: #e0f6fa;
  --color-teal:          #00708A; /* darker teal for banner bg — white text passes WCAG AA */

  /* Navy — structure: headings, hero, footer, authority      */
  --color-navy:       #353469;
  --color-navy-dark:  #2a2956;
  --color-navy-light: #4e4d8f;
  --color-navy-tint:  #f0eff8;

  /* Neutrals                                                  */
  --color-text:       #2e2e3a;
  --color-text-muted: #5a5b70;
  --color-bg:         #fdfcff;
  --color-bg-alt:     #f4f4fb;
  --color-border:     #dde0f0;
  --color-white:      #ffffff;

  /* Accent — alias of primary; used by .bg-accent and focus rings */
  --color-accent: var(--color-primary);

  /* Status                                                    */
  --color-success: #2e7d32;
  --color-warning: #e65100;

  /* ── TYPOGRAPHY ─────────────────────────────────────────── */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Raw size steps (use semantic aliases below in practice)   */
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Semantic type scale — 4 clear levels + 1 label           */
  --fs-hero:    clamp(2.25rem, 4.5vw, 3.25rem);   /* H1 — landmark  */
  --fs-section: clamp(1.625rem, 3vw,  2.125rem);  /* H2 — section   */
  --fs-card:    1.25rem;                           /* H3 — card/sub  */
  --fs-body:    1rem;                              /* body           */
  --fs-small:   0.875rem;                          /* meta, captions */
  --fs-label:   0.75rem;                           /* tags, eyebrows */

  --leading-tight:   1.2;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* ── SPACING ────────────────────────────────────────────── */
  /* Raw scale                                                  */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;

  /* Semantic spacing roles — use these instead of raw steps   */
  --pad-section:   var(--space-24);  /* section top/bottom padding */
  --pad-card:      var(--space-8);   /* card internal padding      */
  --gap-cards:     var(--space-6);   /* gap between grid cards     */
  --gap-text:      var(--space-4);   /* gap between text elements  */
  --gap-header:    var(--space-12);  /* section header → content   */

  /* ── LAYOUT ─────────────────────────────────────────────── */
  --max-width:        1200px;
  --max-width-narrow: 900px;
  --container-pad:    1.5rem;

  /* ── SHAPE ──────────────────────────────────────────────── */
  --radius-sm:   0.25rem;
  --radius:      0.5rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows — layered, navy-tinted for warmth and depth */
  --shadow-sm:   0 1px 3px rgba(53,52,105,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 16px rgba(53,52,105,0.10), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-md:   0 6px 24px rgba(53,52,105,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 40px rgba(53,52,105,0.17), 0 4px 14px rgba(0,0,0,0.07);
  --shadow-xl:   0 20px 60px rgba(53,52,105,0.22), 0 8px 24px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 12px rgba(53,52,105,0.10), 0 1px 4px rgba(0,0,0,0.05),
                 inset 0 1px 0 rgba(255,255,255,0.90);
  --shadow-glow-teal: 0 6px 24px rgba(0,180,216,0.38);

  /* Glass morphism */
  --glass-bg:           rgba(255,255,255,0.78);
  --glass-border:       rgba(255,255,255,0.65);
  --glass-blur:         blur(20px) saturate(180%);
  --glass-dark-bg:      rgba(255,255,255,0.07);
  --glass-dark-border:  rgba(255,255,255,0.11);

  /* Transitions — material easing for smooth, natural feel */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition:      280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 420ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-header:   100;
  --z-dropdown: 200;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 12% 55%, rgba(53,52,105,0.028) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 18%, rgba(0,180,216,0.028) 0%, transparent 45%);
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
}

ul, ol { list-style: none; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}
a:hover, a:focus-visible { color: var(--color-primary-dark); }

p {
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
p:last-child { margin-bottom: 0; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  color: var(--color-text);
  font-weight: 700;
}

/* h2 in navy for authority on light backgrounds */
h2 { color: var(--color-navy); }

/* Typographic scale — clear 4-level hierarchy, no size overlaps */
h1 { font-size: var(--fs-hero); }             /* landmark: 2.25–3.25rem  */
h2 { font-size: var(--fs-section); }          /* section:  1.625–2.125rem */
h3 { font-size: var(--fs-card); }             /* card/sub: 1.25rem fixed  */
h4 { font-size: var(--text-lg);  font-weight: 600; } /* 1.125rem           */
h5 { font-size: var(--text-sm);  font-weight: 700; } /* 0.875rem           */
h6 { font-size: var(--text-sm);  font-weight: 600; } /* 0.875rem           */

/* Headings inside dark-background sections get white */
.bg-primary  h1, .bg-primary  h2, .bg-primary  h3,
.bg-accent   h1, .bg-accent   h2, .bg-accent   h3,
.cta-section h1, .cta-section h2, .cta-section h3,
.page-hero   h1, .page-hero   h2,
.hero        h1, .hero        h2,
.stats-bar   h1, .stats-bar   h2 {
  color: var(--color-white);
}

.lead        { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow {
  max-width: var(--max-width-narrow);
}

.section-padding { padding-block: var(--pad-section); }

/* Background utilities */
.bg-alt {
  background-color: var(--color-bg-alt);
  background-image:
    radial-gradient(ellipse at top right,   rgba(0,180,216,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(53,52,105,0.06) 0%, transparent 55%);
}
.bg-primary { background-color: var(--color-navy);   color: var(--color-white); }
.bg-accent  { background-color: var(--color-accent); color: var(--color-white); }

/* Grid helpers */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-cards);
  align-items: stretch;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), background-color var(--transition),
              color var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 80ms; }

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }

/* Primary — teal gradient */
.btn-primary {
  background: linear-gradient(135deg, #00d4f0 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0,180,216,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #22dcf5 0%, #00c5e8 50%, #00a8d4 100%);
  border-color: transparent;
  color: var(--color-white);
  box-shadow: var(--shadow-glow-teal);
}

/* Secondary — filled teal, white text (contrast fix) */
.btn-secondary {
  background-color: #00ABC7;
  color: #FFFFFF;
  border-color: #00ABC7;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #00d4f0 0%, var(--color-primary) 100%);
  border-color: transparent;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0,180,216,0.30);
}

/* White — for use on dark backgrounds */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background-color: var(--color-primary-light);
  color: var(--color-navy);
}

/* Outline white — for use on dark backgrounds */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.75);
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ============================================================
   6. HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(53,52,105,0.14), 0 1px 6px rgba(0,0,0,0.06);
  border-bottom-color: rgba(221,224,240,0.40);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 4.5rem;
}

/* Logo */
.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-img { height: 50px; width: auto; display: block; }

/* Footer logo — dark-background version, sized up and softly rounded */
.footer-logo .logo-img {
  height: 70px;
  border-radius: var(--radius);
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ''; position: absolute; }
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg);  top: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { transform: rotate(-45deg); top: 0; }

/* Mobile quick-action icon buttons */
.nav-end {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-quick-actions {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--color-navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-fast);
}
.nav-action-btn:hover,
.nav-action-btn:focus-visible { background-color: var(--color-navy-tint); }

/* Mobile nav icon enhancements */
@media (max-width: 1023px) {
  .nav-quick-actions {
    background: rgba(0, 180, 216, 0.12);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .nav-action-btn {
    width: 3rem;
    height: 3rem;
  }
  .nav-action-btn[href^='tel'] {
    animation: phone-pulse 3s ease-in-out 1s 3;
  }
  @keyframes phone-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
  }
}

/* Main nav — mobile hidden until toggled */
.main-nav { display: none; }
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 4.5rem;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-list { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background-color: var(--color-navy-tint);
  color: var(--color-navy);
}

/* Mobile dropdown */
.has-dropdown { position: relative; }
.dropdown-menu { display: none; padding-left: var(--space-4); }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.dropdown-menu a:hover { background-color: var(--color-navy-tint); color: var(--color-navy); }

.header-cta-group { display: none; }

/* Mobile-only CTA strip inside hamburger menu */
.nav-mobile-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) 0 var(--space-1);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
}

/* Desktop nav overrides */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-end { display: none; }

  .main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .main-nav.is-open {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
  }

  /* Bridge the gap between nav item and dropdown on hover */
  .has-dropdown {
    position: relative;
  }
  .has-dropdown::after {
    content: '';
    display: block;
    height: 20px;
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
  }

  .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: 200px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.85);
    padding: var(--space-2);
    z-index: var(--z-dropdown);
    /* Delay hiding by 0.15s so cursor has time to reach the menu;
       show instantly on hover */
    transition: opacity 0.05s ease, visibility 0s linear 0.15s;
  }
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.05s ease, visibility 0s linear 0s;
  }
  .dropdown-menu a { padding: var(--space-2) var(--space-4); }

  /* Mega-menu for services dropdown */
  .dropdown-menu--services {
    min-width: 640px;
    column-count: unset;
    column-gap: unset;
    padding: 0;
  }
  /* For Patients dropdown — wider to fit "RCD Dental Savings Plan" on one line */
  .dropdown-menu[aria-label="For Patients submenu"] {
    min-width: 280px;
  }
  .dropdown-emergency-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-1);
    margin-bottom: var(--space-1);
  }
  .dropdown-categories {
    display: flex;
    gap: 0;
    padding: 0;
  }
  .dropdown-col {
    flex: 1;
    min-width: 0;
    border-right: 1px solid var(--color-border);
    padding: var(--space-2) 0;
  }
  .dropdown-col:last-child { border-right: none; }
  .dropdown-col-heading {
    display: block;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-navy-light);
    padding: var(--space-1) var(--space-4) var(--space-1);
    margin: 0;
  }
  .dropdown-col ul { list-style: none; padding: 0; margin: 0; }
  .dropdown-categories { list-style: none; }

  .header-cta-group { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
  .nav-mobile-cta { display: none; }
}

/* Emergency nav item */
.nav-emergency { font-weight: 600 !important; }
.nav-emergency::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #d93025;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ============================================================
   7. FOOTER — navy for brand authority
   ============================================================ */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-bg-alt);
  padding-top: var(--space-16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}
.footer-brand p { color: #F0F0F0; margin-top: var(--space-4); font-size: var(--text-sm); }

.footer-col h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  color: #F0F0F0;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-primary-light); }

.footer-contact address { font-style: normal; margin-bottom: var(--space-4); }
.footer-contact address p { color: #F0F0F0; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.footer-contact address a { color: rgba(255,255,255,0.90); font-weight: 600; }
.footer-contact address a:hover { color: var(--color-primary-light); }

.hours-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
}
.hours-list dt { color: #F0F0F0; }
.hours-list dd { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--space-6);
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}
.footer-bottom p { font-size: var(--text-sm); color: #F0F0F0; margin: 0; }
.footer-bottom a { color: #F0F0F0; text-decoration: none; }
.footer-bottom a:hover { color: var(--color-primary-light); }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ============================================================
   8. HERO — HOMEPAGE
   ============================================================ */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  /* navy-to-teal gradient as the no-image fallback */
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 45%, #1a6b9a 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
/* Overlay shifts navy at left, opens to teal/transparent at right */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(42,41,86,0.92) 0%,
    rgba(53,52,105,0.72) 45%,
    rgba(0,151,184,0.35) 100%
  );
}
/* Two-column layout: text left, photo right */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-12);
  width: 100%;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}
.hero-image {
  display: none;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}
@media (max-width: 767px) {
  .hero-image {
    display: block;
    margin: 1.25rem 0;
  }
  .hero-image .hero-photo {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }
}
.hero-photo {
  width: 100%;
  height: auto;
  max-width: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,0.40), 0 8px 20px rgba(0,0,0,0.25);
}
.hero h1          { color: var(--color-white); margin-bottom: var(--space-6); font-size: clamp(1.875rem, 3.75vw, 2.75rem); }
.hero-subtitle    { font-size: var(--text-xl); color: rgba(255,255,255,0.90); margin-bottom: var(--space-8); }
.hero-actions     { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.90);
  font-size: var(--text-sm);
  font-weight: 500;
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  transition: background var(--transition), border-color var(--transition);
}
.hero-badge:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.22);
}
@media (min-width: 1024px) {
  .hero-trust-badges {
    flex-wrap: nowrap;
    gap: var(--space-3);
  }
  .hero-badge {
    font-size: 13px;
    padding: var(--space-2) var(--space-3);
    white-space: nowrap;
  }
}

/* ============================================================
   SAVINGS PLAN BANNER — strip between hero and stats bar
   ============================================================ */
.savings-banner {
  background-color: var(--color-teal);
  padding: 1rem 1.5rem;
}
.savings-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.savings-banner__text {
  color: #fff;
  margin: 0;
  font-size: 0.95rem;
}
.savings-banner__cta {
  background-color: #fff;
  color: var(--color-teal);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.savings-banner__cta:hover {
  background-color: var(--color-navy);
  color: #fff;
}

/* ============================================================
   9. STATS BAR — navy for weight and contrast
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  padding-block: var(--space-10);
  border-top: 3px solid var(--color-primary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.stat-item {
  padding: var(--space-6) var(--space-4);
  background: var(--glass-dark-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-lg);
  transition: background var(--transition), transform var(--transition);
}
.stat-item:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.stat-number,
.stat-fixed {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 500;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   10. SECTION HEADERS
   ============================================================ */
.section-header { max-width: 720px; margin-bottom: var(--gap-header); }
.section-header.centered { margin-inline: auto; text-align: center; }

/* Eyebrow label — single definition used at section AND card level */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* Eyebrows on dark section backgrounds — must pass contrast */
.bg-primary  .section-eyebrow,
.bg-accent   .section-eyebrow,
.cta-section .section-eyebrow,
.page-hero   .section-eyebrow,
.stats-bar   .section-eyebrow {
  color: var(--color-primary-light);
}

.section-header h2 { margin-bottom: var(--gap-text); }
.section-header p  { font-size: var(--text-lg); color: var(--color-text-muted); }

/* ============================================================
   11. SERVICE CARDS
   ============================================================ */
.service-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-cards);
  align-items: stretch;
}
@media (min-width: 640px)  { .service-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-xl);
  padding: var(--pad-card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0,180,216,0.30);
}

/* Related-services internal-links cards — teal left-border accent (flush, square on the left) */
section[aria-label="Related services"] .service-card {
  border-left: 4px solid #00ABC7;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.service-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-navy-tint) 0%, rgba(0,180,216,0.12) 100%);
  border: 1px solid rgba(0,180,216,0.18);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
  color: var(--color-navy);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(53,52,105,0.08);
}
.service-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--color-navy); }
.service-card p  { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); flex: 1; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.service-card .card-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ============================================================
   12. TESTIMONIAL CARDS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-cards);
  align-items: stretch;
}
@media (min-width: 768px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: var(--gap-text);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.testimonial-stars  { color: #f5a623; font-size: var(--text-lg); letter-spacing: 0.1em; }
.testimonial-text   { font-size: var(--text-base); font-style: italic; line-height: var(--leading-relaxed); flex: 1; color: var(--color-text); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.testimonial-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: var(--color-navy-tint);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-author-name { font-weight: 600; font-size: var(--text-sm); display: block; color: var(--color-navy); }
.testimonial-source      { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============================================================
   12b. REVIEW CARDS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.review-card .review-text {
  flex: 1;
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .container--flush-mobile { padding-inline: 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   13. TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-cards);
  align-items: stretch;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .team-grid--doctors { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin-inline: auto; }
  .team-grid--staff   { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0,180,216,0.25);
}
.team-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--color-navy-tint) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  overflow: hidden;
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card-info { padding: var(--space-6); flex: 1; }
.team-card-name { font-size: var(--text-xl); margin-bottom: var(--space-1); color: var(--color-navy); }
.team-card-title {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.team-card-bio { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.team-card-fun-fact { font-size: var(--fs-label); color: var(--color-navy-light); font-style: italic; margin-top: var(--space-2); }

/* ============================================================
   14. CTA SECTIONS
   ============================================================ */
.cta-section { padding-block: var(--pad-section); text-align: center; }
.cta-section h2 { color: inherit; margin-bottom: var(--gap-text); }
.cta-section p  { font-size: var(--text-lg); margin-bottom: var(--space-8); opacity: 0.90; }
.cta-actions    { display: flex; flex-wrap: wrap; gap: var(--gap-text); justify-content: center; }

/* ============================================================
   15. FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-label.required::after { content: ' *'; color: var(--color-warning); }
.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.form-control::placeholder { color: var(--color-text-muted); }
textarea.form-control { min-height: 8rem; resize: vertical; }
.form-hint { display: block; font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }

/* ============================================================
   16. PAGE HERO (Interior pages) — navy gradient
   ============================================================ */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--color-navy-dark) 0%,
    var(--color-navy)      50%,
    #1a6b9a                100%
  );
  padding-block: var(--space-20);
  position: relative;
  overflow: hidden;
}

/* Decorative teal glow — top-right accent */
.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-content { position: relative; z-index: 2; }
.page-hero h1   { color: var(--color-white); margin-bottom: var(--space-4); }
.page-hero .lead{
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  font-size: var(--text-lg);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.breadcrumb a            { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover      { color: var(--color-white); }
.breadcrumb-separator    { color: rgba(255,255,255,0.35); }
.breadcrumb-current      { color: rgba(255,255,255,0.90); }

/* ============================================================
   17. TECHNOLOGY PAGE
   ============================================================ */
.tech-cards { display: flex; flex-direction: column; gap: var(--space-10); }

.tech-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--pad-card);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-cards);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.tech-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0,180,216,0.25);
}
@media (min-width: 768px) {
  .tech-card { grid-template-columns: 1fr 1fr; align-items: center; }
  .tech-card:nth-child(even) .tech-card-content { order: -1; }
}
.tech-card-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--color-navy-tint) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.tech-card-image img { width: 100%; height: 100%; object-fit: cover; }
.tech-card-eyebrow   {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.tech-card h2 { margin-bottom: var(--space-3); color: var(--color-navy); }
.tech-card p  { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ============================================================
   18. BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-cards);
  align-items: stretch;
}
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  height: 100%;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0,180,216,0.28);
}
.blog-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--color-navy-tint) 0%, var(--color-primary-light) 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body      { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.blog-card-category  {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.blog-card h3        { font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--color-navy); }
.blog-card h3 a      { color: var(--color-navy); text-decoration: none; }
.blog-card h3 a:hover{ color: var(--color-primary); }
.blog-card-excerpt   { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); flex: 1; margin-bottom: var(--space-4); }
.blog-card-meta      { font-size: var(--text-sm); color: var(--color-text-muted); padding-top: var(--space-4); border-top: 1px solid var(--color-border); margin-top: auto; }

/* ============================================================
   19. REVIEW PULL QUOTES
   ============================================================ */
.review-pullquote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-12) 0;
}
.pullquote-highlight {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: var(--space-4);
  font-style: normal;
}
.pullquote-full {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  display: block;
}
.pullquote-author {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-text-muted);
  display: block;
}
.pullquote-stars {
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: var(--space-3);
}

/* ============================================================
   20. LOCATION & HOURS
   ============================================================ */
.location-hours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) { .location-hours-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.map-embed {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--color-navy-tint) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-8);
}

/* ── Map tap-to-activate overlay (touch devices only) ─────── */
.map-touch-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Hidden on desktop/hover-capable devices — no overlay shown */
.map-touch-overlay { display: none; }

@media (hover: none) and (pointer: coarse) {
  .map-touch-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(30, 30, 60, 0.40);
    cursor: pointer;
    transition: opacity 0.25s ease;
  }

  .map-touch-label {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.625rem 1.375rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    pointer-events: none;
  }

  /* Prevent iframe from swallowing page-scroll touches until activated */
  .map-touch-wrapper:not(.is-activated) iframe {
    pointer-events: none;
  }

  /* After first tap: overlay fades out and stops intercepting touches */
  .map-touch-wrapper.is-activated .map-touch-overlay {
    opacity: 0;
    pointer-events: none;
  }
}

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th,
.hours-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.hours-table th { font-weight: 600; color: var(--color-navy); }
.hours-table td { color: var(--color-text-muted); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }

/* ============================================================
   20. COMPONENTS — Misc
   ============================================================ */

/* Pricing card */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-cards);
  align-items: stretch;
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pricing-card--featured {
  border-color: rgba(53,52,105,0.30);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.90);
}
.new-patient-badge {
  display: inline-block;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}
.new-patient-badge[style*="background:var(--color-primary)"],
.new-patient-badge[style*="background: var(--color-primary)"] {
  background-color: var(--color-primary) !important;
}
.pricing-amount {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-navy);
  font-family: var(--font-heading);
  line-height: 1;
  margin-block: var(--space-4);
}
.pricing-amount sup { font-size: var(--text-2xl); vertical-align: super; }

/* Accordion / FAQ */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.accordion-trigger:hover { color: var(--color-primary); }
.accordion-trigger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.accordion-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-content         { padding-bottom: var(--space-5); color: var(--color-text-muted); display: none; }
.accordion-content.is-open { display: block; }

/* Service page checklist — checkmark bullets matching site accent color */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.65;
}
.checklist li::before {
  content: '\2713';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* Insurance plan list */
.insurance-plan-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.1rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}
.insurance-plan-list li::before {
  content: '\2022\00A0';
  color: var(--color-primary);
}
@media (max-width: 479px) {
  .insurance-plan-list { grid-template-columns: repeat(2, 1fr); }
}
.insurance-note        { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text); line-height: 1.6; }
.insurance-note--muted { color: var(--color-text-muted); margin-top: var(--space-3); }
.ins-verification-notice {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  border-radius: var(--radius);
  padding: var(--space-6);
  background-color: var(--color-navy-tint);
}
.ins-verification-notice h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--color-navy); }
.ins-verification-notice p  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-3); }
.ins-verification-notice p:last-child { margin-bottom: 0; }

/* ============================================================
   21. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.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;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   21b. SCROLL & ENTRANCE ANIMATIONS
   ============================================================ */

/* Hero headline stagger */
.hero-anim-item {
  display: block;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-anim-item.is-visible {
  opacity: 1;
  transform: none;
}

/* Scroll fade-in-up for cards and section headers */
.anim-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1) var(--anim-delay, 0ms),
              transform 400ms cubic-bezier(0.4, 0, 0.2, 1) var(--anim-delay, 0ms);
}
.anim-target.is-visible {
  opacity: 1;
  transform: none;
}

/* Book Online button pulse ripple */
@keyframes pulse-book {
  0%   { transform: scale(1);    opacity: 0.60; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}
.btn-book-pulse {
  position: relative;
}
.btn-book-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(0, 180, 216, 0.55);
  pointer-events: none;
  animation: pulse-book 2.5s ease-out infinite;
}
.btn-book-pulse:hover::after,
.btn-book-pulse:focus-visible::after {
  animation: none;
}

@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;
  }
  /* Ensure animated elements remain visible with motion disabled */
  .hero-anim-item,
  .anim-target {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-book-pulse::after {
    animation: none !important;
  }
}

/* ============================================================
   22. RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 767px)  { .hide-mobile  { display: none !important; } }
@media (min-width: 768px)  { .hide-desktop { display: none !important; } }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only  { display: block; }
}
@media (min-width: 769px) {
  .mobile-only  { display: none; }
  .desktop-only { display: block; }
}

/* ============================================================
   23. PRINT
   ============================================================ */
@media print {
  .site-header, .nav-toggle, .hero-actions, .cta-section, .site-footer { display: none; }
  body { color: #000; font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; }
}

/* ============================================================
   24. PHOTO GALLERIES & CULTURE REEL
   ============================================================ */

/* About page — three-photo row */
.about-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.about-photo-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
@media (max-width: 767px) {
  .about-photo-row {
    grid-template-columns: 1fr;
  }
  .about-photo-row img {
    height: 220px;
  }
}

/* Team page — culture photo reel */
.culture-reel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 2.5rem;
}
.culture-reel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: culture-reel-scroll 22s linear infinite;
}
.culture-reel:hover .culture-reel-track {
  animation-play-state: paused;
}
.culture-reel-track img {
  height: 300px;
  width: auto;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}
@keyframes culture-reel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .culture-reel-track img { height: 200px; }
}
/* Touch devices: kill animation entirely, enable native swipe with snap.
   Must come AFTER base rules so it wins the cascade. */
@media (hover: none) and (pointer: coarse) {
  .culture-reel {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .culture-reel::-webkit-scrollbar { display: none; }
  .culture-reel-track {
    animation: none !important;
    animation-play-state: paused !important;
  }
  .culture-reel-track img { scroll-snap-align: start; }
}

/* === MOBILE UX FIXES === */

/* Fix 1 — Reduce pull quote padding on mobile */
@media (max-width: 768px) {
  .review-pullquote {
    padding-block: 2rem;
  }
  .section-padding:has(.review-pullquote) {
    padding-block: 2.5rem;
  }
}

/* Fix 2 — Darken eyebrow text on bg-alt sections */
.bg-alt .section-eyebrow {
  color: var(--color-navy);
}

/* Fix 3 — Left-align body paragraphs in centered sections on mobile */
@media (max-width: 768px) {
  .section-header.centered p,
  .section-header.centered .section-intro,
  .text-center p {
    text-align: left;
  }
}

/* Fix 4 — Normalize small disclaimer text to body size */
.section-disclaimer,
.insurance-note,
.pricing-note,
p.small,
p.note {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* Dental implants page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-implants"] .section-padding {
    padding-block: 2rem;
  }
}

/* Dentures page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-dentures"] .section-padding {
    padding-block: 2rem;
  }
}

/* Tooth extractions page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-extractions"] .section-padding {
    padding-block: 2rem;
  }
}

/* Root canal page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-root-canal"] .section-padding {
    padding-block: 2rem;
  }
}

/* Gum disease treatment page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-gum-disease"] .section-padding {
    padding-block: 2rem;
  }
}

/* Children's dentistry page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-childrens"] .section-padding {
    padding-block: 2rem;
  }
}

/* Dental bridges page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-bridges"] .section-padding {
    padding-block: 2rem;
  }
}

/* Dental cleanings page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-cleanings"] .section-padding {
    padding-block: 2rem;
  }
}

/* General dentistry page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-general"] .section-padding {
    padding-block: 2rem;
  }
}

/* Technology page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="technology"] .section-padding {
    padding-block: 2rem;
  }
}

/* Dental crowns page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-crowns"] .section-padding {
    padding-block: 2rem;
  }
}

/* Clear aligners page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-aligners"] .section-padding {
    padding-block: 2rem;
  }
}

/* Cosmetic dentistry page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-cosmetic"] .section-padding {
    padding-block: 2rem;
  }
}

/* Teeth whitening page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="service-whitening"] .section-padding {
    padding-block: 2rem;
  }
}

/* New patients page — tighten section padding on mobile */
@media (max-width: 768px) {
  body[data-page="new-patients"] .section-padding {
    padding-block: 2rem;
  }
}

/* New patients page — prevent slight (~4px) horizontal scroll on mobile.
   Source of overflow could not be pinpointed through static analysis;
   `overflow-x: clip` defensively contains it without breaking position: sticky on the header. */
body[data-page="new-patients"] {
  overflow-x: clip;
}

/* Mobile touch-target compliance (WCAG 2.5.5 — recommended 44×44 CSS pixels).
   Scoped to the mobile breakpoint where the hamburger nav and stacked footer
   layout are active; desktop layout is untouched. Inline links inside body
   paragraphs (footer-bottom copyright, footer-contact address) are intentionally
   excluded — converting them to flex would break inline-in-sentence flow, and
   the WCAG "inline target" exception applies to them. */
@media (max-width: 1023px) {
  .nav-link,
  .dropdown-menu a,
  .footer-col a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  a[href^="tel"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Two-column text + image layout (60/40) on desktop only.
   Used on the cosmetic dentistry page sections that pair body copy with a product photo. */
@media (min-width: 768px) {
  .grid-2--text-image {
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  .grid-2--text-image > img {
    max-width: 400px;
    margin-top: 0;
    justify-self: center;
  }
}

/* About page office photo masonry — natural aspect ratios, two-column on desktop, one on mobile */
.about-office-photos {
  columns: 2;
  column-gap: 1rem;
}
.about-office-photos > img {
  width: 100%;
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
  break-inside: avoid;
}
@media (max-width: 768px) {
  .about-office-photos {
    columns: 1;
  }
}

/* Team card reel — used on the About page "The People You'll See" section */
.team-reel {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
}
.team-reel-card {
  text-align: center;
  min-width: 0;
}
.team-reel-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem;
}
.team-reel-name {
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.15rem;
  font-size: var(--text-base);
  line-height: 1.25;
}
.team-reel-title {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.3;
}
@media (max-width: 1024px) {
  .team-reel {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .team-reel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  .team-reel-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }
  .team-reel-photo {
    width: 110px;
    height: 110px;
  }
}


/* Dentures page — desktop two-column layout for denture type cards.
   Each .service-card becomes a row with text in column 1 and the .desktop-only image
   in column 2 (1.5fr / 1fr). The parent .grid-3 collapses to stacked full-width rows.
   Mobile layout is untouched (cards stay as-is). Page-scoped via the page's actual
   body data-page attribute value, which is "service-dentures". */
@media (min-width: 768px) {
  body[data-page="service-dentures"] .grid-3 {
    display: block;
  }
  body[data-page="service-dentures"] .grid-3 .service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(10, auto);
    gap: 0 2rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
  }
  body[data-page="service-dentures"] .grid-3 .service-card:last-child {
    border-bottom: none;
  }
  body[data-page="service-dentures"] .grid-3 .service-card > * {
    grid-column: 1;
  }
  body[data-page="service-dentures"] .grid-3 .service-card > *:not(.desktop-only):not(.mobile-only) {
    padding-left: 1.5rem;
  }
  body[data-page="service-dentures"] .grid-3 .service-card > .desktop-only {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin-top: 0;
    padding: 0;
  }
}
