/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

/* Tablet Landscape (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 25px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .blog-content .container {
        gap: 3rem;
    }
    
    .article-main {
        gap: 3rem;
    }
}

/* Tablet Portrait (768px to 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat {
        flex: 1;
        margin: 0 0.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Blog Content */
    .blog-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    /* Article Content */
    .article-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-items: center;
    }
    
    /* Cookie Banner */
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Thank You Page */
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .social-follow .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        margin: 0;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Articles Grid */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Social Links */
    .social-links {
        justify-content: center;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Cookie Modal */
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    /* Step Process */
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Forms */
    .newsletter-form {
        max-width: 280px;
    }
    
    /* Article Content */
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    /* Tip Box */
    .tip-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    /* Social Share */
    .social-share {
        justify-content: center;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo span {
        font-size: 1.125rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    /* Page Header */  
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Section Header */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .service-card,
    .blog-card,
    .review-card,
    .article-card {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-form {
        max-width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cookie Banner */
    .cookie-content h3 {
        font-size: 1.125rem;
    }
    
    /* Article Body */
    .article-body {
        font-size: 0.95rem;
    }
    
    .article-body h2 {
        font-size: 1.375rem;
    }
    
    .article-body h3 {
        font-size: 1.125rem;
    }
    
    /* Legal Text */  
    .legal-text {
        font-size: 0.95rem;
    }
    
    /* Thank You Page */
    .thank-you-content h1 {
        font-size: 1.75rem;
    }
    
    .step-content h3 {
        font-size: 1.125rem;
    }
    
    .benefit-item h3 {
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 8px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 10px;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Cards */
    .service-card,
    .blog-card,
    .review-card,
    .article-card {
        padding: 1.25rem;
    }
    
    /* Icons */
    .service-card img,
    .benefit-item img {
        width: 60px;
        height: 60px;
    }
    
    /* Stats */
    .stat h4 {
        font-size: 2rem;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-content h3 {
        font-size: 1rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    /* Modal */
    .cookie-modal-content {
        padding: 1.25rem;
    }
    
    /* Forms */
    input[type="email"],
    input[type="text"] {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    /* Article */
    .article-body {
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    /* Thank You */
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .cookie-modal,
    .social-links,
    .social-share,
    .newsletter,
    .cta-buttons,
    .hamburger {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .hero,
    .page-header {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .hero-text h1,
    .page-header h1 {
        color: black !important;
    }
    
    .article-main,
    .blog-content .container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .article-sidebar,
    .blog-sidebar {
        display: none;
    }
    
    .tip-box {
        border: 1px solid black;
        background: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .footer {
        background: none;
        color: black;
        border-top: 1px solid black;
        padding: 20px 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .service-card img,
    .benefit-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .nav-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 12px 0;
    }
    
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .social-links a,
    .social-share a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cookie-switch {
        min-height: 44px;
    }
    
    .slider {
        height: 28px;
        width: 54px;
    }
    
    .slider::before {
        width: 24px;
        height: 24px;
    }
    
    .cookie-switch input:checked + .slider::before {
        transform: translateX(26px);
    }
}

/* Hover Effects Only on Non-Touch Devices */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .blog-card:hover,
    .review-card:hover,
    .article-card:hover {
        transform: translateY(-10px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .stat:hover {
        transform: translateY(-5px);
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .service-card,
    .blog-card,
    .review-card,
    .article-card,
    .btn,
    .stat,
    .nav-menu,
    .cookie-banner {
        transition: none;
    }
    
    .service-card:hover,
    .blog-card:hover,
    .review-card:hover,
    .article-card:hover,
    .btn:hover,
    .stat:hover {
        transform: none;
    }
    
    .hamburger span {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --cream: #2a2a2a;
        --beige: #2a2a2a;
        --black: #ffffff;
        --dark-gray: #e0e0e0;
        --gray: #b0b0b0;
    }
    
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .navbar {
        background-color: #2a2a2a;
        border-bottom: 1px solid #3a3a3a;
    }
    
    .footer {
        background-color: #0a0a0a;
    }
    
    input[type="email"],
    input[type="text"],
    textarea {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }
    
    .cookie-banner,
    .cookie-modal-content {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
    }
}
