/* ============================================================
   شرکت تلفن کارگستر (TKG) — responsive.css
   رسپانسیو با رویکرد موبایل-فرست و بریک‌پوینت‌های استاندارد
   ============================================================ */

/* ===== تبلت بزرگ و دسکتاپ کوچک: حداکثر 1024px ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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

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

/* ===== تبلت: حداکثر 900px — فعال‌سازی منوی موبایل ===== */
@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s ease;
        overflow-y: auto;
        z-index: 999;
    }

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

    .nav-links a {
        padding: 15px 16px;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

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

    .nav-links a.active {
        background-color: rgba(0, 150, 149, 0.1);
    }

    /* پوشش تیره پشت منوی موبایل */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .nav-overlay.open {
        display: block;
        opacity: 1;
    }

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

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

/* ===== موبایل بزرگ: حداکثر 640px ===== */
@media (max-width: 640px) {
    .container {
        padding-inline: 16px;
    }

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

    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-welcome-inner {
        font-size: 0.98rem;
        line-height: 2;
    }

    .contact-info-panel {
        padding: 24px 18px;
    }

    .map-wrapper iframe {
        height: 220px;
    }

    .hero {
        min-height: auto;
        padding: 1rem 0;
    }

    .hero-content {
        padding: 2.5rem 0;
    }

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

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

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

    .hero-stats {
        gap: 1.5rem 2rem;
        justify-content: space-between;
    }

    .hero-stat .num {
        font-size: 1.8rem;
    }

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

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

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

    .spec-table {
        font-size: 0.82rem;
    }

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

    .nav-actions .btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .section-head p {
        font-size: 0.98rem;
    }
}

/* ===== موبایل کوچک: حداکثر 380px ===== */
@media (max-width: 380px) {
    .brand img {
        height: 38px;
    }

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

    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
}

/* ===== بهبود چاپ ===== */
@media print {
    .site-header,
    .site-footer,
    .theme-switch,
    .nav-toggle,
    .cta-band {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ===== احترام به ترجیح کاهش حرکت کاربر ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


