/* Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--background-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px var(--shadow-medium);
    }

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

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Article Content */
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Thank You Page */
    .steps {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 2rem;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Process Timeline */
    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-connector {
        display: none;
    }

    .timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .step-content {
        max-width: none;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header i {
        font-size: 2.5rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    /* Testimonials */
    .testimonial {
        padding: 1.5rem;
    }

    /* Process Timeline */
    .step-badge {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    /* Cookie Banner */
    .cookie-content {
        padding: 1rem;
    }

    .cookie-text {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Article Header */
    .article-header {
        padding: 100px 0 30px;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Article Sections */
    .article-section h2 {
        font-size: 1.5rem;
    }

    /* Thank You Page */
    .thank-you {
        padding: 100px 0 40px;
    }

    .thank-you h1 {
        font-size: 2rem;
    }

    .thank-you-icon i {
        font-size: 4rem;
    }

    .submission-details,
    .contact-options {
        padding: 1.5rem;
    }

    .phone-link {
        font-size: 1.25rem;
    }

    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header i {
        font-size: 2.5rem;
        display: block;
        margin-bottom: 1rem;
        margin-right: 0;
    }

    /* Legal Content */
    .legal-content {
        padding: 40px 0;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    /* Cookie Table */
    .cookie-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }

    /* Browser Instructions */
    .browser-instructions {
        grid-template-columns: 1fr;
    }

    .browser-item {
        padding: 1rem;
    }

    /* Cookie Modal */
    .cookie-modal-content {
        width: 95%;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }

    /* Social Links */
    .social-link {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    /* Stats */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Features */
    .about-features {
        gap: 1.5rem;
    }

    .feature {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .feature i {
        margin-top: 0;
    }

    /* Process Timeline */
    .process-timeline {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .timeline-connector {
        display: none;
    }

    .timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
    }

    .step-badge {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-content {
        max-width: none;
        flex: 1;
    }

    .step-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .step-content p {
        font-size: 0.85rem;
    }

    /* Blog Meta */
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Article Intro */
    .article-intro .lead {
        font-size: 1.125rem;
    }

    /* Tables */
    table {
        font-size: 0.8rem;
    }

    /* Form Groups */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    /* Hero */
    .hero h1 {
        font-size: 1.75rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Cards */
    .service-card,
    .testimonial,
    .contact-form {
        padding: 1rem;
    }

    /* Section Spacing */
    .services,
    .about,
    .testimonials,
    .process,
    .contact {
        padding: 60px 0;
    }

    /* Footer */
    .footer {
        padding: 20px 0 10px;
    }

    /* Cookie Banner */
    .cookie-banner {
        font-size: 0.9rem;
    }

    /* Article Content */
    .article-content {
        padding: 40px 0;
    }

    /* Thank You */
    .thank-you {
        padding: 80px 0 30px;
    }

    .thank-you h1 {
        font-size: 1.75rem;
    }

    /* Page Header */
    .page-header {
        padding: 80px 0 30px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
    }

    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }

    .article-header,
    .page-header {
        padding: 80px 0 30px;
    }

    .thank-you {
        padding: 80px 0 30px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    .logo,
    .abstract-bg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hero-buttons,
    .action-buttons,
    .social-icons,
    .social-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .article-content,
    .legal-content {
        padding: 1rem 0;
    }

    .article-content .container {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 20pt;
    }

    h3 {
        font-size: 16pt;
    }

    .page-header,
    .article-header {
        background: none;
        color: var(--text-dark);
        padding: 1rem 0;
    }
}

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

    .hero {
        scroll-behavior: auto;
    }
}


/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1a4a2e;
        --primary-dark: #0f2818;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #666666;
    }

    .btn-outline {
        border-width: 3px;
    }

    .nav-menu a:focus,
    .btn:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
}
