/* 
* Isuzu Traga Page Responsive Styles
* File khusus untuk meningkatkan responsivitas halaman Isuzu Traga
*/

/* Base Mobile Styles */
@media (max-width: 992px) {
    /* Perbaikan untuk container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Perbaikan untuk navigasi */
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 24px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        flex-direction: column;
        padding: 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li a {
        padding: 15px;
        display: block;
    }

    /* Perbaikan untuk section spesifikasi */
    .specs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    .specs-nav ul {
        justify-content: flex-start;
        gap: 10px;
        padding-bottom: 5px;
    }

    .specs-nav ul li {
        min-width: 120px;
        width: auto;
        padding: 0 10px;
    }

    .specs-nav ul li .title {
        font-size: 14px;
    }

    .specs-nav ul li .icon {
        font-size: 18px;
    }

    /* Perbaikan untuk spec section */
    .spec-section {
        flex-direction: column;
        gap: 20px;
    }

    .spec-image, .spec-details {
        width: 100%;
    }
    
    /* Memastikan gambar selalu di atas keterangan pada tampilan mobile */
    .spec-section {
        display: flex;
        flex-direction: column;
    }
    
    .spec-section .spec-image {
        order: 1; /* Gambar tampil pertama */
    }
    
    .spec-section .spec-details {
        order: 2; /* Keterangan tampil kedua */
    }

    .spec-details h3 {
        font-size: 1.5rem;
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    /* Hero section */
    .traga-hero {
        height: 60vh;
        margin-top: 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 80%;
        max-width: 250px;
    }

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

    .gallery-item img {
        height: 180px;
    }

    /* Price section */
    .price-card {
        max-width: 100%;
    }

    .price-amount {
        font-size: 2rem;
    }

    /* Contact section */
    .contact-content {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        width: 100%;
    }

    .contact-card {
        margin-bottom: 30px;
    }

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

    .footer-logo, .footer-contact {
        grid-column: span 2;
    }
}

/* Mobile Styles */
@media (max-width: 576px) {
    /* Header */
    header {
        height: 60px;
    }

    .logo img {
        max-height: 40px;
    }
    
    /* Perbaikan tambahan untuk spec section pada mobile */
    .spec-section {
        margin-bottom: 30px;
    }
    
    .spec-image {
        margin-bottom: 15px;
    }
    
    .spec-details {
        padding: 0 5px;
    }

    /* Hero section */
    .traga-hero {
        height: 50vh;
        margin-top: 60px;
    }

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

    .hero-content p {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Specs navigation */
    .specs-nav ul li {
        min-width: 100px;
    }

    .specs-nav ul li .icon {
        font-size: 16px;
    }

    .specs-nav ul li .title {
        font-size: 12px;
    }

    /* Specs content */
    .spec-details h3 {
        font-size: 1.3rem;
    }

    .spec-table td {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    .spec-features li {
        font-size: 0.85rem;
    }

    /* Gallery */
    .gallery-container {
        grid-template-columns: 1fr;
    }

    /* Price section */
    .price-header h3 {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 1.8rem;
        margin: 10px 0;
    }

    .price-features ul li {
        font-size: 0.9rem;
    }

    /* Contact form */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .contact-person h3 {
        font-size: 1.3rem;
    }

    .contact-person p {
        font-size: 0.9rem;
    }

    .contact-details .contact-item {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo, .footer-links, .footer-contact, .footer-social {
        grid-column: span 1;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }

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

    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* WhatsApp float button */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        right: 15px;
        bottom: 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    .traga-hero {
        height: 45vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .specs-nav ul li {
        min-width: 90px;
    }

    .price-amount {
        font-size: 1.5rem;
    }
    
    /* Perbaikan tambahan untuk spec section pada layar sangat kecil */
    .spec-image {
        margin-bottom: 10px;
    }
    
    .spec-details h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .spec-table td {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .spec-features li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
}

/* Fix for mobile navigation */
.mobile-menu-active nav ul {
    display: flex !important;
}
