/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet Landscape (max-width: 1199px) */
@media (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (max-width: 991px) */
@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lead-form-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail:nth-child(even) {
        direction: ltr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (max-width: 767px) */
@media (max-width: 767px) {
    :root {
        --header-height: 70px;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Header Mobile */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header-phone {
        margin-top: 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections Mobile */
    .section {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Lead Form Mobile */
    .lead-form {
        padding: 1.5rem;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    /* Cookie Banner Mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Sitemap Mobile */
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
    
    /* Legal Pages Mobile */
    .legal-hero {
        padding: 6rem 0 2rem;
    }
    
    .legal-content {
        padding: 2rem 0;
    }
}

/* Small Mobile (max-width: 479px) */
@media (max-width: 479px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
    }
    
    .cookie-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .btn,
    .hero-buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: none;
        color: #000;
        padding: 2rem 0;
        margin-top: 0;
    }
    
    .hero h1 {
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .section {
        padding: 1rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #1a1a1a;
        --accent-color: #006400;
        --text-color: #000;
        --border-color: #000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --background-color: #1a202c;
        --light-gray: #2d3748;
        --text-color: #e2e8f0;
        --border-color: #4a5568;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #f7fafc;
    }
    
    .header {
        background-color: #1a202c;
    }
    
    .service-card,
    .lead-form,
    .contact-item,
    .business-hours {
        background-color: #2d3748;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    */
}
