/* ==========================================================================
   AVANTI REBOQUES — Design tokens
   Paleta: asfalto + amarelo de sinalização viária + vermelho de emergência
   Tipografia: Oswald (display condensada, placa de rodovia) / Roboto (corpo) / Space Mono (dados)
   Layout: nav padrão + faixa de alerta + acordeão de serviços + ficha "ordem de serviço"
   ========================================================================== */

:root {
  --asphalt-950: #0B0D0F;
  --asphalt-900: #14171A;
  --asphalt-800: #1E2226;
  --asphalt-700: #2A3034;
  --line: #384046;
  --steel-300: #B7C0C4;
  --steel-400: #838D92;
  --text-100: #F1F4F5;
  --yellow-500: #F5C518;
  --yellow-300: #FADE6E;
  --yellow-glow: rgba(245, 197, 24, 0.3);
  --red-500: #E13B30;
  --red-400: #EF6055;
  --red-glow: rgba(225, 59, 48, 0.35);
  --paper: #EDEAE0;
  --success: #6FA37E;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --nav-h: 78px;
  --container: 1160px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--asphalt-900);
  color: var(--text-100);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-100);
  line-height: 1.05;
  font-weight: 600;
}
h2 { font-size: clamp(28px, 4vw, 42px); max-width: 20ch; }
h3 { font-family: var(--font-body); font-weight: 600; text-transform: none; font-size: 18px; }
p { color: var(--steel-300); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-500);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--yellow-500); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; white-space: nowrap;
}
.btn-sos {
  background: var(--red-500); color: #fff; font-weight: 600;
}
.btn-sos:hover { background: var(--red-400); box-shadow: 0 0 0 4px var(--red-glow); }
.btn-primary { background: var(--yellow-500); color: var(--asphalt-950); font-weight: 700; }
.btn-primary:hover { background: var(--yellow-300); box-shadow: 0 0 0 4px var(--yellow-glow); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--steel-300); }
.btn-ghost:hover { border-color: var(--yellow-500); color: var(--yellow-300); }
.btn:active { transform: scale(0.97); }

/* ==========================================================================
   ALERT BAR
   ========================================================================== */
.alert-bar {
  background: var(--red-500);
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  position: relative;
  z-index: 110;
}
.alert-bar strong { font-weight: 700; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(11, 13, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow-500);
  display: flex; align-items: center; justify-content: center;
  color: var(--asphalt-950); font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }
.brand-text small {
  display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  color: var(--steel-400); text-transform: uppercase; font-weight: 400; margin-top: 2px;
}
.nav-links { display: flex; gap: 30px; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--steel-300); }
.nav-links a:hover { color: var(--yellow-300); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-family: var(--font-mono); font-size: 13px; color: var(--steel-300); display: flex; align-items: center; gap: 8px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-phone span { display: none; }
}

/* ==========================================================================
   HERO — com rastreador animado
   ========================================================================== */
.hero {
  padding: 76px 0 90px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 85% 10%, rgba(245,197,24,0.08), transparent 55%), var(--asphalt-900);
  position: relative;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.9fr; gap: 44px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 60px); margin-bottom: 20px; }
.hero-copy h1 span { color: var(--yellow-500); }
.hero-copy > p { font-family: var(--font-body); font-size: 17px; text-transform: none; color: var(--steel-300); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-phone-big {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-100);
  letter-spacing: 0.02em;
}
.hero-phone-big span { color: var(--yellow-500); }
.hero-meta { display: flex; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta-item strong { display: block; font-family: var(--font-display); font-size: 22px; }
.hero-meta-item span { font-family: var(--font-mono); font-size: 10.5px; color: var(--steel-400); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Tracker signature visual --- */
.tracker {
  background: var(--asphalt-950);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}
.tracker-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--steel-400); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.tracker-head .eta { color: var(--yellow-500); font-size: 15px; }
.tracker-road {
  position: relative;
  height: 130px;
  border-radius: 6px;
  background: var(--asphalt-800);
  overflow: hidden;
  margin-bottom: 14px;
}
.tracker-line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--yellow-500) 0 16px, transparent 16px 30px);
  animation: dash-move 1.4s linear infinite;
}
@keyframes dash-move { from { background-position: 0 0; } to { background-position: -46px 0; } }
.tracker-pin {
  position: absolute;
  right: 20px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 5px rgba(225,59,48,0.22);
}
.tracker-truck {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow-500);
  animation: truck-move 3.6s ease-in-out infinite;
}
@keyframes truck-move {
  0% { left: 8%; }
  50% { left: 68%; }
  100% { left: 8%; }
}
.tracker-status {
  display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--steel-300);
}
.tracker-status b { color: var(--text-100); }

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .tracker { order: -1; }
}

/* ==========================================================================
   SEÇÕES
   ========================================================================== */
.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 50px; flex-wrap: wrap; }
.section-head p { max-width: 42ch; padding-bottom: 4px; }

/* ==========================================================================
   FRENTE PRINCIPAL — destaque do reboque
   ========================================================================== */
.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.core-card { background: var(--asphalt-900); padding: 32px 28px; }
.core-icon { width: 38px; height: 38px; color: var(--yellow-500); margin-bottom: 16px; }
.core-card h3 { margin-bottom: 8px; }
.core-card p { font-size: 14px; }

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

/* ==========================================================================
   ACORDEÃO — portfólio de atividades registradas
   ========================================================================== */
.accordion { max-width: 900px; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--asphalt-800);
  overflow: hidden;
}
.acc-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-100);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-400);
  text-transform: none;
  letter-spacing: 0;
  margin-right: auto;
  margin-left: 14px;
}
.acc-item summary .plus {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow-500);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.acc-item[open] summary .plus { transform: rotate(45deg); }
.acc-body { padding: 0 24px 22px; }
.acc-body p { font-size: 13.5px; margin-bottom: 14px; }
.acc-cnae {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.acc-cnae:first-of-type { border-top: 1px solid var(--line); }
.acc-cnae .code { color: var(--yellow-500); white-space: nowrap; }
.acc-cnae .desc { color: var(--steel-300); text-align: right; }
.acc-item.principal { border-color: var(--yellow-500); }
.acc-item.principal summary { color: var(--yellow-300); }

/* ==========================================================================
   SOBRE — ficha estilo ordem de serviço (ticket)
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-copy p { margin-bottom: 16px; font-size: 15.5px; }
.about-copy p:last-child { margin-bottom: 0; }

.ticket {
  background: var(--paper);
  color: var(--asphalt-950);
  border-radius: 4px;
  padding: 28px 26px 20px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  mask-image:
    radial-gradient(circle 5px at 0 0, transparent 5px, black 5.5px),
    radial-gradient(circle 5px at 100% 0, transparent 5px, black 5.5px),
    radial-gradient(circle 5px at 0 100%, transparent 5px, black 5.5px),
    radial-gradient(circle 5px at 100% 100%, transparent 5px, black 5.5px);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.ticket::before {
  content: 'ORDEM DE SERVIÇO Nº 63.533.401';
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px dashed rgba(11,13,15,0.4);
}
.spec-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 0;
  border-bottom: 1px dotted rgba(11,13,15,0.3);
  font-family: var(--font-mono); font-size: 12.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .label { color: rgba(11,13,15,0.6); }
.spec-row .value { font-weight: 700; text-align: right; }
.spec-row .value.on { color: #2E5C3A; }

/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */
.area-section .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.area-chip {
  font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line);
  border-radius: 20px; padding: 7px 14px; color: var(--steel-300);
}
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  background: var(--asphalt-800); height: 320px;
  filter: grayscale(0.4) contrast(1.05);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-caption {
  margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--steel-400);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.map-caption a { color: var(--yellow-500); }
.map-caption a:hover { color: var(--yellow-300); }

@media (max-width: 880px) {
  .about-grid, .area-section .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact-section { background: var(--asphalt-800); border-bottom: none; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-icon { width: 20px; height: 20px; color: var(--yellow-500); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 14.5px; color: var(--text-100); margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { font-size: 14px; color: var(--steel-300); }
.contact-info-item a:hover { color: var(--yellow-300); }

.form-panel { background: var(--asphalt-900); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--steel-400); margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: var(--asphalt-800); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 14px; color: var(--text-100); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--yellow-500); box-shadow: 0 0 0 3px var(--yellow-glow);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-panel .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--steel-400); margin-top: 12px; text-align: center; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 44px 0 30px; background: var(--asphalt-950); }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-meta { font-family: var(--font-mono); font-size: 11px; color: var(--steel-400); text-align: right; line-height: 1.7; }
.footer-links { display: flex; gap: 22px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--steel-400); }
.footer-links a:hover { color: var(--yellow-300); }

@media (max-width: 700px) {
  .footer .container { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  transition: transform 0.2s ease;
  color: #fff;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }
