/* CSS Responsivo Melhorado - Auto Socorro Bolinha */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: bold;
    color: #f39c12;
    line-height: 1.2;
}

.logo .tagline {
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    color: #bdc3c7;
    display: block;
    line-height: 1;
}

.nav-menu {
    position: static;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.nav-menu a:hover {
    color: #f39c12;
}

.emergency-btn {
    flex-shrink: 0;
}

.btn-emergency {
    background: #25d366;
    color: white;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    white-space: nowrap;
}

.btn-emergency:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 30px;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.80) 100%),
        url('./img/fundo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    padding: clamp(80px, 15vh, 120px) 0 clamp(40px, 8vh, 80px);
    min-height: clamp(500px, 70vh, 800px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Filtros para melhorar a imagem com fundo branco */
    filter: contrast(1.1) brightness(0.9) saturate(1.2);
}

/* Overlay adicional para garantir contraste do texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(44, 62, 80, 0.4) 0%, transparent 70%),
        radial-gradient(circle at 70% 80%, rgba(243, 156, 18, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(44, 62, 80, 0.3) 0%, rgba(52, 73, 94, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    z-index: 3;
    max-width: 100%;
    position: relative;
}

.badge-24h {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #2c3e50;
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
    position: relative;
    z-index: 3;
}

.badge-24h span {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1;
}

.badge-24h small {
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.highlight {
    color: #f39c12;
}

.hero-description {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    margin-bottom: 2rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary, .btn-secondary {
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    min-width: fit-content;
    text-align: center;
    justify-content: center;
    min-height: 44px;
}

.btn-primary {
    background: #25d366;
    color: white;
    flex: 1;
    max-width: 200px;
}

.btn-primary:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    flex: 1;
    max-width: 150px;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
}

.hero-image {
    text-align: center;
    z-index: 3;
    max-width: 100%;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Services Section */
.services {
    padding: clamp(50px, 10vh, 80px) 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3rem);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #f39c12;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: white;
}

.service-card h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-card p {
    color: #666;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
}

/* Services Gallery Section */
.services-gallery {
    padding: clamp(50px, 10vh, 80px) 0;
    background: white;
}

.services-gallery .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 3rem;
}

.service-image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.service-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-card:hover img {
    transform: scale(1.1);
}

.service-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.service-image-card:hover .service-image-overlay {
    transform: translateY(0);
}

.service-image-overlay h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.service-image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Modal styles for services gallery */
.services-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.services-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.services-modal img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.services-modal .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.services-modal .close:hover {
    color: #f39c12;
}

.services-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.services-modal-nav:hover {
    background: rgba(255,255,255,0.2);
}

.services-modal-prev {
    left: -60px;
}

.services-modal-next {
    right: -60px;
}

/* Fleet Section */
.fleet {
    padding: clamp(50px, 10vh, 80px) 0;
}

.fleet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin-bottom: 3rem;
}

.fleet-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.fleet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.fleet-item:hover img {
    transform: scale(1.05);
}

.fleet-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.feature-icon {
    width: clamp(50px, 6vw, 60px);
    height: clamp(50px, 6vw, 60px);
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.feature h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.feature p {
    color: #666;
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}

/* About Section */
.about {
    padding: clamp(50px, 10vh, 80px) 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.about-text p {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
}

.stat {
    background: white;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 10px;
    text-align: center;
    flex: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: #666;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: clamp(50px, 10vh, 80px) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: start;
}

.contact-info h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.contact-details p {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    color: #666;
}

.contact-details a {
    color: #25d366;
    text-decoration: none;
    font-weight: bold;
}

.contact-details a:hover {
    text-decoration: underline;
}

.emergency-card {
    background: linear-gradient(135deg, #25d366, #20b954);
    color: white;
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.emergency-card h3 {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
    margin-bottom: 1rem;
    font-weight: bold;
}

.emergency-card p {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-emergency-large {
    background: white;
    color: #25d366;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.btn-emergency-large:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: clamp(30px, 6vh, 40px) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer a {
    color: #f39c12;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #f39c12;
}

/* RESPONSIVE DESIGN */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* Large screens (992px and up) - Better desktop layout */
@media (min-width: 992px) {
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero-content {
        max-width: 1000px;
        gap: 2.5rem;
    }
    
    .hero-text {
        padding-right: 1rem;
    }
    
    .hero-image {
        padding-left: 1rem;
    }
}

/* Medium screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-content {
        gap: 2rem;
        max-width: 900px;
    }
    
    .nav-menu ul {
        gap: 1.5rem;
    }
    
    .btn-emergency {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Tablets portrait (768px and below) */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
    }
    

    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }
    
    .emergency-btn {
        display: none;
    }
    
    .hero-text,
    .hero-image {
        padding: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fleet-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .fleet-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Responsividade específica para imagem de fundo */
@media (max-width: 768px) {
    .hero {
        background-position: center center;
        /* Reduzir intensidade dos filtros em dispositivos menores */
        filter: contrast(1.02) brightness(0.98) saturate(1.05);
    }
}

/* Extra small screens (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 80px 0 40px;
        /* Ajustar posição da imagem em mobile */
        background-position: center top;
        background-size: cover;
        /* Remover filtros pesados em mobile para melhor performance */
        filter: contrast(1.0) brightness(1.0) saturate(1.0);
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .fleet-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .emergency-card {
        padding: 1.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}

/* Ultra small screens (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .service-card,
    .stat,
    .feature {
        padding: 1rem;
    }
}

/* Landscape orientation for mobile */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: 70px 0 30px;
    }
    
    .badge-24h {
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .feature-icon,
    .contact-icon {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    

}

/* Print styles */
@media print {
    .header,
    .whatsapp-float,
    .mobile-menu-toggle,
    .btn-emergency {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
}
