:root {
    --navy: #102c48;
    --ink: #162e43;
    --body: #3d5569;
    --blue: #145b85;
    --teal: #006a70;
    --aqua: #99e8dc;
    --wash: #eef5f8;
    --line: #cbdbe3;
    --radius: 14px;
    --shadow: 0 8px 30px rgb(17 50 74 / 8%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body {
    margin: 0;
    background: white;
    color: var(--ink);
    font: 400 1.125rem/1.58 var(--type);
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.16; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); letter-spacing: -.026em; }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.9rem); letter-spacing: -.018em; }
h3 { font-size: clamp(1.25rem, 1.55vw, 1.5rem); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #bd5400; outline-offset: 4px; }
:target { scroll-margin-top: 1rem; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 24px; height: 24px; flex: none; }
.wrap { width: min(76rem, calc(100% - clamp(32px, 9vw, 144px))); margin-inline: auto; }
.skip { position: fixed; inset: -100px auto auto 12px; background: white; padding: 12px; z-index: 5; }
.skip:focus { top: 12px; }

.mast { background: white; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; }
.brand span { display: grid; }
.brand b { font-size: 1.72rem; font-weight: 750; line-height: 1.02; }
.brand small { font-size: .925rem; font-weight: 600; line-height: 1.3; }
#site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2.3rem); }
#site-nav a { font-size: 1.02rem; font-weight: 600; }
#site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .32em; }
.button, .outline-button, .nav-visit, .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    min-height: 48px; max-width: 100%; overflow-wrap: anywhere; padding: .72rem 1.18rem; border: 1px solid transparent;
    border-radius: 8px; font: 650 1rem/1.3 var(--type); cursor: pointer;
}
.button, .nav-visit { color: white; background: var(--blue); }
.button:hover, .nav-visit:hover { background: #104568; text-decoration: none; }
.nav-visit svg { width: 19px; height: 19px; }
.menu-toggle { border-color: var(--line); background: white; color: var(--navy); }

.hero {
    position: relative; isolation: isolate; overflow: hidden; color: white;
    background: radial-gradient(ellipse at 94% 55%, #214f64 0, transparent 50%), var(--navy);
}
.hero::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 36rem; height: 36rem; right: -13rem; top: -25rem; border-radius: 50%;
    border: 1px solid rgb(166 227 231 / 16%);
    box-shadow: 0 0 0 3.5rem rgb(166 227 231 / 4%), 0 0 0 7rem rgb(166 227 231 / 4%);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(2rem, 4.8vw, 5rem); padding-block: clamp(3rem, 5vw, 5rem) clamp(4rem, 6.1vw, 5.7rem); }
.hero-grid > *, .detail > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--teal); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.eyebrow i { display: none; }
.hero .eyebrow { color: var(--aqua); }
.hero-copy h1 { margin-block: .85rem 1.25rem; color: white; font-size: clamp(3.25rem, 4.9vw, 4.65rem); font-weight: 710; line-height: 1.06; }
.hero-copy h1 span { display: block; }
.hero-accent { color: var(--aqua); }
.lead, .page-head > p:last-child { font-size: clamp(1.15rem, 1.5vw, 1.32rem); line-height: 1.54; max-width: 54ch; color: var(--body); }
.hero .lead { color: #e8f1f5; max-width: 44ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero .button { background: var(--aqua); color: var(--navy); }
.hero .button:hover { background: #bcf3e9; }
.outline-button { background: transparent; color: white; border-color: #86a4b5; }
.outline-button:hover { background: #214761; text-decoration: none; }
.text-link, .back { display: inline-flex; align-items: center; gap: .65rem; color: var(--blue); font-size: 1.05rem; font-weight: 650; }
.text-link span, .card-arrow, .row-arrow { line-height: 1; }

.care-mosaic {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: .65rem; width: min(100%, 32rem); justify-self: end;
}
.hero-plate, .care-scenes img { border-radius: 12px; overflow: hidden; }
.hero-plate { display: flex; flex-direction: column; background: #f6fbfd; }
.hero-plate > img { width: 100%; height: auto; aspect-ratio: 350/306; object-fit: cover; }
.hero-plate figcaption { display: grid; grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; gap: .12rem; padding: .85rem 1.05rem 1rem; border-bottom: 4px solid var(--aqua); }
.hero-plate strong { font-size: clamp(1.08rem, 1.4vw, 1.3rem); color: var(--navy); line-height: 1.25; }
.hero-plate figcaption span { font-size: .985rem; color: var(--body); line-height: 1.35; }
.care-scenes { display: grid; grid-template-rows: 1fr 1fr; gap: .65rem; min-height: 0; }
.care-scenes img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.care-scenes:only-child { grid-column: 1/-1; grid-template: auto / repeat(2, 1fr); }

.contact-band { position: relative; margin-top: -1.65rem; }
.band-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: white; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.band-inner a { display: flex; align-items: center; gap: clamp(.55rem, 1.3vw, 1.1rem); padding: 1.15rem clamp(.9rem, 2vw, 1.8rem); }
.band-inner a + a { border-left: 1px solid var(--line); }
.band-inner svg { width: 25px; height: 25px; color: var(--teal); }
.band-inner small, .band-inner b { display: block; }
.band-inner small { color: var(--body); font-size: .97rem; line-height: 1.4; }
.band-inner b { color: var(--navy); font-size: clamp(1.07rem, 1.4vw, 1.28rem); font-weight: 650; }
.band-inner a:hover { text-decoration: none; }
.band-inner a:hover b { text-decoration: underline; text-underline-offset: .2em; }

.section { padding-block: clamp(2.8rem, 4.8vw, 4.5rem); }
.section-title, .directory-head { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; margin-bottom: 1.6rem; }
.eyebrow + h2 { margin-top: .36rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.service-card, .service-row, .doctor, .featured a { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.service-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; position: relative; padding: 1.25rem 1.15rem 1.5rem; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e2f5f0; color: #00665e; margin-bottom: 1.1rem; }
.service-card:nth-child(4n+2) .service-icon { color: #654693; background: #efe9fa; }
.service-card:nth-child(4n+3) .service-icon { color: #26548a; background: #e5effa; }
.service-card:nth-child(4n) .service-icon { color: #8d4b20; background: #faebdc; }
.service-icon svg { width: 28px; height: 28px; }
.service-card small, .service-row small, .doctor small, .featured small { display: block; color: var(--body); font-size: .98rem; line-height: 1.4; }
.service-card h3, .featured h3, .doctor h3 { margin-top: .38rem; }
.card-arrow { position: absolute; top: 1.5rem; right: 1.05rem; color: var(--blue); font-size: 1.35rem; }
.service-card:hover, .service-row:hover, .featured a:hover { text-decoration: none; border-color: #6a96ac; box-shadow: var(--shadow); }
.service-card:hover h3, .featured a:hover h3, .service-row:hover h2 { color: var(--blue); text-decoration: underline; text-underline-offset: .16em; }

.team-home { background: var(--wash); }
.featured { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.featured a { display: flex; align-items: center; gap: 1rem; padding: .9rem; min-width: 0; }
.featured img { width: clamp(72px, 7vw, 104px); aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; }
.featured a > div, .service-row > div { min-width: 0; overflow-wrap: anywhere; }
.featured h3 { font-size: 1.28rem; }
.mini-story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 5vw, 5rem); }
.mini-story p:not(.eyebrow) { max-width: 58ch; margin-bottom: 1rem; color: var(--body); }

footer { background: var(--navy); color: #ecf3f7; padding-top: 2.6rem; font-size: 1.02rem; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-weight: 700; font-size: 1.55rem; line-height: 1.2; }
.footer-main p { max-width: 38ch; margin-top: .75rem; color: #d1e0e9; }
.footer-main > div { min-width: 0; overflow-wrap: anywhere; }
.footer-main h2 { font-size: 1.13rem; color: var(--aqua); margin-bottom: .65rem; }
.footer-main > div > a:not(.footer-brand) { display: block; padding-block: .23rem; }
.footer-base { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; border-top: 1px solid #496274; padding-block: 1rem; margin-top: 2rem; color: #dce8ef; font-size: .98rem; }
.footer-base span { margin-right: auto; }

.page-head { padding-block: clamp(2.7rem, 5vw, 4.8rem) 2rem; }
.page-head h1, .detail h1, .prose h1 { margin-block: .65rem 1.05rem; }
.page-head > p:last-child { max-width: 65ch; }
.service-list, .doctors-wrap { padding-bottom: 4rem; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-row { display: flex; align-items: start; gap: 1rem; padding: clamp(1.25rem, 2vw, 1.8rem); }
.service-row > svg { width: 42px; height: 42px; padding: 8px; color: var(--teal); background: #e2f5f0; border-radius: 9px; }
.service-row h2 { margin-top: .28rem; font-size: 1.4rem; letter-spacing: 0; }
.service-row p { margin-top: .65rem; color: var(--body); }
.row-arrow { margin-left: auto; color: var(--blue); font-size: 1.3rem; }

.detail { display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(3rem, 6vw, 5.5rem); }
.detail .lead, .detail .lead + p { margin-bottom: 1.35rem; }
.detail-photo { justify-self: center; width: min(100%, 360px); }
.detail-photo img { width: 100%; border-radius: var(--radius); }
.back { margin-bottom: 1.3rem; }
.service-crumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; color: var(--body); font-size: 1rem; }
.service-crumbs a, .address p a { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }
.feature-list { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; padding-left: 1.2rem; margin-block: 1.25rem; }
.section > h2 + p { margin-top: .8rem; }
.directory-head { align-items: center; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.directory-head h2 { font-size: 1.6rem; }
.search, label { font-size: 1rem; font-weight: 600; color: var(--navy); }
.search { display: flex; align-items: center; gap: .7rem; min-width: 0; max-width: 100%; }
.search input { width: min(100%, 15rem); min-width: 0; }
input, select { padding: .65rem .8rem; border: 1px solid #7892a4; border-radius: 6px; background: white; font-size: 1.05rem; color: var(--ink); max-width: 100%; }
.doctor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.doctor { overflow: hidden; }
.doctor img { width: 100%; aspect-ratio: 350/306; object-fit: cover; }
.doctor > div { padding: 1.15rem; }
.doctor small { color: var(--teal); font-weight: 600; }
.doctor p { color: var(--body); margin-top: .65rem; }
.note { padding: 1rem 1.2rem; background: var(--wash); border-radius: 8px; margin-top: 1.55rem; }
.note a, .address > a:not(.text-link), .prose a, .desk-phone { text-decoration: underline; text-underline-offset: .17em; }

.visit { align-items: start; }
.desk { padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--navy); color: #edf6fb; border-radius: var(--radius); }
.desk h2 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); color: white; margin-block: .6rem 1.2rem; }
.desk .eyebrow { color: var(--aqua); }
.desk-phone { display: block; font-size: clamp(1.32rem, 2.25vw, 1.8rem); font-weight: 600; margin-block: .5rem; }
.desk p:last-child { border-top: 1px solid #4b667b; padding-top: 1rem; margin-top: 1.15rem; }
.address { border-top: 1px solid var(--line); margin-top: 1.65rem; padding-top: 1.3rem; }
.address h2, .prose h2 { font-size: 1.5rem; margin-bottom: .55rem; }
.address p { margin-bottom: .55rem; color: var(--body); }
.prose { max-width: 48rem; padding-block: 3.5rem; }
.prose p { margin-block: 1rem; }
.prose h2 { margin-top: 1.75rem; }
#booking-form { display: grid; gap: .9rem; }
#booking-form label:not(.consent) { display: grid; gap: .32rem; }
.consent input { margin-right: .4rem; }

@media (max-width: 64rem) {
    .hero-grid { grid-template-columns: 1fr .92fr; gap: 1.7rem; }
    .hero-copy h1 { font-size: clamp(2.7rem, 5.2vw, 3.65rem); }
    .featured { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .doctor-grid, .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .band-inner a { padding-inline: .9rem; }
}

@media (max-width: 48rem) {
    .mast-inner { flex-wrap: wrap; gap: 0; padding-block: .7rem; min-height: 70px; }
    .brand img { width: 43px; }
    .brand b { font-size: 1.4rem; }
    #site-nav { width: 100%; flex-wrap: wrap; gap: .4rem 1.3rem; padding-block: .75rem .25rem; }
    #site-nav a { padding-block: .55rem; }
    #site-nav[data-menu=closed] { display: none; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 2.25rem 3rem; gap: 1.6rem; }
    .hero-copy h1 { font-size: clamp(2.65rem, 7vw, 3.75rem); }
    .care-mosaic { justify-self: start; width: min(100%, 30rem); }
    .contact-band { margin-top: -1rem; }
    .band-inner { grid-template-columns: minmax(0, 1fr); }
    .band-inner a { padding: .8rem 1rem; }
    .band-inner a + a { border-left: 0; border-top: 1px solid var(--line); }
    .band-inner a > span { flex: 1; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .15rem .75rem; min-width: 0; overflow-wrap: anywhere; }
    .section-title, .directory-head { flex-wrap: wrap; align-items: start; gap: .7rem; }
    .service-list, .detail, .mini-story { grid-template-columns: minmax(0, 1fr); }
    .detail { padding-block: 2.6rem; }
    .detail-photo { justify-self: start; }
    .mini-story { gap: 1rem; }
    .footer-main { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-main > div:first-child { grid-column: 1/-1; }
    .footer-base span { width: 100%; }
}

@media (max-width: 36rem) {
    .actions { gap: .55rem; }
    .actions a { padding-inline: .8rem; }
    .hero-plate figcaption { padding: .65rem .75rem; }
    .care-mosaic, .care-scenes { gap: .45rem; }
    .hero-plate, .care-scenes img { border-radius: 8px; }
    .service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .65rem; }
    .service-card { padding: .95rem .8rem 1.05rem; }
    .card-arrow { right: .8rem; top: 1.15rem; }
    .featured, .doctor-grid { grid-template-columns: 1fr; }
    .featured img { width: 88px; }
    .doctor { display: flex; flex-wrap: wrap; align-items: start; padding: .8rem; gap: .85rem; }
    .doctor img { width: max(76px, 28%); border-radius: 8px; }
    .doctor > div { min-width: 0; flex: 1 1 10rem; padding: 0; overflow-wrap: anywhere; }
    .search { flex-wrap: wrap; }
    .footer-main { gap: 1.5rem 1rem; }
}
@media (max-width: 24rem) {
    .service-grid, .footer-main { grid-template-columns: 1fr; }
    .actions { gap: .55rem; }
    .actions a { padding-inline: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
