/* Responsive Header Styles
   ========================================================================== */

/* Base Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 70px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Navigation Styles */
.header__nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: var(--color-primary-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-accent-gold);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

/* CTA Button */
.header__cta {
    display: flex;
    align-items: center;
}

.btn--ghost {
    background: rgba(11, 11, 13, 0.3);
    border: 1px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn--ghost:hover {
    background: var(--color-accent-gold);
    color: var(--color-background);
}

/* Hamburger Menu (Hidden on Desktop) */
.header__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-primary-text);
    transition: all 0.3s ease;
    transform-origin: center;
}

.header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(15px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.nav-overlay__nav {
    margin-bottom: 2rem;
}

.nav-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav-overlay__list li {
    margin-bottom: 1.5rem;
}

.nav-overlay__link {
    color: var(--color-primary-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-overlay__link:hover {
    color: var(--color-accent-gold);
}

.nav-overlay__cta {
    margin-top: 1rem;
}

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    .header__content {
        height: 60px;
        padding: 0 1rem;
    }
    
    /* Hide desktop navigation */
    .header__nav,
    .header__cta {
        display: none;
    }
    
    /* Show hamburger menu */
    .header__toggle {
        display: flex;
    }
    
    /* Adjust logo for tablet */
    .header__logo .logo {
        gap: 12px !important;
    }
    
    .header__logo .logo .logo__image {
        height: 40px !important;
        width: 40px !important;
    }
    
    .header__logo .logo .logo__text-top,
    .header__logo .logo .logo__text-bottom {
        font-size: 1.2rem !important;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .header__content {
        height: 55px;
        padding: 0 0.75rem;
    }
    
    /* Adjust logo for mobile */
    .header__logo .logo {
        gap: 10px !important;
    }
    
    .header__logo .logo .logo__image {
        height: 35px !important;
        width: 35px !important;
    }
    
    .header__logo .logo .logo__text-top,
    .header__logo .logo .logo__text-bottom {
        font-size: 1rem !important;
    }
    
    .header__logo .logo .logo__flourish {
        width: 25px !important;
    }
    
    /* Smaller hamburger for mobile */
    .header__toggle {
        width: 25px;
        height: 18px;
    }
    
    /* Mobile overlay adjustments */
    .nav-overlay__link {
        font-size: 1.25rem;
    }
}

/* Large Mobile Styles (600px and below) */
@media (max-width: 600px) {
    .header__nav,
    .header__cta {
        display: none;
    }
    
    .header__toggle {
        display: flex;
    }
}

/* Remove body padding to allow hero images to extend to top */
body {
    padding-top: 0;
}

/* Ensure main content sections after hero have proper spacing */
.main > section:not(.hero) {
    margin-top: 0;
}

/* Hero section should extend to full viewport */
.hero {
    min-height: 100vh;
    padding-top: 0;
}

/* Header scroll effect - only add subtle background when scrolled */
.header.scrolled {
    background: rgba(11, 11, 13, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}