/* ==========================================================================
   Advance Pain Management & Wellness Center — site styles
   Colors come from the practice logo. Contrast checked to WCAG 2.2 AA.
   ========================================================================== */

/* ---- Fonts (self-hosted via LibMan, no CDN) ---- */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/lib/fonts/source-serif-4/files/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/lib/fonts/source-serif-4/files/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/lib/fonts/source-sans-3/files/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/lib/fonts/source-sans-3/files/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/lib/fonts/source-sans-3/files/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/lib/fonts/source-sans-3/files/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* ---- Tokens ---- */
:root {
  --navy: #022350;          /* logo navy — headings, header, footer */
  --navy-2: #0b3366;
  --teal: #067a85;          /* logo teal darkened for AA text/buttons (5.1:1 on white) */
  --teal-dark: #055f68;
  --teal-logo: #08909d;     /* decorative only */
  --leaf: #30a038;          /* decorative only */
  --cream: #f7f3ec;
  --cream-2: #efe8db;
  --line: #e2d9c8;
  --ink: #2b2b2b;
  --muted: #555b63;         /* 7.0:1 on white, 6.2:1 on cream */
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(2, 35, 80, .06), 0 8px 24px rgba(2, 35, 80, .07);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--white);
  --bs-link-color: var(--teal);
  --bs-link-color-rgb: 6, 122, 133;
  --bs-link-hover-color: var(--teal-dark);
  --bs-link-hover-color-rgb: 5, 95, 104;
  --bs-border-radius: 10px;
  --bs-focus-ring-color: rgba(6, 122, 133, .35);
}

html { scroll-padding-top: 1.5rem; }
body { font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .footer-brand { font-family: var(--serif); color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
h5, h6, .h5, .h6 { color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.15rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
a { text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }

/* ---- Accessibility helpers ---- */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus, .form-check-input:focus { box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); outline: 3px solid var(--teal); outline-offset: 1px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---- Buttons ---- */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.35rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem 1rem; }
.btn-primary { --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal-dark); --bs-btn-hover-border-color: var(--teal-dark); --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); --bs-btn-disabled-bg: var(--teal); --bs-btn-disabled-border-color: var(--teal); }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); border-width: 2px; }
.btn-light { --bs-btn-color: var(--navy); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--cream); --bs-btn-hover-border-color: var(--cream); --bs-btn-hover-color: var(--navy); }
.btn-outline-light { border-width: 2px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--teal); }
.link-arrow i { transition: transform .2s ease; font-size: .85em; margin-left: .25rem; }
.link-arrow:hover i { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* ---- Site banner (filled by the Worker) ---- */
.site-banner { padding: .75rem 0; font-weight: 600; text-align: center; background: var(--teal); color: #fff; }
.site-banner .container { display: flex; gap: .6rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.site-banner--warning { background: #fff3cd; color: #4d3800; border-bottom: 1px solid #e9d38b; }
.site-banner--alert { background: #8f1d1d; color: #fff; }

/* ---- Header ---- */
.topbar { background: var(--navy); color: #e6edf6; font-size: .9rem; padding: .45rem 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar i { color: #7fd0d8; margin-right: .3rem; }
.topbar-note { font-weight: 600; color: #fff; }
.main-nav { background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 0; }
.main-nav .navbar-brand img { width: 260px; height: auto; display: block; }
.main-nav .nav-link { color: var(--navy); font-weight: 600; padding: .5rem .7rem !important; border-radius: 8px; position: relative; white-space: nowrap; }
.main-nav .nav-link:hover { color: var(--teal); }
.main-nav .nav-link.active { color: var(--teal); }
@media (min-width: 1200px) {
  .main-nav .navbar-brand img { width: 230px; }
  .nav-cta .btn { padding: .55rem 1.1rem; white-space: nowrap; }
  .main-nav .nav-link.active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; background: var(--teal); border-radius: 2px; }
  .nav-cta { margin-left: .75rem; }
}
@media (max-width: 1199.98px) {
  .main-nav .navbar-collapse { padding: .75rem 0 .5rem; }
  .main-nav .nav-link { padding: .7rem .5rem !important; border-bottom: 1px solid var(--cream-2); }
  .nav-cta { margin-top: .9rem; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 575.98px) { .main-nav .navbar-brand img { width: 210px; } }
.navbar-toggler { border: 2px solid var(--navy); padding: .4rem .55rem; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23022350' stroke-linecap='round' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ---- Common section pieces ---- */
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.section-tint { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: .6rem; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--leaf); vertical-align: middle; margin-right: .6rem; position: relative; top: -2px; }
.section-head .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--leaf); vertical-align: middle; margin-left: .6rem; position: relative; top: -2px; }
.narrow { max-width: 780px; }
.fine-print { color: var(--muted); font-size: .95rem; }
.placeholder-note { background: #fff7d6; border: 1px dashed #c9a227; color: #4d3800; padding: .6rem .9rem; border-radius: 8px; font-size: .95rem; }

/* ---- Home hero ---- */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fbf9f4 100%); padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -420px; border-radius: 50%; border: 2px solid rgba(8, 144, 157, .18); }
.hero::after { content: ""; position: absolute; width: 600px; height: 600px; right: -160px; top: -240px; border-radius: 50%; border: 2px solid rgba(48, 160, 56, .15); }
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4rem); line-height: 1.08; margin-bottom: 1.25rem; }
.hero-title em { font-style: normal; color: var(--teal); }
.hero .lead { font-size: 1.25rem; color: #3b4048; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 2.25rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin: 0; color: var(--navy); font-weight: 600; }
.hero-facts i { color: var(--teal); margin-right: .4rem; }
.hero-facts a { color: var(--navy); text-decoration: none; }
.hero-facts a:hover { text-decoration: underline; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0%, #fff 55%, var(--cream-2) 100%); box-shadow: inset 0 0 0 10px #fff, 0 30px 60px rgba(2, 35, 80, .12); display: grid; place-items: center; }
.hero-mark { width: 64%; height: auto; }

/* ---- Feature cards ---- */
.feature-card { display: block; height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3e5; color: var(--ink); }
.feature-card h3 { margin: 1rem 0 .5rem; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; background: #e5f2f3; color: var(--teal); font-size: 1.3rem; flex: 0 0 auto; }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem; }
.steps h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }
.step-num { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.steps-compact li { padding: 1rem 1.25rem; }

/* ---- Providers ---- */
.provider-card { display: flex; gap: 1.5rem; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.provider-card picture { flex: 0 0 150px; }
.provider-photo { width: 150px; height: 188px; object-fit: cover; border-radius: 10px; background: var(--cream-2); flex: 0 0 auto; }
.provider-name { font-size: 1.35rem; margin: 0 0 .2rem; }
.provider-name a { color: var(--navy); text-decoration: none; }
.provider-name a:hover { text-decoration: underline; }
.provider-cred { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--muted); }
.provider-title { color: var(--teal); font-weight: 600; margin-bottom: .6rem; }
.provider-summary { color: var(--muted); }
@media (max-width: 575.98px) { .provider-card { flex-direction: column; align-items: flex-start; } }
.provider-initials { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 2.6rem; color: var(--navy); border: 1px solid var(--line); }
.profile-photo.provider-initials { font-size: 4.5rem; }
.profile-photo { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--cream-2); }
.credentials-card, .values-card, .side-card, .info-panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.credentials-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: .9rem; }
.credentials-card dt:first-child { margin-top: 0; }
.credentials-card dd { margin: .15rem 0 0; color: var(--ink); }

/* ---- Treatments list (home) ---- */
.treatment-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; margin: 0; }
.treatment-list a { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 600; text-decoration: none; height: 100%; }
.treatment-list a:hover { border-color: var(--teal); color: var(--teal); }
.treatment-list i { color: var(--teal); width: 1.25rem; text-align: center; }

/* ---- Detail pages ---- */
.jump-nav { margin-bottom: 2.5rem; }
.jump-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.jump-nav a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.jump-nav a:hover { border-color: var(--teal); color: var(--teal); }
.detail-card { display: flex; gap: 1.25rem; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.detail-card h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.detail-summary { font-weight: 600; color: var(--navy); }
.detail-card p:last-child { margin-bottom: 0; color: var(--muted); }
.treatment-stack { display: grid; gap: 1rem; }
.treatment-row { display: grid; grid-template-columns: auto 1.2fr 1fr; gap: 1.5rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.treatment-row h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.treatment-row p { margin: 0; color: var(--muted); }
.treatment-expect { background: var(--cream); border-radius: 10px; padding: 1rem 1.15rem; }
.treatment-expect h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; margin-bottom: .35rem; }
@media (max-width: 991.98px) { .treatment-row { grid-template-columns: auto 1fr; } .treatment-expect { grid-column: 1 / -1; } }

/* ---- Page hero (inner pages) ---- */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 2.25rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -300px; border-radius: 50%; border: 2px solid rgba(8, 144, 157, .16); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .75rem; }
.page-hero .lead { max-width: 46rem; color: #3b4048; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1.5rem; --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--muted); }
.breadcrumb a { color: var(--teal); }

/* ---- Prose ---- */
.prose h2 { margin-top: 2.25rem; margin-bottom: .75rem; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33383f; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .05rem; color: var(--leaf); }

/* ---- Visit / hours ---- */
.visit-card { border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.visit-info { padding: clamp(2rem, 1.5rem + 2vw, 3rem); background: #fff; }
.visit-info address { font-size: 1.1rem; margin: 1rem 0 1.25rem; }
.visit-info p i { color: var(--teal); width: 1.2rem; }
.visit-hours { padding: clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--navy); color: #fff; }
.visit-hours h3 { color: #fff; }
.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; }
.visit-hours .hours > div { border-color: rgba(255, 255, 255, .18); }

/* ---- CTA band ---- */
.cta-band { background: var(--navy); color: #e6edf6; padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -330px; border-radius: 50%; border: 2px solid rgba(127, 208, 216, .25); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Contact ---- */
.contact-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.35rem; margin: 1rem 0 .75rem; }
.contact-big { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: .25rem; }
.contact-big a { text-decoration: none; color: var(--navy); }

/* ---- Forms ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form-card fieldset { margin-bottom: 1.75rem; }
.form-card legend { font-family: var(--serif); color: var(--navy); font-weight: 600; font-size: 1.2rem; margin-bottom: .75rem; }
.form-label { font-weight: 600; color: var(--navy); }
.form-control { padding: .7rem .9rem; border-color: #b9b2a5; }
.form-control:focus { border-color: var(--teal); }
.form-check-input { border-color: #8a8478; width: 1.15em; height: 1.15em; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-label { cursor: pointer; }
.form-text { color: var(--muted); }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; }
.req { color: #a4161a; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; font-family: var(--sans); font-size: .95rem; }
.required-legend { color: var(--muted); font-size: .95rem; }
.invalid-feedback { color: #a4161a; font-weight: 600; }
.is-invalid ~ .invalid-feedback, .invalid-feedback.d-block:not(:empty) { display: block; }
.form-control.is-invalid { border-color: #a4161a; }
.consent { margin: .5rem 0 1.5rem; padding: 1rem 1rem 1rem 2.6rem; background: var(--cream); border-radius: 10px; }
.consent .form-check-input { margin-left: -1.6rem; }
.cf-turnstile { margin-bottom: 1.25rem; min-height: 65px; }
.alert-privacy { display: flex; gap: .9rem; align-items: flex-start; background: #e5f2f3; border: 1px solid #b6dadd; color: #12343a; border-radius: 10px; margin-bottom: 1.75rem; }
.alert-privacy i { color: var(--teal); font-size: 1.3rem; margin-top: .15rem; }
.error-summary { border: 2px solid #a4161a; background: #fdf2f2; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.error-summary h2 { color: #a4161a; font-family: var(--sans); }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: #a4161a; font-weight: 600; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side-card { margin-bottom: 1.25rem; }
.side-phone { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0; }
.side-phone a { text-decoration: none; color: var(--navy); }
.side-phone i { color: var(--teal); font-size: 1.1rem; }
.side-card-alert { background: #fff; border-left: 4px solid #a4161a; }
.side-card-alert i { color: #a4161a; }
.success-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; margin: 0 auto 1.5rem; font-size: 2.2rem; }
.success-mark i { color: #fff; }

/* ---- FAQ ---- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free"; font-weight: 900; color: var(--teal); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { background: #011a3d; color: #cfd8e3; padding: 4rem 0 1.5rem; font-size: .98rem; }
.footer-brand { color: #fff; font-size: 1.35rem; margin-bottom: .75rem; }
.footer-heading { color: #fff; font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 1rem; }
.footer-text { color: #cfd8e3; }
.site-footer a:not(.btn) { color: #fff; }
.footer-link { color: #fff; font-weight: 600; white-space: nowrap; }
.hours-footer > div { border-color: rgba(255, 255, 255, .12); padding: .35rem 0; }
.footer-emergency { margin-top: 3rem; padding: 1rem 1.25rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; display: flex; gap: .75rem; align-items: center; color: #fff; }
.footer-emergency i { color: #ffd166; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.footer-bottom a { color: #cfd8e3; }
.footer-bottom a:hover { color: #fff; }

/* ---- Maintenance page ---- */
.maintenance-page { background: var(--cream); min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.maintenance-card { background: #fff; max-width: 560px; width: 100%; text-align: center; padding: 3rem 2rem; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.maintenance-card img { width: 280px; margin-bottom: 2rem; }
.maintenance-phone { display: inline-block; margin-top: .5rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); text-decoration: none; }

/* ---- Print ---- */
@media print { .topbar, .main-nav .navbar-toggler, .cta-band, .site-banner, .nav-cta { display: none !important; } }

/* ---- Mobile gutters: keep wide row gutters from causing sideways scroll ---- */
.container { --bs-gutter-x: 2rem; }
@media (max-width: 767.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
@media (max-width: 991.98px) { .hero-visual { max-width: 280px; } }
@media (max-width: 575.98px) { .hero-actions .btn { width: 100%; } }

/* ---- Insurance (New Patients) ---- */
.ins-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; height: 100%; }
.ins-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.ins-card h3 i { color: var(--teal); }
.ins-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: .15rem 1.5rem; }
@media (min-width: 576px) { .ins-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .ins-list { grid-template-columns: 1fr; } }
.ins-list li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-bottom: 1px solid var(--cream); }
.ins-list li::before { content: "\f00c"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .6rem; color: var(--leaf); }
.ins-table { --bs-table-bg: transparent; font-size: 1rem; }
.ins-table thead th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; border-bottom-color: var(--line); }
.ins-table tbody th { font-weight: 600; color: var(--ink); }
.ins-table tbody td { color: var(--muted); }
.ins-table > :not(caption) > * > * { padding: .55rem .25rem; border-bottom-color: var(--cream); }
.ins-note { display: flex; gap: .85rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: 1rem 1.25rem; }
.ins-note i { color: var(--navy); font-size: 1.15rem; margin-top: .2rem; }
.ins-note-info { border-left-color: var(--teal); }
.ins-note-info i { color: var(--teal); }
