/* 
   MOBILE-ONLY STYLES: OPTICAL TEXT ALIGNMENT V44
   - Wrapper: .hero-copy ensures shared container context.
   - Alignment: Left-aligned content within a Centered (max-width) block.
   - Eyebrow: Padding adjusted for optical balance vs Title.
   - Title: text-wrap: balance for optimal stacking.
*/

@media screen and (max-width: 768px) {

    /* 1. Global Scale */
    .container {
        width: 90% !important;
        margin: 0 auto !important;
    }

    body.no-scroll {
        overflow: hidden !important;
        height: 100vh !important;
    }

    /* 2. Header & Actions (Absolute Fixed) */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: transparent !important;
        z-index: 1000000 !important;
        border-bottom: none !important;
        padding: 10px 0 !important;
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 60px !important;
        position: relative !important;
    }

    .site-logo {
        height: 55px !important;
        width: auto !important;
        position: relative !important;
        z-index: 1000001 !important;
        margin-left: 0 !important;
    }

    .header-actions-wrapper {
        position: absolute !important;
        top: 50% !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        z-index: 1000002 !important;
    }

    .lang-btn {
        height: 38px !important;
        padding: 0 12px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 4px !important;
    }

    .mobile-toggle {
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
        display: flex !important;
        flex-direction: column !important;
        /* Critical for stacking lines */
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        /* Gap between lines */
        padding: 0 !important;
        z-index: 1000003 !important;
        /* Ensure clickability */
    }

    /* RESTORED: The 3 lines of the burger menu */
    .mobile-toggle span {
        width: 20px !important;
        height: 2px !important;
        background: #fff !important;
        display: block !important;
        border-radius: 2px !important;
        transition: all 0.3s ease-in-out !important;
        transform-origin: center !important;
    }

    /* Active State (X Transform) - Precise Calculation */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        width: 0 !important;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* 3. HERO LAYOUT CENTERED */
    .hero {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        /* Default fallback */
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* HERO COPY WRAPPER - STRICT ALIGNMENT WITH BUTTONS */
    .hero-copy {
        width: 100% !important;
        max-width: 360px !important;
        /* MATCHES BUTTON CONTAINER EXACTLY */
        margin: 0 auto 24px auto !important;
        /* Centered block, strict bottom gap */
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        /* Forces content to Start (Left) */
        padding: 0 !important;
        /* No internal padding to mess up alignment */
        box-sizing: border-box !important;
    }

    /* KICKER (Eyebrow) - RAW LEFT ALIGNMENT */
    .hero .eyebrow {
        font-size: 0.75rem !important;
        margin: 0 0 10px 0 !important;
        /* Tight spacing to title */
        max-width: 100% !important;
        opacity: 0.9 !important;
        text-align: left !important;
        padding: 0 !important;
        /* REMOVED ALL OFFSETS */
        margin-left: 0 !important;
        /* REMOVED ALL OFFSETS */
        letter-spacing: 0.05em !important;
        order: 0 !important;
        display: block !important;
    }

    /* TITLE - RAW LEFT ALIGNMENT */
    .hero-title {
        font-size: 1.85rem !important;
        /* Balanced readability */
        line-height: 1.15 !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        order: 1 !important;
        display: block !important;
    }

    /* CTA CONTAINER (Matches Text Block) */
    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        /* Changed from center to fill space */
        align-items: stretch !important;
        width: 100% !important;
        max-width: 360px !important;
        /* SAME AS TEXT */
        margin: 0 auto !important;
        /* Centered exactly like text */
        gap: 12px !important;
        order: 2 !important;
        flex-wrap: nowrap !important;
    }

    /* BUTTON LOCK */
    .hero .btn,
    #audio-btn,
    .btn-audio {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 56px !important;
        margin: 0 !important;
        padding: 0 2px !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.75rem !important;
        letter-spacing: -0.01em !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    #audio-btn,
    .btn-audio {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        gap: 0 !important;
    }

    .audio-icon {
        display: inline-flex !important;
        align-items: flex-end !important;
        height: 12px !important;
        margin-right: 8px !important;
        margin-bottom: 2px !important;
    }

    .audio-text {
        display: inline-block !important;
        font-size: 0.7rem !important;
    }

    .bar {
        height: 12px !important;
        width: 3px !important;
    }

    /* 4. Menu Overlay - FULL SCREEN SOLID BLACK (Reference Image Style) */
    .desktop-nav {
        display: flex !important;
        /* Flexbox for centering */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #000 !important;
        /* Solid Black Background */
        z-index: 1000001 !important;
        /* Covers everything except Toggle */

        /* Layout */
        flex-direction: column !important;
        justify-content: center !important;
        /* Vertically Center Items */
        align-items: center !important;
        /* Horizontally Center Items */
        padding: 0 !important;
        margin: 0 !important;

        /* Animation State: Fade In/Out */
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        transform: none !important;
        /* No sliding or scaling, just clean fade */
    }

    .desktop-nav.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* List Container (if exists) or direct anchors */
    .desktop-nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        /* Wide gaps per reference image */
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .desktop-nav a {
        font-family: 'Outfit', sans-serif !important;
        font-size: 1.5rem !important;
        /* Larger text */
        font-weight: 400 !important;
        /* Regular weight */
        color: #e0e0e0 !important;
        /* Slightly off-white for elegance */
        text-transform: uppercase !important;
        letter-spacing: 0.15em !important;
        /* Wide spacing */
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }

    .desktop-nav a:hover {
        color: #fff !important;
    }

    /* 7. General */
    section {
        padding: 60px 0 !important;
    }
}