/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .thank-you-message {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .forms-grid {
        grid-template-columns: 1fr;
    }

    .emergency-content {
        flex-direction: column;
        text-align: center;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        top: 70px;
        flex-direction: column;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        text-align: center;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Grids */
    .about-grid,
    .advantages-grid,
    .services-grid,
    .achievements-grid,
    .reviews-grid,
    .team-grid,
    .certifications-grid,
    .values-grid,
    .tips-grid,
    .categories-grid,
    .quick-tips-grid,
    .areas-grid,
    .stats-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cards */
    .about-item,
    .service-card,
    .review-card,
    .team-member,
    .tip-card,
    .contact-info-card,
    .form-card {
        padding: 1.5rem;
    }

    .service-detailed-card {
        margin-bottom: 2rem;
    }

    .service-detailed-content {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Cookie Banner */
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-modal-content {
        margin: 20px;
        padding: 1.5rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Forms */
    .contact-form {
        padding: 1.5rem;
    }

    .checkbox-label {
        font-size: 0.85rem;
    }

    /* Legal Pages */
    .legal-document {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section ul {
        margin-left: 1rem;
    }

    /* Thank You Page */
    .thank-you-title {
        font-size: 2.5rem;
    }

    .thank-you-actions {
        flex-direction: column;
    }

    .next-steps li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-urgency {
        padding: 1.5rem;
    }

    .urgent-phone {
        font-size: 1.25rem;
    }

    /* Services Page */
    .additional-services-grid {
        grid-template-columns: 1fr;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    /* Contact Page */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .forms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-header {
        padding: 1.5rem;
    }

    .form-icon {
        width: 50px;
        height: 50px;
    }

    /* Tips Page */
    .tip-details {
        padding: 1rem;
    }

    .tip-pro {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* About Page */
    .story-content {
        text-align: center;
    }

    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Emergency Contact */
    .emergency-content {
        text-align: center;
    }

    .emergency-icon {
        width: 60px;
        height: 60px;
    }

    /* Statistics */
    .stat-number {
        font-size: 2.5rem;
    }

    /* Images */
    .about-image,
    .service-image,
    .team-photo,
    .tip-image {
        height: 180px;
    }

    .service-detailed-image {
        height: 250px;
    }

    .category-icon,
    .area-icon,
    .benefit-icon {
        width: 60px;
        height: 60px;
    }

    .mission-icon,
    .vision-icon {
        width: 60px;
        height: 60px;
    }

    /* Buttons */
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .btn-emergency {
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* Pricing */
    .estimated-price {
        font-size: 2rem;
    }

    /* Newsletter */
    .newsletter-form {
        margin-top: 2rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Typography */
    .hero-title {
        font-size: 2rem;
    }

    .thank-you-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    /* Cards */
    .about-item,
    .service-card,
    .review-card,
    .team-member,
    .tip-card,
    .contact-info-card {
        padding: 1rem;
    }

    .legal-document {
        padding: 1.5rem 1rem;
    }

    /* Images */
    .about-image,
    .service-image,
    .team-photo,
    .tip-image {
        height: 150px;
    }

    .service-detailed-image {
        height: 200px;
    }

    /* Icons */
    .success-icon {
        width: 60px;
        height: 60px;
    }

    .contact-info-icon {
        width: 50px;
        height: 50px;
    }

    .advantage-icon,
    .cert-icon,
    .value-icon {
        width: 50px;
        height: 50px;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Sections */
    section {
        padding: 40px 0;
    }

    /* Cookie Banner */
    .cookie-content {
        padding: 0 10px;
    }

    .cookie-modal-content {
        margin: 10px;
        padding: 1rem;
    }

    /* Statistics */
    .stat-number {
        font-size: 2rem;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

    /* Emergency */
    .btn-emergency {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 40px 0;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .certifications-grid,
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .areas-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .additional-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .newsletter-section,
    .cta-section,
    .emergency-contact {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .page-header {
        background: none;
        color: black;
        padding: 20px 0;
    }

    .page-header h1 {
        color: black;
    }

    section {
        padding: 20px 0;
    }

    .legal-document {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .btn {
        display: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --primary-dark: #000000;
        --text-color: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }

    .btn-primary {
        background-color: #000000;
        border: 2px solid #000000;
    }

    .btn-secondary {
        border: 2px solid #000000;
        color: #000000;
    }

    .hero {
        background: #ffffff;
        color: #000000;
    }

    .page-header {
        background: #ffffff;
        color: #000000;
    }

    .footer {
        background-color: #000000;
        color: #ffffff;
    }
}

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

    .hero-bg {
        display: none;
    }

    .about-item:hover,
    .service-card:hover,
    .review-card:hover,
    .team-member:hover,
    .tip-card:hover,
    .contact-info-card:hover,
    .category-card:hover,
    .additional-service-item:hover,
    .quick-tip-item:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus,
.checkbox-label:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: var(--border-radius);
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.error {
    border-color: #dc3545 !important;
    background-color: #f8d7da;
}

.error-message {
    color: #721c24;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success {
    border-color: #28a745 !important;
    background-color: #d4edda;
}

.success-message {
    color: #155724;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
