/* =============================================
   AUTO ESCOLA DINÂMICA — Site Principal
   Paleta: Branco / Preto / Laranja
   ============================================= */

:root {
  --orange: #f97316;
  --orange-dark: #ea6000;
  --orange-light: #fff7ed;
  --black: #0f0f0f;
  --gray-900: #1a1a1a;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ─────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
}

.brand img { height: 48px; width: auto; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  color: var(--black);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--orange); }

/* ── BOTÕES ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,115,22,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

.btn-nav {
  background: var(--orange);
  color: var(--white);
  padding: 9px 18px;
  font-size: 0.85rem;
}
.btn-nav:hover { background: var(--orange-dark); color: var(--white); }

.btn-wa {
  background: #22c55e;
  color: var(--white);
  padding: 13px 22px;
  width: 100%;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.btn-wa:hover { background: #16a34a; }

.btn-full { width: 100%; padding: 16px; font-size: 1rem; }

/* ── REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0a0a 0%, #141420 40%, #1a1028 70%, #0f0f0f 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 80px);
  color: var(--white);
}

.badge {
  display: inline-block;
  background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.5);
  color: #fdba74;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-content h1 .accent { color: var(--orange); }

.hero-content > p {
  color: rgba(255,255,255,0.75);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat { text-align: left; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--orange); }
.stat span { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }

/* ── DIFERENCIAIS ────────────────────────── */
.diferenciais {
  background: var(--black);
  padding: 60px 0;
}

.dif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.dif-item {
  background: var(--gray-900);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.2s;
}
.dif-item:hover { background: #222; }

.dif-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }

.dif-item h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dif-item p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.6; }

/* ── SECTION HEAD ────────────────────────── */
.section-head { margin-bottom: 40px; }

.label {
  display: inline-block;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--black);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* ── CATEGORIAS ──────────────────────────── */
.categorias {
  padding: 80px 0;
  background: var(--gray-100);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cat-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(249,115,22,0.15);
}

.cat-card.featured {
  border-color: var(--orange);
  background: linear-gradient(160deg, #fff7ed 0%, #fff 100%);
}

.cat-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}

.cat-icon { font-size: 2.8rem; margin-bottom: 8px; display: block; }

.cat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cat-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; color: var(--black); }

.cat-card > p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

.cat-card ul { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 7px; }
.cat-card ul li { font-size: 0.88rem; color: var(--gray-700); padding-left: 18px; position: relative; }
.cat-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 800; }

.cat-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--orange);
  text-decoration: none;
  gap: 4px;
  transition: gap 0.2s;
}
.cat-btn:hover { gap: 10px; }

/* ── ESTRUTURA / GALERIA ─────────────────── */
.estrutura {
  padding: 80px 0;
  background: var(--white);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 12px;
}

.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(0.95);
}

.galeria-grid img:first-child {
  grid-row: span 2;
  height: 100%;
}

.galeria-grid img:hover { transform: scale(1.02); filter: brightness(1.05); }

/* ── MATERIAL DE ESTUDO ─────────────────── */
.material {
  padding: 80px 0;
  background: var(--gray-100);
}

.material .section-head h2 { color: var(--black); }

.material-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.material-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.material-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.material-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--black);
  line-height: 1.05;
  margin-bottom: 14px;
}

.material-highlight {
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.material-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.material-list li {
  font-size: 0.92rem;
  color: var(--gray-700);
  padding-left: 22px;
  position: relative;
}

.material-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.material-desc {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.material-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  padding: 13px 24px;
  border: 2px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.22s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-dark:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── PORTAL ──────────────────────────────── */
.portal {
  padding: 80px 0;
  background: var(--black);
}

.portal .section-head h2,
.portal .label { color: var(--white); }
.portal .section-head h2 { color: var(--white); }

.portal-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.portal-left .label { color: #fdba74; }

.portal-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}

.portal-left > p {
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.98rem;
}

.portal-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.portal-lista li { color: rgba(255,255,255,0.8); font-size: 0.92rem; }

.portal-card {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}

.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.portal-logo { height: 36px; width: auto; }

.portal-status {
  font-size: 0.78rem;
  color: #4ade80;
  font-weight: 600;
}

.portal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
}

.portal-info-row span:first-child { color: rgba(255,255,255,0.5); }
.portal-info-row span:last-child { color: var(--white); font-weight: 500; }

/* ── CONTATO ─────────────────────────────── */
.contato {
  padding: 80px 0;
  background: var(--orange-light);
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contato-left .label { color: var(--orange-dark); }

.contato-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--black);
  line-height: 1;
  margin-bottom: 16px;
}

.contato-left > p { color: var(--gray-700); line-height: 1.7; margin-bottom: 24px; }

.contato-extra { display: flex; flex-direction: column; gap: 10px; }
.c-item { font-size: 0.92rem; color: var(--gray-700); }
.c-item a { color: var(--orange-dark); text-decoration: none; font-weight: 600; }
.c-item a:hover { text-decoration: underline; }

/* Form */
.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }

.form-group input,
.form-group select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-status.ok { background: #dcfce7; color: #166534; }
.form-status.err { background: #fee2e2; color: #991b1b; }

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--black);
  padding: 48px 0 32px;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(0.6); }

.footer-inner p { font-size: 0.82rem; line-height: 1.7; }

.footer-links { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
}

/* ── BOTÃO FLUTUANTE WHATSAPP ────────────── */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #22c55e;
  color: var(--white);
  border-radius: 999px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(34,197,94,0.45);
  transition: all 0.25s;
}
.floating-wa:hover { background: #16a34a; transform: translateY(-2px); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .material-inner { grid-template-columns: 1fr; gap: 32px; }
  .portal-inner { grid-template-columns: 1fr; gap: 32px; }
  .contato-inner { grid-template-columns: 1fr; gap: 40px; }
  .galeria-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 180px); }
}

@media (max-width: 768px) {
  .menu-btn { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav.open { display: flex; }

  .hero { min-height: 100svh; }
  .hero-content { padding: 60px 24px 40px; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 16px; }

  .dif-grid { grid-template-columns: 1fr; gap: 2px; }
  .cat-grid { grid-template-columns: 1fr; }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 160px);
  }
  .galeria-grid img:first-child { grid-row: span 1; height: 160px; }

  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }
  .floating-wa span { display: none; }
  .floating-wa { padding: 14px 16px; border-radius: 50%; }
}
