/**
 * Responsive Styles
 *
 * @package De_Assis_Advocacia
 * @since 1.0.0
 */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --font-size-hero: 3rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }

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

    .about-content {
        gap: var(--spacing-xl);
    }

    .testimonial-card {
        min-width: calc(50% - var(--spacing-sm));
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }

    /* Header */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
        transition: var(--transition-base);
        z-index: 1;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: var(--font-size-hero);
        padding: 0 var(--spacing-sm);
    }

    .hero p {
        font-size: var(--font-size-large);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

    /* Stats */
    .stats {
        margin: var(--spacing-lg) var(--spacing-sm);
        padding: var(--spacing-lg) var(--spacing-sm);
    }

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

    .stat-number {
        font-size: var(--font-size-4xl);
    }

    /* Testimonials */
    .testimonial-card {
        min-width: 100%;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

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

    .newsletter-form button {
        width: 100%;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-hero: 1.5rem;
        --font-size-4xl: 1.5rem;
        --container-padding: 4%;
    }

    .hero-logo {
        width: 50px;
        height: 50px;
    }

    .logo {
        font-size: var(--font-size-base);
    }

    .logo-icon,
    .footer-logo-icon {
        width: 35px;
        height: 35px;
    }

    .service-content {
        padding: var(--spacing-sm);
    }

    .btn-contact,
    .btn-cta {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .scroll-indicator,
    .slider-controls,
    .btn-primary,
    .btn-contact,
    .btn-cta,
    .newsletter-form {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero,
    .about,
    .cta {
        background: #fff !important;
        color: #000 !important;
    }

    a {
        text-decoration: underline;
    }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-contact,
    .btn-cta {
        border: 2px solid currentColor;
    }
}
