:root {
    --hm-navy: #081638;
    --hm-navy-2: #10254b;
    --hm-green: #7eb280;
    --hm-mint: #e8f1e9;
    --hm-border: #dfe6e3;
    --hm-muted: #667487;
}

[hidden] {
    display: none !important;
}

.hm-specialties,
.hm-services,
.hm-insurance,
.hm-education {
    background: #fff;
}

.hm-doctors,
.hm-locations,
.hm-news {
    background: #f3f6f5;
}

.hm-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.hm-heading > div:first-child {
    max-width: 780px;
}

.hm-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .19em;
    font-weight: 800;
    color: #48784d;
    margin-bottom: 15px;
}

.hm-heading h2,
.hm-centered-heading h2,
.hm-guide-copy h2,
.hm-contact-inner h2 {
    font-size: clamp(30px,3.4vw,54px);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 750;
    color: var(--hm-navy);
    margin: 0 0 16px;
}

.hm-heading p,
.hm-centered-heading p {
    color: var(--hm-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

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

.hm-specialty {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--hm-border);
    border-radius: 18px;
    background: #fff;
    color: var(--hm-navy);
    text-decoration: none;
    transition: .25s ease;
}

.hm-specialty:hover {
    transform: translateY(-4px);
    background: var(--hm-mint);
    border-color: var(--hm-green);
}

.hm-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 15px;
    background: var(--hm-mint);
    color: var(--hm-navy);
    align-items: center;
    justify-content: center;
}

.hm-specialty h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 5px;
    font-weight: 750;
}

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

.hm-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: #48784d;
}

.hm-controls {
    display: flex;
    gap: 10px;
}

.hm-controls button {
    width: 50px;
    height: 50px;
    border: 1px solid var(--hm-border);
    background: #fff;
    color: var(--hm-navy);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: .2s;
}

.hm-controls button:hover {
    background: var(--hm-navy);
    color: #fff;
}

.hm-doctor-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 8px 0 16px;
}

.hm-doctor-card {
    scroll-snap-align: start;
    overflow: hidden;
    background: white;
    border-radius: 22px;
    border: 1px solid var(--hm-border);
}

.hm-doctor-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 290px;
    overflow: hidden;
    background: linear-gradient(145deg,#e4ede7,#c7d8cc);
}

.hm-doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform .5s ease;
}

.hm-doctor-card:hover img {
    transform: scale(1.04);
}

.hm-initials {
    font-size: 70px;
    font-weight: 800;
    letter-spacing: -.08em;
    color: var(--hm-navy);
    opacity: .65;
}

.hm-doctor-specialty {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 12px 14px;
    color: #fff;
    background: var(--hm-navy);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.hm-doctor-body {
    padding: 23px;
}

.hm-doctor-body h3 {
    font-size: 21px;
    line-height: 1.25;
    color: var(--hm-navy);
    margin: 0 0 18px;
}

.hm-doctor-body p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hm-muted);
    margin: 8px 0;
    font-size: 13px;
}

.hm-profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--hm-border);
    font-size: 13px;
    font-weight: 750;
    color: var(--hm-navy);
}

.hm-bottom-action {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.hm-service-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.hm-service-card {
    min-height: 330px;
    border-radius: 22px;
    background: var(--hm-navy);
    color: white;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hm-service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: -2;
    transition: transform .5s ease;
}

.hm-service-card:hover img {
    transform: scale(1.06);
}

.hm-service-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(8,22,56,.08),
        rgba(8,22,56,.96)
    );
}

.hm-service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 24px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.5);
    color: white;
    font-size: 13px;
}

.hm-service-copy {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
}

.hm-service-copy h3 {
    color: white;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.hm-service-copy p {
    color: rgba(255,255,255,.8);
    line-height: 1.5;
    font-size: 14px;
    margin: 0 0 20px;
}

.hm-service-copy > span {
    color: #d2e9d3;
    font-size: 13px;
    font-weight: 750;
}

.hm-patient-guide {
    background: var(--hm-navy);
    color: white;
}

.hm-guide-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 75px;
}

.hm-guide-copy h2,
.hm-contact-inner h2 {
    color: white;
}

.hm-guide-copy p,
.hm-contact-inner p {
    color: rgba(255,255,255,.76);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 0 27px;
}

.hm-guide-copy .hm-eyebrow,
.hm-contact-inner .hm-eyebrow {
    color: #aecfaf;
}

.hm-guide-links {
    display: grid;
    gap: 10px;
}

.hm-guide-links a {
    display: flex;
    color: white;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border-radius: 12px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.1);
    transition: .2s;
}

.hm-guide-links a:hover {
    background: var(--hm-navy-2);
    transform: translateX(3px);
}

.hm-guide-links a strong {
    flex: 1;
    font-size: 15px;
}

.hm-centered-heading {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.hm-insurance-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 15px;
}

.hm-insurance-logo {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--hm-border);
    border-radius: 15px;
    background: white;
    text-align: center;
    color: var(--hm-navy);
    transition: .2s;
}

.hm-insurance-logo:hover {
    border-color: var(--hm-green);
    transform: translateY(-3px);
}

.hm-insurance-logo img {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
}

.hm-location-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.hm-location-card {
    position: relative;
    padding: 27px;
    background: white;
    border: 1px solid var(--hm-border);
    border-radius: 18px;
}

.hm-location-number {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--hm-muted);
    font-size: 12px;
}

.hm-location-card h3 {
    color: var(--hm-navy);
    margin: 24px 0 12px;
    font-size: 22px;
}

.hm-location-card p {
    font-size: 13px;
    color: var(--hm-muted);
}

.hm-location-card a {
    display: block;
    font-size: 13px;
    margin-top: 14px;
    color: #3c7141;
    font-weight: 750;
}

.hm-residency-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.hm-residency-card {
    background: #f5f8f5;
    border: 1px solid var(--hm-border);
    border-radius: 18px;
    padding: 28px;
}

.hm-residency-card small {
    display: block;
    margin-top: 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #48784d;
}

.hm-residency-card h3 {
    color: var(--hm-navy);
    font-size: 24px;
    margin: 12px 0;
}

.hm-residency-card p {
    color: var(--hm-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hm-residency-card a {
    color: var(--hm-navy);
    font-size: 13px;
    font-weight: 750;
    display: inline-block;
    margin-top: 12px;
}

.hm-news-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
}

.hm-news-card {
    border-radius: 22px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--hm-border);
}

.hm-news-photo {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hm-navy);
    background: var(--hm-mint);
    overflow: hidden;
}

.hm-news-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.hm-news-card:hover img {
    transform: scale(1.04);
}

.hm-news-body {
    padding: 30px;
}

.hm-news-body small {
    color: #48784d;
    font-weight: 750;
    font-size: 12px;
}

.hm-news-body h3 {
    color: var(--hm-navy);
    margin: 15px 0;
    font-size: 26px;
    line-height: 1.3;
}

.hm-news-body p {
    color: var(--hm-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hm-news-body a {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    color: var(--hm-navy);
    font-weight: 750;
}

.hm-contact-banner {
    padding: 65px 0;
    background: var(--hm-navy-2);
    color: white;
}

.hm-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hm-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media(max-width:1200px) {

    .hm-specialty-grid,
    .hm-location-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .hm-doctor-track {
        grid-auto-columns: calc((100% - 40px) / 3);
    }

}

@media(max-width:900px) {

    .hm-specialty-grid,
    .hm-location-grid,
    .hm-residency-grid,
    .hm-service-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .hm-doctor-track {
        grid-auto-columns: calc((100% - 20px) / 2);
    }

    .hm-insurance-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .hm-guide-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hm-contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media(max-width:600px) {

    .hm-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
    }

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

    .hm-service-grid,
    .hm-residency-grid,
    .hm-news-grid {
        grid-template-columns: 1fr;
    }

    .hm-doctor-track {
        grid-auto-columns: 86%;
    }

    .hm-doctor-photo {
        height: 300px;
    }

    .hm-insurance-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .hm-location-grid {
        grid-template-columns: 1fr;
    }

    .hm-service-card {
        min-height: 300px;
    }

    .hm-news-photo {
        height: 220px;
    }

    .hm-contact-actions {
        width: 100%;
    }

    .hm-contact-actions .btn {
        flex: 1;
    }

}

@media(prefers-reduced-motion:reduce) {
    .hm-doctor-track {
        scroll-behavior: auto;
    }

    .hm-specialty,
    .hm-service-card img,
    .hm-doctor-photo img,
    .hm-news-photo img {
        transition: none;
    }
}