/* Header Variables */
:root {
    --primary-color: #ffbd59;
    --secondary-color: #0c2759;
    --text-color: #333333;
    --light-color: #ffffff;
    --accent-color: #f39c12;
    --border-color: #e0e0e0;
    --header-height: 70px;
    --transition-speed: 0.3s;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Base Styles */
.site-header {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-speed) ease;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

/* Logo Styles */
.logo {
    z-index: 101;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 120px; /* Slightly increased from 100px */
    min-height: 50px; /* Slightly increased from 40px */
    /* Remove debug border when fixed */
    /* border: 1px solid red; */
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    max-width: 180px; /* Increased from 150px */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.responsive-logo {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 100px; /* Increased from 50px to 70px */
    /* Remove debug styling when fixed */
    /* border: 1px dashed blue; */
    /* background-color: rgba(200, 200, 200, 0.2); */
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    display: block;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-menu li a.active {
    color: var(--light-color);
    background-color: var(--primary-color);
}

/* Space for fixed header */
.header-spacing {
    height: var(--header-height);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* Active burger menu transformation */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--light-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed) ease;
        z-index: 100;
        padding-top: var(--header-height);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 12px 15px;
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed) ease;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-menu li a {
        padding: 5px 8px;
        font-size: 0.9rem;
    }

    .responsive-logo {
        max-height: 55px; /* Increased from 40px to 55px */
    }
}

/* Small Screen Adjustments */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .header-wrapper {
        height: 60px;
    }
    
    .header-spacing {
        height: 60px;
    }
    
    :root {
        --header-height: 60px;
    }
    
    .burger-menu {
        width: 25px;
        height: 18px;
    }
    
    .main-nav {
        width: 80%;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-menu li a {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
}
