/* ============================================================
   Transportes IM — Design System
   ============================================================ */
:root {
  /* Brand */
  --red:        #E11B22;
  --red-dark:   #B3141A;
  --charcoal:   #14171A;
  --charcoal-2: #1E2328;
  --ink:        #21262B;
  --steel:      #5A646E;
  --line:       #E4E7EB;
  --muted-bg:   #F4F6F8;
  --white:      #FFFFFF;
  --paper:      #FBFCFD;

  /* Type */
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(20,23,26,.08), 0 1px 2px rgba(20,23,26,.06);
  --shadow-md: 0 10px 30px rgba(20,23,26,.12);
  --shadow-lg: 0 24px 60px rgba(20,23,26,.22);
  --maxw: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225,27,34,.28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 26px rgba(225,27,34,.36); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand-logo { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .4px; color: var(--charcoal);
  padding: 6px 0; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .2s ease;
}
.nav-list a:hover::after { width: 100%; }
.btn-header { padding: 9px 20px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .2s; }

.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu a { font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-cta { color: var(--red); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.04); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,17,20,.92) 0%, rgba(15,17,20,.7) 42%, rgba(15,17,20,.15) 100%),
    linear-gradient(180deg, rgba(15,17,20,.5), rgba(15,17,20,.5));
}
.hero-content { position: relative; padding: 96px 24px; max-width: 760px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: .92rem; color: #fff;
  background: var(--red); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 700; line-height: 1.02;
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 20px; letter-spacing: -.5px;
}
.hero h1 .accent { color: #fff; border-bottom: 6px solid var(--red); }
.hero-lead { font-size: 1.2rem; color: #E7EAEE; max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 40px 0 0; padding: 0; }
.hero-badges li { font-size: .98rem; color: #D5DAE0; border-left: 2px solid var(--red); padding-left: 12px; }
.hero-badges strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; letter-spacing: .5px; }

/* ---------- Stats ---------- */
.stats { background: var(--charcoal); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.09); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: #fff; line-height: 1; }
.stat-label { display: block; margin-top: 8px; color: #A9B2BC; font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-muted { background: var(--muted-bg); }
.section-dark { background: var(--charcoal); color: #E7EAEE; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: .9rem; color: var(--red); margin-bottom: 12px;
}
.kicker-light { color: #FF6B6F; }
.section-head h2 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.3px; line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px;
}
.section-sub { font-size: 1.1rem; color: var(--steel); margin: 0; }
.section-dark .section-sub { color: #AEB6BF; }

/* ---------- Empresa ---------- */
.empresa-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
.empresa-text p { font-size: 1.08rem; margin: 0 0 18px; }
.empresa-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.empresa-figure img { width: 100%; height: 420px; object-fit: cover; }
.empresa-figure figcaption { font-size: .9rem; color: var(--steel); padding: 12px 16px; background: var(--paper); }

.history-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.history-gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper); }
.history-gallery img { width: 100%; height: 220px; object-fit: cover; }
.history-gallery figcaption { font-size: .85rem; color: var(--steel); padding: 10px 14px; }

.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.mvv-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv-icon { font-size: 1.8rem; color: var(--red); margin-bottom: 12px; }
.mvv-card h3 { font-family: var(--font-head); font-size: 1.6rem; margin: 0 0 10px; }
.mvv-card p { margin: 0; color: var(--steel); }

.policies { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.policy { border-left: 4px solid var(--red); padding: 8px 0 8px 24px; }
.policy h3 { font-family: var(--font-head); font-size: 1.5rem; margin: 0 0 10px; }
.policy p { color: var(--steel); margin: 0 0 12px; }
.policy ul { margin: 0; padding-left: 18px; color: var(--steel); }
.policy li { margin-bottom: 6px; }

/* ---------- Frota ---------- */
.frota-gallery, .reconhecimento-grid { display: grid; gap: 18px; }
.frota-gallery { grid-template-columns: repeat(3, 1fr); }
.reconhecimento-grid { grid-template-columns: repeat(4, 1fr); }
.frota-item {
  position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius-sm); background: #000; box-shadow: var(--shadow-md);
}
.frota-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s ease, opacity .3s; opacity: .96; }
.frota-item:hover img { transform: scale(1.06); opacity: 1; }
.reconhecimento-grid .frota-item img { height: 260px; object-fit: contain; background: #fff; padding: 10px; }
.frota-item span {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 14px;
  font-family: var(--font-head); font-size: 1rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); text-align: left;
}

/* ---------- Cargas ---------- */
.cargas-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.cargas-chips li {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: .3px;
  padding: 10px 20px; border-radius: 999px; background: var(--muted-bg);
  border: 1px solid var(--line); color: var(--charcoal); transition: .2s;
}
.cargas-chips li:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-2px); }

/* ---------- Clientes ---------- */
.clientes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cliente {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px; min-height: 110px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cliente:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cliente img { max-height: 64px; width: auto; object-fit: contain; filter: saturate(1); }

/* ---------- Certificação ---------- */
.cert-band {
  display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center;
  margin-top: 56px; background: var(--muted-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm);
}
.cert-img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.cert-text h3 { font-family: var(--font-head); font-size: 1.8rem; margin: 6px 0 12px; }
.cert-text p { color: var(--steel); margin: 0 0 16px; }
.iso-seal { height: 74px; width: auto; }

/* ---------- Setores ---------- */
.setores { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 0 0 32px; }
.setores li {
  background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .98rem; color: #DCE1E6;
}
.link-light { color: #FF6B6F; text-decoration: underline; }

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contato-grid > * { min-width: 0; }
.contato-info h2 { font-family: var(--font-head); font-size: clamp(2rem,4vw,3rem); margin: 0 0 14px; }
.contato-info > p { color: var(--steel); font-size: 1.08rem; }
.contato-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.contato-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.ci-label { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-size: .9rem; padding-top: 2px; }
.contato-list a:hover { color: var(--red); }

.contato-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea { width: 100%; min-width: 0; }
.field label { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: .88rem; margin-bottom: 7px; color: var(--charcoal); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,27,34,.12); }
.contato-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--steel); text-align: center; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0F1114; color: #C7CDD3; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.4fr; gap: 48px; padding: 64px 24px 40px; }
.footer-logo { height: 46px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer-slogan { margin: 18px 0 0; max-width: 320px; color: #9AA2AB; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-cols h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; color: #fff; margin: 0 0 16px; font-size: 1.1rem; }
.footer-cols a, .footer-cols span { display: block; color: #9AA2AB; margin-bottom: 10px; font-size: .95rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: .85rem; color: #7A828B; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,9,11,.94); display: flex; align-items: center; justify-content: center; padding: 32px; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: 0; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; }

/* ---------- Chat IA ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 250;
  display: flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  transition: transform .2s ease, background .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); background: var(--red-dark); }
.chat-fab-label { white-space: nowrap; }

.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 260;
  width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 48px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  animation: chatIn .22s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--charcoal); color: #fff; }
.chat-title { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .5px; }
.chat-title strong { display: block; font-size: 1rem; }
.chat-title small { color: #A9B2BC; font-size: .82rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.msg-typing { display: inline-flex; gap: 4px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: blink 1.2s infinite; }
.msg-typing span:nth-child(2){ animation-delay: .2s; } .msg-typing span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity: .25; } 30%{ opacity: 1; } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-suggestions button { font-size: .82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--muted-bg); color: var(--charcoal); cursor: pointer; transition: .15s; }
.chat-suggestions button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: var(--font-body); font-size: .95rem; }
.chat-input input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,27,34,.12); }
.chat-input button { background: var(--red); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.chat-input button:hover { background: var(--red-dark); }

/* ---------- Reveal animation ---------- */
.section-head, .mvv-card, .frota-item, .cliente, .cargas-chips li { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .btn-header { display: none; }
  .nav-toggle { display: block; }
  .empresa-grid, .policies, .contato-grid, .cert-band { grid-template-columns: 1fr; }
  .cert-band { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .clientes-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .reconhecimento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { min-height: 560px; }
  .hero-content { padding: 72px 24px; }
  .mvv-grid, .history-gallery, .frota-gallery { grid-template-columns: 1fr; }
  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
  .setores { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 6px; }
  .chat-fab-label { display: none; }
  .contato-list li { grid-template-columns: 1fr; gap: 4px; }
}
