@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-variable.woff2") format("woff2");
}

:root {
    --surface-border: #dce7e7;
    --surface-soft: #f2f7f6;
    --surface-shadow: 0 8px 28px rgba(16, 62, 76, 0.055);
}

body {
    font-family: "Manrope", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    fill: currentColor;
    vertical-align: middle;
}

.button,
.appointment-button {
    gap: 11px;
    border-radius: 7px;
    font-weight: 700;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover,
.appointment-button:hover {
    box-shadow: 0 5px 16px rgba(16, 62, 76, 0.14);
}

.button .icon,
.appointment-button .icon {
    width: 21px;
    height: 21px;
}

.main-nav {
    gap: 18px;
}

.menu {
    gap: 18px;
}

.menu-item-row > a {
    font-size: 12px;
    font-weight: 700;
}

.appointment-button {
    padding: 13px 16px;
    font-size: 11px;
}

.menu-toggle .icon {
    width: 20px;
    height: 20px;
}

.submenu-toggle .icon {
    width: 11px;
    height: 11px;
}

.intro-copy .button-row {
    align-items: flex-start;
    gap: 18px 22px;
}

.intro-link {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    font-weight: 600;
    line-height: 1.4;
}

.intro-link:hover {
    border-color: #fff;
    text-decoration: none;
}

.intro-location .location-icon {
    width: 17px;
    height: 17px;
    color: #badcdd;
}

.quick-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    padding-top: 24px;
    padding-bottom: 3px;
}

.quick-links > a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 21px 20px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--surface-shadow);
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.quick-links > a:hover {
    border-color: #9cbec2;
    box-shadow: 0 11px 28px rgba(16, 62, 76, 0.095);
    transform: translateY(-2px);
    text-decoration: none;
}

.quick-links .shortcut-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: #286f79;
}

.shortcut-emblem .icon {
    width: 29px;
    height: 29px;
}

.quick-links .shortcut-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    color: var(--navy);
}

.shortcut-copy strong {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.shortcut-copy small {
    color: #60767e;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.service-grid {
    gap: 23px;
    margin-top: 34px;
}

.service-card {
    position: relative;
    padding: 31px 28px 29px;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--surface-shadow);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
    border-color: #a6c4c7;
    box-shadow: 0 15px 35px rgba(16, 62, 76, 0.09);
    transform: translateY(-3px);
}

.service-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 27px;
    border: 1px solid #dcebea;
    border-radius: 17px;
    background: #edf5f3;
    color: #286c74;
}

.service-emblem .icon {
    width: 39px;
    height: 39px;
}

.service-card:nth-child(2) .service-emblem {
    background: #edf4f8;
    color: #356b88;
    border-color: #dce8ef;
}

.service-card:nth-child(3) .service-emblem {
    background: #f1f0f7;
    color: #6b618c;
    border-color: #e6e2ef;
}

.service-card:nth-child(4) .service-emblem {
    background: #f7f3eb;
    color: #94774a;
    border-color: #eee6d7;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 13px;
}

.service-card p {
    margin-bottom: 28px;
    font-size: 13px;
    line-height: 1.85;
}

.text-link {
    width: fit-content;
    padding-bottom: 3px;
    border-bottom: 1px solid #a9c4c7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    text-underline-offset: 5px;
    transition: border-color 180ms ease, color 180ms ease;
}

.text-link:hover {
    color: #123f51;
    border-color: #123f51;
    text-decoration: none;
}

.additional-services {
    align-items: center;
    gap: 14px 27px;
    margin-top: 29px;
    font-size: 11px;
}

.additional-services > a {
    border-bottom: 1px solid #d1dfe1;
    padding-bottom: 3px;
    font-weight: 700;
}

.additional-services > a:hover {
    border-color: #497c85;
    text-decoration: none;
}

.visit-panel {
    padding: 34px 37px 28px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(16, 62, 76, 0.045);
}

.visit-panel h3 {
    font-size: 28px;
    margin-bottom: 26px;
}

.visit-panel ol {
    list-style: none;
    padding: 0;
}

.visit-panel li {
    align-items: flex-start;
    gap: 17px;
    padding: 20px 0;
    border-color: #e3ebec;
}

.visit-panel li > .visit-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: #eff6f5;
    color: #337985;
}

.visit-emblem .icon {
    width: 25px;
    height: 25px;
}

.visit-panel strong {
    font-size: 12px;
    font-weight: 800;
}

.visit-panel li p {
    font-size: 11px;
    line-height: 1.8;
}

.community-links {
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    box-shadow: var(--surface-shadow);
}

.community-links > a {
    gap: 20px;
    padding: 28px;
    border-bottom: 1px solid #e3ebec;
    background: #fff;
    transition: background-color 180ms ease;
}

.community-links > a:first-child {
    border-top: none;
}

.community-links > a:last-child {
    border-bottom: none;
}

.community-links > a:hover {
    background: #f7faf9;
}

.community-links .community-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 49px;
    width: 49px;
    height: 49px;
    margin: 0;
    border-radius: 13px;
    background: #eff5f4;
    color: #33717b;
}

.community-emblem .icon {
    width: 31px;
    height: 31px;
}

.community-links h3 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.25px;
}

.community-links p {
    font-size: 12px;
    line-height: 1.8;
}

.library-grid > a {
    padding: 31px;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    box-shadow: var(--surface-shadow);
    transition: border-color 180ms ease, transform 180ms ease;
}

.library-grid > a:hover {
    border-color: #a4c1c6;
    transform: translateY(-2px);
}

.library-emblem {
    display: block;
    margin-bottom: 23px;
    color: #397983;
}

.library-emblem .icon {
    width: 40px;
    height: 40px;
}

.library-grid h3 {
    margin-top: 14px;
    font-size: 28px;
}

.topic-link {
    width: fit-content;
    padding-bottom: 3px;
    border-bottom: 1px solid #c4d8da;
    font-size: 11px;
    font-weight: 800;
}

.resource-card,
.directory-card {
    border-radius: 11px;
    box-shadow: var(--surface-shadow);
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.footer-contact .icon {
    width: 19px;
    height: 19px;
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d5e3e5;
    color: #245867;
    box-shadow: 0 5px 18px rgba(16, 62, 76, 0.12);
}

.back-to-top .icon {
    width: 23px;
    height: 23px;
}

@media (max-width: 1320px) {
    .main-nav,
    .menu {
        gap: 13px;
    }

    .menu-item-row > a {
        font-size: 11px;
    }

    .appointment-button {
        padding: 13px 12px;
    }

    .quick-links > a {
        gap: 12px;
        padding: 19px 15px;
    }

    .shortcut-copy strong {
        font-size: 11px;
    }

    .shortcut-copy small {
        font-size: 9px;
    }
}

@media (max-width: 1240px) {
    .header-row {
        min-height: 90px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        border: 1px solid var(--surface-border);
        padding: 10px 16px;
        border-radius: 7px;
        background: #fff;
        color: var(--navy);
        cursor: pointer;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 32px;
        background: #fff;
        border-bottom: 1px solid var(--surface-border);
        box-shadow: var(--surface-shadow);
    }

    .main-nav.open {
        display: block;
    }

    .menu {
        display: block;
    }

    .menu-item-row {
        justify-content: space-between;
    }

    .menu-item-row > a {
        flex: 1;
        padding: 13px 0;
        font-size: 14px;
    }

    .submenu-toggle {
        padding: 15px;
    }

    .sub-menu {
        position: static;
        min-width: 0;
        padding: 10px 14px;
        margin-bottom: 10px;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .main-nav .appointment-button {
        margin-top: 15px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        padding: 25px 22px;
    }
}

@media (max-width: 760px) {
    .quick-links {
        gap: 12px;
        padding-top: 18px;
    }

    .quick-links > a {
        align-items: flex-start;
        gap: 11px;
        padding: 16px 13px;
    }

    .quick-links .shortcut-emblem {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .shortcut-emblem .icon {
        width: 24px;
        height: 24px;
    }

    .shortcut-copy strong {
        font-size: 10px;
    }

    .shortcut-copy small {
        font-size: 9px;
    }

    .service-grid {
        gap: 16px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-emblem {
        width: 53px;
        height: 53px;
        border-radius: 14px;
        margin-bottom: 23px;
    }

    .service-emblem .icon {
        width: 33px;
        height: 33px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 12px;
    }

    .text-link {
        font-size: 11px;
    }

    .visit-panel {
        padding: 26px 24px 19px;
    }

    .visit-panel h3 {
        font-size: 25px;
    }

    .community-links > a {
        gap: 16px;
        padding: 23px 21px;
    }

    .community-links .community-emblem {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        border-radius: 11px;
    }

    .community-emblem .icon {
        width: 28px;
        height: 28px;
    }

    .community-links h3 {
        font-size: 15px;
    }

    .community-links p {
        font-size: 11px;
    }

    .library-grid > a {
        padding: 26px;
    }

    .library-grid h3 {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .quick-links > a {
        flex-direction: column;
        gap: 13px;
        padding: 18px 15px;
    }

    .shortcut-copy strong {
        font-size: 12px;
    }

    .shortcut-copy small {
        font-size: 10px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 27px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 13px;
    }

    .visit-panel li {
        gap: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-links > a,
    .service-card,
    .library-grid > a,
    .button,
    .appointment-button {
        transition: none;
        transform: none;
    }
}

.service-card,
.library-grid > a,
.resource-card,
.directory-card,
.location-card,
.sidebar-section,
.quick-links > a,
.visit-panel,
.community-links,
.care-card,
.care-filters,
.profile-booking,
.booking-summary {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(16, 62, 76, 0.035);
}

.content-note {
    border: 0;
    border-radius: 6px;
}

.care-card-preview {
    margin: 0;
    padding: 0 24px 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .care-card-preview {
        padding: 0 18px 20px;
    }
}

.care-card-photo,
.profile-photo {
    height: auto;
    background: transparent;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 0;
}

.care-card-photo {
    display: block;
    flex: 0 0 104px;
    width: 104px;
}

.care-card-photo img,
.profile-photo img,
.booking-provider-photo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
}

.profile-photo {
    flex: 0 0 190px;
    width: 190px;
}

.booking-provider-photo {
    width: 104px;
}

@media (max-width: 1100px) {
    .care-card-photo {
        flex-basis: 88px;
        width: 88px;
        height: auto;
    }
}

@media (max-width: 560px) {
    .care-card-photo {
        flex-basis: 96px;
        width: 96px;
        height: auto;
    }

    .profile-photo {
        flex-basis: auto;
        width: min(190px, 100%);
        height: auto;
    }
}

.specialty-index {
    margin: 32px 0 40px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.specialty-index ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.specialty-category {
    margin-top: 46px;
    scroll-margin-top: 28px;
}

.specialty-next-step {
    margin: 36px 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.specialty-related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-left: 0;
    list-style: none;
}

@media (max-width: 560px) {
    .specialty-index ul {
        grid-template-columns: 1fr;
    }
}

.menu-item-panel {
    position: static;
}

.services-panel {
    left: max(24px, calc((100% - var(--max)) / 2));
    right: max(24px, calc((100% - var(--max)) / 2));
    min-width: 0;
    padding: 30px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 30px;
    max-height: min(680px, calc(100dvh - 155px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 16px 32px rgba(16, 62, 76, 0.1);
}

.menu-item-panel.open > .services-panel {
    display: grid;
}

.services-menu-group h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0;
}

.services-menu-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-menu-group a {
    padding: 7px 0;
    font-size: 13px;
    line-height: 1.5;
}

.services-menu-group a:hover,
.services-menu-group a[aria-current="page"] {
    color: var(--blue);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.services-menu-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.services-menu-bottom a {
    padding: 0;
    font-size: 13px;
    font-weight: 700;
}

.service-catalog-group {
    margin-top: 40px;
    scroll-margin-top: 28px;
}

.service-catalog-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.service-catalog-group a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 1240px) {
    .main-nav {
        max-height: calc(100dvh - 140px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .services-panel {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        max-height: none;
        padding: 20px 0;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .services-panel,
    .service-catalog-group ul {
        grid-template-columns: 1fr;
    }

    .services-menu-group a {
        padding: 10px 0;
        font-size: 14px;
    }
}

@media (min-width: 1241px) {
    .resources-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.catalog-content {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
}

.catalog-content > p:first-child {
    max-width: 880px;
}

.catalog-content .specialty-index {
    padding: 24px 28px;
    margin: 30px 0 44px;
    background: #fff;
}

.catalog-content .specialty-index ul {
    gap: 12px 28px;
    padding: 0;
    margin: 0;
}

.catalog-content .specialty-index li {
    padding: 0;
    margin: 0;
}

.catalog-content .specialty-index a {
    display: inline-block;
    font-size: 14px;
    line-height: 1.6;
}

.catalog-content .service-catalog-group {
    margin-top: 44px;
}

.catalog-content .service-catalog-group > h2 {
    margin-bottom: 20px;
}

.catalog-content .catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.catalog-content .catalog-grid > li {
    display: flex;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.entry-content.catalog-content a.catalog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 25px 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.catalog-card-title {
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.catalog-card-description {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

.catalog-content .catalog-card:hover {
    border-color: #8aaeb5;
    box-shadow: 0 5px 18px rgba(16, 62, 76, 0.06);
}

.catalog-content .catalog-card:hover .catalog-card-title {
    color: var(--blue);
}

.catalog-content .catalog-card:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}

.catalog-content .catalog-next-step {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.catalog-content .catalog-next-step p {
    max-width: 880px;
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .catalog-content .catalog-grid,
    .catalog-content .specialty-index ul {
        grid-template-columns: 1fr;
    }

    .catalog-content .specialty-index {
        padding: 20px;
        margin-bottom: 34px;
    }

    .catalog-content .service-catalog-group {
        margin-top: 34px;
    }

    .catalog-content .catalog-grid {
        gap: 14px;
    }

    .entry-content.catalog-content a.catalog-card {
        padding: 22px;
    }

    .catalog-card-title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .entry-content.catalog-content a.catalog-card {
        transition: none;
    }
}

@media (max-width: 760px) {
    .site-header .header-row {
        gap: 12px;
        min-height: 84px;
    }

    .site-header .brand {
        flex: 1 1 auto;
        gap: 8px;
        min-width: 0;
    }

    .site-header .brand > span {
        min-width: 0;
    }

    .site-header .brand-mark {
        flex: 0 0 30px;
        width: 30px;
        height: 40px;
    }

    .site-header .brand-main {
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .site-header .brand-sub {
        font-size: 8px;
        letter-spacing: 1.7px;
        margin-top: 5px;
    }

    .site-header .menu-toggle {
        flex: 0 0 auto;
        gap: 6px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .site-header .menu-toggle .icon {
        width: 18px;
        height: 18px;
    }

    .site-footer .brand {
        min-width: 0;
        flex-shrink: 1;
    }

    .site-footer .brand-mark {
        flex-shrink: 0;
    }

    .site-footer .brand-main {
        font-size: 23px;
    }
}
