/* ============================================
   RESPONSIVE.CSS - Mobile-First Media Queries
   ============================================ */

/* ===== MOBILE (320px - 640px) ===== */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Navigation */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-item {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

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

    .theme-toggle-item {
        border-bottom: none;
        padding: 12px 20px;
    }

    .hamburger {
        display: flex;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

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

    /* Hero */
    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    /* Brand Section */
    .brand-content {
        padding: 20px;
    }

    .brand-text p {
        font-size: 1rem;
    }

    .brand-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Advantages Grid */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-card {
        padding: 16px;
    }

    /* Requirements */
    .requirements-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 12px;
    }

    /* Support Grid */
    .support-grid {
        grid-template-columns: 1fr;
    }

    /* CTA Section */
    .cta-content {
        padding: 30px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .contact-form .btn-full {
        width: 100%;
    }

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

    /* Application Form */
    .application-wrapper {
        padding: 20px;
    }

    .progress-steps {
        gap: 10px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

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

    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-item.full-width {
        grid-column: 1;
    }

    /* Modal */
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .modal-icon {
        font-size: 2rem;
    }

    .modal-content h2 {
        font-size: 1.4rem;
    }

    .cta-buttons {
        gap: 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* ===== TABLET (641px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 641px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Advantages Grid */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Requirements */
    .requirements-content {
        grid-template-columns: 1fr;
    }

    /* Support Grid */
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* CTA */
    .cta-title {
        font-size: 2rem;
    }
}

/* ===== DESKTOP (1025px+) ===== */
@media (min-width: 1025px) {
    /* Default styles already handle desktop */
}

/* ===== LANDSCAPE MODE ===== */
@media (max-height: 500px) {
    .hero {
        height: 60vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 40px 0;
    }
}

/* ===== LARGE SCREENS (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1360px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .section {
        padding: 100px 0;
    }

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

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
    }

    .navbar,
    .footer,
    .hero-cta,
    .btn,
    .contact-form {
        display: none;
    }

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

    a {
        text-decoration: underline;
    }
}
