/* ========================================
   AVENTÚRIA VIAGENS - RESPONSIVIDADE UNIVERSAL
   Otimizado para TODOS os dispositivos (280px - 8K)
   ======================================== */

/* 📱 DISPOSITIVOS MUITO PEQUENOS - Galaxy Fold, iPhone SE antigo */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
        max-width: 100%;
    }

    /* Header ultra compacto */
    .header {
        padding: 8px 0;
    }

    .nav-logo img {
        width: 30px;
        height: 30px;
    }

    .nav-actions .btn {
        font-size: 0.7rem;
        padding: 6px 10px;
        display: none; /* Ocultar em telas muito pequenas */
    }

    /* Hero ultra compacto */
    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        padding: 0 10px;
    }

    .logo-img-hero {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    /* Seções com menos espaçamento */
    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 0.7rem;
    }

    .section-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Services ultra compactos */
    .service-card {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    /* Destinations */
    .destination-card {
        margin-bottom: 0.8rem;
    }

    .destination-header h3 {
        font-size: 1rem;
    }

    .destination-description {
        font-size: 0.8rem;
    }

    /* Testimonials */
    .testimonial-card {
        margin: 0 5px;
        padding: 12px;
        min-height: 250px;
    }

    .author-avatar {
        width: 35px !important;
        height: 35px !important;
    }

    .author-name {
        font-size: 12px;
    }

    .testimonial-text p {
        font-size: 11px;
        line-height: 1.4;
    }

    /* Contact ultra compacto */
    .contact-item {
        padding: 0.8rem;
    }

    .contact-item h4 {
        font-size: 0.9rem;
    }

    .contact-item p {
        font-size: 0.8rem;
    }

    /* Form inputs */
    input, textarea, select {
        font-size: 14px;
        padding: 8px;
    }

    /* Botões flutuantes menores */
    .whatsapp-float .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Footer compacto */
    .footer-column h4 {
        font-size: 0.9rem;
    }

    .footer-column li {
        font-size: 0.8rem;
    }
}

/* 📱 SMARTPHONES PEQUENOS - iPhone SE, Galaxy S */
@media (min-width: 321px) and (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }

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

    .logo-img-hero {
        width: 100px !important;
        height: 100px !important;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .testimonial-card {
        margin: 0 6px;
        padding: 14px;
        min-height: 270px;
    }

    .author-avatar {
        width: 38px !important;
        height: 38px !important;
    }

    .testimonial-text p {
        font-size: 12px;
    }
}

/* 📱 SMARTPHONES PADRÃO - iPhone 12, Galaxy S21 */
@media (min-width: 376px) and (max-width: 430px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

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

    .logo-img-hero {
        width: 120px !important;
        height: 120px !important;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .testimonial-card {
        margin: 0 8px;
        padding: 16px;
        min-height: 290px;
    }

    .author-avatar {
        width: 40px !important;
        height: 40px !important;
    }

    .testimonial-text p {
        font-size: 13px;
    }

    /* Airlines section mobile */
    .airlines-container {
        padding: 0 8px;
    }

    .airline-card {
        margin: 0 8px;
        padding: 12px;
    }
}

/* 📱 SMARTPHONES GRANDES - iPhone Pro Max, Galaxy Note */
@media (min-width: 431px) and (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2rem !important;
    }

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

    .logo-img-hero {
        width: 140px !important;
        height: 140px !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        margin: 0 10px;
        padding: 18px;
        min-height: 320px;
    }

    .author-avatar {
        width: 45px !important;
        height: 45px !important;
    }

    .testimonial-text p {
        font-size: 14px;
    }
}

/* 📟 TABLETS PEQUENOS - iPad Mini */
@media (min-width: 577px) and (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.4rem !important;
    }

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

    .logo-img-hero {
        width: 160px !important;
        height: 160px !important;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Navigation mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    /* Grid layouts */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

    /* Testimonials */
    .testimonial-card {
        margin: 0 15px;
        padding: 20px;
        min-height: 340px;
    }

    .author-avatar {
        width: 50px !important;
        height: 50px !important;
    }

    .testimonial-text p {
        font-size: 15px;
    }

    /* Contact */
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 📟 TABLETS GRANDES - iPad, Surface */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 32px;
    }

    .hero-title {
        font-size: 2.8rem !important;
    }

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

    .logo-img-hero {
        width: 180px !important;
        height: 180px !important;
    }

    .section-title {
        font-size: 2.4rem;
    }

    /* Navigation desktop */
    .nav-menu {
        display: flex;
        position: static;
        background: none;
        flex-direction: row;
        justify-content: flex-start;
        transform: none;
    }

    .hamburger {
        display: none;
    }

    /* Grid layouts */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Airlines stack otimizado */
    .airlines-stack {
        max-width: 600px;
        margin: 0 auto;
    }

    .airline-card {
        padding: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        margin: 0 20px;
        padding: 24px;
        min-height: 360px;
    }

    .author-avatar {
        width: 55px !important;
        height: 55px !important;
    }

    .testimonial-text p {
        font-size: 16px;
    }

    /* Contact */
    .contact-content {
        flex-direction: row;
        gap: 3rem;
    }

    .contact-info {
        flex: 1;
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        flex: 1.2;
    }
}

/* 💻 LAPTOPS E DESKTOPS PEQUENOS */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 1140px;
        padding: 0 40px;
    }

    .hero-title {
        font-size: 3.2rem !important;
    }

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

    .logo-img-hero {
        width: 200px !important;
        height: 200px !important;
    }

    .section-title {
        font-size: 2.6rem;
    }

    /* Grid layouts */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        margin: 0 25px;
        padding: 28px;
        min-height: 380px;
    }

    .author-avatar {
        width: 60px !important;
        height: 60px !important;
    }

    .testimonial-text p {
        font-size: 16px;
    }
}

/* 🖥️ DESKTOPS GRANDES E MONITORES FULL HD */
@media (min-width: 1367px) and (max-width: 1920px) {
    .container {
        max-width: 1200px;
        padding: 0 50px;
    }

    .hero-title {
        font-size: 3.5rem !important;
    }

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

    .logo-img-hero {
        width: 220px !important;
        height: 220px !important;
    }

    .section-title {
        font-size: 2.8rem;
    }

    /* Espaçamento otimizado */
    section {
        padding: 6rem 0;
    }

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

    /* Grid layouts */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

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

    /* Testimonials */
    .testimonial-card {
        margin: 0 30px;
        padding: 32px;
        min-height: 400px;
    }

    .author-avatar {
        width: 65px !important;
        height: 65px !important;
    }

    .testimonial-text p {
        font-size: 17px;
        line-height: 1.7;
    }
}

/* 🖥️ MONITORES 2K E 4K */
@media (min-width: 1921px) and (max-width: 3840px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }

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

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

    .logo-img-hero {
        width: 250px !important;
        height: 250px !important;
    }

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

    /* Espaçamento aumentado */
    section {
        padding: 8rem 0;
    }

    .section-header {
        margin-bottom: 5rem;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Grid layouts expandidos */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .destinations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    /* Testimonials grandes */
    .testimonial-card {
        margin: 0 40px;
        padding: 40px;
        min-height: 450px;
    }

    .author-avatar {
        width: 70px !important;
        height: 70px !important;
    }

    .testimonial-text p {
        font-size: 18px;
        line-height: 1.8;
    }

    /* Botões maiores */
    .btn-large {
        padding: 18px 36px;
        font-size: 1.2rem;
    }
}

/* 🖥️ MONITORES 8K E ULTRA-WIDE */
@media (min-width: 3841px) {
    .container {
        max-width: 1600px;
        padding: 0 80px;
    }

    .hero-title {
        font-size: 4.5rem !important;
    }

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

    .logo-img-hero {
        width: 300px !important;
        height: 300px !important;
    }

    .section-title {
        font-size: 3.5rem;
    }

    /* Espaçamento máximo */
    section {
        padding: 10rem 0;
    }

    .section-header {
        margin-bottom: 6rem;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Grid layouts máximos */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }

    .destinations-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3rem;
    }

    /* Testimonials ultra grandes */
    .testimonial-card {
        margin: 0 50px;
        padding: 50px;
        min-height: 500px;
    }

    .author-avatar {
        width: 80px !important;
        height: 80px !important;
    }

    .testimonial-text p {
        font-size: 20px;
        line-height: 1.9;
    }
}

/* 📱 MOBILE NAVIGATION UNIVERSAL */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger span:nth-child(1) {
        margin-bottom: 4px;
    }

    .hamburger span:nth-child(2) {
        margin-bottom: 4px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Menu mobile overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 500;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: var(--primary-color);
        color: white;
    }

    /* Prevent body scroll when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
}

/* 🎯 PERFORMANCE E ACESSIBILIDADE */

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .testimonial-card {
        border: 2px solid #333;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .testimonial-btn {
        width: 48px;
        height: 48px;
    }

    .dot {
        width: 16px;
        height: 16px;
    }

    /* Remove hover effects on touch devices */
    .service-card:hover,
    .destination-card:hover,
    .btn:hover {
        transform: none;
    }

    /* Add touch feedback */
    .btn:active {
        transform: scale(0.98);
    }
}

/* 🖨️ PRINT STYLES */
@media print {
    .nav-actions,
    .hamburger,
    .whatsapp-float,
    .back-to-top,
    .testimonials-controls,
    .testimonials-dots {
        display: none !important;
    }

    .hero {
        page-break-after: always;
    }

    .testimonial-card {
        page-break-inside: avoid;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* 📱 PWA SAFE AREAS */
@media (display-mode: standalone) {
    .header {
        padding-top: env(safe-area-inset-top);
    }

    .whatsapp-float {
        bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    }
}

/* 🔍 FOCUS IMPROVEMENTS */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .testimonial-btn:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
        animation: pulse 1s ease-in-out;
    }

    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(251, 139, 4, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(251, 139, 4, 0); }
        100% { box-shadow: 0 0 0 0 rgba(251, 139, 4, 0); }
    }
}