/* ==========================================================================
   Nevada Medicals & Pain Institute
   ========================================================================== */

:root {
    --navy-900: #0b2d50;
    --navy-800: #0c3457;
    --navy-700: #12416b;
    --blue-600: #155078;
    --blue-500: #2a6a96;
    --teal-500: #3b8197;
    --heading: #0f2a47;
    --text: #5b6878;
    --text-soft: #7a8796;
    --soft-bg: #f3f8fc;
    --soft-bg-2: #eaf3fa;
    --icon-bg: #e8f2fa;
    --border: #e2eaf2;
    --white: #ffffff;
    --error: #c0392b;
    --success: #1f7a52;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(11, 45, 80, .06);
    --shadow: 0 10px 30px rgba(11, 45, 80, .08);
    --header-h: 78px;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

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

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: var(--navy-800); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--navy-800); margin: 0 0 12px;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.display-title {
    font-family: var(--font-serif); font-weight: 700; color: var(--navy-900);
    font-size: clamp(34px, 4.1vw, 54px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 18px;
}

.section-title { font-size: clamp(26px, 2.5vw, 32px); font-weight: 600; letter-spacing: -.01em; color: var(--heading); }
.section-title--light { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p:last-child { margin-bottom: 0; }

.lead { font-size: 16px; line-height: 1.7; color: #4d5a6a; max-width: min(520px, 100%); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
    font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy-800); color: var(--white); box-shadow: 0 6px 16px rgba(12, 52, 87, .18); }
.btn-primary:hover { background: var(--blue-600); color: var(--white); }
.btn-outline { background: rgba(255, 255, 255, .7); color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy-800); }
.btn-white:hover { background: var(--soft-bg-2); color: var(--navy-800); }
.btn-sm { padding: 11px 22px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--navy-800);
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100; background: var(--white);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(11, 45, 80, .08); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand img { height: 58px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a:not(.btn) {
    position: relative; display: block; padding: 6px 0;
    font-size: 13.5px; font-weight: 500; color: var(--heading);
}
.main-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--navy-800); border-radius: 2px; transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:not(.btn):hover { color: var(--navy-800); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy-800); font-weight: 600; }
.nav-mobile-cta { display: none; }

.nav-toggle {
    display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border);
    background: var(--white); border-radius: var(--radius-sm); color: var(--navy-800); cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: #eef2f6; }
.hero-track { position: relative; height: clamp(440px, 34vw, 540px); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .9s ease, visibility .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right;
    transform: scale(1.04); transition: transform 7s ease;
}
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 30%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 64%);
}
.hero-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center; padding-bottom: 20px;
}
.hero-content > * { max-width: min(560px, 100%); }
.hero-content .display-title { max-width: min(680px, 100%); font-size: clamp(32px, 3.5vw, 50px); }
.hero-content .eyebrow { margin-bottom: 14px; }
.hero-content .lead { margin-bottom: 28px; }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > *:nth-child(2) { transition-delay: .1s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { transition-delay: .2s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { transition-delay: .3s; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-controls {
    position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; pointer-events: none;
}
.hero-controls .container { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 10px; pointer-events: auto; }
.hero-dot {
    width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1.5px solid var(--navy-800); background: transparent; transition: background .2s ease, transform .2s ease;
}
.hero-dot.is-active { background: var(--navy-800); }
.hero-dot:hover { transform: scale(1.2); }
.hero-arrows { display: flex; gap: 12px; pointer-events: auto; }
.hero-arrow {
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--white); color: var(--navy-900); box-shadow: 0 4px 14px rgba(0,0,0,.15);
    display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease;
}
.hero-arrow .icon { width: 18px; height: 18px; }
.hero-arrow:hover { background: var(--navy-800); color: var(--white); }

/* ==========================================================================
   Feature strip (3 services under hero)
   ========================================================================== */
.features { background: var(--white); padding: 34px 0 38px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature {
    text-align: center; padding: 10px 36px;
    display: flex; flex-direction: column; align-items: center;
}
.feature + .feature { border-left: 1px solid var(--border); }
.icon-circle {
    width: 70px; height: 70px; border-radius: 50%; background: var(--icon-bg);
    display: inline-flex; align-items: center; justify-content: center; color: var(--navy-800);
    margin-bottom: 18px; transition: background .25s ease, color .25s ease, transform .25s ease;
}
.icon-circle .icon { width: 32px; height: 32px; }
.feature:hover .icon-circle { background: var(--navy-800); color: var(--white); transform: translateY(-3px); }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 14px; max-width: 280px; margin-bottom: 16px; }
.feature .link-arrow { margin-top: auto; }

/* ==========================================================================
   About split
   ========================================================================== */
.about { background: var(--soft-bg); padding: 34px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img {
    width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.split-body .section-title { margin-bottom: 18px; max-width: 420px; }
.split-body > p { font-size: 14.5px; max-width: 470px; }

.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 22px 0 28px; max-width: 470px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #3c4a5a; }
.check-list .icon { width: 19px; height: 19px; color: var(--teal-500); }

/* ==========================================================================
   Service cards
   ========================================================================== */
.services { padding: 46px 0 64px; background: var(--white); }
.services .section-head p { font-size: 14.5px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-media { overflow: hidden; }
.service-card-media img { width: 100%; height: 132px; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { font-size: 17px; margin-bottom: 8px; }
.service-card-body p { font-size: 13.5px; margin-bottom: 18px; }
.service-card-body .link-arrow { margin-top: auto; }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-us {
    position: relative; padding: 36px 0 40px; text-align: center; color: var(--white);
    background-color: var(--navy-800); background-position: center 60%; background-size: cover; background-repeat: no-repeat;
    isolation: isolate;
}
.why-us::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(16, 58, 96, .72) 0%, rgba(12, 52, 87, .62) 55%, rgba(11, 45, 80, .78) 100%);
}
.why-us .section-title { margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.why-item {
    display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left;
    padding: 6px 18px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.92);
}
.why-item + .why-item { border-left: 1px solid rgba(255, 255, 255, .28); }
.why-icon { width: 34px; height: 34px; color: var(--white); stroke-width: 1.4; }

/* ==========================================================================
   Book CTA
   ========================================================================== */
.book-cta { padding: 14px 0; background: var(--white); }
.book-cta-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: 26px; align-items: stretch; }
.book-cta-media img { width: 100%; height: 100%; min-height: 200px; max-height: 260px; object-fit: cover; object-position: center 45%; border-radius: var(--radius); }
.book-cta-box {
    background: var(--soft-bg-2); border-radius: var(--radius-lg); padding: 30px 32px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.book-cta-box .eyebrow { margin-bottom: 8px; }
.cta-title { font-size: clamp(21px, 1.9vw, 25px); margin-bottom: 10px; }
.book-cta-box p:not(.eyebrow) { font-size: 14px; max-width: 380px; margin-bottom: 20px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); margin-top: 26px; font-size: 13px; }
.footer-top {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 26px 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-brand img { height: 62px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.footer-nav a, .footer-legal a, .footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-nav a:hover, .footer-legal a:hover, .footer-contact a:hover { color: var(--white); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--white); display: inline-flex; transition: opacity .2s ease, transform .2s ease; }
.footer-social a:hover { opacity: .75; transform: translateY(-2px); color: var(--white); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-bottom {
    padding: 20px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px 40px; align-items: start;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-contact .footer-location-name { color: var(--white); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 14px 0 22px; }
.footer-contact li { display: flex; align-items: center; gap: 9px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; }
.footer-legal li + li::before { content: "|"; margin: 0 14px; color: rgba(255, 255, 255, .4); }
.copyright { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-banner { position: relative; overflow: hidden; background: #eef2f6; }
.page-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 38%; }
.page-banner::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.4) 56%, rgba(255,255,255,0) 70%);
}
.page-banner--plain { background: var(--soft-bg); }
.page-banner--plain::before { display: none; }
.page-banner-content { position: relative; z-index: 2; padding: 64px 24px 70px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.page-banner-content > * { max-width: 580px; }
.page-banner--plain .page-banner-content { min-height: 0; padding: 54px 24px; }
.page-banner .display-title { font-size: clamp(32px, 3.4vw, 46px); }
.page-banner .lead { margin-bottom: 0; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 18px; color: var(--text-soft); }
.breadcrumb a { color: var(--text); font-weight: 500; }
.breadcrumb .icon { width: 13px; height: 13px; }
.breadcrumb span { color: var(--navy-800); font-weight: 600; }

.section { padding: 72px 0; }
.section--soft { background: var(--soft-bg); }
.section--tight { padding: 52px 0; }

.clinic-gallery-section { padding: 64px 0; background: var(--soft-bg); }
.clinic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.clinic-photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--white); }
.clinic-photo img { width: 100%; height: 280px; object-fit: cover; object-position: center 30%; display: block; transition: transform .5s ease; }
.clinic-photo:nth-child(2) img { object-position: center 50%; }
.clinic-photo:hover img { transform: scale(1.04); }

.provider-layout {
    display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 48px; align-items: start;
}
.provider-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow); text-align: center; position: sticky; top: calc(var(--header-h) + 20px);
}
.provider-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 8%; }
.provider-card-body { padding: 22px 22px 26px; }
.provider-card h2 { font-size: 18px; margin-bottom: 10px; }
.provider-credentials { font-size: 13px; line-height: 1.55; color: var(--navy-800); font-weight: 500; margin-bottom: 16px; }
.provider-quote {
    font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--navy-800);
    margin: 0 0 20px; padding: 0; border: 0; font-weight: 600;
}
.provider-bio .section-title { margin-bottom: 18px; }
.provider-bio p { font-size: 14.5px; margin-bottom: 14px; max-width: none; }
.provider-bio p:last-child { margin-bottom: 0; }

.provider-teaser { background: var(--white); padding: 20px 0 52px; }
.provider-teaser-inner {
    display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
    background: var(--soft-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px 28px 22px 22px; box-shadow: var(--shadow-sm);
}
.provider-teaser-inner img {
    width: 100%; height: 260px; object-fit: cover; object-position: center 12%;
    border-radius: var(--radius); background: var(--white);
}
.provider-teaser .section-title { margin-bottom: 8px; font-size: clamp(22px, 2.2vw, 28px); }
.provider-teaser .provider-credentials { margin-bottom: 12px; }
.provider-teaser .provider-quote { margin-bottom: 18px; }

.location-photo { width: 100%; height: 220px; object-fit: cover; object-position: center 32%; border-radius: var(--radius-lg); display: block; }

.offerings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offering {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.offering:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdeeb; }
.offering .icon-circle { width: 58px; height: 58px; margin-bottom: 16px; }
.offering .icon-circle .icon { width: 26px; height: 26px; }
.offering:hover .icon-circle { background: var(--navy-800); color: var(--white); }
.offering h3 { font-size: 17px; margin-bottom: 8px; }
.offering p { font-size: 14px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 0 8px; text-align: center; }
.step-number {
    width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px; position: relative; z-index: 1;
    background: var(--white); border: 2px solid var(--navy-800); color: var(--navy-800);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 27px; left: calc(50% + 34px); right: calc(-50% + 34px);
    border-top: 2px dashed #bcd0e2;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin: 0; }

.faq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.faq-wrap .section-title { margin-bottom: 14px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; background: none; border: none; cursor: pointer; text-align: left;
    font-size: 15px; font-weight: 600; color: var(--heading);
}
.faq-question .icon { width: 18px; height: 18px; color: var(--navy-800); transition: transform .25s ease; }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 22px 18px; margin: 0; font-size: 14px; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--border); text-align: center; box-shadow: var(--shadow-sm); }
.value-card .icon-circle { margin-bottom: 16px; }
.value-card h3 { font-size: 18px; }
.value-card p { font-size: 14px; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.stat { text-align: center; padding: 26px 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.stat strong { display: block; font-family: var(--font-serif); font-size: 36px; color: var(--navy-800); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 13.5px; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-card > h2 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { font-size: 14px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label, .form-legend { font-size: 13px; font-weight: 600; color: var(--heading); }
.form-group label .req { color: var(--error); }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid #d3dee9; border-radius: 8px; background: #fbfdff;
    color: var(--heading); font-size: 14.5px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control::placeholder { color: #9aa6b4; }
.form-control:focus { outline: none; border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 4px rgba(42, 106, 150, .12); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control {
    appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c3457' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.form-control.is-invalid, .is-invalid .form-control { border-color: var(--error); background: #fffafa; }
.field-error { font-size: 12.5px; color: var(--error); }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
    display: inline-block; padding: 10px 18px; border: 1px solid #d3dee9; border-radius: 999px;
    font-size: 13.5px; font-weight: 500; color: var(--heading); background: #fbfdff; transition: all .2s ease;
}
.radio-pill input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy-800); flex-shrink: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--text-soft); margin: 0; }

.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14px; }
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.alert-error { background: #fdf0ee; color: #8c2a1f; border: 1px solid #f5cfc9; }
.alert-success { background: #ecf7f1; color: #165c3d; border: 1px solid #c4e6d3; }
.alert-info { background: var(--soft-bg-2); color: var(--navy-800); border: 1px solid #cfe0ee; }

.success-card { text-align: center; padding: 48px 36px; }
.success-icon {
    width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: #e3f4ea; color: var(--success);
    display: flex; align-items: center; justify-content: center;
}
.success-icon .icon { width: 38px; height: 38px; }
.success-card h2 { font-size: 26px; }
.reference {
    display: inline-block; margin: 6px 0 18px; padding: 10px 18px; border-radius: 8px;
    background: var(--soft-bg-2); color: var(--navy-800); font-weight: 700; letter-spacing: .06em;
}
.summary-list { text-align: left; max-width: 420px; margin: 0 auto 26px; border: 1px solid var(--border); border-radius: var(--radius); }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: 14px; }
.summary-list li + li { border-top: 1px solid var(--border); }
.summary-list strong { color: var(--heading); font-weight: 600; text-align: right; }

/* ---------- Sidebar / contact cards ---------- */
.side-stack { display: grid; gap: 22px; }
.info-card { background: var(--navy-800); color: rgba(255,255,255,.85); border-radius: var(--radius-lg); padding: 30px; }
.info-card h3 { color: var(--white); font-size: 19px; margin-bottom: 18px; }
.info-card a { color: var(--white); }
.info-list { display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; font-size: 14px; }
.info-list .icon { width: 20px; height: 20px; color: #9cc3e2; margin-top: 2px; }
.info-list strong { display: block; color: var(--white); font-weight: 600; font-size: 13px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hours-table td:last-child { text-align: right; color: var(--white); font-weight: 500; }
.hours-table tr:last-child td { border-bottom: none; }
.soft-card { background: var(--soft-bg-2); border-radius: var(--radius-lg); padding: 28px 30px; }
.soft-card h3 { font-size: 18px; margin-bottom: 14px; }
.soft-card .check-list { grid-template-columns: 1fr; margin: 0; gap: 11px; }

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: -56px; position: relative; z-index: 3; }
.contact-card {
    background: var(--white); border-radius: var(--radius); padding: 26px 22px; text-align: center;
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact-card .icon-circle { width: 56px; height: 56px; margin-bottom: 14px; }
.contact-card .icon-circle .icon { width: 24px; height: 24px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; margin: 0; }
.map-frame { width: 100%; height: 320px; background: var(--soft-bg-2); border: 0; border-radius: var(--radius-lg); display: block; }

/* ---------- Legal pages ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose .updated { font-size: 13px; color: var(--text-soft); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 100px 0; }
.not-found .code { font-family: var(--font-serif); font-size: 110px; line-height: 1; color: var(--navy-800); margin-bottom: 10px; }
.not-found .btn-group { justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .header-inner { gap: 20px; }
    .main-nav ul { gap: 22px; }
    .main-nav a:not(.btn) { font-size: 13px; }
    .footer-top { flex-wrap: wrap; justify-content: center; text-align: center; }
    .footer-nav { justify-content: center; }
}

@media (max-width: 991px) {
    :root { --header-h: 70px; }
    .brand img { height: 50px; }
    .header-cta { display: none !important; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
        background: var(--white); flex-direction: column; justify-content: flex-start; padding: 16px 24px 32px;
        overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease;
        border-top: 1px solid var(--border);
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a:not(.btn) { padding: 16px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
    .main-nav a:not(.btn)::after { display: none; }
    .nav-mobile-cta { display: inline-flex; margin-top: 24px; }
    body.nav-open { overflow: hidden; }

    .hero-slide::before { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 45%, rgba(255,255,255,.35) 75%, rgba(255,255,255,.1) 100%); }
    .features-grid, .cards-grid, .offerings-grid, .values-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature { padding: 22px 16px; }
    .feature + .feature { border-left: none; border-top: 1px solid var(--border); }
    .cards-grid, .offerings-grid, .clinic-grid { grid-template-columns: repeat(2, 1fr); }
    .clinic-photo:first-child { grid-column: 1 / -1; }
    .clinic-photo:first-child img { height: 320px; }
    .split, .faq-wrap, .form-layout, .book-cta-grid, .provider-layout, .provider-teaser-inner { grid-template-columns: 1fr; gap: 32px; }
    .provider-card { position: static; max-width: 360px; margin: 0 auto; }
    .provider-teaser-inner { padding: 18px; }
    .provider-teaser-inner img { height: 320px; max-width: 320px; margin: 0 auto; }
    .about { padding: 56px 0; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .why-item:nth-child(3) { border-left: none; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
    .step::after { display: none; }
    .stats, .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .book-cta-media img { max-height: 300px; }
    .page-banner::before { background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 55%, rgba(255,255,255,.4) 100%); }
}

@media (max-width: 767px) {
    :root { --header-h: 64px; }
    body { font-size: 15px; }
    .container { padding: 0 16px; overflow-wrap: break-word; }
    .hero-content,
    .hero-content > *,
    .split-body,
    .provider-teaser-inner,
    .provider-teaser-inner > *,
    .section-head,
    .book-cta-box { min-width: 0; max-width: 100%; }
    .brand { flex: 0 1 auto; min-width: 0; }
    .brand img { height: 44px; }
    .header-inner { height: var(--header-h); gap: 12px; justify-content: space-between; }
    .header-cta { display: none !important; }
    .nav-toggle {
        display: inline-flex !important; flex-shrink: 0; width: 42px; height: 42px;
        background: var(--soft-bg); border-color: #c5d4e2;
    }
    .main-nav { flex: none; width: 100%; }

    .display-title,
    .section-title,
    .cta-title,
    .hero-content .display-title {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: manual;
    }
    .display-title, .hero-content .display-title { font-size: 25px; line-height: 1.2; margin-bottom: 12px; }
    .section-title { font-size: 24px; line-height: 1.25; }
    .lead { font-size: 15px; }

    .btn { white-space: nowrap; text-align: center; padding: 11px 18px; font-size: 13.5px; gap: 8px; }
    .btn .icon { width: 15px; height: 15px; }
    .btn-sm { padding: 10px 16px; font-size: 13px; }
    .btn-group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
    .btn-group .btn { flex: 0 0 auto; width: auto; }

    /* Hero: photo on top, copy underneath so nothing is clipped */
    .hero { overflow: hidden; }
    .hero-track { height: auto; }
    .hero-slide {
        display: none;
        position: relative;
        inset: auto;
        height: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .hero-slide.is-active { display: block; }
    .hero-slide img {
        position: relative;
        inset: auto;
        width: 100%;
        height: 210px;
        object-fit: cover;
        object-position: center 28%;
        transform: none;
    }
    .hero-slide.is-active img { transform: none; }
    .hero-slide::before {
        top: 0; right: 0; left: 0; bottom: auto;
        height: 210px;
        background: linear-gradient(180deg, rgba(11,45,80,.18) 0%, rgba(255,255,255,.05) 55%, #fff 100%);
    }
    .hero-content {
        height: auto; justify-content: flex-start;
        padding: 18px 16px 64px; background: var(--white);
        width: 100%;
    }
    .hero-content { align-items: center; text-align: center; }
    .hero-content .lead { margin-left: auto; margin-right: auto; }
    .hero-content .btn-group { justify-content: center; }
    .hero-controls { bottom: 18px; }
    .hero-controls .container { justify-content: center; gap: 18px; }
    .hero-arrows { gap: 8px; }
    .hero-arrow { width: 34px; height: 34px; }
    .hero-arrow .icon { width: 16px; height: 16px; }
    .hero-content > *,
    .hero-content .display-title { max-width: 100%; }
    .hero-content .lead {
        margin-bottom: 18px;
        font-size: 14.5px;
        line-height: 1.65;
        max-width: 100%;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .features { padding: 8px 0 32px; background: var(--soft-bg); }
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 20px; }
    .feature {
        padding: 18px 12px 16px; background: var(--white);
        border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
    }
    .feature + .feature { border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
    .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .feature h3 { font-size: 15.5px; margin-bottom: 6px; }
    .feature p { font-size: 12.5px; line-height: 1.5; margin: 0 auto 12px; max-width: 100%; }
    .feature .link-arrow { font-size: 12.5px; }
    .feature .icon-circle { width: 46px; height: 46px; margin-bottom: 10px; }
    .feature .icon-circle .icon { width: 22px; height: 22px; }
    .icon-circle { width: 58px; height: 58px; margin-bottom: 12px; }
    .icon-circle .icon { width: 26px; height: 26px; }
    .split-body p,
    .section-head p,
    .service-card-body p,
    .book-cta-box p:not(.eyebrow) { max-width: 100%; }

    .about { padding: 40px 0; }
    .split { gap: 22px; }
    .split-media img { aspect-ratio: 16 / 10; }
    .check-list { grid-template-columns: 1fr; gap: 10px; margin: 16px 0 22px; }

    .provider-teaser { padding: 0 0 40px; }
    .provider-teaser-inner {
        grid-template-columns: 1fr; gap: 18px; padding: 18px;
        text-align: center;
    }
    .provider-teaser-inner img {
        width: 168px; height: 168px; max-width: 168px; margin: 0 auto;
        border-radius: 50%; object-position: center 10%;
    }
    .provider-teaser .section-title { font-size: 22px; }
    .provider-teaser .provider-credentials { font-size: 12.5px; line-height: 1.5; }
    .provider-teaser p { overflow-wrap: break-word; }
    .provider-teaser .btn-group { margin-top: 4px; justify-content: center; }

    .services { padding: 40px 0 48px; }
    .section { padding: 48px 0; }
    .section-head { margin-bottom: 24px; }
    .cards-grid, .offerings-grid, .stats, .contact-cards, .clinic-grid { grid-template-columns: 1fr; }
    .clinic-photo:first-child { grid-column: auto; }
    .clinic-photo img, .clinic-photo:first-child img { height: 200px; object-position: center 20%; }
    .clinic-gallery-section { padding: 48px 0; }
    .service-card-media img { height: 160px; }

    .why-grid { grid-template-columns: 1fr; }
    .why-item { justify-content: flex-start; padding: 14px 4px; gap: 14px; }
    .why-item br { display: none; }
    .why-item + .why-item { border-left: none; border-top: 1px solid rgba(255,255,255,.2); }
    .why-us { padding: 36px 0; }
    .why-us .section-title { margin-bottom: 18px; }

    .book-cta { padding: 8px 0 28px; }
    .book-cta-media img { max-height: 180px; min-height: 160px; }
    .book-cta-box { padding: 22px 20px; }
    .cta-title { font-size: 22px; }

    .steps { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; }
    .page-banner-content { padding: 36px 20px 56px; min-height: 0; }
    .page-banner .display-title { font-size: clamp(26px, 7vw, 32px); }
    .contact-cards { margin-top: -36px; grid-template-columns: 1fr 1fr; }

    .footer-top { padding: 28px 0 20px; gap: 18px; }
    .footer-brand img { height: 52px; }
    .footer-nav { justify-content: center; gap: 10px 16px; }
    .footer-bottom { grid-template-columns: 1fr; gap: 22px; }
    .footer-contact { align-items: center; text-align: center; gap: 8px; }
    .footer-contact li { justify-content: center; }
    .footer-base { flex-direction: column-reverse; text-align: center; padding-bottom: 28px; }
    .footer-legal { justify-content: center; flex-wrap: wrap; }
    .copyright { text-align: center; }
}

@media (max-width: 430px) {
    .contact-cards { grid-template-columns: 1fr; }
    .hero-slide img, .hero-slide::before { height: 190px; }
    .display-title,
    .hero-content .display-title { font-size: 23px; }
}

@media (max-width: 767px) {
    .site-header { background: #fff; z-index: 200; }
    .header-inner {
        display: grid;
        grid-template-columns: 1fr 42px;
        align-items: center;
    }
    .brand { grid-column: 1; }
    .header-cta { display: none !important; }
    .main-nav { grid-column: 1 / -1; }
    .nav-toggle {
        display: inline-flex !important;
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        color: var(--navy-800);
        background: #fff;
        border: 1.5px solid var(--navy-800);
        z-index: 201;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
