/* Header Styles - Amora Eternal Light */

/* Top Header Styles */
.top-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
    /* Keep the top header fixed so it sits above the main header */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Ensure it's above the main header (main-header uses z-index:1030) */
    z-index: 1040;
}

.top-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Main Header Styles - FIXED POSITION */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* When top header is visible, push main header down */
body:not(.top-header-hidden) .main-header {
    top: var(--top-header-height, 50px);
}

.main-header.shrink {
    padding: 0.8rem 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

/* Body padding to prevent content from going behind fixed header */
body {
    padding-top: var(--total-header-height, 120px);
}

/* Rest of your existing styles remain the same */
.contact-info a {
    color: var(--text-dark);
    margin-right: 2rem;
    transition: var(--transition);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-left: 0.8rem;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-book-now-top {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    border-radius: var(--button-radius);
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    min-width: 130px;
    font-family: var(--font-primary);
    box-shadow: var(--shadow);
}

.btn-book-now-top:hover {
    background-color: transparent;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.top-header .container .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header .contact-info {
    display: flex;
    align-items: center;
}

.top-header .text-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    width: 55px;
    height: 55px;
    transition: var(--transition);
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-soft);
    box-shadow: var(--shadow);
}

.shrink .logo {
    width: 45px;
    height: 45px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-dark);
    transition: var(--transition);
    opacity: 1;
    letter-spacing: -0.5px;
}

.shrink .brand-name {
    /* Keep the brand name visible when header shrinks but make it smaller
       so it matches the compact header state instead of disappearing */
    opacity: 1;
    font-size: 1.05rem; /* slightly smaller than default 1.6rem */
    margin: 0;
    transform: translateY(-2px);
    transition: var(--transition);
}

.navbar-nav {
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 0.6rem 0;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 44, 44, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: var(--transition);
    width: 1.2em;
    height: 1.2em;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.5rem;
        background: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-hover);
        border: 1px solid var(--border-light);
    }
    
    .nav-link {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 1.1rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
        transform: translateX(5px);
    }
}

/* Tablet and Mobile Adjustments */
@media (max-width: 767.98px) {
    .contact-info {
        display: none !important;
    }
    
    .social-links {
        display: none !important;
    }
    
    .top-header .text-end {
        width: 100%;
        justify-content: center;
    }
    
    .btn-book-now-top {
        margin-left: 0;
        padding: 0.7rem 2rem;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .top-header {
        padding: 0.8rem 0;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    body {
        padding-top: 140px;
    }
}

@media (max-width: 575.98px) {
    .brand-name {
        font-size: 1.3rem;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .btn-book-now-top {
        min-width: 120px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .main-header {
        padding: 1rem 0;
    }
    
    .main-header.shrink {
        padding: 0.6rem 0;
    }
    
    body {
        padding-top: 130px;
    }
}