/* =====================================================
   HAPPY MOBIL - RESPONSIVE STYLES
   ===================================================== */

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        gap: 8px;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991.98px) {
    .navbar {
        background: var(--white) !important;
        padding: 10px 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    .navbar-brand,
    .nav-link {
        color: var(--black) !important;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 0 0 var(--radius) var(--radius);
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--light);
    }

    .nav-link::after {
        display: none;
    }

    .btn-nav {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

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

    .about-image-accent {
        display: none;
    }

    .simulasi-wrapper {
        padding: 30px;
    }

    .simulasi-result {
        margin-top: 30px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .footer {
        padding-top: 60px;
    }

    .footer-title {
        margin-top: 30px;
    }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-padding {
        padding: 50px 0;
    }

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

    .stat-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .why-card {
        padding: 30px 20px;
    }

    .car-image-wrapper {
        height: 180px;
    }

    .car-actions {
        flex-direction: column;
    }

    .promo-body {
        padding: 20px;
    }

    .testimoni-card {
        padding: 30px 20px;
    }

    .article-image {
        height: 180px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .map-container {
        height: 300px;
    }

    .breadcrumb-section {
        padding: 100px 0 40px;
    }

    .breadcrumb-title {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }

    .simulasi-wrapper {
        padding: 24px;
    }

    .simulasi-result {
        padding: 30px;
    }

    .simulasi-result .result-value {
        font-size: 1.6rem;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .section-padding {
        padding: 40px 0;
    }

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

    .section-label {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .about-content h3 {
        font-size: 1.4rem;
    }

    .car-title {
        font-size: 1rem;
    }

    .car-price {
        font-size: 1.1rem;
    }

    .car-specs {
        grid-template-columns: 1fr;
    }

    .promo-card h4 {
        font-size: 1.1rem;
    }

    .testimoni-text {
        font-size: 0.85rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-subtitle {
        font-size: 0.9rem;
    }

    .btn-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .loading-logo {
        font-size: 1.8rem;
    }

    .loading-bar {
        width: 150px;
    }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        background-attachment: scroll;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .whatsapp-float,
    .loading-screen,
    .footer-social,
    .footer-newsletter {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .section-padding {
        padding: 30px 0;
    }

    .car-card,
    .article-card,
    .promo-card {
        break-inside: avoid;
    }
}
