/**
 * RS Buildwell & Constructor — Responsive Breakpoints
 * Mobile-first responsive styles
 */

/* ═══════════════════════════════════════════════════════════════════
   MAX 1280px — Large Laptop
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    :root {
        --section-px: clamp(1.5rem, 4vw, 4rem);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--space-xl);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MAX 1024px — Tablet Landscape
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-cta.desktop-only {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MAX 768px — Tablet Portrait
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --section-py: clamp(3rem, 8vh, 6rem);
        --nav-height: 70px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

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

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

    .testimonial-card {
        padding: var(--space-xl);
    }

    .quote-popup {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MAX 480px — Mobile
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    :root {
        --section-px: 1.25rem;
    }

    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .stat-item {
        padding: var(--space-md) var(--space-xs);
    }

    .stat-item::after {
        display: none;
    }

    .card {
        padding: var(--space-lg);
    }

    .whatsapp-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .nav-logo-text {
        font-size: 1.1rem;
    }

    .nav-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MIN 2560px — 4K Displays
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }

    :root {
        --container-max: 1800px;
    }
}
