/* ===== Variáveis ===== */
:root {
  /* Cores do logo Rodonetos */
  --navy: #0f2b4c;        /* azul-marinho do texto do logo */
  --navy-2: #163a63;
  --blue: #0b4a8b;        /* azul escuro do degradê */
  --teal: #3ec3c9;        /* turquesa do degradê */
  --accent: #0f7aa0;      /* azul-petróleo legível sobre fundo claro */
  --accent-dark: #0b4a8b;
  --gradient: linear-gradient(135deg, #2fb5c0 0%, #1680ad 50%, #0b4a8b 100%);
  --text: #1d2433;
  --muted: #5b6577;
  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --border: #e2e6ee;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 31, 61, .08);
  --header-h: 72px;
  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6em;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9em 1.6em;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gradient); background-size: 160% 100%; color: #fff; transition: background-position .3s, transform .2s; }
.btn--primary:hover { background-position: 100% 0; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: .6em 1.2em; font-size: .85rem; }
.btn--block { width: 100%; }

/* ===== Cabeçalho ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(15,31,61,.08); border-color: var(--border); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
/* logo completo (pino), cortando só as margens brancas da imagem */
.logo__mark { width: 62px; height: 60px; overflow: hidden; flex: none; }
.logo__mark img { width: 88px; max-width: none; height: auto; margin: -1px 0 0 -13px; }
.logo__text {
  font-family: var(--font-title); font-weight: 600; font-size: 1.3rem; color: var(--navy);
  display: flex; flex-direction: column; line-height: 1;
}
.logo__text > span { font-weight: 800; letter-spacing: .02em; }
.logo__text small { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo__text--light { color: #fff; }
.logo__text--light small { color: #9fb0cf; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--text); position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: width .2s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 320px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(62,195,201,.35) 0%, transparent 45%),
    linear-gradient(180deg, #0b2442 0%, var(--navy) 45%, #0f4a7d 100%);
  position: relative; overflow: hidden;
}
.hero__content { position: relative; z-index: 2; max-width: 720px; margin-left: max(16px, calc((100% - 1140px) / 2)); }
.hero .eyebrow { color: var(--teal); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 span { color: var(--teal); }

/* Vídeo de fundo (ver comentário no index.html); a cena animada fica oculta quando há vídeo */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__video ~ .scene { display: none; }
.hero:has(.hero__video) { padding-bottom: 140px; }
.hero:has(.hero__video)::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,36,66,.94) 0%, rgba(11,36,66,.75) 45%, rgba(11,36,66,.25) 100%),
    linear-gradient(0deg, rgba(11,36,66,.6) 0%, transparent 35%);
}

/* Cena animada: caminhão andando */
.scene { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; z-index: 1; pointer-events: none; }
.scene__hills, .scene__posts, .scene__road { position: absolute; left: 0; right: 0; }
.scene__hills {
  bottom: 100px; height: 160px;
  background: url(../assets/scene-hills.svg) repeat-x 0 100% / 1200px 160px;
  animation: scroll-hills 40s linear infinite;
}
.scene__posts {
  bottom: 100px; height: 140px; opacity: .9;
  background: url(../assets/scene-posts.svg) repeat-x 0 100% / 420px 140px;
  animation: scroll-posts 5s linear infinite;
}
.scene__road {
  bottom: 0; height: 110px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.75) 0 60px, transparent 60px) 0 70px / 120px 5px repeat-x,
    linear-gradient(180deg, var(--teal) 0 4px, #0a1d33 4px 100%);
  animation: scroll-road .5s linear infinite;
}
.scene__truck {
  position: absolute; bottom: 52px; right: max(4%, calc((100% - 1140px) / 2));
  width: 420px; height: auto;
  filter: drop-shadow(0 12px 10px rgba(0,0,0,.35));
  animation: truck-bob .45s ease-in-out infinite alternate;
}
.scene__truck .wheel { transform-box: fill-box; transform-origin: center; animation: wheel-spin .5s linear infinite; }

@keyframes scroll-hills { to { background-position-x: -1200px; } }
@keyframes scroll-posts { to { background-position-x: -420px; } }
@keyframes scroll-road  { to { background-position-x: -120px, 0; } }
@keyframes wheel-spin   { to { transform: rotate(360deg); } }
@keyframes truck-bob    { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.hero__lead { font-size: 1.15rem; color: #d3dbea; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ===== Destaques ===== */
.highlights { margin-top: -30px; position: relative; z-index: 2; }
.highlights__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.highlight { display: flex; gap: 14px; align-items: center; padding: 26px 28px; }
.highlight + .highlight { border-left: 1px solid var(--border); }
.highlight__icon { font-size: 1.8rem; }
.highlight strong { font-family: var(--font-title); color: var(--navy); }
.highlight p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ===== Seções ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #c9d3e6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--teal); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p:last-child { color: var(--muted); }

/* Sobre */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about__text > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}
.about__card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
}
.about__card img { width: 100%; height: auto; }

/* Serviços */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: rgba(62,195,201,.12); margin-bottom: 18px;
}
.card p { color: var(--muted); margin: 0; }

/* Diferenciais */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--navy-2); border-top: 3px solid var(--teal); }
.feature__num { font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: var(--teal); display: block; margin-bottom: 8px; }
.feature p { margin: 0; }

/* Atuação */
.atuacao { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.atuacao > div > p { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: .45em 1.1em; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; color: var(--navy); }
.atuacao__cta { background: var(--navy); color: #c9d3e6; padding: 40px; border-radius: 20px; }
.atuacao__cta h3 { color: #fff; font-size: 1.4rem; }

/* Cotação */
.quote { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.quote__intro p:last-child { color: var(--muted); }
.form { background: #fff; padding: 36px; border-radius: 20px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text);
  padding: .8em 1em; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62,195,201,.18);
}
.form .is-invalid { border-color: #d64545; }
.form textarea { resize: vertical; }
.form__error { color: #d64545; margin: 0; font-weight: 600; font-size: .9rem; }

/* Contato */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact__item { text-align: center; padding: 32px 20px; border-radius: var(--radius); background: var(--bg-alt); }
.contact__item span { font-size: 1.8rem; }
.contact__item h3 { margin: 10px 0 6px; }
.contact__item p { margin: 0; color: var(--muted); }
.contact__item a { text-decoration: none; color: var(--navy); font-weight: 600; word-break: break-word; }
.contact__item a:hover { color: var(--accent); }

/* Rodapé */
.footer { background: #0a1630; color: #9fb0cf; padding: 56px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer__inner p { margin: 12px 0 0; font-size: .92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; justify-self: end; align-self: start; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--teal); }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: .82rem !important; }

/* WhatsApp flutuante */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 32px; height: 32px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scene__hills, .scene__posts, .scene__road, .scene__truck, .scene__truck .wheel { animation: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .about, .atuacao, .quote { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 20px;
    box-shadow: 0 12px 24px rgba(15,31,61,.1);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--border); }
  .cards, .features, .contact, .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer nav { justify-self: start; }
  .hero { min-height: auto; padding-bottom: 250px; }
  .scene { height: 230px; }
  .scene__truck { width: 270px; right: 50%; transform: translateX(50%); animation: none; }
}
