﻿/* ============================================
   HIFUTURE - Responsive Styles
   Breakpoints: 1200 / 992 / 768 / 576
   ============================================ */

/* ===== Large Desktop (<= 1200px) ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

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

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

/* ===== Tablet Landscape (<= 992px) ===== */
@media (max-width: 992px) {
    :root {
        --header-height: 64px;
    }

    .section {
        padding: 70px 0;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100dvh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px max(32px, env(safe-area-inset-bottom));
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1001;
        box-shadow: 0 24px 70px rgba(10, 25, 47, 0.18);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 16px 0;
        font-size: 18px;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border);
    }

    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 32px;
    }

    .hero-stat .value {
        font-size: 2rem;
    }

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

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

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

/* ===== Tablet Portrait (<= 768px) ===== */
@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .container {
        padding: 0 20px;
    }

    .nav-wrapper {
        padding: 0 20px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-stat {
        flex: 1 1 calc(50% - 12px);
        min-width: 130px;
    }

    .hero-stat .value {
        font-size: 1.75rem;
    }

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

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 40px 0;
    }

    .stat-item .value {
        font-size: 2rem;
    }

    .card {
        padding: 24px;
    }

    .product-card-image {
        min-height: 220px;
        padding: 24px;
    }

    .product-card-image img {
        max-height: 180px;
    }

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

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

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

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

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

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

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== Mobile (<= 576px) ===== */
@media (max-width: 576px) {
    .section {
        padding: 48px 0;
    }

    .container {
        padding: 0 16px;
    }

    .nav-wrapper {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 0.9375rem;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat {
        flex: 1 1 100%;
    }

    .hero-stat .value {
        font-size: 1.5rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card {
        padding: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 14px;
    }

    .product-card-image {
        min-height: 200px;
        padding: 20px;
    }

    .product-card-image img {
        max-height: 160px;
    }

    .product-card-body {
        padding: 20px;
    }

    .spec-table {
        font-size: 13px;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px 12px;
    }

    .page-hero {
        padding: calc(var(--header-height) + 48px) 0 40px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ===== Print ===== */
@media print {
    .site-header,
    .nav-toggle,
    .cta-section,
    .footer-social {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

