/* ===== RESPONSIVE STYLES ===== */

/* ===== TABLETS (768px) ===== */
@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

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

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .pricing-card.premium {
        transform: scale(1);
    }

    .pricing-card.premium:hover {
        transform: translateY(-10px);
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 4rem);
    }

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

    .calculator-inputs {
        grid-template-columns: 1fr;
    }

    /* Navigation */
    .VLoccc {
        padding: 10px 20px;
    }

    .VLoccc span {
        font-size: 1rem;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }


    /* Form */
    .form-container {
        padding: 30px 20px;
    }

    /* DSR Labs */
    .dsr-labs {
        padding: 80px 20px;
    }

    .dsr-labs .section-title {
        font-size: 2rem;
    }

    .dsr-labs .value-card {
        padding: 30px 20px;
    }

    /* Hero performance optimization */
    .hero::before {
        animation-duration: 60s;
    }

}

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

    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 70vh;
        padding: 120px 15px 60px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero .highlight {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-content {
        padding: 20px;
    }

    .stat-card,
    .service-card,
    .pricing-card,
    .testimonial-card {
        padding: 30px 20px;
    }

    .plan-price {
        font-size: 2.5rem;
    }

    .calculator-container {
        padding: 30px 20px;
    }

    /* Form responsive */
    .success-actions {
        flex-direction: column;
    }
}

/* ===== DESKTOP ONLY ===== */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ===== TOUCH DEVICE IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {

    .cta-button,
    .btn-primary,
    .btn-secondary,
    .legal-contact-btn {
        min-height: 44px;
        padding: 12px 24px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        min-height: 44px;
    }

    .social-btn,
    .filter-btn,
    .pagination-btn {
        min-height: 44px;
        min-width: 44px;
    }

    a,
    button,
    .btn-primary,
    .btn-secondary,
    .cta-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== LAZY LOADING ===== */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ===== IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== GLOBAL RESPONSIVE SAFETY NETS ===== */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Ensure nothing overflows */
* {
    max-width: 100vw;
}

/* Reset specific elements that might break layout */
.section,
.container,
.hero {
    max-width: 100%;
    box-sizing: border-box;
}

/* Better Typography on mobile */
@media (max-width: 480px) {
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .btn,
    button,
    input,
    select,
    textarea {
        min-height: 48px;
        /* Accessible touch targets */
    }
}