/* Responsive Design - Mobile First Approach */

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

/* Desktop */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .article-content .container {
        gap: 40px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 250px;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Blog */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Article */
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Header */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        height: 35px;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Sections */
    .services,
    .about,
    .reviews,
    .contact-info,
    .contact-page,
    .blog-articles,
    .article-content,
    .legal-content {
        padding: 60px 0;
    }
    
    .newsletter {
        padding: 50px 0;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    /* About */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Newsletter */
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group .btn {
        margin-top: 10px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Forms */
    .contact-form,
    .newsletter-form {
        padding: 30px 20px;
    }
    
    /* Article Header */
    .article-header {
        padding: 120px 0 60px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-main-icon {
        width: 80px;
        height: 80px;
    }
    
    /* Article Content */
    .article-body .lead {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .article-cta,
    .article-sidebar {
        padding: 30px 20px;
    }
    
    /* Legal Pages */
    .legal-text {
        padding: 0 10px;
    }
    
    /* Cookie Management */
    .cookie-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal-buttons button {
        width: 100%;
    }
    
    /* Thank You Page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .next-steps {
        padding: 30px 20px;
    }
    
    .contact-reminder {
        padding: 20px;
    }
    
    /* Tables */
    .cookie-table {
        overflow-x: auto;
    }
    
    .cookie-table table {
        min-width: 500px;
    }
    
    /* Business Hours */
    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Cards */
    .service-card,
    .review-card,
    .article-card .article-content {
        padding: 20px 15px;
    }
    
    /* Article Meta */
    .article-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        padding: 0 10px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-buttons button:last-child {
        margin-bottom: 0;
    }
    
    /* Forms */
    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Contact Details */
    .contact-details .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Article Sidebar */
    .related-articles li {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .newsletter,
    .cookie-banner,
    .cookie-modal,
    .hero-buttons,
    .article-cta,
    .article-sidebar,
    .thank-you-actions {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .article-content {
        padding: 0;
    }
    
    .article-content .container {
        display: block;
    }
    
    .legal-text {
        max-width: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
        margin-top: 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo {
        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;
    }
}

/* Dark Mode Support (for users who prefer it) */
@media (prefers-color-scheme: dark) {
    /* This is optional - can be implemented if needed */
    /* Currently keeping light theme for business website */
}

/* Landscape Mobile Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .page-header {
        padding: 100px 0 50px;
    }
    
    .article-header {
        padding: 100px 0 50px;
    }
}

/* Focus and Accessibility */
@media (min-width: 768px) {
    .nav-menu a:focus,
    .btn:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid #e74c3c;
        outline-offset: 2px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .contact-details .contact-icon {
        width: 30px;
        height: 30px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
}
