/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Desktop Large */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .slide-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .slide-title {
        font-size: 3rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    /* Prevenir overflow horizontal */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Header - Manter apenas logo e hamburger no mobile */
    .header-desktop {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    
    .header-desktop .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .header-content {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    /* Logo visível e com tamanho adequado */
    .logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 35px !important;
        width: auto;
        max-width: 120px;
    }
    
    /* Ocultar menu de navegação no mobile */
    .header-desktop .main-nav {
        display: none !important;
    }
    
    /* Ocultar telefone no mobile */
    .header-desktop .header-phone {
        display: none !important;
    }
    
    /* Ocultar botão BOOK NOW desktop no tablet */
    .header-desktop .header-actions .btn-book-desktop {
        display: none !important;
    }
    
    /* Ocultar botão mobile no tablet (será mostrado apenas em mobile abaixo de 768px) */
    .header-desktop .header-actions .btn-book-mobile {
        display: none !important;
    }
    
    /* Ajustar header-actions para mostrar book + hamburger */
    .header-desktop .header-actions {
        gap: 12px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    /* Botão hamburger visível no mobile */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        z-index: 1001;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #F0D71A;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover span {
        background-color: #fff;
    }
    
    /* Animação do hamburger quando ativo */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .header-mobile {
        display: block;
    }
    
    /* Hero */
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    /* Services */
    .service-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-image {
        order: -1;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Commercial Types */
    .commercial-types {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .commercial-type {
        height: 150px;
    }
    
    /* Rental Services */
    .rental-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .rental-service {
        height: 250px;
    }
    
    /* Feature Cards */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        min-height: 150px;
    }
    
    .feature-icon {
        width: 100px;
    }
    
    .feature-icon img {
        height: 70px;
        max-width: 80px;
    }
    
    .feature-content {
        padding-right: 120px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    /* Mostrar botão BOOK NOW mobile apenas em mobile */
    .btn-book-mobile {
        display: inline-block !important;
    }
    
    .header-desktop .header-actions .btn-book-mobile {
        display: inline-block !important;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 700;
        border-radius: 8px;
        white-space: nowrap;
    }
    
    /* Garantir que botão desktop está oculto em mobile */
    .btn-book-desktop {
        display: none !important;
    }
    
    .header-desktop .header-actions .btn-book-desktop {
        display: none !important;
    }
    
    /* Typography */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Sections padding */
    .about-section,
    .services-section,
    .commercial-services,
    .testimonials-section,
    .contact-section {
        padding: 60px 0;
    }
    
    /* Hero */
    .hero-slider {
        height: 100vh;
        padding-top: 60px;
    }
    
    .hero-slide {
        height: calc(100vh - 60px);
    }
    
    .slide-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-content {
        padding: 0 20px;
        text-align: center;
        max-width: 90%;
    }
    
    /* Mobile bottom menu show/hide */
    .mobile-bottom-menu.visible {
        bottom: 0;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        min-height: 120px;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        position: static;
        width: auto;
        background: none;
        border-radius: 0;
        margin-bottom: 1rem;
    }
    
    .feature-content {
        padding-right: 0;
    }
    
    /* Service content */
    .service-title {
        font-size: 2rem;
    }
    
    .service-subtitle {
        font-size: 1.1rem;
    }
    
    /* Commercial types */
    .commercial-types {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .commercial-type {
        height: 120px;
    }
    
    .type-content h3 {
        font-size: 1.1rem;
    }
    
    /* Rental services */
    .rental-services-grid {
        grid-template-columns: 1fr;
    }
    
    .rental-service {
        height: 200px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Swiper buttons hide on mobile */
    .hero-next,
    .hero-prev {
        display: none !important;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu {
        width: 280px;
        right: -280px;
        max-width: 85vw;
    }
    
    /* Garantir que imagens não causem overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Container mobile */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    /* Prevenir overflow em telas muito pequenas */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    /* Header ainda menor */
    .header-desktop {
        padding: 8px 0;
    }
    
    .header-desktop .container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 30px !important;
        max-width: 100px !important;
    }
    
    /* Botão BOOK menor no iPhone */
    .header-desktop .header-actions .btn-book-mobile {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Hamburger menor */
    .mobile-menu-toggle {
        width: 25px !important;
        height: 20px !important;
    }
    
    .mobile-menu-toggle span {
        height: 2px !important;
    }
    
    /* Ajustar gap entre elementos */
    .header-desktop .header-actions {
        gap: 8px !important;
    }
    
    /* Hero */
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    /* Sections */
    .about-section,
    .services-section,
    .commercial-services,
    .testimonials-section,
    .contact-section {
        padding: 40px 0;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Features */
    .feature-card {
        padding: 1rem;
    }
    
    /* Commercial types - single column on very small screens */
    .commercial-types {
        grid-template-columns: 1fr;
    }
    
    .commercial-type {
        height: 150px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Contact items */
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Social links */
    .social-links,
    .footer-social,
    .mobile-social {
        justify-content: center;
    }
    
    /* Mobile header adjustments */
    .mobile-header-content {
        padding: 0 10px;
    }
    
    .mobile-logo img {
        height: 35px;
    }
    
    .btn-mobile {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Form adjustments */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .slide-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card,
    .contact-form {
        padding: 1rem;
    }
    
    .mobile-menu {
        width: 260px;
        right: -260px;
    }
    
    .mobile-actions {
        gap: 5px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
    }
    
    .slide-content {
        padding: 20px;
        text-align: center;
        max-width: 95%;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .mobile-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-swiper,
    .testimonials-swiper {
        --swiper-transition-duration: 0ms;
    }
    
    .scroll-down-btn {
        animation: none;
    }
    
    .btn,
    .feature-card,
    .commercial-type,
    .rental-service {
        transition: none;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu,
    .mobile-menu-overlay,
    .hero-slider,
    .scroll-indicator,
    .btn,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
        color: #000 !important;
    }
    
    .about-section,
    .services-section,
    .commercial-services,
    .contact-section {
        padding: 20pt 0;
        break-inside: avoid;
    }
}
