/* ================================================================
   AETHYRA CONSULTING GROUP — Mobile Enhancements
   assets/css/mobile-enhancements.css

   Loads AFTER style.css. Provides:
     • Skip-to-content link (accessibility)
     • Drawer close button (mobile menu)
     • Sticky mobile CTA bar
     • Hero refinements on small screens
     • prefers-reduced-motion guard
   ================================================================ */


/* ── Skip-to-content link ─────────────────────────────────────── */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 8px;
    background: var(--navy, #0d1f35);
    color: #fff;
    padding: 12px 20px;
    z-index: 1000;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--teal, #1a7a8a);
    outline-offset: 2px;
}


/* ── Mobile drawer close button ──────────────────────────────── */
.nav-drawer-close-item { display: none; }

@media (max-width: 900px) {
    .nav-drawer-close-item {
        display: block !important;
        margin-bottom: 8px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e5e7eb;
        list-style: none;
    }
    .nav-drawer-close {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: none;
        border: none !important;
        padding: 8px 0 !important;
        cursor: pointer;
        font-family: 'DM Sans', sans-serif;
        font-size: 12px !important;
        font-weight: 600;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: #6b7280 !important;
    }
    .nav-drawer-close:hover { color: var(--navy, #0d1f35) !important; }
    .nav-drawer-close svg { flex-shrink: 0; }
}


/* ── Sticky mobile CTA bar ───────────────────────────────────── */
.mobile-cta-bar { display: none; }

@media (max-width: 900px) {
    .mobile-cta-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        background: var(--teal, #1a7a8a);
        color: #fff;
        padding: 14px 20px;
        /* Respect iOS safe area on phones with home indicator */
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
        transition: background 0.2s;
    }
    .mobile-cta-bar:hover,
    .mobile-cta-bar:focus {
        background: var(--teal-light, #2596a8);
        color: #fff;
    }
    .mobile-cta-bar svg { flex-shrink: 0; }

    /* Reserve space at bottom of body so CTA bar doesn't cover footer content */
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    /* Hide CTA bar while mobile drawer is open (full-screen takeover) */
    body.drawer-open .mobile-cta-bar { display: none; }
}


/* ── Hero refinements on small screens ───────────────────────── */
@media (max-width: 600px) {
    /* Drop the "Scroll" indicator — touchscreens cue scroll natively */
    .scroll-indicator { display: none !important; }

    /* Force the four hero stats into a 2x2 grid on phones */
    .hero-stats-inner {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Tighter, fluid hero typography */
    .hero-headline {
        font-size: clamp(28px, 8vw, 40px) !important;
        line-height: 1.1 !important;
    }
    .hero-sub { font-size: 15px !important; }
    .hero-eyebrow { font-size: 11px !important; }
}


/* ── Reduced motion: respect user OS preference ──────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* Force reveal-animation elements to their visible end-state */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
