/* Mobile First Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail.reverse .service-content {
        direction: ltr;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero h1 {
        font-size: 2.25rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .page-hero {
        padding: 100px 0 40px;
    }
    
    /* Grids */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .additional-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .waiting-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .browser-instructions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* About Stats */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-sidebar {
        order: -1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie Consent */
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .action-buttons {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Legal Tables */
    .legal-table {
        font-size: 0.875rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .cookies-table {
        font-size: 0.875rem;
    }
    
    /* Service Details */
    .service-image {
        height: 200px;
    }
    
    /* Testimonial */
    .testimonial blockquote {
        font-size: 1.1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-hero h1 {
        font-size: 1.875rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .page-hero {
        padding: 80px 0 30px;
    }
    
    /* Cards */
    .service-card,
    .team-member,
    .contact-card,
    .hours-card,
    .additional-service {
        padding: 1.5rem;
    }
    
    .sidebar-card,
    .waiting-card {
        padding: 1.25rem;
    }
    
    /* Stats */
    .stat h3 {
        font-size: 2rem;
    }
    
    /* Prices */
    .price {
        font-size: 1.75rem;
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Social Buttons */
    .social-buttons {
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 36px;
        height: 36px;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Forms */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Cookie Consent */
    .cookie-content {
        padding: 0 12px;
    }
    
    .cookie-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Legal Document */
    .legal-document {
        font-size: 0.9rem;
    }
    
    .document-meta {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Team Skills */
    .member-skills {
        gap: 0.375rem;
    }
    
    .skill {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Thank You Page */
    .success-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-message {
        font-size: 1.1rem;
    }
    
    /* Contact Info */
    .contact-card p {
        font-size: 0.9rem;
    }
    
    .contact-card span {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* High Resolution Displays */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.375rem;
    }
    
    section {
        padding: 100px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .cookie-modal,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .page-hero {
        background: none !important;
        color: #000;
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        break-after: avoid;
    }
    
    .legal-table,
    .cookies-table {
        break-inside: avoid;
    }
    
    .legal-table table,
    .cookies-table table {
        border: 1px solid #000;
    }
    
    .legal-table th,
    .legal-table td,
    .cookies-table th,
    .cookies-table td {
        border: 1px solid #000;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
    
    a[href^="tel"]:after,
    a[href^="mailto"]:after {
        content: none;
    }
}

/* 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;
    }
}



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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link.active::after {
        height: 3px;
    }
    
    .service-card,
    .team-member,
    .contact-card,
    .hours-card {
        border: 2px solid #333;
    }
}
