/* ==========================================================================
   HEADER RESPONSIVE STYLES (Mobile / Tablets)
   ========================================================================== */




/* ==========================================================================
   TOPBAR RESPONSIVE STYLES
   ========================================================================== */

/* TABLETS (Max Width: 1024px) */
@media screen and (max-width: 1024px) {
    .brand .tag {
        display: none;
        /* Hide tagline to save horizontal space */
    }

    .header-actions {
        gap: 15px;
    }
}

/* MOBILE (Max Width: 768px) */
@media screen and (max-width: 768px) {
    .topbar {
        flex-direction: column;
        /* Stack logo and actions vertically */
        gap: 15px;
        padding: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        /* Allows wrapping if it gets too tight */
    }

    .header-actions .social-links {
        /* display: none; */
        /* Hide social links to keep the mobile header clean and focused on calls/CTA */
    }
}

/* SMALL MOBILE (Max Width: 480px) */
@media screen and (max-width: 480px) {
    .brand img {
        max-height: 45px;
        /* Scale down logo slightly */
    }

    .header-actions {
        flex-direction: column;
        /* Stack phone and CTA button */
        gap: 12px;
    }

    .header-actions .phone a {
        font-size: 20px;
        /* Make phone number larger for easier tapping */
    }

    .header-actions .cta-btn {
        width: 100%;
        /* Full width button for thumbs */
        text-align: center;
    }
}

@media screen and (max-width: 992px) {

    /* Tighten padding for mobile sticky header */
    header[role="banner"] {
        padding: 10px 0;
    }

    /* Mobile Hero Layout */
    .mobile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        width: 100%;
    }

    .mobile-hero h1 {
        font-family: var(--font-serif);
        font-size: 22px;
        color: var(--lux-dark);
        margin: 0;
        line-height: 1.2;
    }

    .mobile-hero p {
        font-size: 13px;
        color: var(--lux-text);
        margin: 0 0 5px 0;
    }

    /* Trust Badges Styling */
    .trust-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 5px;
    }

    .trust-badges span {
        background: rgba(197, 160, 89, 0.1);
        /* Light gold tint */
        color: var(--lux-gold);
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 30px;
        /* Pill shape */
        letter-spacing: 0.5px;
    }

    /* CTA Hint */
    .cta-hint {
        font-size: 12px;
        color: #888;
        font-style: italic;
    }
}

/* Extra small screens (Older iPhones, small Androids) */
@media screen and (max-width: 480px) {
    .mobile-hero h1 {
        font-size: 18px;
        /* Slightly smaller for very small screens */
    }

    .trust-badges span {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ==========================================================================
   HERO & SEARCH RESPONSIVE STYLES
   ========================================================================== */

/* TABLETS & LARGE MOBILE (Max Width: 992px) */
@media(max-width: 992px) {
    .hero {
        padding: 40px 0;
        min-height: auto;
        /* CRITICAL: Allows the background to stretch and prevents breaking */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        /* Stacks the main grid row-wise */
        padding-top: 40px;
        gap: 40px;
    }

    .search-card {
        order: -1;
        /* Puts form on top on mobile */
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        /* Puts buttons in a row-wise stack */
        max-width: 400px;
        margin: 0 auto 20px auto;
    }
}

/* SMALL MOBILE (Max Width: 576px) */
@media(max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content .hero-sub {
        font-size: 18px;
    }

    .search-card {
        padding: 25px 20px;
    }

    /* Stack all form inputs row-wise (1 column grid) */
    .form-row,
    .passenger-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-card .toggle button {
        font-size: 16px;
        flex: 1;
    }

    /* Mobile friendly counters */
    .counter {
        justify-content: space-between;
        width: 100%;
    }

    .counter button {
        padding: 8px 15px;
        background: rgba(197, 160, 89, 0.1);
        border-radius: 4px;
    }
}


/* ==========================================================================
   FOOTER RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* TABLETS (Max Width: 1024px) */
@media screen and (max-width: 1024px) {
    .site-footer .container {
        padding: 0 20px;
    }

    /* Collapse from 4 columns to 2 columns */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

/* MOBILE (Max Width: 768px) */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 60px 0 20px;
    }

    /* Stack everything into a single column */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        /* Center text for better mobile aesthetics */
    }

    /* Center align the brand logo and text */
    .footer-brand img {
        margin: 0 auto 20px auto;
    }

    .footer-text {
        margin: 0 auto 25px auto;
    }

    /* Center the social icons */
    .footer-icons {
        justify-content: center;
    }

    /* Remove the hover nudge effect on mobile so it doesn't look off-center */
    .footer-links a:hover {
        transform: none;
    }

    /* MOBILE (Max Width: 768px) */

    .site-footer {
        padding: 60px 0 20px;
    }
}

/* SMALL MOBILE (Max Width: 480px) */
@media screen and (max-width: 480px) {
    .site-footer .container {
        padding: 0 15px;
    }

    .site-footer {
        padding: 50px 0 20px;
    }

    .footer-bottom {
        margin-top: 40px;
        padding-top: 20px;
        font-size: 12px;
    }
}