/* ----------------- Fixed Navbar ----------------- */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: height 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 clamp(1.5rem, 4vw, 5rem);
    width: 100%;
}

/* ---------- Logo ---------- */
.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-image {
    max-height: 90px;
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

/* ---------- Mobile Toggle Button ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.nav-toggle-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text, #333);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ---------- Navigation ---------- */
.nav-menu {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text, #333);
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Hover underline */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--color-accent-dark);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent-peach, #ff8c42);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---------- Buttons ---------- */
.sign-in-btn {
    background-color: transparent;
    border: 2px solid var(--color-accent-dark);
    border-radius: 4px;
    padding: 5px 12px;
    font-weight: 600;
}

.book-btn {
    background-color: var(--color-accent-dark);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-top: 0px;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- Body Offset ---------- */
body {
    padding-top: 100px;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .logo-image {
        max-height: 95px;
    }

    body {
        padding-top: 105px;
    }

    .nav-header {
        height: 105px;
    }
}

/* Medium desktops (992px to 1199px) */
@media (max-width: 1199px) {
    .logo-image {
        max-height: 85px;
    }

    .nav-links {
        gap: 20px;
    }
}

/* Tablets and smaller (991px and below) */
@media (max-width: 991px) {
    .logo-image {
        max-height: 70px;
    }

    .nav-links {
        gap: 15px;
    }
}

/* ===== MOBILE NAVIGATION (768px and below) ===== */
@media (max-width: 768px) {
    /* Show mobile toggle button */
    .nav-toggle {
        display: flex;
    }

    /* Keep navbar at standard height */
    .nav-header {
        height: 80px;
    }

    .logo-image {
        max-height: 60px;
    }

    /* Mobile menu - hidden by default */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    /* Show menu when active */
    .nav-menu.active {
        transform: translateX(0);
    }

    /* Vertical navigation layout */
    .nav-links {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 40px 20px;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-top: 30px;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    .book-btn {
        width: 200px;
        padding: 12px 24px;
        font-size: 1.1rem;
    }

    body {
        padding-top: 80px;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Small mobile devices (575px and below) */
@media (max-width: 575px) {
    .nav-header {
        height: 70px;
    }

    .logo-image {
        max-height: 50px;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .book-btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 1rem;
    }

    body {
        padding-top: 70px;
    }
}

/* Extra small devices (475px and below) */
@media (max-width: 475px) {
    .nav-header {
        height: 65px;
    }

    .logo-image {
        max-height: 45px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav-links a {
        font-size: 1rem;
    }

    body {
        padding-top: 65px;
    }
}

/* Accessibility: Focus states */
.nav-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.nav-links a:focus-visible,
.book-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* Active page indicator */
.nav-links li.active a {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-links li.active a::after {
    width: 100%;
}


/* 1920px+ (ultra-wide monitors) */
@media (min-width: 1920px) {
    .nav-container {
        padding: 0 4rem;
    }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
    .nav-header {
        height: 60px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .logo-image {
        max-height: 40px;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    body {
        padding-top: 60px;
    }
}