/* ==========================================================================
   Nextzen Services - Responsive Styles
   ========================================================================== */

/* Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text { order: 1; }
    .hero-visual { order: 0; max-width: 380px; margin: 0 auto; }
    .hero-description { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

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

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

    .info-list { grid-template-columns: 1fr; }
}

/* Mobile
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 70px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Mobile menu */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow-md);
        overflow-y: auto;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        border-radius: var(--radius-md);
    }

    .nav-link-dropdown .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--color-bg);
        margin-top: 4px;
        padding: 4px 0 4px 16px;
        display: none;
        border: none;
        backdrop-filter: none;
    }

    .nav-link-dropdown.open .nav-dropdown {
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta { width: 100%; }

    /* Hero */
    .hero {
        padding: calc(var(--header-height) + 40px) 0 60px;
        min-height: auto;
    }

    .hero-logo { max-width: 280px; }
    .floating-card { display: none; }

    .hero-stats {
        gap: 24px;
    }

    .stat-number { font-size: 1.5rem; }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4,
    .features-grid,
    .products-grid,
    .values-grid,
    .team-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Page hero */
    .page-hero {
        padding: calc(var(--header-height) + 50px) 0 50px;
    }

    /* Form */
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 20px; }

    /* Legal */
    .legal-content .card { padding: 28px 20px; }
    .delete-account-card { padding: 40px 24px; }

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

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

    .cta-section {
        padding: 40px 24px;
        margin: 0 16px;
    }

    /* About */
    .about-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .about-image .about-stats-card {
        position: static;
        margin-top: 16px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /* Products */
    .products-filter {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        justify-content: flex-start;
    }

    .filter-btn {
        flex-shrink: 0;
    }
}

/* Small mobile
   ========================================================================== */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

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

    .btn { padding: 12px 20px; font-size: 0.88rem; }

    .logo { font-size: 1.05rem; }
    .logo img { width: 38px; height: 38px; }

    .breadcrumb { font-size: 0.78rem; padding: 6px 14px; }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

/* Print
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .nav-toggle,
    .cta-section {
        display: none !important;
    }

    body { color: #000; background: #fff; }
    .legal-content .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
