:root {
    --navy: #052f5f;
    --navy-dark: #03264e;
    --red: #c90025;
    --red-dark: #ae001f;
    --red-soft: #fff1f3;
    --gold: #ff9d00;
    --green: #1cad62;
    --ink: #1c2d46;
    --muted: #596579;
    --line: #dfe6ee;
    --surface: #ffffff;
    --page: #f4f8fc;
    --shadow: 0 12px 30px rgba(15, 46, 82, 0.12);
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    /* Change only these logo values when you want a bigger or smaller logo. */
    --desktop-logo-height: 128px;
    --desktop-logo-offset-y: -22px;
    --desktop-content-offset-y: -22px;
    --mobile-logo-height: 58px;

    /* Navbar heights remain fixed even when the logo values above are increased. */
    --desktop-navbar-height: 88px;
    --desktop-sticky-navbar-height: 72px;
    --mobile-navbar-height: 76px;
    --mobile-sticky-navbar-height: 64px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--navy);
    background:
        radial-gradient(circle at 52% 32%, rgba(190, 214, 238, 0.34), transparent 32%),
        linear-gradient(135deg, #f8fbff, #eff6fc);
    font-family: var(--font);
}

body.menu-locked {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

.navbar-demo {
    width: 100%;
    min-height: auto;
    padding: 0;
}

/* Topbar */

.topbar-demo {
    min-height: 100vh;
    display: block;
    width: 100%;
    padding: 0;
}

.contact-topbar {
    position: relative;
    width: 100%;
    min-height: 86px;
    display: flex;
    align-items: center;
    padding: 11px 22px 10px 28px;
    overflow: hidden;
    border-radius: 0;
    background:
        radial-gradient(circle at 14% 52%, rgba(21, 75, 134, 0.2), transparent 25%),
        linear-gradient(110deg, #072b55 0%, #07305f 51%, #0b315d 70%, #711837 100%);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.contact-topbar::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #cf102f 0%, #bd102d 80%, #a80c27 100%);
}

.contact-topbar::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 430px;
    height: 250px;
    right: -85px;
    top: -86px;
    background: radial-gradient(circle, rgba(139, 18, 54, 0.42), transparent 68%);
    pointer-events: none;
}

.topbar-information {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) minmax(320px, 0.95fr) minmax(220px, 0.62fr);
    align-items: center;
}

.info-item {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.info-item:first-child {
    padding-left: 0;
}

.info-item+.info-item {
    border-left: 1px solid var(--divider);
}

.icon-circle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background:
        radial-gradient(circle at 40% 32%, rgba(58, 131, 210, 0.37), transparent 50%),
        var(--icon-bg);
}

.icon-circle svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-text {
    min-width: 0;
    color: var(--white);
    font-size: clamp(14px, 0.92vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.018em;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.info-text:hover,
.info-text:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.topbar-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 14px;
}

.action-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    color: var(--white);
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.action-button:hover {
    transform: translateY(-2px);
}

.action-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

.action-button svg {
    width: 21px;
    height: 21px;
    display: block;
    flex: 0 0 auto;
}

.whatsapp-button {
    min-width: 150px;
    padding: 0 19px;
    background: linear-gradient(135deg, #24cc59, #1fbd4f);
    box-shadow: 0 7px 16px rgba(16, 159, 62, 0.22);
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #29d861, var(--whatsapp-dark));
    box-shadow: 0 10px 22px rgba(16, 159, 62, 0.31);
}

.directions-button {
    min-width: 174px;
    padding: 0 20px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.directions-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.directions-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.mobile-label {
    display: none;
}

@media (max-width: 1500px) {
    .contact-topbar {
        padding-left: 22px;
        padding-right: 18px;
    }

    .topbar-information {
        grid-template-columns: minmax(320px, 1.15fr) minmax(285px, 0.9fr) minmax(205px, 0.6fr);
    }

    .info-item {
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .icon-circle {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .topbar-actions {
        gap: 10px;
        padding-left: 10px;
    }

    .whatsapp-button {
        min-width: 138px;
    }

    .directions-button {
        min-width: 160px;
    }
}

@media (max-width: 1240px) {
    .contact-topbar {
        min-height: 78px;
        padding: 10px 16px 9px 20px;
    }

    .topbar-information {
        grid-template-columns: minmax(290px, 1.15fr) minmax(250px, 0.95fr) minmax(190px, 0.62fr);
    }

    .info-item {
        padding-left: 12px;
        padding-right: 12px;
    }

    .info-text {
        font-size: 13.5px;
    }

    .action-button {
        min-height: 38px;
        font-size: 13.5px;
    }

    .whatsapp-button {
        min-width: auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    .directions-button {
        min-width: auto;
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 1050px) {
    .topbar-information {
        grid-template-columns: minmax(300px, 1.15fr) minmax(205px, 0.68fr);
    }

    .timing-item {
        display: none;
    }

    .phone-item {
        border-left: 1px solid var(--divider);
    }
}

@media (max-width: 820px) {
    .topbar-demo {
        min-height: auto;
        display: block;
        padding: 0;
    }

    .contact-topbar {
        width: 100%;
        min-height: 62px;
        padding: 8px 12px 6px;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 8px 18px rgba(8, 25, 48, 0.18);
    }

    .contact-topbar::before {
        height: 3px;
    }

    .topbar-information {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100%;
    }

    .info-item {
        min-height: 40px;
        gap: 8px;
        padding: 0 12px;
    }

    .location-item {
        padding-left: 0;
    }

    .phone-item {
        padding-right: 0;
    }

    .timing-item,
    .topbar-actions,
    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .icon-circle {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .icon-circle svg {
        width: 19px;
        height: 19px;
    }

    .info-text {
        overflow: hidden;
        font-size: clamp(12.5px, 2.5vw, 14.5px);
        text-overflow: ellipsis;
    }
}

@media (max-width: 560px) {
    .topbar-demo {
        padding: 0;
    }

    .contact-topbar {
        min-height: 58px;
        padding: 7px 8px 5px;
        border-radius: 0 0 12px 12px;
    }

    .contact-topbar::before {
        height: 3px;
    }

    .info-item {
        min-height: 38px;
        gap: 6px;
        padding: 0 8px;
    }

    .location-item {
        padding-left: 0;
    }

    .phone-item {
        padding-right: 0;
    }

    .icon-circle {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .icon-circle svg {
        width: 18px;
        height: 18px;
    }

    .info-text {
        font-size: clamp(11px, 3.25vw, 13px);
        line-height: 1.2;
    }
}

@media (max-width: 380px) {
    .contact-topbar {
        min-height: 54px;
        padding: 6px 5px 4px;
    }

    .info-item {
        gap: 5px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .icon-circle {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .info-text {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action-button {
        transition: none;
    }
}

/* Shared logo */
.brand {
    min-width: 0;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    overflow: visible;
}

.brand-mark {
    width: auto;
    height: var(--desktop-logo-height);
    max-width: none;
    flex: 0 0 auto;
    object-fit: contain;
    display: block;
}

.brand-name {
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

/* Desktop navbar */
.desktop-navigation {
    position: relative;
    z-index: 60;
    width: 100%;
    overflow: visible;
}

.desktop-navbar {
    height: var(--desktop-navbar-height);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(285px, 1.08fr) auto minmax(320px, 0.92fr);
    align-items: center;
    gap: 25px;
    padding: 10px 20px 10px 28px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition:
        height 280ms cubic-bezier(.22, 1, .36, 1),
        padding 280ms cubic-bezier(.22, 1, .36, 1),
        border-radius 200ms ease,
        background-color 200ms ease,
        box-shadow 200ms ease,
        backdrop-filter 200ms ease;
}

.desktop-navigation.is-sticky .desktop-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--desktop-sticky-navbar-height);
    min-height: 0;
    padding: 6px 20px 6px 28px;
    border-radius: 0 0 16px 16px;
    border-width: 0 0 1px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 10px 28px rgba(5, 47, 95, 0.14);
}

.desktop-navigation.is-sticky {
    height: var(--desktop-sticky-navbar-height);
    min-height: 0;
}

.desktop-links {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(12px, 1.35vw, 29px);
}

.desktop-link,
.branches-trigger {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.desktop-link {
    position: relative;
    padding: 0 3px;
}

.desktop-link::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
    transition: left 170ms ease, right 170ms ease;
}

.desktop-link:hover,
.desktop-link:focus-visible {
    color: var(--red);
}

.desktop-link:hover::after,
.desktop-link:focus-visible::after {
    left: 4px;
    right: 4px;
}

.desktop-link.active {
    color: var(--red);
}

.desktop-link.active::after {
    left: 4px;
    right: 4px;
    background: linear-gradient(90deg, var(--red), #ff5a76);
    box-shadow: 0 0 10px rgba(201, 0, 37, 0.35);
}

.branches-trigger {
    position: relative;
    gap: 12px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--red-soft);
}

.branches-trigger:hover,
.branches-trigger[aria-expanded="true"] {
    color: var(--red);
    background: #ffedef;
}

.branches-trigger::after {
    content: "";
    position: absolute;
    left: 34%;
    right: 34%;
    bottom: -13px;
    height: 2px;
    background: var(--red);
    opacity: 0;
    transform: scaleX(0.65);
    transition: opacity 160ms ease, transform 160ms ease;
}

.branches-trigger[aria-expanded="true"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.branches-trigger .pin-icon {
    width: 22px;
    height: 22px;
    color: var(--red);
}

.branches-trigger .chevron {
    width: 17px;
    height: 17px;
    color: var(--red);
    transition: transform 180ms ease;
}

.branches-trigger[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.appointment-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 19px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #d00027, #ba001f);
    box-shadow: 0 8px 18px rgba(190, 0, 34, 0.22);
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.appointment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 22px rgba(190, 0, 34, 0.3);
}

.appointment-button svg {
    width: 24px;
    height: 24px;
}

.desktop-appointment {
    justify-self: end;
}

.nav-cta-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.login-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    color: var(--navy);
    background: #fff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.login-button:hover {
    transform: translateY(-2px);
    background: var(--navy);
    color: #fff;
    box-shadow: 0 9px 20px rgba(5, 47, 95, 0.22);
}

.login-button svg {
    width: 22px;
    height: 22px;
}

/* Desktop branch mega menu */
.branch-mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 14.3%;
    right: 12.5%;
    overflow: visible;
    border: 1px solid rgba(220, 229, 238, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(12, 41, 73, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.branch-mega-menu::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 71.6%;
    width: 22px;
    height: 22px;
    border-top: 1px solid rgba(220, 229, 238, 0.92);
    border-left: 1px solid rgba(220, 229, 238, 0.92);
    background: #fff;
    transform: rotate(45deg);
}

.branch-mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
}

.mega-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--red);
    font-size: 14px;
    font-weight: 750;
}

.view-all-link svg {
    width: 18px;
    height: 18px;
    transition: transform 160ms ease;
}

.view-all-link:hover svg {
    transform: translateX(4px);
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px 16px;
}

.branch-card {
    min-width: 0;
    padding: 0 14px;
}

.branch-card+.branch-card {
    border-left: 1px solid var(--line);
}

.branch-summary {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
}

.branch-pin {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #ffccd3;
    border-radius: 50%;
    color: var(--red);
    background: #fff4f5;
}

.branch-pin svg {
    width: 25px;
    height: 25px;
}

.branch-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-heading h3 {
    overflow: hidden;
    margin: 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.type-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #ef6479;
    border-radius: 3px;
    color: var(--red);
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.type-badge.clinic {
    border-color: #8da0b9;
    color: var(--navy);
}

.branch-copy {
    grid-column: 2;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-actions {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.branch-actions::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    width: 1px;
    height: 28px;
    background: var(--line);
}

.branch-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 38px;
    padding: 0;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.branch-action:first-child {
    grid-column: 1;
}

.branch-action:last-child {
    grid-column: 3;
}

.branch-action svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.direction-action {
    color: var(--navy);
}

.booking-action {
    color: var(--red);
}

.branch-action:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mega-footer {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 10px 20px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    color: #3f4d61;
    background: linear-gradient(90deg, #f5f9fd, #eef5fb, #f8fbfe);
    font-size: 13px;
    font-weight: 550;
    text-align: center;
}

.sparkle {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex: 0 0 auto;
}

/* Mobile navigation */
.mobile-navigation {
    display: none;
}

.mobile-header {
    position: relative;
    z-index: 52;
    height: var(--mobile-navbar-height);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 15px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 42, 75, 0.13);
    transition:
        height 260ms cubic-bezier(.22, 1, .36, 1),
        padding 260ms cubic-bezier(.22, 1, .36, 1),
        border-radius 200ms ease,
        background-color 200ms ease,
        box-shadow 200ms ease,
        backdrop-filter 200ms ease;
}

.mobile-navigation.is-sticky .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--mobile-sticky-navbar-height);
    min-height: 0;
    padding: 5px 10px 5px 12px;
    border-radius: 0 0 10px 10px;
    border-width: 0 0 1px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 8px 22px rgba(11, 42, 75, 0.16);
}

.mobile-navigation.is-sticky {
    height: var(--mobile-sticky-navbar-height);
    min-height: 0;
}

.mobile-navigation .brand {
    gap: 9px;
}

.mobile-navigation .brand-mark {
    width: auto;
    height: var(--mobile-logo-height);
    max-width: none;
    flex: 0 0 auto;
    object-fit: contain;
    display: block;
}

.mobile-navigation .brand-name {
    font-size: 19px;
    line-height: 1.2;
}

.mobile-icon-button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--navy);
    box-shadow: 0 5px 12px rgba(5, 47, 95, 0.18);
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

.mobile-icon-button:hover {
    transform: translateY(-1px);
}

.mobile-icon-button.appointment {
    background: linear-gradient(135deg, #d10027, #b80020);
}

.mobile-icon-button svg {
    width: 25px;
    height: 25px;
}

.mobile-menu-toggle {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: #050505;
    background: transparent;
    box-shadow: none;
}

.mobile-menu-toggle:hover {
    background: transparent;
    transform: none;
}

.hamburger-icon {
    position: relative;
    display: block;
    width: 34px;
    height: 26px;
}

.hamburger-line {
    position: absolute;
    left: 2px;
    height: 3.5px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
        top 360ms cubic-bezier(.65, 0, .35, 1),
        width 300ms cubic-bezier(.65, 0, .35, 1),
        opacity 180ms ease,
        transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.hamburger-line:nth-child(1) {
    top: 2px;
    width: 30px;
}

.hamburger-line:nth-child(2) {
    top: 11px;
    width: 19px;
}

.hamburger-line:nth-child(3) {
    top: 20px;
    width: 27px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 11px;
    width: 29px;
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(9px) scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    top: 11px;
    width: 29px;
    transform: rotate(-45deg);
}

.mobile-menu-panel {
    --mobile-menu-height: 720px;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 150;
    display: block;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    border: 1px solid rgba(226, 232, 240, 0.98);
    border-top: 0;
    border-radius: 0 0 11px 11px;
    background: #fff;
    box-shadow: 0 16px 28px rgba(11, 42, 75, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transform-origin: top;
    pointer-events: none;
    transition:
        max-height 480ms cubic-bezier(.22, 1, .36, 1),
        opacity 240ms ease,
        transform 360ms cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear 480ms;
}

.mobile-navigation.is-sticky .mobile-menu-panel {
    top: 64px;
}

.mobile-menu-panel.is-open {
    max-height: var(--mobile-menu-height);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        max-height 520ms cubic-bezier(.22, 1, .36, 1),
        opacity 260ms ease 40ms,
        transform 420ms cubic-bezier(.22, 1, .36, 1),
        visibility 0s;
}

.mobile-menu-panel>.mobile-nav-link,
.mobile-menu-panel>.mobile-branches-trigger,
.mobile-menu-panel>.mobile-actions {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 220ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
}

.mobile-menu-panel.is-open>.mobile-nav-link,
.mobile-menu-panel.is-open>.mobile-branches-trigger,
.mobile-menu-panel.is-open>.mobile-actions {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-panel.is-open> :nth-child(1) {
    transition-delay: 55ms;
}

.mobile-menu-panel.is-open> :nth-child(2) {
    transition-delay: 75ms;
}

.mobile-menu-panel.is-open> :nth-child(3) {
    transition-delay: 95ms;
}

.mobile-menu-panel.is-open> :nth-child(4) {
    transition-delay: 115ms;
}

.mobile-menu-panel.is-open> :nth-child(5) {
    transition-delay: 135ms;
}

.mobile-menu-panel.is-open> :nth-child(6) {
    transition-delay: 155ms;
}

.mobile-menu-panel.is-open> :nth-child(8) {
    transition-delay: 175ms;
}

.mobile-menu-panel.is-open> :nth-child(9) {
    transition-delay: 195ms;
}

.mobile-nav-link,
.mobile-branches-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-branches-trigger:hover {
    background: #f8fbfe;
}

.mobile-nav-link.active {
    color: var(--red);
    background: linear-gradient(90deg, #fff1f3, #fff8f9);
    border-left: 3px solid var(--red);
    padding-left: 17px;
}

.mobile-nav-link.active svg {
    color: var(--red);
}

.mobile-nav-link svg,
.mobile-branches-trigger svg {
    width: 17px;
    height: 17px;
    color: #41546d;
}

.mobile-branches-trigger {
    color: var(--red);
}

.mobile-branches-trigger svg {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--red);
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.mobile-branches-trigger[aria-expanded="true"] svg {
    transform: rotate(-90deg);
}

.mobile-branches-list {
    display: grid;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    padding: 0 12px;
    border-bottom: 0 solid transparent;
    background: #fcfdff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        max-height 420ms cubic-bezier(.22, 1, .36, 1),
        padding 360ms cubic-bezier(.22, 1, .36, 1),
        border-width 260ms ease,
        opacity 220ms ease,
        transform 360ms cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear 420ms;
}

.mobile-branches-list.is-open {
    max-height: 190px;
    padding: 7px 12px;
    border-bottom-width: 1px;
    border-bottom-color: var(--line);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        max-height 440ms cubic-bezier(.22, 1, .36, 1),
        padding 380ms cubic-bezier(.22, 1, .36, 1),
        border-width 260ms ease,
        opacity 240ms ease 40ms,
        transform 380ms cubic-bezier(.22, 1, .36, 1),
        visibility 0s;
}

.mobile-branch {
    min-height: 49px;
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 1px solid var(--line);
    color: var(--navy);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.mobile-branch:first-child {
    border-radius: 7px 7px 0 0;
}

.mobile-branch+.mobile-branch {
    border-top: 0;
}

.mobile-branch:last-child {
    border-radius: 0 0 7px 7px;
}

.mobile-branch:hover {
    background: #fff8f9;
}

.mobile-branch .small-pin {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid #ffd0d7;
    border-radius: 50%;
    color: var(--red);
    background: #fff3f5;
}

.mobile-branch .small-pin svg {
    width: 18px;
    height: 18px;
}

.mobile-branch>svg {
    width: 16px;
    height: 16px;
    color: #34465d;
}

.mobile-branch .type-badge {
    min-width: 61px;
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 12px 12px;
}

.mobile-actions .appointment-button {
    grid-column: 1 / -1;
    min-height: 48px;
    border-radius: 7px;
    font-size: 15px;
}

.secondary-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--navy);
    border-radius: 7px;
    color: var(--navy);
    background: #fff;
    font-size: 14px;
    font-weight: 750;
}

.secondary-action svg {
    width: 23px;
    height: 23px;
}

.secondary-action.whatsapp {
    border-color: #28b96b;
    color: var(--green);
}

/* Focus and responsive behavior */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(201, 0, 37, 0.28);
    outline-offset: 3px;
}

@media (max-width: 1320px) {
    .desktop-navbar {
        grid-template-columns: minmax(260px, 0.9fr) auto minmax(300px, 0.85fr);
        gap: 15px;
        padding-left: 20px;
    }

    .brand-name {
        font-size: 21px;
    }

    .desktop-links {
        gap: 12px;
    }

    .desktop-link,
    .branches-trigger {
        font-size: 14px;
    }

    .branches-trigger {
        padding-inline: 13px;
    }

    .appointment-button {
        padding-inline: 15px;
        font-size: 14px;
    }

    .login-button {
        padding-inline: 14px;
        min-height: 48px;
        font-size: 14px;
    }

    .login-button svg {
        width: 21px;
        height: 21px;
    }

    .nav-cta-group {
        gap: 8px;
    }

    .branch-mega-menu {
        left: 9%;
        right: 9%;
    }

    .branch-mega-menu::before {
        left: 70%;
    }
}

@media (max-width: 1100px) {
    .navbar-demo {
        padding: 0;
    }

    .desktop-navigation {
        display: none;
    }

    .mobile-navigation {
        display: block;
        max-width: 520px;
        margin: 0 auto;
    }

    .mobile-header.is-menu-open {
        border-radius: 11px 11px 0 0;
        box-shadow: 0 8px 18px rgba(11, 42, 75, 0.1);
    }
}

@media (max-width: 470px) {
    .navbar-demo {
        padding: 0;
    }

    .mobile-navigation {
        width: 100%;
        max-width: none;
    }

    .mobile-header {
        height: 70px;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 43px;
        gap: 8px;
        padding: 7px 9px 7px 12px;
        border-width: 0 0 1px;
        border-radius: 0;
    }

    .mobile-header.is-menu-open {
        border-radius: 0;
    }

    .mobile-navigation .brand {
        gap: 7px;
    }

    .mobile-navigation .brand-mark {
        width: auto;
        height: 52px;
        max-width: none;
        flex: 0 0 auto;
        object-fit: contain;
        display: block;
    }

    .mobile-navigation .brand-name {
        font-size: 16px;
    }

    .mobile-icon-button {
        width: 43px;
        height: 43px;
    }

    .mobile-icon-button svg {
        width: 23px;
        height: 23px;
    }

    .mobile-menu-panel {
        margin-top: 0;
        border-width: 0 0 1px;
        border-radius: 0 0 10px 10px;
    }

    .mobile-nav-link,
    .mobile-branches-trigger {
        min-height: 46px;
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.desktop-navbar .brand {
    height: 100%;
    align-self: center;
    justify-self: start;
}

.desktop-navbar .brand-mark {
    height: var(--desktop-logo-height);
    align-self: center;
    margin: auto 0;
    object-position: left center;
    transform: translateY(var(--desktop-logo-offset-y));
}

/* Keep every desktop navbar item on the exact vertical center line. */
@media (min-width: 1101px) {
    .desktop-navbar {
        height: var(--desktop-navbar-height) !important;
        min-height: var(--desktop-navbar-height) !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
    }

    .desktop-navigation.is-sticky .desktop-navbar {
        height: var(--desktop-sticky-navbar-height) !important;
        min-height: var(--desktop-sticky-navbar-height) !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .desktop-navbar>.brand,
    .desktop-navbar>.desktop-links,
    .desktop-navbar>.desktop-appointment {
        align-self: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .desktop-navbar>.brand {
        transform: none;
    }

    .desktop-navbar>.desktop-links,
    .desktop-navbar>.desktop-appointment {
        transform: translateY(var(--desktop-content-offset-y)) !important;
    }

    .desktop-navbar>.desktop-links {
        height: 100%;
        align-items: center !important;
    }

    .desktop-navbar .desktop-link,
    .desktop-navbar .desktop-appointment {
        position: relative;
        top: auto !important;
        bottom: auto !important;
    }
}