/* ============================================
   Ace Flight Center - Responsive Styles
   ============================================ */

/* ---- Tablet (max 1024px) ---- */
@media (max-width: 1024px) {
    :root {
        --text-hero: 3.5rem;
        --text-5xl: 2.5rem;
    }

    /* Feature Bar */
    .feature-bar-section {
        margin-top: -50px;
    }

    .feature-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(1),
    .feature-item:nth-child(3) {
        border-right: 1px dashed rgba(255, 255, 255, 0.25);
    }

    .feature-item:nth-child(2),
    .feature-item:nth-child(4) {
        border-right: none;
    }

    .feature-item:nth-child(1),
    .feature-item:nth-child(2) {
        border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    }

    .feature-item:nth-child(3),
    .feature-item:nth-child(4) {
        border-bottom: none;
    }

    .info-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-item:nth-child(2) {
        border-right: none;
    }

    .info-item:nth-child(1),
    .info-item:nth-child(2) {
        border-bottom: 1px solid var(--color-light-gray);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Mobile Large (max 768px) ---- */
@media (max-width: 768px) {
    :root {
        --text-hero: 2.75rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    /* Header */
    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-logo img {
        height: 60px;
    }

    .site-header.scrolled .header-logo img {
        height: 50px;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-label::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    /* Feature Bar */
    .feature-bar-section {
        margin-top: -35px;
    }

    .feature-bar {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: none !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
        padding: 18px 20px;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    /* Info Bar */
    .info-bar {
        grid-template-columns: 1fr;
    }

    .info-item {
        border-right: none;
        border-bottom: 1px solid var(--color-light-gray);
    }

    .info-item:last-child {
        border-bottom: none;
    }

    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-main {
        padding-top: 85px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }

    .footer-brand .social-icons {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto var(--space-lg);
    }

    .footer-col-title::after {
        left: 0;
    }

    /* Footer Bottom Widgets */
    .footer-bottom-widgets {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 28px;
        text-align: center;
    }

    .widget-stay-loop {
        align-items: center;
        text-align: center;
    }

    .stay-loop-header {
        justify-content: center;
    }

    .loop-form {
        max-width: 420px;
        margin: 0 auto;
    }

    .widget-faa-certified {
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed rgba(255, 255, 255, 0.15);
        padding-top: 24px;
    }

    .footer-plane-swoosh-edge {
        position: relative;
        width: 100%;
        max-width: 320px;
        min-width: 0;
        margin: 20px auto 0;
        justify-content: center;
    }

    .take-flight-graphic-full {
        max-height: 80px;
        object-position: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    /* Page Banner */
    .page-banner {
        height: 300px;
    }

    .page-banner-title {
        font-size: var(--text-4xl);
    }
}

/* ---- Mobile Small (max 480px) ---- */
@media (max-width: 480px) {
    :root {
        --text-hero: 2.25rem;
        --text-5xl: 1.75rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .btn {
        padding: 10px 22px;
        font-size: var(--text-xs);
    }

    .hero {
        min-height: 70vh;
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .loop-input-wrap {
        flex-direction: column;
        border-radius: 14px;
        padding: 10px;
        gap: 8px;
    }

    .loop-input {
        width: 100%;
        text-align: center;
    }

    .loop-btn {
        width: 100%;
        justify-content: center;
    }

    .faa-badges-row {
        gap: 14px;
    }

    .faa-seal-img,
    .faa-wings-img {
        height: 40px;
    }

    .newsletter-btn {
        border-radius: var(--radius-pill);
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 250px;
    }

    .page-banner-title {
        font-size: var(--text-3xl);
    }

    .card {
        padding: var(--space-xl);
    }

    .quote-block {
        padding: var(--space-xl);
    }
}

/* ---- Mobile Overlay Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 28, 66, 0.98);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

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

.mobile-menu-list {
    text-align: center;
}

.mobile-menu-list li {
    margin-bottom: var(--space-lg);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-menu-list li {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-list li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-list li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-list li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-list li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu-list li:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-menu-list li:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu.active .mobile-menu-list li:nth-child(9) { transition-delay: 0.5s; }

.mobile-menu-link {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--space-sm) var(--space-xl);
    display: inline-block;
    transition: color var(--transition-fast);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--color-red);
}

.mobile-menu-cta {
    margin-top: var(--space-2xl);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.55s;
}

.mobile-menu.active .mobile-menu-cta {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.mobile-menu-close span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-white);
    position: absolute;
    top: 50%;
    left: 50%;
}

.mobile-menu-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}
