/* Tablet Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2.25rem; }
    
    /* Containers */
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Navigation */
    .nav {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 7px);
    }
    
    .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 {
        height: 80vh;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    /* Grids */
    .about-grid,
    .services-grid,
    .reviews-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Service Detailed */
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-price {
        text-align: center;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* About Page */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Thanks Page */
    .thanks-title {
        font-size: 2.25rem;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thanks-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    .hero-title { font-size: 2rem; }
    .page-title { font-size: 1.75rem; }
    
    /* Containers */
    .container {
        padding: 0 0.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    /* Cards and Panels */
    .about-card,
    .service-card,
    .review-card,
    .team-member,
    .contact-info-panel,
    .contact-form-panel,
    .legal-document {
        padding: 1.5rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Service Header */
    .service-header {
        gap: 1rem;
    }
    
    .service-icon-large {
        width: 48px;
        height: 48px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Newsletter Form */
    .newsletter-form input {
        margin-bottom: 1rem;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    /* Tables */
    .cookies-table {
        font-size: 0.8rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.5rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    /* Thanks Page Steps */
    .thanks-steps li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .step-icon {
        align-self: center;
    }
    
    /* Emergency Phone */
    .emergency-phone {
        font-size: 1.5rem;
    }
    
    /* Hero Content */
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 5rem 0 2rem;
    }
    
    /* Service Packages */
    .service-packages {
        padding: 1rem;
    }
    
    .package {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .btn,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .page-header {
        margin-top: 0;
        padding: 1rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
    
    .service-card,
    .about-card,
    .review-card {
        border: 2px solid #333;
    }
    
    .faq-item {
        border: 1px solid #333;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This is prepared for future dark mode implementation */
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #982bab;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #982bab;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1003;
}

.skip-link:focus {
    top: 6px;
}
