/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

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

    .hero-text p {
        margin: 0 auto 30px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-illustration {
        display: none;
    }

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

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .search-wrapper {
        padding: 30px 20px;
    }

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

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background: var(--white);
        padding: 80px 30px 30px;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-list li a {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
    }

    .nav-overlay.show {
        display: block;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

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

    /* Search */
    .search-input-group {
        flex-direction: column;
    }

    .search-input-group input {
        border-radius: 12px;
    }

    .search-input-group button {
        border-radius: 12px;
        justify-content: center;
    }

    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filters select {
        padding: 12px 16px;
    }

    .search-wrapper {
        padding: 24px 16px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Statistics */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-block {
        padding: 16px;
    }

    .stat-block i {
        font-size: 1.8rem;
    }

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

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonial */
    .testimonial-content {
        padding: 24px 20px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    /* Quick Links */
    .quick-links-wrapper {
        gap: 10px;
    }

    .quick-link-item a {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.55rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

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

    .stat-block {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .stat-block i {
        font-size: 1.5rem;
    }
}