/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --font-size-base: 15px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .stats-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }

    /* Header Mobile */
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .nav-menu {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: 0;
    }

    .main-nav .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav .nav-menu a {
        display: block;
        padding: var(--spacing-md);
        border-radius: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .btn-call span {
        display: none;
    }

    .btn-call {
        padding: 0.6rem;
        width: 45px;
        height: 45px;
        justify-content: center;
        border-radius: 50%;
    }

    .btn-call i {
        margin: 0;
    }

    /* Hero Mobile */
    .hero {
        min-height: 500px;
        padding: var(--spacing-xl) 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections Mobile */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .stats-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* Contact Form Mobile */
    .contact-form {
        padding: var(--spacing-lg);
    }

    /* Footer Mobile */
    .footer-top {
        padding: var(--spacing-xl) 0;
    }

    .footer-col {
        text-align: center;
    }

    .footer-links a,
    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Back to Top Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .service-card,
    .project-card {
        margin-bottom: var(--spacing-md);
    }
}

/* Print Styles */
@media print {

    .site-header,
    .hero,
    .back-to-top,
    .mobile-menu-toggle,
    .btn-call {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .section {
        page-break-inside: avoid;
    }
}