:root {
    --ink: #14313f;
    --muted: #607481;
    --line: #dcebef;
    --paper: #f8fbfc;
    --white: #ffffff;
    --teal: #12a9b2;
    --teal-dark: #07818d;
    --aqua: #e7f8fa;
    --mist: #f1f7f8;
    --coral: #d97967;
    --cream: #fff8f0;
    --shadow: 0 24px 64px rgba(20, 49, 59, .12);
    --banner-height: clamp(340px, 36vw, 500px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(20px, 5vw, 72px);
    background: rgba(248, 251, 252, .94);
    border-bottom: 1px solid rgba(220, 235, 239, .85);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    background: var(--teal);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(18, 169, 178, .18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--teal-dark);
}

.header-actions,
.hero-actions,
.contact-actions,
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button {
    padding: 0 18px;
    font-size: 14px;
}

.icon-button {
    width: 46px;
    color: var(--teal-dark);
    border-color: var(--line);
    background: var(--white);
}

.button:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--white);
    background: var(--teal);
    box-shadow: 0 12px 28px rgba(18, 169, 178, .24);
}

.button-primary:hover {
    background: var(--teal-dark);
}

.button-secondary {
    color: var(--teal-dark);
    background: var(--white);
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: rgba(217, 121, 103, .38);
    box-shadow: 0 12px 26px rgba(217, 121, 103, .10);
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 88px 0;
}

.top-banner {
    position: relative;
    width: 100%;
    height: var(--banner-height);
    margin: 0;
    overflow: hidden;
    background: var(--paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.top-banner img {
    width: 100%;
    height: var(--banner-height);
    object-fit: cover;
    object-position: center;
}

.top-banner-carousel {
    isolation: isolate;
}

.top-banner-carousel.is-ready .top-banner-slide[hidden] {
    display: grid;
}

.top-banner-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: clamp(34px, 6vw, 70px) max(20px, calc((100vw - 1180px) / 2));
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease, visibility 900ms ease;
}

.top-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.top-banner-slide-doctor {
    align-items: center;
    background-position: center center;
}

.top-banner-copy {
    display: grid;
    gap: 12px;
    width: min(560px, 100%);
    color: var(--white);
    pointer-events: none;
    text-shadow: 0 12px 34px rgba(20, 49, 59, .34);
}

.top-banner-copy .eyebrow {
    color: #9de9ee;
}

.top-banner-slide-doctor .top-banner-copy {
    width: min(340px, 100%);
    margin-left: auto;
}

.top-banner-slide-doctor .top-banner-copy strong {
    font-size: clamp(24px, 3vw, 38px);
}

.top-banner-slide-doctor .top-banner-copy small {
    max-width: 300px;
    font-size: 15px;
}

.top-banner-copy strong {
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0;
}

.top-banner-copy small {
    max-width: 560px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(15px, 1.7vw, 18px);
    font-weight: 500;
    line-height: 1.55;
}

.top-banner-link {
    width: max-content;
    margin-top: 6px;
    padding: 9px 14px;
    color: var(--white);
    background: rgba(18, 169, 178, .78);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: none;
    text-transform: uppercase;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .7fr);
    gap: clamp(28px, 6vw, 86px);
    align-items: start;
    padding-top: 58px;
    padding-bottom: 68px;
    border-bottom: 1px solid var(--line);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(28px, 6vw, 76px);
    align-items: start;
    padding-top: 70px;
    padding-bottom: 46px;
    border-bottom: 1px solid var(--line);
}

.page-hero-copy {
    display: grid;
    gap: 18px;
}

.banner-hero {
    position: relative;
    grid-template-columns: 1fr;
    align-items: end;
    width: 100%;
    height: var(--banner-height);
    margin: 0;
    padding: clamp(34px, 6vw, 74px) max(20px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center right;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.banner-hero .page-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.banner-hero p {
    color: #536b78;
}

.banner-hero h1 {
    max-width: 620px;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.04;
}

.attention-banner-hero {
    background-image:
        linear-gradient(90deg, rgba(248, 251, 252, .98) 0%, rgba(248, 251, 252, .94) 36%, rgba(18, 169, 178, .62) 66%, rgba(20, 49, 59, .18) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(7, 129, 141, .18)),
        url("../img/attention-banner.webp");
}

.attention-banner-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 40%, rgba(231, 248, 250, .34), transparent 24%),
        linear-gradient(90deg, transparent 0 62%, rgba(255, 255, 255, .28));
    pointer-events: none;
}

.attention-banner-hero .eyebrow {
    color: var(--teal-dark);
}

.specialties-banner-hero {
    background-image:
        linear-gradient(90deg, rgba(248, 251, 252, .96) 0%, rgba(248, 251, 252, .88) 34%, rgba(18, 169, 178, .42) 66%, rgba(20, 49, 59, .22) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(7, 129, 141, .20)),
        url("../img/specialties-banner.webp");
}

.specialties-banner-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0 58%, rgba(255, 255, 255, .18));
    pointer-events: none;
}

.doctor-banner-hero {
    align-items: center;
    background-image: url("../img/doctor-banner.jpg");
    background-position: center center;
}

.doctor-banner-hero .page-hero-copy {
    max-width: 440px;
    margin-left: auto;
}

.doctor-banner-hero h1 {
    max-width: 440px;
    font-size: clamp(30px, 3.6vw, 46px);
}

.doctor-banner-hero p {
    max-width: 420px;
    font-size: 17px;
}

.location-banner-hero {
    background-image:
        linear-gradient(90deg, rgba(248, 251, 252, .97) 0%, rgba(248, 251, 252, .88) 42%, rgba(18, 169, 178, .28) 70%, rgba(20, 49, 59, .12) 100%),
        url("../img/location-banner.jpg");
    background-position: center center;
}

.contact-banner-hero {
    background-image:
        linear-gradient(90deg, rgba(248, 251, 252, .98) 0%, rgba(248, 251, 252, .92) 38%, rgba(18, 169, 178, .42) 72%, rgba(20, 49, 59, .16) 100%),
        url("../img/contact-banner.webp");
    background-position: center right;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.content-card {
    min-height: 220px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid rgba(18, 169, 178, .72);
    border-radius: 8px;
}

.content-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--teal-dark);
    font-size: 14px;
    text-transform: uppercase;
}

.content-card p {
    color: var(--muted);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, .65fr);
    gap: clamp(28px, 6vw, 70px);
    align-items: start;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list p {
    margin: 0;
    padding: 18px 20px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    font-weight: 700;
}

.page-cta {
    margin-top: 28px;
}

.eyebrow {
    display: inline-flex;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(42px, 5.6vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.25;
}

.hero-summary p,
.section-heading p,
.profile-copy p,
.contact-copy p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.hero-facts span {
    padding: 9px 12px;
    color: var(--teal-dark);
    background: var(--aqua);
    border: 1px solid rgba(18, 169, 178, .18);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 34px;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.specialty-grid article {
    position: relative;
    min-height: 220px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(231, 248, 250, .64), rgba(255, 255, 255, 0) 58%),
        var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid rgba(18, 169, 178, .72);
    border-radius: 8px;
}

.specialty-grid article::before {
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    background:
        radial-gradient(circle at 35% 50%, var(--teal) 0 32%, transparent 34%),
        radial-gradient(circle at 65% 50%, var(--teal) 0 32%, transparent 34%),
        linear-gradient(var(--teal), var(--teal));
    background-size: 100% 100%, 100% 100%, 3px 26px;
    background-position: center, center, center 12px;
    background-repeat: no-repeat;
    opacity: .82;
}

.specialty-grid article:nth-child(2),
.specialty-grid article:nth-child(4) {
    border-top-color: rgba(217, 121, 103, .68);
}

.specialty-grid p,
.care-list p,
.location-card p,
.site-footer p,
.contact-note {
    color: var(--muted);
}

.care {
    width: 100%;
    padding: 82px clamp(20px, 5vw, 72px);
    background:
        linear-gradient(90deg, rgba(18, 169, 178, .16), rgba(217, 121, 103, .10)),
        var(--mist);
}

.care-panel {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(280px, .8fr);
    gap: 36px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.care-list {
    display: grid;
    gap: 12px;
}

.care-list p {
    margin: 0;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 8px;
    font-weight: 700;
}

.doctor-profile {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr);
    gap: clamp(30px, 6vw, 68px);
    align-items: start;
    padding-top: 74px;
    padding-bottom: 74px;
}

.doctor-portrait {
    width: min(360px, 100%);
    margin: 0;
    justify-self: center;
}

.doctor-portrait img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.profile-points {
    display: grid;
    gap: 12px;
}

.profile-points p {
    margin: 0;
    padding: 18px 20px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--coral);
    border-radius: 8px;
    font-weight: 700;
}

.location-card,
.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
}

.contact {
    align-items: flex-start;
    margin-bottom: 40px;
}

.contact-actions {
    align-items: stretch;
    flex-direction: column;
    min-width: min(100%, 310px);
}

.contact-note {
    margin: 6px 0 0;
    font-size: 13px;
}

code {
    padding: 2px 6px;
    background: var(--aqua);
    border-radius: 6px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 5vw, 72px) 100px;
    background: #102f3d;
    color: var(--white);
}

.site-footer p {
    margin: 5px 0 0;
}

.footer-links a {
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
}

.floating-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(20, 49, 59, .16);
    backdrop-filter: blur(14px);
}

.floating-cta a {
    padding: 11px 14px;
    color: var(--white);
    background: var(--teal);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 920px) {
    .site-nav,
    .header-actions {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .site-header.is-open {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-header.is-open .site-nav,
    .site-header.is-open .header-actions,
    .site-header:focus-within .site-nav,
    .site-header:focus-within .header-actions {
        display: flex;
        width: 100%;
    }

    .site-header.is-open .site-nav,
    .site-header:focus-within .site-nav {
        flex-direction: column;
        align-items: stretch;
        order: 3;
    }

    .site-header.is-open .header-actions,
    .site-header:focus-within .header-actions {
        order: 4;
    }

    .hero,
    .care-panel,
    .doctor-profile,
    .page-hero,
    .two-column {
        grid-template-columns: 1fr;
    }

    .attention-banner-hero {
        background-image:
            linear-gradient(90deg, rgba(248, 251, 252, .98) 0%, rgba(248, 251, 252, .92) 58%, rgba(18, 169, 178, .54) 100%),
            url("../img/attention-banner.webp");
        background-size: cover;
        background-repeat: no-repeat;
    }

    .specialties-banner-hero {
        background-image:
            linear-gradient(90deg, rgba(248, 251, 252, .98) 0%, rgba(248, 251, 252, .90) 58%, rgba(18, 169, 178, .42) 100%),
            url("../img/specialties-banner.webp");
    }

    .specialty-grid,
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    :root {
        --banner-height: 320px;
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        max-width: 165px;
    }

    .section {
        width: min(100% - 28px, 1120px);
        padding: 58px 0;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 30px;
    }

    .hero-summary p,
    .section-heading p,
    .profile-copy p,
    .contact-copy p {
        font-size: 16px;
    }

    .hero-actions,
    .location-card,
    .contact,
    .site-footer,
    .footer-links {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .specialty-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .top-banner {
        margin-top: 0;
    }

    .top-banner img {
        height: var(--banner-height);
        object-position: 58% center;
    }

    .specialty-grid article {
        min-height: auto;
    }

    .floating-cta {
        right: 10px;
        left: 10px;
        justify-content: center;
    }

    .floating-cta a {
        flex: 1;
        text-align: center;
    }
}
