/* Responsive Design - Mobile First Approach */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small Tablet (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--box-shadow);
        transform: translateY(-100%);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    :root {
        --section-padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.125rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: none;
    }
    
    .form-group:first-child {
        flex-direction: column;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 5rem 0 3rem;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 5rem 0 3rem;
    }
    
    .thank-you-details {
        padding: 1.5rem;
        text-align: center;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Cookie Management */
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 0.875rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand .logo {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        padding: 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Sections */
    :root {
        --section-padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-features {
        gap: 0.75rem;
    }
    
    .feature {
        font-size: 0.9rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-rating {
        gap: 0.125rem;
    }
    
    .testimonial-rating svg {
        width: 16px;
        height: 16px;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 2.5rem 0;
    }
    
    .newsletter-content {
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
    
    .social-links a svg {
        width: 18px;
        height: 18px;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 4rem 0 2rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .contact-details {
        padding: 1rem;
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 4rem 0 2rem;
    }
    
    .thank-you-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .thank-you-content h1 {
        font-size: 2rem;
    }
    
    .thank-you-message {
        font-size: 1rem;
    }
    
    .thank-you-details {
        padding: 1.25rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .step-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .social-invite {
        padding: 1.5rem;
    }
    
    /* Cookie Management */
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .cookie-modal-content {
        padding: 1rem;
        margin: 0.5rem;
        max-height: 90vh;
    }
    
    .cookie-modal-content h3 {
        font-size: 1.25rem;
    }
    
    .cookie-category {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .cookie-modal-buttons {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .cookie-table th:first-child,
    .cookie-table td:first-child {
        min-width: 80px;
    }
    
    /* Utility Classes for Mobile */
    .mobile-hidden {
        display: none;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust for high DPI displays */
    .hero-image svg,
    .about-image svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle,
    .social-links,
    .btn {
        display: none !important;
    }
    
    .legal-page,
    .thank-you {
        margin-top: 0;
        padding-top: 2rem;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .cookie-table {
        page-break-inside: auto;
    }
    
    .cookie-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* Reduced Motion */
@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;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here for future enhancement */
    /* Currently maintaining light theme for business professional appearance */
}
