﻿/* ==========================================
   PREMIUM FLOATING OVAL NAVIGATION
   ========================================== */


/* Main fixed header */

.site-header {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-inline: 3%;
}


/* Floating oval capsule */

.nav-pill {
    width: 100%;
    max-width: 1440px;
    min-height: 78px;
    margin-inline: auto;
    padding: 10px 20px 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--brand-navy);
    color: var(--brand-white);
    border: 1px solid rgba(197, 164, 109, 0.85);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-navigation);
    transition: background var(--transition-standard), box-shadow var(--transition-standard);
    
}


/* Header scroll state */

.site-header.is-scrolled .nav-pill {
    background: var(--brand-navy-deep);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}


/* ==========================================
   BRAND / DOCTOR IMAGE
   ========================================== */

.nav-brand {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}


.nav-brand-image {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid var(--brand-gold);
    background: var(--brand-navy-light);
}


.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}


.brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--brand-white);
}


.brand-subtitle {
    font-family: var(--font-body);
    margin-top: 3px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}


/* ==========================================
   DESKTOP NAVIGATION
   ========================================== */

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.5vw, 25px);
}


    .desktop-nav .nav-link {
        font-family: var(--font-body);
        position: relative;
        display: inline-flex;
        align-items: center;
        color: var(--brand-white);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: color var(--transition-standard);
        letter-spacing: 0.5px;
    }


        /* Gold animated underline */

        .desktop-nav .nav-link::after {
            content: "";
            position: absolute;
            left: 0;
            right: 100%;
            bottom: -8px;
            height: 2px;
            background: var(--brand-gold);
            transition: width 0.15s ease-out;
        }


        .desktop-nav .nav-link.active::after {
            width: 100%;
        }

        .desktop-nav .nav-link:hover::after {
            right: 0;
        }


/* ==========================================
   APPOINTMENT BUTTON
   Shared desktop and mobile button
   ========================================== */

.nav-appointment {
    font-family: var(--font-body);
    min-height: 44px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--brand-gold);
    border-radius: var(--radius-pill);
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard);
}


    .nav-appointment:hover {
        background: transparent;
        color: var(--brand-white);
        border-color: var(--brand-gold-light);
    }


.appointment-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: var(--brand-gold);
    transition: transform var(--transition-standard);
}


.nav-appointment:hover .appointment-arrow {
    transform: rotate(45deg);
}


.nav-arrow-icon {
    font-style: normal;
    font-size: 13px;
}


/* ==========================================
   MOBILE ACTIONS
   Appointment + Hamburger
   ========================================== */

.mobile-nav-actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}


/* Mobile appointment button */

.mobile-appointment {
    font-family: var(--font-body);
    min-height: 38px;
    padding-inline: 14px;
    font-size: 11px;
    gap: 0;
}


/* ==========================================
   STYLISH ANIMATED HAMBURGER
   ========================================== */

.menu-toggle {
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background var(--transition-standard), border-color var(--transition-standard), transform var(--transition-standard);
}


    .menu-toggle:hover {
        background: rgba(197, 164, 109, 0.15);
        border-color: var(--brand-gold);
    }


    .menu-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 5px;
        background: var(--brand-white);
        transition: transform 250ms ease, opacity 200ms ease, width 250ms ease;
    }


        /* Slightly shorter bottom line */

        .menu-toggle span:nth-child(3) {
            width: 13px;
            margin-left: 6px;
        }


    /* Hamburger transforms into X */

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }


    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }


    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        width: 19px;
        margin-left: 0;
        transform: translateY(-7px) rotate(-45deg);
    }


/* ==========================================
   MOBILE DRAWER OVERLAY
   ========================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(4, 14, 25, 0.70);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}


/* ==========================================
   MOBILE SLIDE-IN DRAWER
   ========================================== */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    width: min(380px, 88vw);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 25px;
    overflow-y: auto;
    background: var(--brand-navy);
    color: var(--brand-white);
    border-left: 1px solid rgba(197, 164, 109, 0.22);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.25);
    transform: translateX(105%);
    transition: transform 300ms cubic-bezier(.22, .61, .36, 1);
}


/* Drawer header */

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}


/* Drawer close button */

.drawer-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(197, 164, 109, 0.45);
    border-radius: 50%;
    background: rgba(197, 164, 109, 0.08);
    color: var(--brand-gold);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-standard), transform var(--transition-standard);
}


    .drawer-close:hover {
        background: rgba(197, 164, 109, 0.20);
        transform: rotate(90deg);
    }


/* Drawer introduction */

.drawer-intro {
    padding: 28px 0 15px;
}


.drawer-eyebrow {
    color: var(--brand-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}


.drawer-intro p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}


/* ==========================================
   MOBILE NAVIGATION LINKS
   ========================================== */

.mobile-nav {
    display: flex;
    flex-direction: column;
}


.mobile-nav-link {
    font-family: var(--font-body);
    min-height: 60px;
    display: grid;
    grid-template-columns: 34px 1fr 24px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    color: var(--brand-white);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-standard), padding var(--transition-standard);
}


    .mobile-nav-link:hover {
        color: var(--brand-gold);
        padding-left: 7px;
    }


.mobile-nav-number {
    color: var(--brand-gold);
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.8;
}


.mobile-nav-arrow {
    color: var(--brand-gold);
    font-size: 17px;
    opacity: 0;
    transform: translate(-5px, 5px);
    transition: opacity var(--transition-standard), transform var(--transition-standard);
}


.mobile-nav-link:hover .mobile-nav-arrow {
    opacity: 1;
    transform: translate(0, 0);
}


/* ==========================================
   DRAWER APPOINTMENT
   ========================================== */

.drawer-appointment {
    margin-top: 30px;
    padding: 19px;
    border: 1px solid rgba(197, 164, 109, 0.25);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.045);
}


    .drawer-appointment p {
        font-family: var(--font-body);
        margin: 0 0 13px;
        color: rgba(255, 255, 255, 0.75);
        font-size: 13px;
    }


.drawer-appointment-button {
    font-family: var(--font-body);
    min-height: 48px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-pill);
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-standard);
}


    .drawer-appointment-button:hover {
        background: var(--brand-gold-light);
    }


    .drawer-appointment-button span {
        font-size: 20px;
    }


/* Drawer footer */

.drawer-footer {
    margin-top: 32px;
    padding-top: 17px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


    .drawer-footer span:first-child {
        color: var(--brand-white);
        font-size: 13px;
        font-weight: 600;
    }


    .drawer-footer span:last-child {
        color: rgba(255, 255, 255, 0.52);
        font-size: 11px;
    }


/* ==========================================
   DRAWER OPEN STATE
   ========================================== */

body.menu-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}


body.menu-open .mobile-drawer {
    transform: translateX(0);
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1100px) {

    .desktop-nav {
        display: none;
    }

    .mobile-nav-actions {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-pill {
        min-height: 70px;
        padding: 9px 14px 9px 23px;
    }
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

    .site-header {
        top: 12px;
        padding-inline: 3%;
    }

    .nav-pill {
        min-height: 62px;
        padding: 7px 9px 7px 12px;
        gap: 7px;
    }

    .nav-brand {
        gap: 8px;
    }

    .nav-brand-image {
        width: 39px;
        height: 39px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .mobile-nav-actions {
        gap: 7px;
    }

    .mobile-appointment {
        min-height: 35px;
        padding-inline: 10px;
        font-size: 10px;
    }

    .menu-toggle {
        width: 39px;
        height: 39px;
        gap: 4px;
    }

        .menu-toggle span {
            width: 17px;
        }

            .menu-toggle span:nth-child(3) {
                width: 12px;
                margin-left: 5px;
            }

        .menu-toggle[aria-expanded="true"] span:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
        }

        .menu-toggle[aria-expanded="true"] span:nth-child(3) {
            width: 17px;
            margin-left: 0;
            transform: translateY(-6px) rotate(-45deg);
        }
}


/* Very narrow mobile screens */

@media (max-width: 360px) {

    .brand-name {
        font-size: 15px;
    }

    .brand-subtitle {
        font-size: 7px;
    }

    .nav-brand-image {
        width: 35px;
        height: 35px;
    }

    .mobile-appointment {
        min-height: 33px;
        padding-inline: 8px;
        font-size: 9px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }
}


/* ==========================================
   ACCESSIBILITY
   ========================================== */

.nav-pill a:focus-visible,
.menu-toggle:focus-visible,
.drawer-close:focus-visible,
.mobile-drawer a:focus-visible {
    outline: 2px solid var(--brand-gold-light);
    outline-offset: 4px;
}


@media (prefers-reduced-motion: reduce) {

    .nav-pill,
    .menu-toggle,
    .menu-toggle span,
    .drawer-overlay,
    .mobile-drawer,
    .mobile-nav-link,
    .drawer-close {
        transition: none;
    }
}


/* Smooth navigation transitions */
.site-header {
    transition: all 0.4s ease;
}

.nav-pill {
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, padding 0.4s ease;
}

/* Header after scrolling */
.site-header.is-scrolled .nav-pill {
    background: rgba(11, 27, 43, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    transform: scale(0.985);
}

.nav-pill {
    border: 1px solid rgba(197, 164, 109, 0.85);
}

/* Golden shimmering oval navigation border */
.nav-pill {
    border: 1px solid #C5A46D;
    animation: goldEdgeShimmer 2.5s ease-in-out infinite;
}

@keyframes goldEdgeShimmer {
    0%, 100% {
        border-color: rgba(197, 164, 109, 0.45);
        box-shadow: 0 0 3px rgba(197, 164, 109, 0.10);
    }

    50% {
        border-color: #F5D994;
        box-shadow: 0 0 7px rgba(197, 164, 109, 0.45), 0 0 14px rgba(197, 164, 109, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-pill {
        animation: none;
        border-color: #C5A46D;
    }
}



/* ==========================================
   ACTIVE NAVIGATION STATES
   ========================================== */

/* Desktop active link */

.desktop-nav .nav-link.active {
    color: var(--brand-gold);
    font-weight: 600;
}

    .desktop-nav .nav-link.active::after {
        width: 100%;
    }

/* Desktop appointment active state */

.desktop-nav .nav-appointment.active {
    background: var(--brand-gold);
    color: var(--brand-navy-deep);
}

/* Mobile active link */

.mobile-nav .mobile-nav-link.active {
    color: var(--brand-gold);
}

/* Mobile active number and arrow */

.mobile-nav-link.active .mobile-nav-number,
.mobile-nav-link.active .mobile-nav-arrow {
    color: var(--brand-gold);
}