/* =========================================================
   TIMBER LINE - Responsive Design
   ========================================================= */

/* =========================================================
   TABLET (max-width: 1024px)
   ========================================================= */
@media (max-width: 1024px) {
    :root {
        --section-pad: 90px;
    }

    .about-grid {
        gap: 48px;
    }

    .products-showcase {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }

    .quote-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-container {
        min-height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* =========================================================
   TABLET SMALL (max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {
    :root {
        --section-pad: 72px;
    }

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(44, 24, 16, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 40px;
        transition: right 0.5s var(--ease-out);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a::after {
        display: none;
    }

    /* Hero */
    .hero-title-line {
        font-size: clamp(48px, 12vw, 100px);
    }

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

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-stack {
        height: 350px;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    /* Products */
    .products-showcase {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-content {
        grid-template-columns: 1fr;
    }

    .process-visual .wood-visual {
        min-height: 160px;
    }

    /* Quote */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .form-actions .btn {
        width: 100%;
    }

    .quote-form-wrap {
        padding: 28px 20px;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* =========================================================
   MOBILE (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {
    :root {
        --section-pad: 56px;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .section-header {
        margin-bottom: 48px;
    }

    .hero-subtitle-top {
        font-size: 11px;
        letter-spacing: 4px;
    }

    .hero-title-line {
        font-size: clamp(40px, 14vw, 72px);
    }

    .hero-tagline {
        font-size: 15px;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-item {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .about-image-stack {
        height: 280px;
    }

    .process-step {
        padding-left: 60px;
        padding-bottom: 48px;
    }

    .process-line {
        left: 20px;
    }

    .process-marker {
        left: 0;
        width: 36px;
        height: 36px;
    }

    .process-number {
        font-size: 11px;
    }

    .process-content {
        padding: 16px;
    }

    .process-info h3 {
        font-size: 18px;
    }

    .process-info p {
        font-size: 14px;
    }

    .product-info {
        padding: 20px;
    }

    .product-name {
        font-size: 19px;
    }

    .product-specs {
        flex-direction: column;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .nav-logo-text {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
   HIGH CONTRAST MODE
   ========================================================= */
@media (prefers-contrast: high) {
    .product-card-inner {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }
}
