/* ============================================
   Responsive Styles - Mobile First Approach
   ============================================ */

/* ===== Tablet (768px - 1023px) ===== */
@media screen and (max-width: 1023px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile (320px - 767px) ===== */
@media screen and (max-width: 767px) {
    :root {
        font-size: 14px;
    }

    /* Navigation */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: calc(var(--spacing-unit) * 2);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1);
        align-items: stretch;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: calc(var(--spacing-unit) * 2);
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
        height: 70vh;
    }

    .hero-content {
        padding: calc(var(--spacing-unit) * 2);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Sections */
    .section {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .container {
        padding: 0 calc(var(--spacing-unit) * 1.5);
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 3);
    }

    /* Contact Form */
    .contact-form {
        padding: calc(var(--spacing-unit) * 3);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn {
        padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
        font-size: 0.9rem;
    }

    /* Portfolio Filter */
    .portfolio-filter {
        gap: calc(var(--spacing-unit) * 1);
    }

    .filter-btn {
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
        font-size: 0.9rem;
    }

    /* FAQ Categories */
    .faq-categories {
        gap: calc(var(--spacing-unit) * 1);
    }

    .faq-category-btn {
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
        font-size: 0.9rem;
    }

    /* Modal */
    .modal-content {
        padding: calc(var(--spacing-unit) * 3);
        width: 95%;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    /* Map */
    .map-container {
        height: 300px;
    }
}

/* ===== Large Desktop (1440px+) ===== */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Print Styles ===== */
@media print {
    header,
    footer,
    .back-to-top,
    .btn,
    nav {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    .section {
        page-break-inside: avoid;
        padding: 1cm 0;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
}

