/* ============================================================
   STOP CARS AUTOESCOLA — design tokens
   Paleta tirada do próprio logo (vermelho / marrom-vinho / dourado),
   tipografia condensada de placa de trânsito para título + Work Sans
   no corpo. Fundo claro para deixar as cores da marca em destaque
   como acento, não como fundo pesado.
============================================================ */
:root{
  --ink: #17120F;
  --paper: #FBF6EF;
  --white: #FFFFFF;
  --red: #E6362B;
  --red-dark: #C22A20;
  --maroon: #7A2E22;
  --gold: #F2B807;
  --muted: #6E625A;
  --line: #E8DDCE;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --radius: 14px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px -12px rgba(23,18,15,.25);
  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0 0 .4em; letter-spacing: .01em; }
p{ margin: 0 0 1em; color: var(--muted); }
.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--ink); color:#fff;
  padding:12px 18px; z-index:200; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- botões ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body); font-weight:700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--red); color:#fff; box-shadow: 0 6px 18px -6px rgba(230,54,43,.55); }
.btn-primary:hover{ background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color:#fff; }
.btn-light{ background:#fff; color: var(--red-dark); }
.btn-light:hover{ background: var(--gold); color: var(--ink); }
.btn-lg{ padding: 16px 32px; font-size: 16.5px; }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: rgba(251,246,239,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:28px; padding-top:12px; padding-bottom:12px; }
.brand-mark{ height: 40px; width:auto; }
.main-nav{ display:flex; gap: 26px; margin-left: 8px; flex:1; }
.main-nav a{ font-weight:600; font-size:14.5px; color: var(--ink); opacity:.8; }
.main-nav a:hover{ opacity:1; color: var(--red); }
.header-cta{ font-size:14px; padding:10px 20px; }
.nav-toggle{ display:none; }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 68px 0 auto 0; background: var(--paper); flex-direction:column;
    padding: 18px 24px 26px; gap:16px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity:0; pointer-events:none; transition: all .2s ease;
  }
  .main-nav.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .header-cta{ display:none; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; width:34px; height:28px; justify-content:center;
    background:none; border:none; cursor:pointer; margin-left:auto;
  }
  .nav-toggle span{ height:2.5px; background: var(--ink); border-radius:2px; }
}

/* ---------- eyebrow / títulos de seção ---------- */
.eyebrow{
  font-family: var(--font-body); font-weight:700; font-size:12.5px; letter-spacing:.14em;
  text-transform: uppercase; color: var(--red-dark); margin:0 0 10px;
}
.eyebrow.center{ text-align:center; }
.section-title{ font-size: clamp(28px, 4vw, 42px); }
.section-title.center{ text-align:center; }
.section-lead{ max-width: 560px; font-size:16.5px; }
.section-lead.center{ margin:0 auto 8px; text-align:center; }
.section{ padding: 88px 0; }
.section-alt{ background: var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ---------- hero ---------- */
.hero{ position:relative; padding: 64px 0 40px; overflow:hidden; }
.hero-inner{ display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center; }
.hero h1{
  font-size: clamp(40px, 6.4vw, 76px); letter-spacing:.005em;
}
.hero h1 .hl{ color: var(--red); }
.hero-sub{ font-size:17.5px; max-width: 480px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin: 26px 0 30px; }
.hero-cats{ display:flex; align-items:center; gap:10px; }
.cat-pill{
  width:38px; height:38px; border-radius:50%; background: var(--ink); color:#fff;
  font-family: var(--font-display); font-weight:800; font-size:16px;
  display:flex; align-items:center; justify-content:center;
}
.cat-pill:nth-child(2){ background: var(--red); }
.cat-pill:nth-child(3){ background: var(--maroon); }
.hero-cats-label{ font-size:13px; color: var(--muted); margin-left:4px; }

.hero-media{ position:relative; }
.hero-photo-frame{
  border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow);
  border: 6px solid var(--white); transform: rotate(1.4deg);
}
.hero-photo-frame img{ aspect-ratio: 16/11; object-fit:cover; }
.hero-badge{
  position:absolute; bottom:-22px; left:-22px; background:#fff; border-radius:18px;
  padding:10px 14px; box-shadow: var(--shadow); width: 108px; transform: rotate(-4deg);
}
.hero-road{
  height: 46px; margin-top: 56px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 34px, transparent 34px 64px);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  opacity:.85;
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; gap:40px; }
  .hero-media{ order:-1; }
  .hero-badge{ width:84px; padding:8px 10px; }
}

/* ---------- categorias ---------- */
.cats-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; margin-top:44px; }
.cat-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; position:relative; overflow:hidden;
}
.cat-card-icon{ width:52px; height:52px; color: var(--red); margin-bottom:14px; }
.cat-card-icon svg{ width:100%; height:100%; }
.cat-card-tag{
  position:absolute; top:22px; right:24px; font-family: var(--font-display); font-weight:800;
  font-size: 30px; color: var(--line);
}
.cat-card h3{ font-size:21px; margin-bottom:6px; }
.cat-card p{ margin:0; font-size:14.5px; }

@media (max-width: 760px){ .cats-grid{ grid-template-columns: 1fr; } }

/* ---------- jornada (elemento de assinatura) ---------- */
.road-wrap{ position:relative; padding: 30px 0 56px; }
.road-line{
  position:absolute; left:0; right:0; top: 50%; height: 6px; transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 30px, transparent 30px 56px);
  z-index:0;
}
.road-steps{
  position:relative; z-index:1; display:grid; grid-template-columns: repeat(6, 1fr);
  gap: 18px; align-items:start;
}
.road-step{ display:flex; flex-direction:column; align-items:center; gap:14px; }
.road-step:nth-child(even){ flex-direction:column-reverse; }
.road-num{
  width:44px; height:44px; border-radius:50%; background: var(--accent, var(--red)); color:#fff;
  font-family: var(--font-display); font-weight:800; font-size:19px;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 6px 14px -4px rgba(0,0,0,.35);
  flex-shrink:0;
}
.road-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 20px; box-shadow: var(--shadow); min-height: 186px;
}
.road-card h3{ font-size:16.5px; margin-bottom:8px; }
.road-card ul li{ font-size:12.8px; color: var(--muted); position:relative; padding-left:14px; margin-bottom:4px; }
.road-card ul li::before{ content:"–"; position:absolute; left:0; color: var(--accent, var(--red)); font-weight:700; }

.road-finish{
  margin-top: 20px; background: var(--ink); color:#fff; border-radius: var(--radius-lg);
  padding: 34px 36px; display:flex; align-items:center; gap:24px; flex-wrap:wrap;
}
.road-finish-icon{ font-size:40px; }
.road-finish h3{ color:#fff; font-size:22px; margin-bottom:6px; }
.road-finish p{ color: rgba(255,255,255,.75); margin:0; max-width:420px; }
.road-finish .btn{ margin-left:auto; }

@media (max-width: 1000px){
  .road-line{ display:none; }
  .road-steps{ grid-template-columns: 1fr; gap: 16px; }
  .road-step, .road-step:nth-child(even){ flex-direction: row; align-items:flex-start; }
  .road-card{ min-height:0; flex:1; }
  .road-finish .btn{ margin-left:0; width:100%; }
}

/* ---------- diferenciais ---------- */
.diff-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; margin-top:44px; }
.diff-card{ text-align:center; padding: 10px 12px; }
.diff-icon{ font-size:34px; margin-bottom:12px; }
.diff-card h3{ font-size:17px; margin-bottom:8px; }
.diff-card p{ font-size:14px; margin:0; }
@media (max-width: 900px){ .diff-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .diff-grid{ grid-template-columns: 1fr; } }

/* ---------- equipe ---------- */
.team-grid{ display:flex; gap:26px; justify-content:center; margin-top:44px; flex-wrap:wrap; }
.team-card{ width: 220px; text-align:center; }
.team-card img{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius: var(--radius-lg);
  border: 5px solid #fff; box-shadow: var(--shadow); margin-bottom:14px;
}
.team-card h3{ font-size:19px; margin-bottom:2px; }
.team-card p{ font-size:13px; margin:0; color: var(--red-dark); font-weight:600; }

/* ---------- local ---------- */
.local-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.local-info{ margin-top:22px; display:flex; flex-direction:column; gap:12px; }
.btn-map{ margin-top:24px; }
.btn-map svg{ width:18px; height:18px; }
.local-info li{ font-size:15px; }
.local-info a{ color: var(--red-dark); font-weight:600; }
.local-photo img{ border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit:cover; }
.fill-me{ background: rgba(242,184,7,.28); padding:1px 6px; border-radius:4px; font-style:italic; }
@media (max-width: 860px){ .local-grid{ grid-template-columns:1fr; gap:32px; } }

/* ---------- cta final ---------- */
.cta-final{ background: var(--red); color:#fff; }
.cta-final-inner{ padding: 70px 24px; text-align:center; }
.cta-final h2{ color:#fff; font-size: clamp(28px,4vw,42px); }
.cta-final p{ color: rgba(255,255,255,.85); font-size:16.5px; margin-bottom:26px; }

/* ---------- footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.8); padding-top: 52px; }
.footer-inner{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img{ height:38px; margin-bottom:12px; border-radius:6px; }
.footer-brand p{ max-width:220px; font-size:13.5px; color: rgba(255,255,255,.6); }
.footer-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-cols h4{ font-family: var(--font-body); font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:#fff; margin-bottom:10px; }
.footer-cols p{ font-size:14px; margin:0 0 6px; color: rgba(255,255,255,.7); }
.footer-cols a:hover{ color: var(--gold); }
.footer-bottom{ padding: 18px 24px 26px; font-size:12.5px; color: rgba(255,255,255,.45); }

/* ---------- whatsapp flutuante ---------- */
.whats-float{
  position: fixed; right: 20px; bottom: 20px; width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.4); z-index: 150; transition: transform .15s ease;
}
.whats-float:hover{ transform: scale(1.06); }
.whats-float svg{ width:30px; height:30px; }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
}
