/* STYLES.CSS - JAPA TRANSPORTES */

:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary-red: #e50914;
    --accent-yellow: #ffcc00;
    --text-light: #ffffff;
    --text-gray: #b3b3b3;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1ebc57;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* HEADER / NAVBAR */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: #0a0a0a;
    border-bottom: 2px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 100;
}





/* Grupo de Localização + Botão */
.header-contact-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Microcopy de Localização (UX Writing) */
.location-tag {
  color: #cccccc;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.location-tag svg {
  color: #e50914; /* Ícone em destaque sutil vermelho */
}




.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-red);
}

.btn-header {
    background-color: var(--whatsapp-green);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-header:hover {
    background-color: var(--whatsapp-hover);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.badge-zn {
    display: inline-block;
    background-color: var(--primary-red);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    color: var(--accent-yellow);
    font-size: 2.3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero .sub-services {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero .location-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--whatsapp-green);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

/* SERVIÇOS */
.services-section {
    padding: 60px 8%;
    text-align: center;
    background-color: #161616;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-line {
    width: 50px;
    height: 3px;
    background-color: var(--accent-yellow);
    margin: 0 auto 40px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid #2a2a2a;
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-img-container {
    width: 100%;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* COMO FUNCIONA */
.how-it-works {
    padding: 60px 8%;
    text-align: center;
}

.subtitle-text {
    color: var(--text-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.step-item .number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.step-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.step-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* SIMULADOR DE ORÇAMENTO */
.quote-section {
    padding: 60px 20px;
    background-color: #161616;
    display: flex;
    justify-content: center;
}

.quote-card {
    background-color: var(--bg-card);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px 30px;
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.quote-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.quote-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #121212;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-red);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* FOOTER */
footer {
    background-color: #080808;
    text-align: center;
    padding: 40px 20px 20px 20px;
    border-top: 1px solid #222;
}

footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.logo-img-footer {
    height: 35px;
    width: auto;
    border-radius: 4px;
}

footer p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

footer .copyright {
    margin-top: 25px;
    font-size: 0.75rem;
    color: #666;
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-green);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    header {
        padding: 12px 5%;
    }
    .logo-img {
        height: 35px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
    .hero .sub-services {
        font-size: 0.95rem;
    }
    .btn-main {
        font-size: 1rem;
        padding: 14px 24px;
        width: 100%;
    }











   /* REGRA PARA DISPOSITIVOS MÓVEIS (CELULAR) */
@media (max-width: 768px) {
    /* 1. Centraliza o container principal do header */
    header {
        padding: 15px 4%;
        flex-direction: column; /* Empilha os elementos no centro */
        justify-content: center;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    /* 2. Centraliza a logo e o texto da marca */
    .logo-container {
        justify-content: center;
        gap: 8px;
    }

    .logo-img {
        height: 35px;
    }

    .logo {
        font-size: 1.05rem;
    }

    /* 3. Centraliza o grupo da localização + número/botão */
    .header-contact-group {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    /* Centraliza a tag de localização */
    .location-tag {
        font-size: 0.8rem;
        justify-content: center;
        white-space: nowrap;
    }

    /* Centraliza o botão com o número do WhatsApp */
    .btn-header {
        font-size: 0.8rem;
        padding: 6px 16px;
        border-radius: 14px;
        white-space: nowrap;
        text-align: center;
        display: inline-flex;
        justify-content: center;
    }

    /* Ajuste de largura e quebra do botão do Hero no celular */
    .btn-main {
        font-size: 0.9rem;
        padding: 12px 18px;
        width: 100%;
        max-width: 300px;
        white-space: nowrap;
        gap: 8px;
    }

    /* Oculta o ícone flutuante do WhatsApp para evitar sobreposição */
    .whatsapp-float {
        display: none;
    }
}

/* =======================================================
   CORREÇÃO DE BUGS E UX WRITING (APENAS CSS)
   ======================================================= */

/* 1. Ajuste global no botão do formulário e botões principais */
.btn-main, .btn-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Garante que o ícone fique dentro do botão com cor correta */
.btn-main i, .btn-submit i {
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
}

/* =======================================================
   REGRAS ESPECÍFICAS PARA TELA DE CELULAR
   ======================================================= */
@media (max-width: 768px) {
    /* Centralização e espaçamento do Header */
    header {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 15px 12px !important;
        gap: 10px !important;
        text-align: center;
    }

    .logo-container {
        justify-content: center !important;
    }

    .header-contact-group {
        width: 100%;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .location-tag {
        font-size: 0.8rem !important;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .btn-header {
        font-size: 0.85rem !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
    }

    /* UX Writing e Correção do Botão no Formulário / Hero */
    .btn-main, .btn-submit {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.88rem !important; /* Reduz levemente a fonte no celular para o texto não vazar */
        padding: 14px 10px !important;
        letter-spacing: 0.2px;
    }

    /* Melhora o visual dos campos do formulário */
    .quote-card {
        padding: 25px 18px !important;
    }

    .quote-card h2 {
        font-size: 1.35rem !important;
        letter-spacing: 0.5px;
    }

    .form-group label {
        font-size: 0.85rem !important;
        color: var(--text-light);
    }

    .form-group input, 
    .form-group select {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }

    /* Esconde o botão flutuante para não atrapalhar a leitura do form */
    .whatsapp-float {
        display: none !important;
    }
}

/* CORREÇÃO DEFINITIVA DO BOTÃO DE ORÇAMENTO (CSS APENAS) */

.btn-submit {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 12px !important;
    border-radius: 50px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Garante o correto alinhamento e tamanho do ícone */
.btn-submit i {
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Ajuste específico para o celular */
@media (max-width: 768px) {
    .btn-submit {
        font-size: 0.82rem !important; /* Ajusta o texto para caber perfeitamente no container */
        letter-spacing: 0px !important;
        white-space: normal !important; /* Permite quebrar a linha se a tela for muito estreita */
        text-align: center !important;
        line-height: 1.2 !important;
    }
}
}
