/**
 * ============================================================
 * FILE: responsive.css
 * PROJECT: Rudra Holidays
 * ============================================================
 * Purpose:  Global responsive overrides and media queries.
 *           Adds missing breakpoints and fluid typography/spacing
 *           that apply across all pages.
 *
 * Used By:  All public pages (index.html, html/*.html)
 *
 * NOTE:     This file must be loaded AFTER all other page-specific
 *           CSS files (style.css, fleet.css, etc.) and AFTER
 *           theme.css to ensure these media queries have priority.
 *
 * Contains:
 *   - Global safety rails (overflow-x hidden, max-width 100vw)
 *   - Global header z-index fix
 *   - Large Desktop (> 1920px)
 *   - Tablet Landscape (993px - 1199px)
 *   - Tablet Portrait (769px - 992px)
 *   - Small Tablet / Large Phone (601px - 768px)
 *   - Phone Landscape & Small Tablets (481px - 600px)
 *   - Phones (361px - 480px)
 *   - Small Phones (320px - 360px)
 *   - Very Small / Foldable (< 320px)
 *   - Landscape Phone (orientation: landscape & max-height: 500px)
 * ============================================================
 */
/*
===========================================
  Rudra Holidays — Shared Responsive Fixes
  Loaded AFTER all page CSS + theme.css
  Adds missing breakpoints & fluid overrides
===========================================
*/

/* ══════════════════════════════════════════
   GLOBAL SAFETY RAILS
   ══════════════════════════════════════════ */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-width: 0;
}

main,
.container,
section,
header,
footer {
    max-width: 100vw;
}

/* ══════════════════════════════════════════
   GLOBAL HEADER Z-INDEX
   Ensures header and mobile menu sit above the
   backdrop overlay (z-index 900) across all pages
   ══════════════════════════════════════════ */
.header {
    z-index: 1000 !important;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* ══════════════════════════════════════════
   LARGE DESKTOP (2560px)
   ══════════════════════════════════════════ */
@media (min-width: 1921px) {
    .container {
        max-width: 1600px;
    }
}

/* ══════════════════════════════════════════
   TABLET LANDSCAPE (1024px – 1199px)
   Fill the gap between 992px and 1200px
   ══════════════════════════════════════════ */
@media (min-width: 993px) and (max-width: 1199px) {
    /* Features grid: keep 3 columns but tighter */
    .features-grid {
        gap: 14px;
    }

    .feature-item {
        padding-right: 14px;
    }
}

/* ══════════════════════════════════════════
   TABLET PORTRAIT (768px – 992px)
   Already handled by most pages, but adding
   missing intermediate layouts
   ══════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 992px) {
    /* Booking form already stacks at 992px — good */

    /* Features grid: 2 columns with border fix */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(even) {
        border-right: none;
        padding-right: 0;
    }

    /* Footer 2-column */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ══════════════════════════════════════════
   SMALL TABLET / LARGE PHONE (601px – 768px)
   Critical gap that most pages miss entirely
   ══════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 768px) {
    /* Info grid: 2 columns */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid .info-card:last-child {
        grid-column: 1 / -1;
    }

    /* Features grid: 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        border-right: none;
        padding-right: 0;
    }

    /* Package grid: 2 columns */
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Process grid: 2 columns */
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why grid: 2 columns */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats grid: 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonial grid: 1 column */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery grid: 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero stats: 3 columns still OK at this width */

    /* Footer: 1 column */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   PHONE LANDSCAPE & SMALL TABLETS (481px – 600px)
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 600px) {
    .container {
        padding: 0 clamp(12px, 3vw, 16px);
        width: calc(100% - 24px);
    }

    /* Features: 2 columns, tight */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item {
        border-right: none;
        padding-right: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(127, 29, 29, 0.12);
    }

    .feature-item:nth-child(even) {
        border-bottom: 1px solid rgba(127, 29, 29, 0.12);
    }

    .feature-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .feature-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Info grid, package grid, process grid: 1 column */
    .info-grid,
    .fleet-grid,
    .package-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    /* Why grid: 2 columns */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats grid: 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery grid: 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonial: single */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Hero stats: 3 → stack */
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* Support foot: 1 column */
    .support-foot {
        grid-template-columns: 1fr;
    }

    /* Contact grid: single */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Hero grids: single column */
    .hero-grid,
    .hero-content,
    .fleet-hero-grid {
        grid-template-columns: 1fr;
    }

    /* Owner and experience grids: single */
    .owner-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    /* CTA: column */
    .cta-box,
    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════
   PHONES (361px – 480px)
   Most phones: iPhone SE → Galaxy S series
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
    .container {
        padding: 0 clamp(10px, 3vw, 16px);
    }

    /* Section headings: tighter */
    .section-heading,
    .section-head {
        margin-bottom: 20px;
    }

    .section-kicker,
    .subtitle {
        font-size: 0.76rem;
        letter-spacing: 2px;
    }

    .subtitle::before,
    .subtitle::after {
        width: 20px;
    }

    /* Section padding: reduced */
    .booking-section,
    .features-section,
    .info-section,
    .destinations-section,
    .fleet-section,
    .packages-section,
    .gallery-section,
    .cta-section,
    .process-section,
    .owner-section,
    .why-section,
    .experience-section,
    .testimonials-section,
    .coverage-section,
    .contact-section {
        padding: 14px 0 28px;
    }

    /* Buttons: slightly smaller */
    .btn {
        padding: 11px 18px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    /* Stats grid: 2 columns on phones */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Hero stat boxes */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Support grid: 1 column */
    .support-grid {
        grid-template-columns: 1fr;
    }

    /* Support foot: 1 column */
    .support-foot {
        grid-template-columns: 1fr;
    }

    /* Form grid: 1 column */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Support board min-height override */
    .support-board {
        min-height: auto;
    }

    /* Route card */
    .route-card {
        min-height: auto;
        padding: 20px;
    }

    /* Route map */
    .route-map {
        min-height: 220px;
    }

    /* Route pins */
    .route-pin {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        margin-bottom: 10px;
    }

    .route-map {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .route-line {
        display: none;
    }

    .route-dot {
        display: none;
    }

    /* Owner/Experience image wraps */
    .owner-image-wrap,
    .experience-media {
        min-height: 280px;
    }

    /* Coverage wrap */
    .coverage-wrap {
        padding: 18px;
    }

    /* Collage: simplify */
    .collage-small {
        display: none;
    }

    .collage-main {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 220px;
        left: auto;
        right: auto;
        top: auto;
    }

    .floating-note {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin-top: 10px;
    }

    /* Gallery items */
    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    /* Filter bar: scroll horizontally */
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        justify-content: flex-start;
        gap: 8px;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    /* Category pills */
    .category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .category-pill {
        flex-shrink: 0;
    }

    /* Fleet page */
    .fleet-image-wrap {
        min-height: 280px;
    }

    .visual-card {
        min-height: 260px;
    }

    .fleet-hero-visual {
        min-height: auto;
    }

    .fleet-details {
        padding: 18px;
    }

    /* Booking panel */
    .booking-panel {
        padding: 20px;
        border-radius: 22px;
    }

    /* Footer */
    .footer-content {
        padding: 28px 16px 20px;
    }

    .footer-logo img {
        height: 56px;
    }

    /* Lightbox */
    .lightbox img {
        max-width: 100%;
        border-radius: 16px;
    }

    /* Contact form */
    .contact-form-wrap {
        padding: 18px;
        border-radius: 22px;
    }

    /* CTA */
    .cta-box,
    .cta-inner {
        padding: 18px;
        border-radius: 22px;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* Mini metric */
    .mini-metric {
        padding: 14px 10px;
    }

    /* Info cards */
    .info-card {
        padding: 22px 18px;
    }

    /* Package cards */
    .package-card {
        padding: 20px;
    }

    /* Process cards */
    .process-card {
        padding: 20px;
    }

    /* Why cards */
    .why-card {
        padding: 20px;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 20px;
    }

    /* Stat cards */
    .stat-card {
        padding: 16px 14px;
    }

    .stat-card strong,
    .stat-card h3 {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════════════════
   SMALL PHONES (320px – 360px)
   iPhone SE, Galaxy A series, older devices
   ══════════════════════════════════════════ */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
        width: calc(100% - 16px);
    }

    /* Hero titles */
    .title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .hero-copy h1 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .fleet-hero-copy h1 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .section-title,
    .section-head h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    /* Logo */
    .logo img {
        height: 50px;
    }

    /* Theme toggle + menu toggle: smaller */
    .theme-toggle,
    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 14px;
        font-size: 0.86rem;
        gap: 6px;
    }

    /* Hero points */
    .hero-points span {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    /* Section padding */
    .booking-section,
    .features-section,
    .info-section,
    .destinations-section,
    .fleet-section,
    .packages-section,
    .gallery-section,
    .cta-section,
    .process-section,
    .owner-section,
    .why-section,
    .experience-section,
    .testimonials-section,
    .coverage-section,
    .contact-section {
        padding: 10px 0 22px;
    }

    /* Booking glass */
    .booking-glass-container,
    .features-glass-container {
        padding: 12px;
        border-radius: 16px;
    }

    /* Spec pills: full width */
    .spec-pill {
        width: 100%;
        justify-content: flex-start;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: none;
        padding-right: 0;
    }

    /* Why grid: 1 column */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Stats grid: 1 column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery grid: 1 column */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Booking modal */
    .booking-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .booking-modal {
        padding: 10px;
    }

    /* Footer bottom */
    .footer-bottom {
        padding: 12px 0;
    }

    .footer-bottom p,
    .footer-strip p {
        font-size: 0.85rem;
    }

    /* Support board */
    .support-board {
        padding: 18px;
        border-radius: 24px;
    }

    /* Contact card icon */
    .contact-card i {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ══════════════════════════════════════════
   VERY SMALL / FOLDABLE (280px – 320px)
   Galaxy Fold inner screen, ultra-narrow
   ══════════════════════════════════════════ */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
        width: calc(100% - 12px);
    }

    .title,
    .hero-copy h1,
    .fleet-hero-copy h1 {
        font-size: 1.6rem;
    }

    .section-title,
    .section-head h2 {
        font-size: 1.3rem;
    }

    .description,
    .hero-text,
    .hero-description {
        font-size: 0.9rem;
    }

    .logo img {
        height: 44px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .header-actions {
        gap: 6px;
    }

    /* Booking form inputs */
    .form-control {
        padding: 10px 36px 10px 12px;
        font-size: 0.86rem;
    }

    /* Destination cards in scroll */
    .destination-card {
        flex: 0 0 92%;
    }
}

/* ══════════════════════════════════════════
   LANDSCAPE PHONE (max-height: 500px)
   ══════════════════════════════════════════ */
@media (orientation: landscape) and (max-height: 500px) {
    .hero,
    .gallery-hero,
    .contact-hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .fleet-hero {
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .page-hero {
        padding-top: 100px;
        padding-bottom: 30px;
    }

    .hero-content,
    .hero-grid,
    .fleet-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Reduce hero visual heights */
    .fleet-hero-visual {
        min-height: 200px;
    }

    .visual-card {
        min-height: 200px;
    }

    .route-card {
        min-height: auto;
    }

    .support-board {
        min-height: auto;
    }

    /* Logo smaller in landscape */
    .logo img {
        height: 52px;
    }
}

/* ══════════════════════════════════════════
   LANDSCAPE TABLET (max-height: 800px, min-width: 1024px)
   ══════════════════════════════════════════ */
@media (orientation: landscape) and (min-width: 1024px) and (max-height: 800px) {
    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .gallery-hero,
    .contact-hero {
        min-height: auto;
    }
}

/* ══════════════════════════════════════════
   DESTINATION GRID — Fix flexbox/grid conflict
   At 768px, style.css sets grid-template-columns: 1fr
   but destination-grid uses flexbox, not grid.
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .destination-grid {
        /* Reset any grid overrides — this is a flex container */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .destination-card {
        flex: 0 0 80%;
    }
}

@media (max-width: 480px) {
    .destination-card {
        flex: 0 0 88%;
    }
}

@media (max-width: 360px) {
    .destination-card {
        flex: 0 0 92%;
    }
}




/* ══════════════════════════════════════════
   GALLERY COLLAGE — Better stacking
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-visual .collage {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .hero-visual {
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-height: auto;
        align-items: stretch;
    }

    .collage-main {
        width: 100%;
        height: 280px;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
    }

    .collage-small {
        width: 48%;
        height: 160px;
    }

    .collage-top,
    .collage-bottom {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .floating-note {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
    .hero-visual .floating-note.note-top {
        top: 10% !important;
        left: -5% !important;
    }
    
    .hero-visual .floating-note.note-bottom {
        bottom: 10% !important;
        right: -5% !important;
    }
}

/* ══════════════════════════════════════════
   HEADER NAVIGATION FIX (Tablet 481px - 992px)
   Restore desktop-style navigation and squeeze to fit
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 900px) {
    /* Restore the flex layout for navigation */
    .nav-list {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        gap: clamp(4px, 1vw, 20px) !important;
    }

    .nav-list.open {
        display: flex !important;
    }

    .nav-list li {
        width: auto !important;
    }

    .nav-link {
        display: inline-block !important;
        padding: 0 !important;
        font-size: clamp(0.6rem, 1.8vw, 0.95rem) !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: transparent !important;
    }

    .nav-link::after {
        display: block !important;
    }

    /* Hide the mobile toggle button */
    .menu-toggle {
        display: none !important;
    }

    /* Restore buttons */
    .btn-nav {
        display: inline-flex !important;
        padding: clamp(4px, 1vw, 10px) clamp(4px, 1.2vw, 14px) !important;
        font-size: clamp(0.6rem, 1.8vw, 0.9rem) !important;
    }

    /* Adjust header content spacing */
    .header-content {
        gap: clamp(4px, 1.5vw, 18px) !important;
    }

    /* Scale down the logo to make room */
    .logo img {
        height: clamp(24px, 6vw, 60px) !important;
    }

    /* Ensure actions don't have too much gap */
    .header-actions {
        gap: clamp(4px, 1vw, 12px) !important;
    }

    /* Theme toggle button scaling */
    .theme-toggle {
        width: clamp(24px, 4.5vw, 40px) !important;
        height: clamp(24px, 4.5vw, 40px) !important;
        font-size: clamp(0.8rem, 1.5vw, 1.4rem) !important;
    }
}

/* ══════════════════════════════════════════
   FLEET CARD IMAGE — Better scaling
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 768px) {
    .fleet-image-wrap {
        min-height: 300px;
    }

    .fleet-details {
        padding: 22px;
    }
}

/* ══════════════════════════════════════════
   CONTACT HERO — Support board at mid widths
   ══════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 1100px) {
    .support-board {
        min-height: auto;
    }
}

/* ══════════════════════════════════════════
   ABOUT — Route card pins at mid widths
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 768px) {
    .route-pin {
        width: 140px;
        padding: 12px;
    }

    .route-map {
        min-height: 240px;
    }
}

/* ══════════════════════════════════════════
   ABOUT — Owner/Experience images at mid widths
   ══════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 1100px) {
    .owner-image-wrap,
    .experience-media {
        min-height: 380px;
    }
}

/* ══════════════════════════════════════════
   PACKAGE PAGE — 2 columns at 601-1100px
   ══════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 1100px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════════
   DARK MODE — Feature border fix for 2-col
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 768px) {
    body.dark-mode .feature-item {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .feature-item:nth-last-child(-n+2) {
        border-bottom-color: transparent;
    }

    body.dark-mode .feature-item:last-child {
        border-bottom-color: transparent;
    }
}

/* ══════════════════════════════════════════
   BOOKING GLASS — Max width safety
   ══════════════════════════════════════════ */
.booking-glass-container,
.features-glass-container {
    max-width: 100%;
}

/* ══════════════════════════════════════════
   FOOTER — Responsive padding with clamp
   ══════════════════════════════════════════ */
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        padding: 28px 16px 20px;
        gap: 20px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* ══════════════════════════════════════════
   NAV LIST — Ensure proper z-index on all pages
   ══════════════════════════════════════════ */
@media (max-width: 992px) {
    .nav-list.open {
        z-index: 950;
    }
}

/* Shared mobile navigation behavior for every public page */
@media (max-width: 480px) {


    .header {
        z-index: 1000;
    }

    .menu-toggle {
        display: inline-flex !important;
        position: relative;
        z-index: 1100;
    }

    .btn-nav {
        display: none !important;
    }

    .navbar .nav-list {
        display: flex !important;
        position: fixed !important;
        top: 88px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 12px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(127, 29, 29, 0.10) !important;
        border-radius: 18px !important;
        box-shadow: var(--shadow-lg) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(-8px) !important;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
        z-index: 1050 !important;
    }

    .navbar .nav-list.open {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .navbar .nav-list.open li {
        width: 100% !important;
    }

    .navbar .nav-list.open a {
        display: block !important;
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .navbar .nav-list.open a::after {
        display: none !important;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 900;
    }

    .mobile-nav-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ══════════════════════════════════════════
   HERO OVERLAY — Ensure coverage on all widths
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(250, 247, 240, 0.96) 0%, rgba(250, 247, 240, 0.92) 50%, rgba(250, 247, 240, 0.80) 100%),
            radial-gradient(circle at left center, rgba(185, 28, 28, 0.06), transparent 36%);
    }

    body.dark-mode .hero-overlay {
        background:
            linear-gradient(180deg, rgba(15, 17, 23, 0.97) 0%, rgba(15, 17, 23, 0.94) 50%, rgba(15, 17, 23, 0.85) 100%),
            radial-gradient(circle at left center, rgba(185, 28, 28, 0.10), transparent 36%);
    }
}

/* ══════════════════════════════════════════
   CONTACT PAGE — Form grid + hero at mid widths
   ══════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-foot {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ══════════════════════════════════════════
   HERO STATS — Keep 3 cols on wider phones
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* ══════════════════════════════════════════
   PRINT MEDIA — Basic safety
   ══════════════════════════════════════════ */
@media print {
    .header,
    .particles,
    .hero-bg,
    .hero-orb,
    .mobile-nav-backdrop {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }
}
