:root {
  --brand-yellow: #ffcc00;
  --brand-red: #e30613;
  --brand-green: #009541;
  --dark-bg: #121212;
  --white: #ffffff;
  --light-gray: #f4f7f6;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* BASE */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.alt-bg {
  background: var(--light-gray);
}

.center {
  text-align: center;
}

/* HEADER */
.header {
  background: var(--brand-yellow);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

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

.logo img{
  height: 70px;
  width: auto;
}

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

/* MENU */
.menu{
  display: flex;
  gap: clamp(10px,2vw,25px);
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--dark-bg);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu a:hover {
  color: var(--brand-red);
}

/* Itens só do menu do celular (".menu a" definia display: flex e vencia esta regra) */
.menu a.menu-mobile-only {
  display: none;
}

/* BOTÃO HAMBÚRGUER (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--dark-bg);
  cursor: pointer;
  padding: 4px 6px;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--brand-red);
}

/* NAV ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px,1.5vw,15px);
}

.accessibility-tools {
  display: flex;
  background: rgba(0,0,0,0.05);
  padding: 4px;
  border-radius: 8px;
}

.nav-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-weight: bold;
  color: var(--dark-bg);
  transition: var(--transition);
}

.nav-icon:hover {
  transform: translateY(-2px);
  color: var(--brand-red);
}

/* BOTÕES */
.btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
  background: #c00511;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(250, 250, 250, 0.4);
}

.btn-whatsapp {
  background: var(--dark-bg);
  color: var(--brand-yellow);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: var(--brand-red);
  color: var(--white);
}

.btn-dark {
  background: var(--dark-bg);
  color: var(--white);
}

/* BOTÃO ENTRAR */
.entrar {
  text-decoration: none;
  background: var(--dark-bg);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.entrar:hover {
  background: var(--brand-red);
  color: var(--white);
}

/* HERO */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1599715591031-4ac756e7270c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(227, 6, 19, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-tag {
  background: var(--brand-yellow);
  color: var(--dark-bg);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 strong {
  color: var(--brand-yellow);
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* CARDS */
.section-title {
  margin-bottom: 50px;
}

.section-badge {
  color: var(--brand-green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-yellow);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.icon-box.red {
  background: rgba(227, 6, 19, 0.1);
  color: var(--brand-red);
}

.icon-box.green {
  background: rgba(0, 149, 65, 0.1);
  color: var(--brand-green);
}

.icon-box.yellow {
  background: rgba(255, 204, 0, 0.1);
  color: #b88600;
}

.icon-box.dark {
  background: rgba(0, 0, 0, 0.05);
  color: var(--dark-bg);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* BANNER DE TREINAMENTO */
.training-banner {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: linear-gradient(120deg, var(--dark-bg) 0%, #2a0507 100%);
  border: 2px solid var(--brand-yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.training-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 204, 0, 0.18), transparent 60%);
  pointer-events: none;
}

.training-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(227, 6, 19, 0.35);
  border-color: var(--brand-red);
}

.training-banner-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.15);
}

.training-banner-text {
  flex: 1;
  min-width: 220px;
  position: relative;
  z-index: 2;
}

.training-banner-tag {
  display: inline-block;
  color: var(--brand-yellow);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.training-banner-text h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.training-banner-text p {
  color: #d8d8d8;
  font-size: 0.95rem;
  max-width: 520px;
}

.training-banner-btn {
  flex-shrink: 0;
  background: var(--brand-red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.training-banner:hover .training-banner-btn {
  background: var(--brand-yellow);
  color: var(--dark-bg);
}

@media (max-width: 768px) {
  .training-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .training-banner-icon {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }

  .training-banner-text h3 {
    font-size: 1.3rem;
  }
}

/* DIFERENCIAIS */
.small-cards .simple-card {
  text-align: center;
  padding: 30px;
}

.small-cards i {
  font-size: 2.5rem;
  color: var(--brand-red);
  margin-bottom: 15px;
  display: block;
}

/* CTA */
.cta-final {
  background: var(--brand-yellow);
  padding: 60px 0;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.cta-text h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}

/* MAPA */
.map-section {
  padding: 100px 0;
}

/* FOOTER */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.logo-footer {
  color: var(--white) !important;
  margin-bottom: 20px;
}

.footer h3 {
  color: var(--brand-yellow);
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer p {
  color: #999;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

/* DARK MODE */
.dark-mode {
  background: #0a0a0a;
  color: #e0e0e0;
}

.dark-mode .alt-bg {
  background: #111;
}

.dark-mode .card {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}

.dark-mode .section-title h2 {
  color: #fff;
}

/* NAVBAR SEMPRE AMARELA */
.dark-mode .header {
  background: var(--brand-yellow) !important;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .d-none-mobile {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--brand-yellow);
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    z-index: 999;
  }

  .menu.is-open {
    max-height: 400px;
    opacity: 1;
  }

  .menu a {
    padding: 14px 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .menu a.menu-mobile-only {
    display: flex;
  }

  .hero {
    text-align: center;
    justify-content: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .cta-box {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 70vh;
  }

  .logo img {
    height: 50px;
  }

  .card {
    padding: 28px;
  }

  .cta-final {
    padding: 40px 0;
  }

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

  .footer {
    padding: 50px 0 20px;
  }

  .footer-grid {
    gap: 35px;
  }
}

@media (max-width: 400px) {
  .btn-whatsapp span {
    display: none;
  }

  .btn-whatsapp {
    padding: 10px 12px;
  }
}

/* GRID DOS MAPAS */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
}

.map-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.map-card h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.map-card iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
}

/* DARK MODE */
.dark-mode .map-card {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}

/* ENDEREÇO E "COMO CHEGAR" NOS MAPAS */
.map-endereco {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 12px 0 10px;
}

.map-rota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-bg);
  color: var(--brand-yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 10px;
  transition: var(--transition);
}

.map-rota:hover {
  background: var(--brand-red);
  color: var(--white);
}

.dark-mode .map-endereco {
  color: #bbb;
}

/* CONTATOS DO RODAPÉ (tocáveis no celular) */
.footer-link {
  color: #bbb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--brand-yellow);
}

/* BOTÃO ENTRAR E WHATSAPP FLUTUANTE: só no celular */
.entrar-mobile,
.whatsapp-flutuante {
  display: none;
}

/* ==========================================================
   CELULAR (até 576px): textos menores, cartões compactos,
   mapas mais baixos e WhatsApp sempre à mão
   ========================================================== */
@media (max-width: 576px) {
  .container {
    width: calc(100% - 32px);
  }

  .header {
    padding: 8px 0;
  }

  .nav {
    gap: 10px;
  }

  .logo img {
    height: 46px;
  }

  .nav-actions {
    gap: 8px;
  }

  .entrar-mobile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--dark-bg);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 9px 12px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .btn-whatsapp span {
    display: none;
  }

  .btn-whatsapp {
    padding: 9px 11px;
  }

  /* Topo */
  .hero {
    min-height: auto;
    padding: 36px 0 44px;
  }

  .hero-tag {
    font-size: 0.72rem;
    padding: 6px 14px;
    margin-bottom: 18px;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Seções */
  .section {
    padding: 44px 0;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .section-text {
    font-size: 0.95rem;
  }

  /* Serviços: ícone ao lado do título, cartão baixo */
  .cards {
    gap: 12px;
  }

  .card {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: start;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }

  .card:hover {
    transform: none;
  }

  .icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: 0;
    grid-row: span 2;
    border-radius: 10px;
  }

  .card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* Diferenciais: mesmo formato compacto, alinhado à esquerda */
  .small-cards .simple-card {
    text-align: left;
    padding: 16px 18px;
  }

  .small-cards i {
    font-size: 1.6rem;
    margin-bottom: 0;
    grid-row: span 2;
    align-self: center;
  }

  /* Banner de treinamento */
  .training-banner {
    margin-top: 24px;
    padding: 24px 18px;
    gap: 14px;
  }

  .training-banner-btn {
    width: 100%;
    justify-content: center;
  }

  /* Chamada final */
  .cta-final {
    padding: 36px 0;
  }

  .cta-text h2 {
    font-size: 1.5rem;
  }

  .cta-box .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }

  /* Mapas mais baixos */
  .map-section {
    padding: 44px 0;
  }

  .map-grid {
    gap: 14px;
  }

  .map-card {
    padding: 14px;
  }

  .map-card iframe {
    height: 170px;
  }

  .map-rota {
    width: 100%;
    justify-content: center;
  }

  /* Rodapé (espaço para o botão flutuante não cobrir o texto) */
  .footer {
    padding: 40px 0 90px;
  }

  .footer-grid {
    gap: 26px;
    margin-bottom: 28px;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  /* WhatsApp flutuante */
  .whatsapp-flutuante {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    z-index: 1001;
  }
}

/* Telas bem estreitas (até 360px) */
@media (max-width: 360px) {
  .entrar-mobile span {
    display: none;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}

/* TÍTULO PRINCIPAL (h1 na etiqueta amarela) E SLOGAN: mesmo visual de antes */
h1.hero-tag {
  font-size: 0.8rem;
  line-height: 1.4;
}

.hero-slogan {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-slogan strong {
  color: var(--brand-yellow);
}

/* PERGUNTAS FREQUENTES */
.faq-lista {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 4px 20px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: 1.05rem;
  margin: 0;
}

.faq-item summary i {
  color: var(--brand-red);
  transition: var(--transition);
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--text-muted);
  padding-bottom: 16px;
  font-size: 0.95rem;
}

.dark-mode .faq-item {
  background: #1a1a1a;
  border-color: #333;
}

.dark-mode .faq-item p {
  color: #bbb;
}

@media (max-width: 576px) {
  h1.hero-tag {
    font-size: 0.72rem;
  }

  .hero-slogan {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .faq-item {
    padding: 2px 14px;
  }

  .faq-item summary h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .hero-slogan {
    font-size: 1.75rem;
  }
}

/* SELO DO REGISTRO INMETRO (topo da landing) */
.hero-registro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.6);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-registro i {
  color: var(--brand-yellow);
  font-size: 1.4rem;
}

.hero-registro strong {
  color: var(--brand-yellow);
}

@media (max-width: 576px) {
  .hero-registro {
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 20px;
  }
}
