/* ==========================================
   Bordir Rapitex - Responsive Stylesheet
   ========================================== */

/* ========== TABLET (Max Width: 1024px) ========== */
@media (max-width: 1024px) {
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        order: -1; /* Pindah gambar ke atas pada tablet/mobile */
    }

    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Process Section */
    .process-grid::before {
        display: none; /* Sembunyikan garis penghubung di tablet */
    }

    .process-grid {
        gap: 20px;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Order & Contact Layout */
    .order-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map {
        min-height: 300px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}


/* ========== MOBILE (Max Width: 768px) ========== */
@media (max-width: 768px) {
    /* Navigation / Hamburger Menu */
    .main-nav {
        position: fixed;
        top: 74px; /* Sesuaikan dengan tinggi header */
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--gray-300);
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Sembunyikan tombol WA di header mobile agar tidak penuh */
    .nav-cta .btn-wa {
        display: none;
    }

    /* Hero Mobile Adjustments */
    .hero {
        padding: 110px 0 60px;
    }

    .hero-image-wrapper .float-card {
        display: none; /* Sembunyikan floating card di mobile agar tidak berantakan */
    }

    .hero-image-wrapper .main-image {
        height: 300px;
    }

    /* Grids jadi 1 kolom */
    .process-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Section Spacing */
    .process-section,
    .services-section,
    .advantages-section,
    .order-section,
    .gallery-section,
    .contact-section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Form Order */
    .order-form-wrapper {
        padding: 24px 20px;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .footer-col ul li a:hover {
        padding-left: 0; /* Matikan efek geser hover di mobile */
    }
}


/* ========== SMALL MOBILE (Max Width: 480px) ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Stats kecil */
    .stat-item h3 {
        font-size: 1.6rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }

    /* Gallery 1 kolom di HP kecil */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Floating WhatsApp Button lebih kecil */
    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .wa-float svg {
        width: 26px;
        height: 26px;
    }

    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}