/* ============================================
   OPTINAMPOUT - UNIFIED HEADER SYSTEM
   Single Source of Truth for All Page Headers
   Version: 2.0.0 - Mobile Hamburger Menu
   Last Updated: 2025-10-13
   ============================================ */

/* ===== HEADER CONTAINER ===== */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
    border-bottom: 2px solid #FF6B35;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
}

/* ===== LOGO SECTION ===== */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span:nth-child(1) {
    color: #ffffff;
}

.logo span:nth-child(2) {
    color: #FF6B35;
    margin: 0 4px;
}

.logo span:nth-child(3) {
    color: #00B4D8;
}

.logo-subtext {
    color: #00B4D8;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 5px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 180, 216, 0.3);
    text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

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

nav ul li {
    margin: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 16px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #00B4D8);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #FF6B35;
    transform: translateY(-2px);
}

/* ===== CTA BUTTON ===== */
.nav-cta {
    background: linear-gradient(135deg, #FF6B35, #f94c10);
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #F77737, #FF6B35);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
}

.nav-cta:hover::after {
    width: 0;
}

/* ===== HAMBURGER MENU BUTTON (Hidden on Desktop) ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ===== MOBILE OVERLAY ===== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

/* ===== MOBILE RESPONSIVENESS ===== */

/* Tablet screens */
@media (max-width: 1024px) {
    .header-container {
        padding: 12px 20px;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 15px;
        padding: 6px 12px;
    }

    .logo {
        font-size: 28px;
    }
}

/* Mobile screens - HAMBURGER MENU */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
    }

    .logo-wrapper {
        align-items: flex-start;
    }

    .logo {
        font-size: 26px;
        letter-spacing: 1.5px;
    }

    .logo-subtext {
        font-size: 9px;
        letter-spacing: 2px;
        margin-top: 3px;
    }

    /* Show hamburger button */
    .menu-toggle {
        display: flex;
    }

    /* Show overlay when active */
    .menu-overlay {
        display: block;
    }

    /* Slide-out mobile navigation */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.98);
        transition: right 0.3s ease;
        padding-top: 70px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        justify-content: flex-start;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 15px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        margin-bottom: 15px;
    }

    nav a {
        font-size: 1rem;
        padding: 10px;
        border-radius: 5px;
        width: 100%;
        display: block;
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    nav a::after {
        display: none;
    }

    .nav-cta {
        background: linear-gradient(135deg, #FF6B35, #f94c10);
        text-align: center;
        margin-top: 20px;
        padding: 12px 20px !important;
        width: 100%;
    }

    .nav-cta:hover {
        transform: none;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .header-container {
        padding: 10px 12px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        width: 80%;
    }
}

/* ===== ACTIVE PAGE INDICATOR ===== */
nav a.active {
    background: rgba(0, 180, 216, 0.2);
    color: #00B4D8;
    border-bottom: 2px solid #00B4D8;
}

/* ===== ACCESSIBILITY ===== */
nav a:focus {
    outline: 2px solid #00B4D8;
    outline-offset: 2px;
}

.logo:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 4px;
}

/* ===== PRINT STYLES ===== */
@media print {
    header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }

    nav {
        display: none;
    }
}
