/* 
    Desenvolvido por Agência Taruga - www.agenciataruga.com
    Leandro Oliveira Nunes - leandro@agenciataruga.com
*/

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    background-color: #ffffff;
    color: #1a1a1a;
}

/* --- NAVBAR --- */
.navbar {
    background-color: #d8d8d8; /* Cinza claro conforme a imagem */
    height: 70px;
    width: 100%;
    border-bottom: 1px solid #cccccc;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 35px; /* Altura ajustável baseada na imagem real */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: 50px;
    margin-right: auto; /* Empurra as ações para a direita */
}

.nav-link {
    text-decoration: none;
    color: #112d5e; /* Azul escuro da ACDelco */
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff0000;
}

.nav-actions-desktop {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-actions-mobile {
    display: none; /* Oculto no desktop */
}

/* --- MOBILE MENU ELEMENTOS --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #0b2e59;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ff0000;
    color: #ffffff;
    text-decoration: none;
    height: 100%;
    padding: 0 30px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #cc0000;
}

.flags {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: 100%;
}

.flag-icon {
    height: 18px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: block;
}

.flag-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* --- RESPONSIVIDADE NAVBAR E MENU MOBILE --- */
@media (max-width: 992px) {
    .nav-container {
        justify-content: space-between;
        padding-right: 20px;
    }
    
    .nav-actions-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin: 0;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        gap: 20px;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 20px;
        margin-top: 20px;
        border-top: 1px solid #eeeeee;
        gap: 15px;
    }
    
    .flags-mobile {
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }
    
    .btn-whatsapp-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: #ff0000;
        color: #ffffff;
        text-decoration: none;
        width: 100%;
        padding: 15px;
        border-radius: 4px;
        font-weight: 700;
        font-size: 16px;
    }
    
    /* Classes de estado (Adicionadas via JS) */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open .nav-links {
        right: 0;
    }
    
    body.menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    body.menu-open .mobile-menu-toggle .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    body.menu-open .mobile-menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    
    body.menu-open .mobile-menu-toggle .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0c2049; /* Azul fundo do banner para transições suaves */
}

.slider-container {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.slider-prev, .slider-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: bold;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-prev:hover, .slider-next:hover {
    background-color: #ff0000;
    transform: translateY(-50%) scale(1.05);
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #ff0000;
    transform: scale(1.3);
}

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

/* --- SERVICE FORM SECTION --- */
.service-form-section {
    background-color: #0c2049; /* Azul escuro igual da imagem */
    padding: 80px 0;
    color: #ffffff;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-column .workshop-img {
    width: 100%;
    height: auto;
    border-radius: 2px; /* Geometria mais quadrada/sharp */
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.image-column .workshop-img:hover {
    transform: scale(1.02);
}

.form-column {
    display: flex;
    flex-direction: column;
}

.section-title {
    color: #ff0000;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-desc {
    font-size: 16px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Form Styles */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: #e6e6e6; /* Fundo cinza claro */
    border: none;
    border-radius: 2px; /* Geometria afiada */
    font-family: inherit;
    font-size: 15px;
    color: #0c2049;
    font-weight: 600;
    outline: none;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-control::placeholder {
    color: #0c2049;
    font-weight: 600;
}

.form-control:focus {
    box-shadow: inset 0 0 0 2px #ff0000;
    background-color: #ffffff;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    color: #0c2049;
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #ff0000;
}

.form-checkbox label {
    font-size: 11px;
    color: #a0aabf;
    line-height: 1.4;
}

.link-danger {
    color: #ff0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-danger:hover {
    color: #ffffff;
}

.btn-submit {
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- ABOUT SECTION --- */
.about-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 20px; /* Adiciona espaço em branco ao redor como no print */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px; /* Limita a largura para ficar centralizado com bordas brancas */
    margin: 0 auto;
}

.about-content {
    background-color: #dcdcdc; /* Cinza claro fiel à imagem */
    padding: 60px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    color: #ff0000;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.about-title {
    color: #0b2e59;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text {
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ff0000;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 2px;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.about-image-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 50px 5%;
    }
    
    .about-image-wrapper {
        min-height: 300px;
    }
}

/* --- SERVICES DIVIDER --- */
.services-divider {
    width: 100%;
    background-color: #ff0000;
    overflow-x: auto; /* Permite deslizar no celular se a tela for pequena */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.services-divider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.divider-list {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: max-content; /* Não quebra linha, faz overflow no mobile */
}

.divider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Aumenta o espaço entre ícone e texto */
    padding: 30px 60px; /* Bem mais alto e com muito mais respiro nas laterais */
    color: #ffffff;
    font-weight: 800;
    font-size: 18px; /* Texto maior */
    border-right: 2px solid #ffffff;
}

.divider-item:last-child {
    border-right: none;
}

.divider-item svg {
    width: 24px;
    height: 24px; /* Ícone proporcionalmente maior */
    flex-shrink: 0;
}

/* --- SERVICES SECTION --- */
.services-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 20px; 
}

.services-grid {
    display: grid;
    grid-template-columns: 4fr 6fr; /* Imagem um pouco mais estreita que o texto */
    gap: 50px; /* Reduz a distância */
    align-items: center;
}

.services-image-wrapper {
    width: 100%;
    display: flex;
}

.services-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.services-content {
    display: flex;
    flex-direction: column;
}

.services-title {
    color: #ff0000;
    font-size: 26px; 
    font-weight: 800;
    margin-bottom: 25px; /* Distanciamento maior como no print */
}

.services-subtitle {
    color: #0b2e59;
    font-size: 18px; 
    font-weight: 800;
    margin-bottom: 15px; /* Menos espaço antes da lista */
}

.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Menor espaçamento entre os itens, como no print */
}

.services-list li {
    font-size: 14px;
    color: #333333;
    line-height: 1.4; /* Altura de linha mais compacta */
}

.services-list li strong {
    color: #ff0000;
}

/* --- BENEFITS SECTION --- */
.benefits-section {
    width: 100%;
    background-color: #ffffff;
    padding: 20px 20px 80px 20px;
    text-align: center;
}

.benefits-title {
    color: #ff0000;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.benefit-card {
    background-color: #0b2e59;
    color: #ffffff;
    padding: 40px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background-color: #0c366e;
}

.benefit-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
    color: #ffffff;
    stroke-width: 1.5;
}

.benefit-card p {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.benefits-action {
    width: 100%;
}

.btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ff0000;
    color: #ffffff;
    text-decoration: none;
    width: 100%;
    padding: 20px;
    font-weight: 800;
    font-size: 18px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-full:hover {
    background-color: #cc0000;
}

@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    .service-form-section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 24px;
    }
    .about-section {
        padding: 50px 15px;
    }
    .services-section {
        padding: 50px 15px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .benefits-section {
        padding: 20px 15px 50px 15px;
    }
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .benefits-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    .location-section {
        padding: 60px 0 0 0; /* Remove padding de baixo para o mapa encostar no footer */
    }
    .location-section .container {
        padding: 0; /* Retira o limite lateral */
    }
    .location-content {
        padding: 0 15px 40px 15px; /* Devolve o limite para os textos */
        align-items: center;
        text-align: center;
    }
    .location-grid {
        grid-template-columns: 1fr;
        gap: 0; /* Tira o gap pois a margem entre os itens foi ajustada no padding acima */
    }
    .location-map {
        height: 350px;
        width: 100%;
    }
    .location-map iframe {
        border-radius: 0; /* Tira borda arredondada para encostar lateralmente */
    }
    .location-buttons {
        width: 100%;
        align-items: center;
    }
}

/* --- LOCATION SECTION --- */
.location-section {
    width: 100%;
    background-color: #0b2e59;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; /* Faz o mapa e o conteúdo terem a mesma altura */
}

.location-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0; /* Respiro apenas no texto */
}

.location-title {
    color: #ff0000;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
}

.location-address {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.location-address strong {
    font-weight: 700;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ff0000;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 2px; 
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-location:hover {
    background-color: #cc0000;
}

.location-map {
    width: 100%;
    min-height: 400px;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}


/* --- FOOTER --- */
.site-footer {
    width: 100%;
    background-color: #ff0000;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.copyright-text {
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ffffff;
    color: #ff0000;
}

/* --- MODAIS LEGAIS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eeeeee;
}

.modal-header h3 {
    margin: 0;
    color: #0b2e59;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ff0000;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }
}
