/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* ========== TABLET (768px and up) ========== */
@media (min-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
    }
}

/* ========== MOBILE (below 768px) ========== */
@media (max-width: 767px) {

    /* Typography */
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Header */
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        padding: 8px 0;
        text-align: left;
    }

    .nav-links {
        display: none;
        list-style: none;
        width: 100%;
        background: #f5f5f5;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 16px;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        border: none;
    }

    /* Hero */
    .hero {
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

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

    /* Sections */
    section {
        padding: 32px 16px;
    }

    /* Grids */
    .service-grid,
    .features-grid,
    .stats-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Footer */
    .footer-content {
        gap: 24px;
    }

    .footer-section {
        text-align: center;
    }

    /* Buttons */
    .btn {
        width: 100%;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* ========== SMALL MOBILE (below 480px) ========== */
@media (max-width: 479px) {
    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    section {
        padding: 24px 12px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 32px 12px;
    }

    .service-card {
        padding: 16px;
    }

    .stat-box h3 {
        font-size: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========== LANDSCAPE MOBILE (below 768px height) ========== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* ========== LARGE DESKTOP (1400px and up) ========== */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    section {
        padding: 80px var(--space-md);
    }

    .hero {
        padding: 120px var(--space-md);
    }
}

/* ========== TOUCH DEVICES ========== */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 14px 24px;
        min-height: 44px;
    }

    .service-card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
}

/* ========== PRINT STYLES ========== */
@media print {

    .main-header,
    .main-footer,
    .hero-buttons,
    .cta-section,
    .menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
}