/* Responsive Design */

/* Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
}

/* Medium Screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .company-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form-group {
        flex-direction: column;
    }
    
    .newsletter-form-group input {
        min-width: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .urgent-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Tablet Screens */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Header */
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 100px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Grids */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-contact-options {
        grid-template-columns: 1fr;
    }
    
    .next-steps {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Company Stats */
    .company-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat {
        flex: 1;
        margin: 0 0.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}

/* Mobile Screens */
@media (max-width: 480px) {
    .cookies-table {
        display: none;
    }
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Header */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 80px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 5rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    /* Cards */
    .benefit-card,
    .service-card,
    .review-card,
    .expert-card {
        padding: 1.5rem;
    }
    
    .service-card-detailed .service-content {
        padding: 1.5rem;
    }
    
    .service-card-detailed .service-reviews {
        padding: 0 1.5rem 1.5rem;
    }
    
    /* Grids */
    .statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Company Stats */
    .company-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        margin: 0;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Forms */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form-group {
        gap: 0.5rem;
    }
    
    .newsletter-form-group button {
        width: 100%;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-content {
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Thank You Page */
    .thank-you-section {
        padding: 4rem 0;
    }
    
    .thank-you-content h1 {
        font-size: 2rem;
    }
    
    .thank-you-message {
        font-size: 1.1rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .thank-you-contact {
        padding: 1.5rem;
    }
    
    /* Legal Content */
    .legal-text {
        font-size: 0.95rem;
    }
    
    .cookies-table {
        font-size: 0.9rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.75rem;
    }
}

/* Extra Small Screens */
@media (max-width: 320px) {
    /* Container */
    .container {
        padding: 0 5px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .benefit-card,
    .service-card,
    .review-card,
    .expert-card {
        padding: 1rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Thank You */
    .thank-you-content h1 {
        font-size: 1.75rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    /* Optimize for high DPI screens */
    .section-icon,
    .benefit-icon,
    .service-icon,
    .value-icon,
    .info-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

/* Print Styles */
@media print {
    * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
    }
    
    .hero-content h1,
    .hero-content p {
        color: #000 !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: transparent !important;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .page-header {
        background: none !important;
        color: #000 !important;
        padding: 2rem 0;
    }
    
    .page-header h1,
    .page-header p {
        color: #000 !important;
    }
    
    .footer {
        background: none !important;
        color: #000 !important;
    }
    
    .footer-section h3,
    .footer-section h4,
    .footer-section p,
    .footer-section a {
        color: #000 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    .btn-primary {
        background-color: #2d6f1c;
        border: 2px solid #2d6f1c;
    }
    
    .btn-secondary {
        background-color: #e6950a;
        border: 2px solid #e6950a;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    a {
        text-decoration: underline;
    }
    
    .nav-list a::after {
        height: 3px;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    button:focus,
    .btn:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
    }
    
    button:focus-visible,
    .btn:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
        outline: 3px solid #368522;
        outline-offset: 2px;
    }
}

/* Container Queries Support */
@supports (container-type: inline-size) {
    .service-card-detailed {
        container-type: inline-size;
    }
    
    @container (max-width: 500px) {
        .service-price-section {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }
    }
}

/* Sticky Navigation on Scroll */
@media (min-width: 769px) {
    .header.scrolled {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
}

/* Smooth Scrolling for All Browsers */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
