/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: var(--spacing-3xl);
    }

    .hero__content h1 {
        font-size: var(--text-4xl);
    }

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

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

/* Mobile */
@media (max-width: 768px) {
    .header__toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header__menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .header__link {
        display: block;
        padding: var(--spacing-md) 0;
        width: 100%;
    }

    .header__cta {
        width: 100%;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: var(--spacing-3xl);
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content h1 {
        font-size: var(--text-3xl);
    }

    .hero__subtitle {
        font-size: var(--text-lg);
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }

    .section-header__title {
        font-size: var(--text-3xl);
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .clients__carousel {
        gap: var(--spacing-md);
    }

    .clients__logo {
        width: 160px;
        height: 100px;
    }

    .cta__title {
        font-size: var(--text-3xl);
    }

    .btn {
        width: 100%;
    }

    .hero__buttons .btn {
        width: auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: var(--spacing-md);
    }

    .hero__content h1 {
        font-size: var(--text-2xl);
    }

    .section-header__title {
        font-size: var(--text-2xl);
    }

    .card {
        padding: var(--spacing-lg);
    }

    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .hero__image {
        order: -1;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    :root {
        --container-max-width: 1320px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta,
    .btn {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --color-text-light: var(--color-text);
        --color-shadow: rgba(0, 0, 0, 0.3);
    }
}
