/* Responsive Design */

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

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

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

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

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

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

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

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

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

    .social-links {
        justify-content: center;
    }

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

    /* Article */
    .article {
        padding: 100px 0 60px;
    }

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

    .article-content {
        font-size: 1rem;
    }

    .article-content .lead {
        font-size: 1.2rem;
    }

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

    .contact-info {
        order: 2;
    }

    .contact-form-section {
        order: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    /* FAQ Grid */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Thanks Page */
    .thanks-section {
        padding: 100px 0 60px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }

    .thanks-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Newsletter Page */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form-section {
        order: 1;
    }

    .newsletter-info {
        order: 2;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

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

    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }

    /* Legal Pages */
    .legal-content {
        font-size: 1rem;
    }
}

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

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

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

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

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

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

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

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
    }

    /* Newsletter Form */
    .newsletter-form {
        max-width: 100%;
    }

    /* Contact Items */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem;
    }

    /* Form Groups */
    .form-group {
        gap: 1rem;
    }

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

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

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Map Section */
    .map-placeholder {
        height: 300px;
    }

    .map-info {
        padding: 1.5rem;
    }

    /* Article Content */
    .article-content ul,
    .article-content ol {
        padding-left: 1.5rem;
    }

    /* Legal Content */
    .legal-content ul,
    .legal-content ol {
        padding-left: 1.5rem;
    }

    /* Thanks Actions */
    .thanks-actions {
        gap: 1rem;
    }

    /* Newsletter Benefits */
    .newsletter-benefits {
        gap: 1.5rem;
    }

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

    .footer-content {
        gap: 1.5rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .social-links img {
        width: 18px;
        height: 18px;
    }

    /* Blog Cards */
    .blog-card {
        margin-bottom: 1rem;
    }

    .blog-content {
        padding: 1rem;
    }

    /* Article CTA */
    .article-cta {
        padding: 1.5rem;
    }

    /* Cookie Modal */
    .cookie-modal-content {
        padding: 1.5rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    .cookie-modal-buttons .btn {
        width: 100%;
    }

    /* Utility adjustments for mobile */
    .text-center {
        text-align: center;
    }

    /* Form adjustments */
    .checkbox-label {
        font-size: 0.8rem;
    }

    /* Contact info adjustments */
    .contact-info p {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    /* Footer contact info */
    .footer .contact-info p {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 3.5rem;
    }

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

    /* Section headers */
    .section-header h2 {
        font-size: 3rem;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Reviews grid */
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Blog grid */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* FAQ grid */
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle,
    .btn,
    .hero-buttons,
    .thanks-actions,
    .newsletter,
    .social-links {
        display: none !important;
    }

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

    .container {
        max-width: 100%;
        padding: 0;
    }

    .article,
    .legal-page {
        padding: 0;
    }

    .article-content,
    .legal-content {
        font-size: 11pt;
    }

    h1 {
        font-size: 18pt;
    }

    h2 {
        font-size: 16pt;
    }

    h3 {
        font-size: 14pt;
    }

    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .page-header h1 {
        color: #000;
    }

    .page-header p {
        color: #666;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .section {
        padding: 20px 0;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-primary:hover {
        background-color: #333;
        border-color: #333;
    }

    .btn-outline {
        border-color: #000;
        color: #000;
    }

    .btn-outline:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    /* This is handled by the main stylesheet, but can be extended here */
}
