:root {
    --blue: #00448b;
    --black: #000;
    --green: #62c404;
    --gray: #f4f4f4;
    --text: #6c6c6c;
    --muted: #6b7280;
    --white: #fff;
    --mobile-bg: #05070c;
    --mobile-accent: #0b6f92;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

nav {
    position: fixed;
    z-index: 99999;
    width: min(82%, 1200px);
    background: var(--blue);
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 70px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: "Google Sans", sans-serif;
}

nav.shrink {
    background: var(--blue);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

nav .wrapper {
    position: relative;
    padding: 0 30px;
    height: 64px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links-desktop .group-left,
.nav-links-desktop .group-right {
    position: relative;
}

.nav-links-desktop .group-left a {
    font-weight: 600;
    font-size: 17px;
}

.nav-links-desktop .group-left.divider-after {
    margin-right: 18px;
    padding-right: 18px;
    position: relative;
}

.nav-links-desktop .group-left.divider-after::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%);
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 9px 0;
    margin: 0 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: capitalize;
    white-space: nowrap;
    display: block;
}

.appointment_btn {
    background: var(--green);
    color: #fff !important;
    padding: 10px 20px !important;
    margin: 0 0 0 10px !important;
    border-radius: 25px;
    font-weight: 700;
}

.menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    line-height: 1;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 100001;
}

.burger-icon {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.burger-icon span {
    display: block;
    height: 2.5px;
    background: #f0ffe9;
    border-radius: 3px;
    transition: all 0.35s ease;
    transform-origin: center;
}

.burger-icon span:nth-child(2) {
    width: 75%;
    margin-left: auto;
}

.burger-icon span:nth-child(3) {
    width: 88%;
    margin-left: auto;
}

/* OPEN STATE -> burger becomes X */
.menu-btn.active .burger-icon {
    height: 22px;
}

.menu-btn.active .burger-icon span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    width: 100%;
    background: #fff;
}

.menu-btn.active .burger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.active .burger-icon span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    width: 100%;
    margin-left: 0;
    background: #fff;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99990;
    transition: background 0.35s ease;
}

.nav-overlay.active {
    display: block;
    background: rgba(0, 0, 0, 0.58);
}

.nav-links-mobile {
    position: fixed;
    top: 92px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100vh - 104px);
    background: var(--mobile-bg);
    transform: translateX(-110%);
    transition: transform 0.35s ease;
    z-index: 99995;
    overflow-y: auto;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.45);
    padding-bottom: 24px;
    border-radius: 28px;
    -webkit-overflow-scrolling: touch;
}

.nav-links-mobile.open {
    transform: translateX(0);
}

.mobile-close-row {
    display: none;
}

.mobile-brand {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 22px 20px 24px;
}

.mobile-nav-list li {
    margin: 0 0 6px;
}

.mobile-nav-list li a {
    display: block;
    text-decoration: none;
    color: #e7e7e7;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 12px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-list li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.mobile-nav-list li:nth-child(1) a,
.mobile-nav-list li:nth-child(2) a {
    color: #5cd8ff;
    font-weight: 600;
}

.mobile-nav-list .appointment_btn {
    display: block;
    text-align: center;
    margin: 16px 0 0 !important;
    border-radius: 999px;
    background: #00448b !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    nav {
        width: 90%;
    }

    nav .wrapper {
        padding: 0 22px;
    }

    .nav-links li a {
        margin: 0 10px;
        font-size: 14px;
    }

    .nav-links-desktop .group-left a {
        font-size: 16px;
    }
}

@media (max-width: 1000px) {
    nav {
        width: calc(100% - 24px);
        top: 14px;
        border-radius: 999px;
    }

    nav .wrapper {
        height: 66px;
        padding: 0 18px;
    }

    .nav-links-desktop {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links-mobile {
        top: 92px;
        left: 12px;
        width: calc(100% - 24px);
        height: calc(100vh - 106px);
        border-radius: 28px;
    }
}

@media (min-width: 1001px) {
    .nav-links-mobile,
    .nav-overlay {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .nav-links-mobile {
        top: 84px;
        left: 10px;
        width: calc(100% - 20px);
        height: calc(100vh - 94px);
        border-radius: 24px;
    }

    .mobile-nav-list {
        padding: 20px 18px 24px;
    }
}

@media (max-width: 576px) {
    nav {
        width: calc(100% - 16px);
        top: 10px;
    }

    nav .wrapper {
        height: 60px;
        padding: 0 16px;
    }

    .logo a {
        font-size: 18px;
    }

    .nav-links-mobile {
        top: 78px;
        left: 8px;
        width: calc(100% - 16px);
        height: calc(100vh - 86px);
        border-radius: 22px;
    }

    .mobile-nav-list {
        padding: 18px 16px 22px;
    }

    .mobile-nav-list li a {
        font-size: 15px;
        padding: 13px 10px;
    }

    .mobile-nav-list .appointment_btn {
        padding: 15px 18px !important;
        margin-top: 14px !important;
    }

    .menu-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 420px) {
    .nav-links-mobile {
        top: 76px;
        left: 8px;
        width: calc(100% - 16px);
        height: calc(100vh - 84px);
        border-radius: 20px;
    }

    .mobile-nav-list {
        padding: 16px 14px 20px;
    }

    .mobile-nav-list li a {
        font-size: 14px;
        padding: 12px 10px;
    }
}