/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(254, 248, 231, 0.1);
}

/* ============================================
   LOGO - Tight clickable area
   ============================================ */

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;        /* Exact height of logo */
    width: fit-content;  /* Only as wide as the image */
    padding: 0;
    margin: 0;
    text-decoration: none;
    line-height: 0;      /* Remove extra space */
    font-size: 0;        /* Remove any text spacing */

}

.logo-link img {
    height: 150px;
    padding-top: 15px;
    width: auto;
    max-width: none;     /* Override any max-width constraints */
    display: block;
    pointer-events: none; /* Clicks pass through to parent <a> */
}

/* ============================================
   NAVIGATION - Horizontal row layout
   ============================================ */

/* Override Bootstrap's row class behavior */
.nav {
    display: flex !important;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Use specific class to avoid Bootstrap conflicts */
.nav .row {
    display: flex !important;
    flex-direction: row !important;  /* Force horizontal */
    flex-wrap: nowrap !important;    /* No wrapping */
    align-items: center;
    justify-content: flex-end;
    gap: 8px;                        /* Space between items */
    padding: 0;
    margin: 0;
    list-style: none;
    width: auto;
    height: 100%;
}

.nav .row li {
    display: flex;
    align-items: center;
    height: 100%;
    width: auto;
    padding: 0;
    margin: 0;
    float: none;                     /* Clear any floats */
}

.nav-link {
    display: inline-flex;            /* Better than block for nav items */
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #FEF8E7;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;             /* Prevent text wrapping */
    height: auto;
    line-height: 1;
}

.nav-link:hover {
    color: #777B3A;
    background-color: #FEF8E7;
}

.nav-link.active {
    color: #777B3A;
    background-color: #FEF8E7;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: #FEF8E7;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

.nav-link.active::after {
    width: 60%;
    left: 20%;
}

/* Remove the problematic ::before that was causing layout issues */
.nav-link::before {
    display: none;
}

/* ============================================
   BOTTOM NAVIGATION BAR - Mobile
   ============================================ */

.bottom-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #2C281E 0%, #3F392B 100%);
    border-top: 1px solid rgba(254, 248, 231, 0.1);
    z-index: 1000;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(254, 248, 231, 0.6);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 60px;
}

.bottom-nav-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #FEF8E7;
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.contact-logo-global {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.contact-logo-global img {
    height: 240px;
    width: auto;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* Tablet and below - remove backdrop filter and border */
@media (max-width: 768px) {
    .header {
        padding: 0 24px;
        height: 70px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none !important;        /* Force remove */
        box-shadow: none !important;            /* Remove any shadow */
        background: transparent !important;     /* Fully transparent */
        position: absolute;                     /* Remove from document flow */
        
        /* Center the logo using flexbox */
        display: flex;
        justify-content: center;                /* Horizontal center */
        align-items: center;                    /* Vertical center */
    }

    .logo-link {
        position: absolute;                     /* Take out of flex flow */
        left: 50%;                              /* Position at center */
        transform: translateX(-50%);            /* Shift back by half width */
        height: 52px;
    }

    .logo-link img {
        height: 52px;
        margin: 0;                              /* Remove your margin-left */
    }

    /* Hide desktop nav, show bottom nav */
    .nav {
        display: none !important;
    }

    .bottom-nav-bar {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    .logo-link {
        left: 50%;
        transform: translateX(-50%);
        height: 182px;
    }
    .logo-link img {
        height: 182px;
        margin: 0;
    }
    
}

@media (max-width: 480px) {
    .header {
        height: 60px;
        padding: 0 16px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none !important;
        box-shadow: none !important;
        background: transparent !important;
        
        /* Keep flexbox centering */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-link {
        left: 50%;
        transform: translateX(-50%);
        height: 46px;
    }

    .logo-link img {
        height: 182px;
        margin: 0;
    }

    
}