/* ============================================================
   Supreme Medical Clinic — Design System
   Palette: navy / medical blue / gold — warm clinical trust
   Type: Fraunces (display) + Inter (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --navy: #0B2A4A;
  --navy-deep: #071C33;
  --blue: #2A6D9E;
  --blue-bright: #3684BE;
  --blue-tint: #EAF3FA;
  --gold: #B9873A;
  --gold-bright: #D6A752;
  --gold-tint: #FBF3E4;
  --gold-ink: #8F651E; /* accessible 5.2:1 gold-on-white — use for gold text on light backgrounds */
  --paper: #FBFCFD;
  --surface: #FFFFFF;
  --ink: #14212F;
  --ink-soft: #4E5F6F;
  --ink-faint: #7E8C99;
  --line: #DEE6ED;
  --line-soft: #EEF2F6;
  --crisis: #8A2E2E;
  --crisis-tint: #FBEDED;
  --success: #2E7D4F;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 12px 48px rgba(11, 42, 74, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scroll-reveal (respects reduced motion) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }
@media (min-width: 1440px) { .container { padding: 0 56px; } }
section { padding: 76px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } h1 { font-size: 2rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: currentColor; display: inline-block; }
@media (min-width: 860px) {
  .eyebrow { font-size: 0.94rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 20px; gap: 10px; }
  .eyebrow::before { width: 26px; height: 2px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold-bright); color: var(--navy-deep); font-weight: 700; }
.btn-primary:hover { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-gold { background: var(--gold-bright); color: var(--navy-deep); font-weight: 700; }
.btn-gold:hover { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold-bright); outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,253,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 980px) {
  /* backdrop-filter creates a containing block for position:fixed descendants,
     which traps the full-height mobile nav panel inside the header bar's own
     (short) box instead of the viewport. Drop it on mobile; keep it on desktop. */
  .site-header { backdrop-filter: none; background: rgba(251,252,253,0.98); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--max); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 500; font-size: 0.94rem; color: var(--ink); border-radius: 8px; }
.nav-link:hover { color: var(--blue); }
.nav-caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.15s ease;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.dropdown a:hover { background: var(--blue-tint); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--surface); flex-direction: column; align-items: stretch; padding: 90px 20px 24px; transform: translateX(100%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 97; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .nav-item.open .dropdown { display: block; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: block; z-index: 98; position: relative; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(7,28,51,0.4); z-index: 90; }
  .nav-scrim.open { display: block; }
}
@media (min-width: 981px) { .mobile-only { display: none !important; } }

/* Mobile sticky actions */
.mobile-sticky {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,42,74,0.1);
  padding: 10px 12px; gap: 8px;
}
@media (max-width: 720px) { .mobile-sticky { display: flex; } body { padding-bottom: 76px; } }
.mobile-sticky .btn { flex: 1; padding: 11px 8px; font-size: 0.78rem; white-space: nowrap; }

/* Hero */
.hero { position: relative; background: linear-gradient(165deg, var(--navy-deep), var(--navy) 60%, var(--blue) 130%); color: #fff; overflow: hidden; padding: 96px 0 110px; }
.hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(214,167,82,0.25); }
.hero::after { content: ''; position: absolute; top: -5%; right: 4%; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(214,167,82,0.18); }
.hero-grid { display: grid; grid-template-columns: 1fr; position: relative; z-index: 2; }
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
}
.hero-photo-frame { display: none; }
@media (min-width: 900px) {
  .hero-photo-frame {
    display: block; position: relative; border-radius: var(--radius); overflow: hidden;
    border: 6px solid rgba(255,255,255,0.12); box-shadow: var(--shadow-lg);
  }
  .hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 4; }
  .hero-photo-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
    background: linear-gradient(0deg, rgba(7,28,51,0.88), rgba(7,28,51,0));
    font-weight: 600; font-size: 0.92rem; color: #fff;
  }
  .hero-photo-caption span { display: block; font-weight: 500; font-size: 0.8rem; color: rgba(255,255,255,0.72); margin-top: 2px; }
}
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 7px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin-bottom: 22px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-location { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.hero-location svg { flex-shrink: 0; }

/* Doctor photo */
.doctor-photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--surface); outline: 1px solid var(--line-soft); }
.doctor-photo { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 4; }
@media (max-width: 780px) { .doctor-photo-frame { max-width: 320px; margin: 0 auto; } }

/* Hero signature — one continuous line: a heartbeat pulse resolving into a calm wave,
   reading left-to-right as "physical health" meeting "mental well-being" in one line of care. */
.hero-signature { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; z-index: 1; opacity: 0.9; pointer-events: none; }
.hero-signature path { fill: none; stroke: var(--gold-bright); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hero-signature .sig-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: sig-draw 2.2s ease-out 0.3s forwards; }
.hero-signature .sig-dot { opacity: 0; animation: sig-fade 0.6s ease-out 2.1s forwards; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }
@keyframes sig-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-signature .sig-line { stroke-dashoffset: 0; animation: none; }
  .hero-signature .sig-dot { opacity: 1; animation: none; }
}
@media (max-width: 720px) { .hero-signature { height: 56px; } }

/* Icon-only control affordance */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.icon-btn:hover { background: var(--blue-tint); border-color: var(--blue); }

/* Trust bar */
.trust-bar { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.08); }
.trust-bar ul { display: flex; flex-wrap: wrap; gap: 28px; padding: 20px 0; justify-content: center; }
.trust-bar li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500; }
.trust-bar li::before { content: '✓'; color: var(--gold-bright); font-weight: 700; }

/* Section headers */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; transition: box-shadow 0.2s ease, transform 0.2s ease; position: relative;
  border-top: 3px solid var(--gold);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card h3 { margin-bottom: 10px; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.service-card .card-link:hover { color: var(--navy); }

/* Thread divider — signature motif: coordinated-care thread linking sections */
.thread { display: flex; align-items: center; gap: 14px; margin: 8px 0 44px; }
.thread::before, .thread::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent); }
.thread-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Feature / split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel { background: var(--blue-tint); border-radius: var(--radius); padding: 44px; }
.panel.navy { background: var(--navy); color: #fff; }
.panel.navy h2, .panel.navy h3 { color: #fff; }
.panel.navy p { color: rgba(255,255,255,0.78); }
.panel.gold { background: var(--gold-tint); }

/* Lists with check / gold marks */
.mark-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft); }
.mark-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.mark-list.on-navy li { color: rgba(255,255,255,0.82); }
@media (min-width: 860px) {
  .mark-list-feature li { font-size: 1.08rem; line-height: 1.65; padding-left: 32px; margin-bottom: 16px; }
  .mark-list-feature li::before { width: 9px; height: 9px; top: 11px; }
}

/* Numbered steps (used only for genuine sequences, e.g. What to Expect) */
.step-list { counter-reset: step; display: grid; gap: 16px; }
.step-list li { counter-increment: step; position: relative; padding-left: 46px; color: var(--ink-soft); }
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* Callout / CTA band */
.cta-band { background: linear-gradient(150deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: 24px; padding: 52px 48px; text-align: center; max-width: 820px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* Crisis notice */
.crisis-notice { background: var(--crisis-tint); border: 1.5px solid #E3B9B9; border-radius: var(--radius); padding: 28px 30px; }
.crisis-notice h3 { color: var(--crisis); }
.crisis-notice p { color: #6B2323; margin-bottom: 8px; }
.crisis-notice strong { color: var(--crisis); }

/* Info notice (privacy/safety) */
.info-notice { background: var(--gold-tint); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; }
.info-notice p:last-child { margin-bottom: 0; }

/* Verify chip — internal, marks provisional/pending content */
.verify { display: inline-block; background: #FDF1DC; color: #8A5A12; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 5px; border: 1px solid #E9C787; text-transform: uppercase; margin-left: 6px; }

/* FAQ accordion */
.faq-group { margin-bottom: 40px; }
.faq-group > h3 { color: var(--gold-ink); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-family: var(--font-body); font-weight: 600; color: var(--navy); font-size: 1rem; }
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--blue); border-radius: 2px; transition: transform 0.2s ease; }
.faq-q .plus::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.faq-q .plus::after { left: 10px; top: 3px; bottom: 3px; width: 2px; }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { padding-bottom: 18px; margin: 0; }

/* Forms */
.form-shell { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
@media (max-width: 640px) { .form-shell { padding: 26px 20px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 7px; }
.field .req { color: var(--crisis); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; background: #fff; }
.field textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; margin-bottom: 6px; }
.check-item { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--ink-soft); }
.check-item input { width: 17px; height: 17px; accent-color: var(--blue); }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.radio-item { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.radio-item input { accent-color: var(--blue); width: 17px; height: 17px; }

/* Stepper (multi-step enrolment form) */
.stepper-track { display: flex; align-items: center; margin-bottom: 40px; overflow-x: auto; gap: 0; }
.stepper-node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; min-width: 84px; }
.stepper-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--line-soft); color: var(--ink-faint); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; border: 2px solid transparent; }
.stepper-node.active .stepper-circle { background: var(--blue); color: #fff; }
.stepper-node.done .stepper-circle { background: var(--navy); color: #fff; }
.stepper-label { font-size: 0.72rem; color: var(--ink-faint); text-align: center; font-weight: 600; }
.stepper-node.active .stepper-label { color: var(--navy); }
.stepper-line { flex: 1; height: 2px; background: var(--line); min-width: 20px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.step-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.repeat-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
@media (max-width: 640px) { .repeat-row { grid-template-columns: 1fr 1fr; } }
.remove-row { background: none; border: 1.5px solid var(--line); color: var(--ink-faint); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; }
.add-row-btn { background: none; border: 1.5px dashed var(--blue); color: var(--blue); border-radius: var(--radius-sm); padding: 12px 18px; font-weight: 600; cursor: pointer; font-size: 0.9rem; }

/* Success panel */
.success-panel { text-align: center; padding: 60px 24px; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 1.8rem; }

/* Calendar */
.calendar-shell { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-head button { background: var(--blue-tint); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--blue); font-size: 1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.calendar-grid .dow { font-size: 0.75rem; font-weight: 700; color: var(--ink-faint); padding-bottom: 8px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 0.9rem; cursor: pointer; border: 1px solid transparent; color: var(--ink); }
.cal-day.muted { color: var(--line); cursor: default; }
.cal-day.available { background: var(--blue-tint); font-weight: 600; color: var(--blue); }
.cal-day.available:hover { background: var(--blue); color: #fff; }
.cal-day.selected { background: var(--navy); color: #fff; }
.cal-day.today { border-color: var(--gold); }
.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 22px; }
.time-slot { padding: 10px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.time-slot:hover { border-color: var(--blue); }
.time-slot.selected { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Type selector cards (appointment types) */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 30px; }
.type-card { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 18px; cursor: pointer; }
.type-card h4 { margin: 0 0 4px; font-size: 0.98rem; color: var(--navy); font-family: var(--font-body); font-weight: 700; }
.type-card p { margin: 0; font-size: 0.84rem; color: var(--ink-faint); }
.type-card.selected { border-color: var(--blue); background: var(--blue-tint); }

/* Two-path cards (new patient) */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }
.path-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }

/* Checklist card */
.checklist-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px; }
.checklist-card h3 { color: var(--blue); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 64px 0 24px; overflow-x: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.footer-grid a, .footer-bottom a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--gold-bright); }
.footer-grid a, .footer-grid p { overflow-wrap: anywhere; word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* Breadcrumb-ish page intro */
.page-intro { background: var(--blue-tint); padding: 56px 0 48px; }
.page-intro .eyebrow { color: var(--blue); }
.page-intro .eyebrow::before { background: var(--blue); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--ink-faint); }
.divider { height: 1px; background: var(--line); border: none; margin: 40px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }
.badge-lang { display: inline-flex; gap: 8px; }
.badge-lang span { background: var(--gold-tint); color: #8A5A12; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }

/* SMC homepage hero photo — mobile/tablet */
@media (max-width: 899px) {
  .hero .hero-grid {
    gap: 30px;
  }

  .hero .hero-photo-frame {
    display: block;
    position: relative;
    width: min(100%, 300px);
    margin: 2px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-lg);
  }

  .hero .hero-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 4;
  }

  .hero .hero-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(0deg, rgba(7,28,51,0.90), rgba(7,28,51,0));
    font-weight: 600;
    font-size: 0.88rem;
    color: #fff;
  }

  .hero .hero-photo-caption span {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.74);
  }
}

/* SMC mobile hero order — photo above text */
@media (max-width: 899px) {
  .hero .hero-photo-frame {
    order: -1;
    margin: 0 auto 4px;
  }

  .hero .hero-inner {
    order: 1;
  }
}
