/* ==============================================
   LUCCA.TAXI - CSS RESPONSIVE & MOBILE
   ============================================== */

/* === TABLET (max-width: 1024px) === */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .benefits-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .rates-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Header & Navigation */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray-200);
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 0;
    }
    
    .lang-switch {
        margin-top: 1rem;
    }
    
    /* Hero */
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Grids */
    .benefits-grid,
    .services-grid,
    .rates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .benefit-card,
    .service-card,
    .rate-card {
        padding: 1.5rem;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 6rem 0 3rem;
        margin-top: 70px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Tables */
    .routes-table-wrapper {
        overflow-x: auto;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* === SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .benefit-card,
    .service-card,
    .rate-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* === SPECIFIC COMPONENTS RESPONSIVE === */

/* Comparison Table */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    .booking-methods {
        grid-template-columns: 1fr;
    }
}

/* Service Detail Grid */
@media (max-width: 968px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-reverse {
        grid-template-columns: 1fr;
    }
    
    .service-detail-reverse .service-detail-image {
        order: -1;
    }
}

/* Contact Grid */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Cards */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-icon {
        margin-bottom: 1rem;
    }
}

/* Destinations Grid */
@media (max-width: 768px) {
    .destinations-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Map Container */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    .map-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .map-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
    }
}

/* Instructions */
@media (max-width: 768px) {
    .calculator-instructions {
        grid-template-columns: 1fr;
    }
    
    .instruction-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
    }
}

/* Feature List */
@media (max-width: 768px) {
    .feature-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
}

/* Steps List */
@media (max-width: 768px) {
    .steps-list {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
}

/* Phone Number Display */
@media (max-width: 768px) {
    .phone-number-display {
        padding: 2rem 1rem;
    }
    
    .phone-number-link {
        font-size: 1.5rem;
    }
}

/* Partners Grid */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Grid */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Social Links */
@media (max-width: 768px) {
    .social-links-large {
        flex-direction: column;
    }
}

/* Surcharges Grid */
@media (max-width: 768px) {
    .surcharges-grid {
        grid-template-columns: 1fr;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-info {
        margin-top: 1.5rem;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* === PRINT STYLES === */
@media print {
    .header,
    .footer,
    .nav-menu,
    .hero-scroll,
    .cta-section,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}