*, *::before, *::after {
  box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0 0 0;
}

.logo {
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 0 24px #222;
    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;
}



.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: #FFD600;
    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: 370px;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 32px 4px #fff4, 0 0 0 8px #111;
    animation: fadeInRight 1s;
}

.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, #FFD600 60%, #FFB300 100%);
    color: #222;
}

.btn-yellow:hover {
    transform: scale(1.06);
    box-shadow: 0 0 24px #FFD60088;
}

.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: #FFD600;
    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 #FFD60055, 0 0 0 4px #FFD600;
}

.icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
    color: #FFD600;
    filter: drop-shadow(0 0 8px #FFD60088);
}

img{
    max-width: 25%;
    max-height: 25%;
}

.card h3 {
    color: #FFD600;
    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: #FFD600;
    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 {
    font-size: 3.5rem;
    color: #FFD600;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px #FFD60088);
    animation: flash 1.2s infinite alternate;
}

footer {
    text-align: center;
    margin-top: 64px;
    padding: 32px 0 16px 0;
    background: none;
}

.logo-footer {
    width: 120px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 0 12px #FFD60044;
}

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 #FFD60088);}
    to { filter: drop-shadow(0 0 32px #FFD600);}
}

/* Responsivo */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 24px;
    }
    .hero-img {
        margin-top: 16px;
    }
    main {
        padding: 0 6px;
    }
    .cards, .steps {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .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;
    }
}

