/* =========================================================
   Rodo Alves | landing page
   Asfalto, terra vermelha de Rondônia e amarelo de placa de rodovia
   ========================================================= */

:root {
  --asphalt: #1c1f24;
  --asphalt-2: #262a31;
  --asphalt-3: #343943;
  --paper: #f3f4f1;
  --white: #ffffff;
  --ink: #17191d;
  --muted: #5d636d;
  --line: #dcded8;
  --terra: #b4532a;        /* chão vermelho de Rondônia: destaque */
  --terra-600: #974220;
  --sign: #d9a521;         /* amarelo de placa: só detalhes */
  --sign-green: #1f6a45;   /* verde de placa de rodovia */

  --radius: 10px;
  --font: "Barlow", system-ui, sans-serif;
  --display: "Barlow Condensed", "Barlow", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
.wrap { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }

h1, h2 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: -.005em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.4rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }
.btn-accent { background: var(--terra); color: var(--white); }
.btn-accent:hover { background: var(--terra-600); }
.btn-line { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn-line:hover { border-color: var(--white); }

/* ---------- Navegação ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(28, 31, 36, .96); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-12deg); }

/* selo grande no topo */
.hero-logo { justify-self: end; display: grid; justify-items: center; gap: .9rem; }
.hero-logo object, .hero-logo img { width: min(100%, 340px); aspect-ratio: 1; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.hero-logo object { animation: stamp .9s var(--ease) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.15) rotate(-8deg); } }
.hero-logo figcaption { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; color: rgba(255, 255, 255, .7); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 6px auto; background: var(--white); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--asphalt); color: var(--white); padding-top: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: center; }
.hero-tag { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; color: rgba(255, 255, 255, .7); font-weight: 500; }
.km { display: grid; place-items: center; min-width: 40px; height: 26px; padding: 0 .4rem; border-radius: 4px; background: var(--white); color: var(--asphalt); font-family: var(--display); font-weight: 800; font-size: .95rem; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.8rem); max-width: 14ch; }
.hero-lead { margin-top: 1.4rem; max-width: 44ch; font-size: 1.15rem; color: rgba(255, 255, 255, .75); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* placa de rodovia */
.road-sign {
  justify-self: end;
  width: min(100%, 300px);
  padding: 1.4rem 1.5rem 1.2rem;
  border-radius: 12px;
  background: var(--sign-green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px var(--sign-green), 0 24px 40px -20px rgba(0, 0, 0, .6);
  transform: rotate(2deg);
}
.road-sign-top { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .04em; opacity: .85; }
.road-sign p { margin: .4rem 0 1rem; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.road-sign-km { display: inline-block; padding: .15rem .6rem; border-radius: 4px; background: var(--white); color: var(--sign-green); font-family: var(--display); font-weight: 800; }

/* ---------- Estrada e caminhão ---------- */
.road {
  --travel: 600px;
  position: relative;
  height: 128px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background:
    linear-gradient(var(--terra), var(--terra)) 0 92px / 100% 36px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, .55) 0 34px, transparent 34px 70px) 0 108px / 70px 3px repeat-x;
}
.road::before {   /* textura da terra */
  content: "";
  position: absolute;
  inset: 92px 0 0;
  background-image: radial-gradient(rgba(0, 0, 0, .18) 1px, transparent 1.5px);
  background-size: 9px 9px;
  opacity: .5;
}
.truck {
  position: absolute;
  left: 0;
  bottom: 26px;
  width: 260px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: drive 16s linear infinite;
}
.truck svg { width: 100%; height: auto; overflow: visible; }
@keyframes drive {
  0%    { transform: translateX(0) scaleX(1); }
  49.9% { transform: translateX(var(--travel)) scaleX(1); }
  50%   { transform: translateX(var(--travel)) scaleX(-1); }
  99.9% { transform: translateX(0) scaleX(-1); }
  100%  { transform: translateX(0) scaleX(1); }
}
.truck:hover, .truck:focus-visible { animation-play-state: paused; }

.trailer rect:first-child { fill: var(--terra); }
.trailer .tarp { fill: #8c3e1d; }
.trailer .ribs { stroke: rgba(0, 0, 0, .22); stroke-width: 2; fill: none; }
.chassis { fill: #0e1013; }
.cab path:first-child { fill: #eef0ee; }
.cab .glass { fill: #9fb7c9; }
.cab .grille { fill: #2a2e35; }
.cab .light { fill: var(--sign); }
.cab .stack { fill: #9aa0a8; }
.wheel circle { fill: #111; stroke: #555b63; stroke-width: 3; }
.wheel path { stroke: #777d86; stroke-width: 2; }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.truck:hover .wheel, .truck:focus-visible .wheel { animation-play-state: paused; }

.dust circle { fill: rgba(180, 83, 42, .55); animation: dust 1.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.dust circle:nth-child(2) { animation-delay: .4s; }
.dust circle:nth-child(3) { animation-delay: .8s; }
@keyframes dust { from { opacity: .9; transform: translateX(0) scale(.6); } to { opacity: 0; transform: translateX(-16px) scale(1.6); } }

/* buzina: o caminhão dá um tranco e aparece o balão */
.truck svg { transition: transform .1s; }
.truck.honk svg { animation: honk .45s var(--ease); }
@keyframes honk {
  20% { transform: translateY(-5px) rotate(-1deg); }
  45% { transform: translateY(0) rotate(.8deg); }
  70% { transform: translateY(-2px); }
}
.bubble {
  position: absolute;
  right: 0;
  top: -40px;
  padding: .3rem .7rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--asphalt);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(.9);
  transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none;
}
.bubble::after { content: ""; position: absolute; right: 22px; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--white); }
.truck.honk .bubble { opacity: 1; transform: none; }
.road-hint { position: absolute; left: 1.25rem; top: 8px; font-size: .85rem; color: rgba(255, 255, 255, .45); }

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-dark { background: var(--asphalt); color: var(--white); }
.section-tint { background: #e9ebe6; }
.section-head { margin-bottom: 2.6rem; max-width: 640px; }
.section-head p { margin-top: .7rem; color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .65); }

/* ---------- Cargas ---------- */
.cargo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cargo-card {
  position: relative;
  padding: 1.8rem 1.6rem 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease), opacity .6s var(--ease);
}
.cargo-card:hover, .cargo-card:focus-visible { transform: translateY(-5px); border-color: var(--terra); box-shadow: 0 22px 40px -28px rgba(28, 31, 36, .55); }
.cargo-card p { margin-top: .5rem; color: var(--muted); }
/* grãos que "caem" ao passar o mouse */
.grain { display: block; position: relative; width: 64px; height: 64px; margin-bottom: 1.2rem; border-radius: 50%; background: var(--paper); overflow: hidden; }
.grain::before, .grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  transition: transform .9s var(--ease);
}
.grain-soy::before  { background-image: radial-gradient(circle at 50% 50%, #d6b46a 4px, transparent 4.5px); background-size: 14px 14px; }
.grain-corn::before { background-image: radial-gradient(ellipse 3.5px 5px at 50% 50%, var(--sign) 98%, transparent 100%); background-size: 12px 13px; }
.grain-food::before { background-image: linear-gradient(var(--terra) 0 0); background-size: 12px 16px; background-position: 6px 6px; mask: radial-gradient(circle 5px, #000 98%, transparent) 0 0 / 14px 16px; -webkit-mask: radial-gradient(circle 5px, #000 98%, transparent) 0 0 / 14px 16px; }
.grain::before { transform: translateY(55%); }
.cargo-card:hover .grain::before, .cargo-card:focus-visible .grain::before { transform: translateY(0); }

/* ---------- Frota ---------- */
.fleet-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.fleet-tabs button {
  padding: .7rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: none;
  color: rgba(255, 255, 255, .8);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.fleet-tabs button:hover { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.fleet-tabs button[aria-selected="true"] { background: var(--white); color: var(--asphalt); border-color: var(--white); }

.fleet-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; padding: 2rem; border-radius: 14px; background: var(--asphalt-2); border: 1px solid rgba(255, 255, 255, .07); }
.fleet-art { display: flex; align-items: flex-end; min-height: 120px; padding-bottom: 8px; border-bottom: 3px dashed rgba(255, 255, 255, .25); overflow: hidden; }
.rig { display: flex; align-items: flex-end; gap: 5px; transition: transform .5s var(--ease); }
.rig-cab { width: 46px; height: 56px; border-radius: 10px 16px 4px 4px; background: #eef0ee; order: 9; }
.rig-trailer { height: 50px; border-radius: 4px; background: var(--terra); background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, .2) 18px 20px); transition: width .5s var(--ease), opacity .4s, margin .5s var(--ease); }
.rig[data-trailers="1"] .rig-trailer { width: 0; opacity: 0; margin-right: -5px; }
.rig[data-trailers="1"] .rig-trailer:nth-child(2) { width: 240px; opacity: 1; margin-right: 0; }
.rig[data-trailers="2"] .rig-trailer { width: 125px; opacity: 1; }
.rig[data-trailers="2"] .rig-trailer:nth-child(4) { width: 0; opacity: 0; margin-right: -5px; }
.rig[data-trailers="3"] .rig-trailer { width: 92px; opacity: 1; }
.rig.bump { animation: rigBump .5s var(--ease); }
@keyframes rigBump { 30% { transform: translateX(10px); } }

.fleet-info p { margin-top: .7rem; color: rgba(255, 255, 255, .75); }
.fleet-info .fleet-use { padding-top: .9rem; margin-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.fleet-use strong { display: block; color: var(--sign); font-weight: 600; font-size: .95rem; }
.fleet-info.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Rota ---------- */
.route { position: relative; padding-top: 3.4rem; }
.route-line { position: absolute; top: 1.6rem; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); }
.route-fill { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: var(--terra); }
.route-truck { position: absolute; top: .3rem; left: calc(var(--p, 0) * (100% - 48px)); width: 48px; color: var(--asphalt); transition: left .15s linear; }
.route-truck svg { fill: currentColor; }
.stops { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stop { position: relative; padding-top: 1.2rem; opacity: .45; transition: opacity .4s var(--ease); }
.stop::before { content: ""; position: absolute; top: -2.15rem; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); transition: border-color .3s, background .3s; }
.stop.on { opacity: 1; }
.stop.on::before { border-color: var(--terra); background: var(--terra); }
.stop p { margin-top: .5rem; color: var(--muted); }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.shot {
  display: grid;
  place-items: end start;
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #cfd2cc, #b9bdb6);
  color: var(--muted);
  font-size: .9rem;
  overflow: hidden;
  transition: transform .4s var(--ease), opacity .6s var(--ease);
}
.shot:hover { transform: scale(1.015); }
.shot-wide { grid-column: span 2; }
.link-ig { display: inline-block; margin-top: 1.4rem; font-weight: 600; color: var(--terra); text-underline-offset: 4px; }

/* ---------- Contato ---------- */
.contact { background: var(--asphalt); color: var(--white); padding: clamp(4rem, 9vw, 6rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.contact-lead { margin-top: .9rem; max-width: 46ch; color: rgba(255, 255, 255, .72); }
.contact-actions { margin-top: 2rem; }
.contact-info { display: grid; gap: 1rem; padding: 1.6rem; border-radius: 12px; background: var(--asphalt-2); border: 1px solid rgba(255, 255, 255, .08); }
.contact-info dt { font-size: .9rem; color: rgba(255, 255, 255, .55); }
.contact-info dd { font-weight: 600; font-size: 1.1rem; }

.footer { background: #131519; color: rgba(255, 255, 255, .55); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; }

/* ---------- Entrada ao rolar ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].visible { opacity: 1; transform: none; }
.cargo-card[data-reveal], .shot[data-reveal] { transition-property: transform, border-color, box-shadow, opacity; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-grid, .fleet-panel, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { justify-self: center; order: -1; }
  .hero-logo object, .hero-logo img { width: 200px; }
  .cargo { grid-template-columns: 1fr; }
  .stops { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .menu-mobile { display: grid; max-height: 0; overflow: hidden; background: var(--asphalt); transition: max-height .35s var(--ease); }
  .menu-mobile.open { max-height: 280px; }
  .menu-mobile a { padding: 1rem 1.25rem; text-decoration: none; font-weight: 600; border-top: 1px solid rgba(255, 255, 255, .07); }
  .truck { width: 190px; }
  .road-hint { display: none; }
  .route-line, .route-truck { display: none; }
  .route { padding-top: 0; }
  .stops { grid-template-columns: 1fr; border-left: 3px solid var(--line); padding-left: 1.4rem; gap: 1.8rem; }
  .stop { padding-top: 0; }
  .stop::before { top: .3rem; left: calc(-1.4rem - 9.5px); }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .shot-wide { grid-column: auto; }
  .footer-inner { flex-direction: column; }
  .rig { transform: scale(.75); transform-origin: left bottom; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
