:root {
    --navy: #0f2942;
    --navy-deep: #071c2f;
    --blue: #0e7490;
    --blue-bright: #0891b2;
    --blue-soft: #e6f6fa;
    --teal: #0f9f8f;
    --green: #16a36a;
    --ink: #12243a;
    --body: #526579;
    --muted: #75869a;
    --line: #dce7ed;
    --surface: #fff;
    --surface-soft: #f5fafc;
    --shadow-sm: 0 8px 24px rgba(15, 41, 66, .08);
    --shadow-lg: 0 22px 60px rgba(7, 28, 47, .14);
    --radius: 18px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button,
.button {
    -webkit-tap-highlight-color: transparent;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--navy);
    transition: top .2s;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 3px solid rgba(8, 145, 178, .42);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(220, 231, 237, .85);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand strong {
    color: var(--blue-bright);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a,
.footer-links a {
    color: var(--body);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.main-nav a:hover,
.footer-links a:hover {
    color: var(--blue-bright);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-bright));
    box-shadow: 0 8px 20px rgba(8, 145, 178, .22);
}

.button-primary:hover {
    box-shadow: 0 11px 25px rgba(8, 145, 178, .3);
}

.button-ghost {
    color: var(--navy);
    background: transparent;
}

.button-ghost:hover {
    background: var(--surface-soft);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 104px;
    background:
        linear-gradient(115deg, rgba(245, 250, 252, .96), rgba(230, 246, 250, .8)),
        radial-gradient(circle at 80% 20%, rgba(8, 145, 178, .18), transparent 38%);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .36;
    background-image: linear-gradient(rgba(14, 116, 144, .08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(14, 116, 144, .08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to right, transparent, #000);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.hero-glow-one {
    right: -90px;
    top: -180px;
    width: 500px;
    height: 500px;
    background: rgba(8, 145, 178, .1);
}

.hero-glow-two {
    right: 28%;
    bottom: -260px;
    width: 420px;
    height: 420px;
    background: rgba(15, 159, 143, .08);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    align-items: center;
    gap: 70px;
}

.eyebrow,
.section-kicker {
    color: var(--blue);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(8, 145, 178, .2);
    border-radius: 99px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .7);
}

.eyebrow svg {
    width: 17px;
    fill: var(--teal);
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    color: var(--navy-deep);
    font-size: clamp(2.65rem, 5.4vw, 4.85rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.03;
}

.hero h1 span {
    color: var(--blue-bright);
}

.hero-copy > p {
    max-width: 660px;
    margin: 24px 0 30px;
    color: var(--body);
    font-size: 1.08rem;
}

.hero-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 690px;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 7px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-search > svg,
.directory-search > svg {
    width: 21px;
    margin-left: 10px;
    fill: var(--muted);
}

.hero-search input,
.directory-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.hero-search input {
    min-height: 48px;
}

.hero-search input::placeholder,
.directory-search input::placeholder {
    color: #8a9aaa;
}

.hero-search button {
    min-height: 47px;
    border: 0;
    border-radius: 10px;
    padding: 0 23px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-bright));
    font-weight: 750;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 21px;
    margin-top: 24px;
    color: var(--body);
    font-size: .82rem;
    font-weight: 600;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trust-row i {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    color: var(--teal);
    background: rgba(15, 159, 143, .12);
    font-size: .7rem;
    font-style: normal;
}

.hero-visual {
    position: relative;
    min-height: 440px;
}

.visual-orbit {
    position: absolute;
    top: 34px;
    right: 15px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(8, 145, 178, .18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.96), rgba(230,246,250,.55) 58%, transparent 59%);
    box-shadow: inset 0 0 50px rgba(8, 145, 178, .08);
}

.visual-orbit::before,
.visual-orbit::after {
    position: absolute;
    border: 1px dashed rgba(8, 145, 178, .22);
    border-radius: 50%;
    content: "";
}

.visual-orbit::before {
    inset: 42px;
}

.visual-orbit::after {
    inset: 87px;
}

.orbit-center {
    position: absolute;
    inset: 112px;
    display: grid;
    place-items: center;
    border: 10px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 28, 47, .16);
}

.orbit-center img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.orbit-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 4px 12px rgba(15, 159, 143, .25);
}

.dot-one { top: 37px; left: 87px; }
.dot-two { right: 16px; top: 178px; background: var(--blue-bright); }
.dot-three { bottom: 37px; left: 78px; background: #54b3df; }

.visual-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(220, 231, 237, .9);
    border-radius: 14px;
    padding: 15px 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.visual-main {
    left: -12px;
    top: 54px;
}

.visual-secure {
    right: -10px;
    bottom: 36px;
}

.visual-symbol,
.visual-secure > svg {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 11px;
    background: var(--blue-soft);
}

.visual-symbol svg,
.visual-secure > svg {
    width: 22px;
    padding: 10px;
    fill: var(--blue-bright);
}

.visual-card div:not(.visual-symbol) {
    display: flex;
    flex-direction: column;
}

.visual-card small,
.visual-card span {
    color: var(--muted);
    font-size: .7rem;
}

.visual-card strong {
    color: var(--navy);
    font-size: .85rem;
}

.quick-stats {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    border-bottom: 1px solid var(--line);
    background: var(--navy-deep);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-grid > div {
    position: relative;
    display: flex;
    min-height: 98px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-grid > div + div::before {
    position: absolute;
    left: 0;
    width: 1px;
    height: 38px;
    background: rgba(255,255,255,.14);
    content: "";
}

.stats-grid strong {
    color: #fff;
    font-size: 1.28rem;
}

.stats-grid span {
    color: #9fb3c7;
    font-size: .75rem;
    font-weight: 600;
}

.doctors-section,
.steps-section,
.practice-section {
    padding: 100px 0;
}

.doctors-section {
    background: var(--surface);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 28px;
}

.section-heading h2,
.center-heading h2,
.practice-card h2 {
    margin: 8px 0 9px;
    color: var(--navy-deep);
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -.04em;
    line-height: 1.1;
}

.section-heading p,
.center-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--body);
}

.directory-search {
    display: grid;
    width: min(100%, 350px);
    min-height: 48px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.directory-search button {
    width: 34px;
    height: 34px;
    margin-right: 6px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--body);
    background: transparent;
    font-size: 1.4rem;
}

.directory-search button:hover {
    background: var(--blue-soft);
}

.results-toolbar {
    min-height: 26px;
    margin-bottom: 18px;
}

.results-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 600;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.doctor-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .24s, box-shadow .24s, border-color .24s;
}

.doctor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 145, 178, .35);
    box-shadow: var(--shadow-lg);
}

.doctor-image-link {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-soft), #d9edf3);
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .35s;
}

.doctor-card:hover .doctor-image {
    transform: scale(1.035);
}

.availability-badge {
    position: absolute;
    right: 13px;
    bottom: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 99px;
    padding: 7px 11px;
    color: #07533b;
    background: rgba(236, 253, 245, .94);
    box-shadow: 0 5px 14px rgba(7, 83, 59, .1);
    font-size: .7rem;
    font-weight: 750;
}

.availability-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.doctor-card-body {
    padding: 22px;
}

.specialty-list {
    display: flex;
    min-height: 25px;
    flex-wrap: wrap;
    gap: 6px;
}

.specialty-list span {
    overflow: hidden;
    max-width: 100%;
    border-radius: 99px;
    padding: 4px 9px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: .68rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-card h3 {
    margin: 12px 0 5px;
    font-size: 1.18rem;
    line-height: 1.3;
}

.doctor-name {
    color: var(--navy-deep);
    text-decoration: none;
}

.doctor-name::before {
    content: "Dr. ";
}

.doctor-qualifications {
    overflow: hidden;
    min-height: 24px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-location {
    display: flex;
    min-height: 43px;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 18px;
    color: var(--body);
    font-size: .8rem;
}

.doctor-location svg {
    width: 16px;
    flex: 0 0 16px;
    margin-top: 3px;
    fill: var(--blue-bright);
}

.doctor-location span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    color: var(--blue);
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}

.profile-link svg {
    width: 17px;
    fill: currentColor;
    transition: transform .2s;
}

.profile-link:hover svg {
    transform: translateX(3px);
}

.doctor-card.skeleton-card {
    pointer-events: none;
}

.skeleton-card .skeleton-image,
.skeleton-card span,
.skeleton-card h3,
.skeleton-card p {
    border-radius: 7px;
    background: linear-gradient(90deg, #edf3f6 25%, #f8fbfc 50%, #edf3f6 75%);
    background-size: 300% 100%;
    animation: shimmer 1.35s infinite;
}

.skeleton-card .skeleton-image {
    height: 230px;
    border-radius: 0;
}

.skeleton-card span {
    display: block;
    width: 95px;
    height: 22px;
}

.skeleton-card h3 {
    width: 64%;
    height: 22px;
}

.skeleton-card p {
    width: 88%;
    height: 15px;
}

@keyframes shimmer {
    to { background-position: -300% 0; }
}

.directory-state {
    padding: 62px 20px;
    text-align: center;
}

.state-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 1.8rem;
}

.state-icon.state-error {
    color: #b42318;
    background: #fee4e2;
}

.directory-state h3 {
    margin: 0 0 6px;
}

.directory-state p {
    margin: 0 0 20px;
    color: var(--body);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 42px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    color: var(--body);
    background: #fff;
    font-weight: 700;
}

.pagination button:hover:not(:disabled),
.pagination button[aria-current="page"] {
    color: #fff;
    border-color: var(--blue-bright);
    background: var(--blue-bright);
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.steps-section {
    background: var(--surface-soft);
}

.center-heading {
    max-width: 690px;
    margin: 0 auto 54px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.steps-grid article {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 31px;
    background: #fff;
}

.step-number {
    position: absolute;
    right: 24px;
    top: 20px;
    color: #d8e7ec;
    font-size: 1.75rem;
    font-weight: 850;
}

.step-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 13px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 1.35rem;
    font-weight: 800;
}

.steps-grid h3 {
    margin: 22px 0 7px;
    color: var(--navy-deep);
    font-size: 1.05rem;
}

.steps-grid p {
    margin: 0;
    color: var(--body);
    font-size: .87rem;
}

.practice-section {
    background: #fff;
}

.practice-card {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
    align-items: center;
    border-radius: 26px;
    padding: 66px 72px;
    color: #fff;
    background:
        radial-gradient(circle at 83% 48%, rgba(8,145,178,.5), transparent 33%),
        linear-gradient(135deg, var(--navy-deep), #0b4660);
}

.practice-card::after {
    position: absolute;
    right: -100px;
    top: -100px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    content: "";
}

.section-kicker.light {
    color: #77d8e9;
}

.practice-card h2 {
    max-width: 610px;
    color: #fff;
}

.practice-card p {
    max-width: 650px;
    color: #b7c9d8;
}

.practice-card ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 24px;
    margin: 24px 0 30px;
    padding: 0;
    list-style: none;
    color: #d8e7ee;
    font-size: .84rem;
}

.practice-card li::before {
    margin-right: 8px;
    color: #5ee0c5;
    content: "✓";
    font-weight: 800;
}

.button-light {
    color: var(--navy);
    background: #fff;
}

.practice-mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 230px;
    height: 230px;
    justify-self: end;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}

.practice-mark::before {
    position: absolute;
    inset: 24px;
    border: 1px dashed rgba(255,255,255,.2);
    border-radius: 50%;
    content: "";
}

.practice-mark img {
    position: relative;
    width: 112px;
    height: 112px;
    border: 10px solid rgba(255,255,255,.88);
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

footer {
    color: #9eb2c5;
    background: var(--navy-deep);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-block: 42px;
}

.footer-brand {
    color: #fff;
}

.footer-grid p {
    margin: 9px 0 0;
    font-size: .8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-links a {
    color: #b7c9d8;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-block: 19px;
    font-size: .72rem;
}

@media (max-width: 1020px) {
    .main-nav {
        display: none;
    }

    .hero {
        padding-top: 76px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        display: none;
    }

    .doctor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .practice-card {
        padding: 54px;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .header-inner {
        min-height: 66px;
    }

    .header-actions .button-ghost {
        display: none;
    }

    .header-actions .button-primary {
        min-height: 39px;
        padding-inline: 13px;
        font-size: .76rem;
    }

    .brand span {
        display: none;
    }

    .hero {
        padding: 66px 0 75px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .hero-search {
        grid-template-columns: auto 1fr;
    }

    .hero-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .trust-row {
        gap: 10px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid > div + div::before {
        display: none;
    }

    .stats-grid > div {
        min-height: 82px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .doctors-section,
    .steps-section,
    .practice-section {
        padding: 72px 0;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .directory-search {
        width: 100%;
    }

    .doctor-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .doctor-image-link {
        height: 265px;
    }

    .practice-card {
        grid-template-columns: 1fr;
        padding: 40px 26px;
    }

    .practice-card ul {
        grid-template-columns: 1fr;
    }

    .practice-mark {
        display: none;
    }

    .footer-grid,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
