/* ============================================================
   RESPONSIVE — MY FORTUNE AVIATION (FINAL)
   ============================================================ */


/* ============================================================
   GLOBAL FIX (≤ 1200px)
   ============================================================ */
@media (max-width: 992px) {

    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        padding: 0 16px;
    }

    /* Header harus di atas hero overlay */
    .main-header {
        position: relative !important;
        z-index: 9999 !important;
    }

    /* Hero overlay & video tidak boleh ambil klik */
    .hero-video,
    .hero-overlay {
        pointer-events: none !important;
    }

    /* Hamburger icon muncul */
    .mobile-toggle {
        display: flex !important;
        position: relative;
        z-index: 10000 !important;
    }

    /* Desktop nav disembunyikan */
    .main-nav {
        display: none;
    }
}



/* ============================================================
   MOBILE NAVIGATION (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {

    /* NAV MOBILE BASE */
    .main-nav {
        position: absolute;
        top: 68px;
        right: 0;
        width: 100%;
        padding: 20px 0;
        background: rgba(6, 43, 48, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        flex-direction: column;
        gap: 18px;
        z-index: 9998;
        animation: fadeDown .28s ease;
    }

    /* NAV MOBILE OPEN */
    .main-nav.open {
        display: flex !important;
    }

    .main-nav ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
        margin: 0;
        padding: 0;
    }

    .main-nav a {
        font-size: 15px;
        color: #fff !important;
        padding: 8px 0;
        display: block;
        width: 100%;
        text-align: center;
        letter-spacing: .18em;
    }

    /* Animasi smooth */
    @keyframes fadeDown {
        from {
            opacity: 0;
            transform: translateY(-12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* HERO */
    .hero-content {
        grid-template-columns: 1fr !important;
        padding-top: 110px !important;
        text-align: center !important;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card {
        margin: 0 auto !important;
    }

    .page-hero {
        text-align: center !important;
        padding: 100px 0 40px !important;
    }

    /* All 2-column → 1 column */
    .two-col,
    .intro-grid,
    .vm-container,
    .ceo-grid,
    .facility-grid,
    .achievement-grid,
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* Footer layout */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}


/* ============================================================
   MOBILE STANDARD (≤ 768px) — CLEAN & OPTIMIZED
   ============================================================ */
@media (max-width: 768px) {

    /* ================= HERO ================= */

    .page-wrapper {
        /* padding-top: calc(20px + env(safe-area-inset-top)) !important; */
        padding-top: 0 !important;
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }

    .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-text h1 {
        font-size: 34px !important;
    }

    .hero-subtitle {
        font-size: 12px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100%;
        margin-top: 22px !important;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100% !important;
        max-width: 320px;
        text-align: center !important;
    }

    .hero-meta {
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        margin-top: 18px !important;
    }

    .hero-meta span {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* ================= GENERIC CARDS ================= */

    .three-cards,
    .routes-grid,
    .fleet-grid,
    .achievement-gallery,
    .facilities-grid,
    .fleet-tabs {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .lux-card,
    .service-card,
    .award-card,
    .info-panel,
    .route-card,
    .fleet-card,
    .aircraft-mini-card {
        width: 100% !important;
        text-align: center !important;
    }

    /* ================= FORM ================= */

    .two-inline {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* ================= SLIDER BUTTONS ================= */

    .swiper-button-next-home,
    .swiper-button-prev-home {
        width: 38px !important;
        height: 32px !important;
        border-radius: 12px !important;
        top: 50% !important;
    }

    .swiper-button-prev-home {
        left: -6px !important;
    }

    .swiper-button-next-home {
        right: -6px !important;
    }

    /* ================= LIST OF AIRCRAFT SECTION ================= */

    #our-aircraft.section {
        padding: 40px 0 !important;
        margin-bottom: 30px !important;
    }

    #our-aircraft .section-title {
        font-size: 26px !important;
        line-height: 1.25;
        margin-bottom: 18px !important;
        text-align: center !important;
    }

    .aircraft-slider-container {
        padding: 0 20px !important;
    }

    .aircraft-mini-card {
        width: 100% !important;
        max-width: 330px !important;
        margin: 0 auto !important;
        font-size: 12px !important;
    }

    .aircraft-image img {
        aspect-ratio: 4 / 2.8 !important;
        border-radius: 12px !important;
    }

    /* ================= ABOUT HERO ================= */

    #about-hero {
        padding: 100px 20px 80px !important;
        text-align: center !important;
        background-position: center center !important;
    }

    #about-hero::before {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.65),
                rgba(0, 0, 0, 0.45),
                rgba(0, 0, 0, 0.55)) !important;
    }

    #about-hero h1 {
        font-size: 34px !important;
        line-height: 1.1 !important;
        margin-bottom: 18px !important;
    }

    #about-hero p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        max-width: 340px !important;
        margin: 0 auto 18px !important;
    }

    /* ================= SAFE AREA + WA FLOAT FIX ================= */

    main,
    .about-page,
    .section {
        /* padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; */
        padding-bottom: 0 !important;
    }

    .wa-floating+* {
        /* margin-bottom: calc(80px + env(safe-area-inset-bottom)) !important; */
        padding-bottom: 0 !important;
    }

    .main-footer {
        position: relative;
        z-index: 1;
    }

    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* ================= FACILITY SECTION ================= */

    .about-page .facility-grid {
        display: block !important;
        width: 100% !important;
    }

    .facility-text,
    .facility-text p,
    .facility-text ul,
    .facility-text li {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .facility-images {
        width: 100% !important;
        margin-top: 20px !important;
    }

    /* HONEYCOMB MOBILE — CLEAN VERSION */
    .honeycomb-right,
    .facility-images {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 26px !important;
        padding: 20px !important;
    }

    .honeycomb-right .hex {
        width: 220px !important;
        height: calc(220px * 0.866) !important;
        position: relative !important;
        transform: none !important;
        margin: 0 auto !important;
        left: 0 !important;
        top: 0 !important;
    }

    .honeycomb-right .hex img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    #facility.facility-section {
        padding-bottom: 0 !important;
    }

    .r1 {
        margin-right: -45px;
    }

    .r2 {
        margin-right: -75px;
        margin-top: -100px;
    }

    .r3 {
        margin-right: -75px;
        margin-top: -120px;
    }

    .r4, 
    .r6 {
        margin-right: -80px;
        margin-top: -80px;
    }

    .r5,
    .r7 {
        margin-right: -85px;
        margin-top: -100px;
    }

    /* ======================================================= */
    /* Kurangi padding modal supaya gambar bisa naik */
    .fleet-modal-content {
        padding-top: 14px !important;
    }

    /* Swiper container fix */
    .fleet-modal-content .modal-swiper {
        width: 100% !important;
        height: 210px !important;   /* tinggi lebih pas untuk mobile */
        margin-bottom: 10px !important; /* kurangi jarak bawah */
        margin-top: -10px !important; /* ANGKAT gambar ke atas! */
    }

    /* Semua slide langsung full width modal (bukan width 262px lagi) */
    .fleet-modal-content .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }

    /* Gambar di dalam swiper */
    .fleet-modal-content .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 14px !important; /* biar mewah */
    }

    /* Slider arrows lebih pas posisinya */
    .fleet-modal-content .modal-slider-prev {
        left: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .fleet-modal-content .modal-slider-next {
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    
     /* Wrapper di pojok */
    .wa-floating {
        position: fixed !important;
        right: 16px !important;
        bottom: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        z-index: 999999 !important;
    }

    /* Tombol WA versi icon */
    .wa-btn {
        width: 52px !important;
        height: 52px !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        padding: 0 !important;
        margin: 0 !important;

        background: #000 !important;
        border-radius: 50% !important;
        border: 1px solid #d4af37 !important;

        box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
        text-decoration: none !important;
        overflow: hidden !important;

        transition: all .25s ease !important;
    }

    /* Hilangkan teks Charter Now / Customer Support */
    .wa-btn span,
    .wa-btn .text,
    .wa-btn .label {
        display: none !important;
    }

    /* Icon WA */
    .wa-btn img {
        width: 28px !important;
        height: 28px !important;
        object-fit: contain !important;
    }


     /* ============================
       CONTACT PAGE — FIX FORM WIDTH ONLY
       ============================ */

    /* Wrap layout jadi 1 kolom */
    .contact-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        width: 100% !important;
        padding: 0 12px !important; /* lebih lebar */
    }

    /* FORM CONTAINER – keep original background */
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 22px 20px !important;  /* LEBIH LEBAR + EMPUK */
        border-radius: 16px !important;
    }

    /* LABEL */
    .contact-form label {
        font-size: 15px !important;
        margin-bottom: 6px !important;
        display: block !important;
    }

    /* INPUT ELEMENTS */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100% !important;
        padding: 14px 16px !important; 
        font-size: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 18px !important;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        font-size: 14px !important;
    }

    /* CONTACT INFO PANEL */
    .contact-info-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px 25px !important;
        border-radius: 16px !important;
    }

    /* TITLE */
    .contact-layout h2 {
        font-size: 24px !important;
        margin-bottom: 14px !important;
        text-align: left !important;
    }

     /* MAP WRAPPER */
    .map-embed {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 20px !important;
    }

    /* IFARME MAP */
    .map-embed iframe {
        width: 100% !important;
        height: 260px !important;
        border: none !important;
        border-radius: 12px !important;
        display: block !important;
    }    

}




/* ============================================================
   MOBILE SMALL (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {

    .hero-text h1 {
        font-size: 28px !important;
    }

    .hero-card {
        padding: 18px !important;
    }

    /* Footer → 1 kolom */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    /* Buttons full width */
    .btn-primary,
    .btn-outline {
        width: 100% !important;
        text-align: center !important;
    }
}