*, *::before, *::after {
  box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    
}

html {
    scroll-behavior: smooth;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0 0 0;
}

.logo {
    width: 250px;
    border-radius: 12px;
    animation: fadeInDown 1s;
}

main {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
}

/* Impede rolagem lateral no mobile */
html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Garante que main não ultrapasse a tela */
main {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
}

/* Centralização global */
body, main, header, footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Ajustes para centralizar seções e textos */
section, .hero, .cards, .steps, .buttons {
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.hero {
  display: flex;
  justify-content: center;   /* de space-between para center */
  gap: 32px;
  flex-wrap: wrap;
}

.hero-text, .hero-img {
    align-items: center;
    justify-content: center;
    text-align: center;

    flex: none;                /* de flex:1 para none, não puxa espaço */
    min-width: 300px;

    
}

.hero-carousel {
    flex: none;
    width: 530px;
    max-width: 100vw;
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-window {
    width: 100%;  
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    background: #000; 
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
}

.carousel-track img {
    flex: 0 0 100%; 
    width: 100%;
    max-height: none;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    display: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    border: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.carousel-dot.active {
    background: #FFD700;
    box-shadow: 0 0 12px #FFD70088;
}



.buttons {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 18px;
}

.hero {
  display: flex;
  justify-content: center;   /* de space-between para center */
  gap: 110px;
  flex-wrap: wrap;
}

.hero-text {
  flex: none;                /* de flex:1 para none, não puxa espaço */
  min-width: 300px;
}

.hero-text h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 12px 0;
    line-height: 1.1;
    text-shadow: 0 2px 16px #000a;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #fff;
}

.hero-img {
    width: 550px;
    max-width: 100%;
    border-radius: 20px;
    animation: fadeInRight 1s;
}

.hero-carousel .hero-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    box-shadow: none;
    border-radius: 20px;
    object-fit: cover;
    display: block;
}

.buttons {
    display: flex;
    gap: 18px;
    margin: 24px 0 0 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px #000a;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-yellow {
    background: linear-gradient(90deg, #20B959 60%, #20B95988 100%);
    color: #222;
}

.btn-yellow:hover {
    transform: scale(1.06);
    box-shadow: 0 0 24px #FFD700;
}

.btn-red {
    background: linear-gradient(90deg, #F44336 60%, #B71C1C 100%);
    color: #fff;
}

.btn-red:hover {
    transform: scale(1.06);
    box-shadow: 0 0 24px #F4433688;
}

section {
    margin-top: 64px;
}

.como-ajudar h2,
.pontos-importantes h2,
.passos h2,
.socorro h2 {
    color: #FFD700;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.como-ajudar p,
.pontos-importantes p,
.passos p,
.socorro p {
    color: #fff;
    text-align: center;
    margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));  /* 1fr no lugar de 5fr */
  gap: 30px;
  padding: 0 20px;
  max-width:98%;        /* largura máxima do grid */
  margin: 0 auto;  /* centraliza horizontalmente */
  margin-top: 40px;          
  margin-bottom: 40px;
}

.card {
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 0 18px 2px #fff2, 0 0 0 4px #111;
    padding: 32px 18px 28px 18px;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
    animation: fadeInUp 1s;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 32px #FFD700, 0 0 0 4px #FFD70088;
}

.icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
    color: #FFD700;
    filter: drop-shadow(0 0 8px #FFD70088);
}

img{
    max-width: 25%;
    max-height: 25%;
}

.hero-carousel .carousel-track img {
    max-width: none;
    min-width: 100%;
    height: 100%;
}

.card h3 {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card p {
    color: #fff;
    font-size: 1rem;
    margin:10px;
}

.card img{
    max-width: 15%;
}

.pontos-importantes h2 span {
    color: #FFD700;
    font-size: 2rem;
    font-weight: 700;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;   
}

.step {
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 0 18px 2px #fff2, 0 0 0 4px #111;
    padding: 24px 18px 18px 18px;
    text-align: center;
    width: 180px;
    animation: fadeInUp 1s;
}

.step .icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.socorro {
    text-align: center;
    margin-top: 64px;
}

.icon-lightning {
    display: inline-block;   /* permite centralizar com text-align */
    margin: 0 auto 8px auto; /* centraliza verticalmente e horizontalmente */
    width: 10%;
    font-size: 3.5rem;
    color: #FFD700;
    filter: drop-shadow(0 0 12px #FFD70088);
    animation: flash 1.2s infinite alternate;
}

footer {
    text-align: center;
    margin-top: 64px;
    padding: 32px 0 16px 0;
    background: none;
}

.logo-footer {
    width: 120px;
    margin-bottom: 12px;
}

footer p {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.7;
}

.map-section {
  padding: 60px 0;
  text-align: center;
}

.map-section h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.map-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}




/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes flash {
    from { filter: drop-shadow(0 0 12px #FFD70088);}
    to { filter: drop-shadow(0 0 32px #FFD70088);}
}

/* Responsivo */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 24px;
    }
    .hero-carousel {
        width: 100%;
        max-width: 620px;
    }
    .hero-img {
        margin-top: 16px;
    }
    main {
        padding: 0 6px;
    }
    .cards, .steps {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-carousel {
        max-width: 360px;
    }
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
    .cards {
        grid-template-columns: 1fr;
        padding: 0 12px 24px 12px; 
    }
    .card {
        margin-bottom: 10px;
        margin-right: 12px;
        margin-left: 20px;
        margin-top: 10px;
    }
    .steps {
        flex-direction: column;
        gap: 16px;
        width: 80%;
    }
    .step {
        
        min-width: unset;
        margin-bottom: 18px;
    }
    .hero-img {
        width: 100%;
        max-width: 350px;
    }
    .logo {
        max-width: 40%;
    }
    .logo-footer {
        max-width: 30%;
    }
    section {
        margin-top: 36px;
    }
    .btn {
        width: 90vw;
        max-width: 320px;
        font-size: 1rem;
        padding: 12px 0;
    }
    .icon-lightning{
        width: 50%;
        margin: 24px auto 8px auto; /* centraliza horizontalmente */
        font-size: 3rem;
        padding: 0;
        display: block;
    }
}

.secao-cep {
    width: 100%;
    max-width: 650px;
    margin: 60px auto;
    padding: 36px 24px 45px;
    background: #0f0f0f;
    border-radius: 24px;
    box-shadow: 0 0 45px rgba(12, 12, 12, 0.7);
    text-align: center;
}

.secao-cep__header h2 {
    color: #FFD700;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.secao-cep__header p {
    color: #e2e8f0;
    margin-bottom: 32px;
}

.cep-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.form-row label {
    text-align: left;
    font-weight: 600;
    color: #fff;
}

.form-row input {
    width: 100%;
    margin-top: 6px;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid #303030;
    background: #141414;
    color: #fff;
    font-size: 1rem;
}

.form-row input:focus {
    outline: 2px solid #F5C64B;
    border-color: transparent;
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #cbd5f5;
    opacity: 0.8;
}

.tipos-veiculo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.tipo-card {
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    cursor: pointer;
    background: #121212;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.tipo-card input {
    display: none;
}

.tipo-card div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tipo-card .icone {
    font-size: 1.7rem;
}

.tipo-card strong {
    font-size: 1rem;
}

.tipo-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5f5;
}

.tipo-card:has(input:checked) {
    border-color: #F5C64B;
    box-shadow: 0 0 20px rgba(245, 198, 75, 0.25);
}

.secao-cep .btn,
.cep-resultado .btn {
    width: min(100%, 340px);
    display: block;
    margin: 14px auto 0;
}

.cep-resultado,
.cep-erro {
    margin-top: 24px;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
}

.cep-resultado {
    background: rgba(15, 118, 110, 0.2);
    border: 1px solid rgba(15, 118, 110, 0.35);
}

.cep-resultado p {
    margin: 6px 0;
    font-size: 1rem;
}

.cep-erro {
    background: rgba(190, 44, 44, 0.2);
    border: 1px solid rgba(190, 44, 44, 0.4);
    color: #fecaca;
}

.hidden {
    display: none !important;
}

