/* Auto Arc - Responsive Styles */
/* Mobile-First Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-xl: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: var(--spacing-lg);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-xl: 2rem;
    }
    
    /* Header Mobile */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100vh);
        transition: transform var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(-100%);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Grid Layouts */
    .services-grid,
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group,
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
    }
    
    /* Thanks Page */
    .confirmation-details {
        grid-template-columns: 1fr;
    }
    
    .confirmation-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Header */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .logo svg {
        width: 100px;
        height: 33px;
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-content p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Page Headers */
    .page-header {
        padding: 5rem 0 2rem;
    }
    
    .page-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Cards */
    .service-card,
    .destination-card,
    .team-member,
    .testimonial {
        padding: var(--spacing-lg);
    }
    
    .service-icon,
    .destination-icon {
        width: 48px;
        height: 48px;
    }
    
    .member-avatar {
        width: 80px;
        height: 80px;
    }
    
    /* Stats */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Contact */
    .contact-method {
        padding: var(--spacing-lg);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .form-container {
        padding: var(--spacing-lg);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-sm);
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-logo svg {
        width: 80px;
        height: 28px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: var(--spacing-md);
    }
    
    .contact-item {
        justify-content: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .cookie-content p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        padding: var(--spacing-lg);
        width: 95%;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Legal Pages */
    .legal-header {
        padding: var(--spacing-lg) 0;
    }
    
    .legal-section {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .legal-section h2 {
        font-size: var(--font-size-lg);
    }
    
    .cookie-table {
        font-size: var(--font-size-sm);
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: var(--spacing-sm);
    }
    
    /* Thanks Page */
    .thanks-section {
        padding: 6rem 0 var(--spacing-lg);
    }
    
    .thanks-icon {
        width: 80px;
        height: 80px;
    }
    
    .thanks-content h1 {
        font-size: 1.75rem;
    }
    
    .thanks-message {
        font-size: var(--font-size-base);
    }
    
    .confirmation-item {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }
    
    .confirmation-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* CTA Sections */
    .cta-icon {
        width: 48px;
        height: 48px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: var(--font-size-base);
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    :root {
        --container-padding: 0.5rem;
        --spacing-sm: 0.25rem;
        --spacing-md: 0.5rem;
        --spacing-lg: 0.75rem;
        --spacing-xl: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .service-card,
    .destination-card,
    .team-member,
    .testimonial {
        padding: var(--spacing-md);
    }
    
    .form-container {
        padding: var(--spacing-md);
    }
    
    .legal-section {
        padding: var(--spacing-sm);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo svg,
    .section-icon,
    .service-icon,
    .destination-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .slide-up {
        transition: none;
    }
    
    .hamburger span {
        transition: none;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Note: Since requirements specify light theme only, 
       this is left as placeholder for future enhancement */
}

/* Print Responsive Adjustments */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .grid,
    .services-grid,
    .destinations-grid,
    .team-grid,
    .testimonials-grid {
        display: block;
    }
    
    .service-card,
    .destination-card,
    .team-member,
    .testimonial {
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

/* Focus Management for Mobile */
@media (max-width: 768px) {
    button:focus,
    input:focus,
    select:focus,
    textarea:focus,
    a:focus {
        outline-width: 3px;
        outline-offset: 3px;
    }
}

/* Hover Effects Only on Non-Touch Devices */
@media (hover: hover) {
    .service-card:hover,
    .destination-card:hover,
    .team-member:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .social-links a:hover {
        transform: translateY(-2px);
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .contact-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
}
