/* Responsive Design Styles */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1000px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 900px;
    }
    
    .hero-content .container {
        gap: 2rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet */
@media (max-width: 992px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: 70vh;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Sections padding */
    .hero {
        padding: 5rem 0 2rem;
    }
    
    .services,
    .about,
    .testimonials,
    .contact {
        padding: 3rem 0;
    }
    
    .newsletter {
        padding: 3rem 0;
    }
    
    /* Hero */
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    /* Newsletter Form */
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cookie Consent */
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn-cookie {
        width: 100%;
    }
    
    /* Legal Pages */
    .legal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .legal-page {
        padding: 5rem 0 2rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .image-placeholder {
        height: 300px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    .image-placeholder span {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.2rem;
    }
    
    /* About */
    .about-description {
        margin-top: 1rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Cookie Consent */
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .btn-cookie {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Legal Content */
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 0.85rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
    
    /* Social Links */
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    /* Footer Logo */
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-logo i {
        font-size: 1.5rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    /* Typography */
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    /* Container */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 0.75rem;
    }
    
    /* Hero */
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1rem;
    }
    
    /* Contact Cards */
    .contact-card {
        padding: 1.25rem;
    }
    
    /* Forms */
    .contact-form-container {
        padding: 1.25rem;
    }
    
    /* Cookie Consent */
    .cookie-consent {
        padding: 0.75rem;
    }
    
    /* Legal Content */
    .legal-content {
        padding: 1.25rem;
    }
}

/* Landscape Phone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 3rem 0 2rem;
    }
    
    .nav-menu.active {
        max-height: 40vh;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .cookie-modal,
    .newsletter,
    .hero-buttons,
    .contact-form-container {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
        background: none !important;
    }
    
    .services,
    .about,
    .testimonials,
    .contact {
        padding: 1.5rem 0;
    }
    
    .service-card,
    .testimonial-card,
    .contact-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
        color: #000 !important;
        background: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .contact-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This would implement dark mode styles if needed */
    /* Currently keeping the professional light theme for the law firm */
}

/* Focus Visible */
@media (prefers-reduced-motion: no-preference) {
    *:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        transition: outline-offset 0.2s ease;
    }
}
