/* STELLA Truck Center — site institucional (pt-BR) */
:root {
  --navy: #00308e;
  --navy-mid: #01286d;
  --navy-deep: #02184a;
  --navy-ink: #0b1a36;
  --red: #ea030d;
  --yellow: #ffd620;
  --yellow-deep: #e6b800;
  --whatsapp: #1f9c4b;
  --whatsapp-dark: #187a3a;
  --ink: #142033;
  --muted: #4a5568;
  --line: #d8dee8;
  --paper: #f3f5f9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(2, 24, 74, 0.12);
  --radius: 16px;
  --header-h: 80px;
  --font-display: "Oswald", "Arial Narrow", "DIN Condensed", sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/Oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--yellow);
  color: var(--navy-deep);
  padding: 8px 14px;
  font-weight: 700;
  z-index: 200;
  border-radius: 8px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus, .skip:focus-visible {
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  white-space: nowrap;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
  padding-block: 8px;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 230px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--yellow); }
.nav-cta { margin-left: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-yellow {
  background: var(--yellow);
  color: var(--navy-deep);
}
.btn-yellow:hover { color: var(--navy-deep); }
.btn-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
}
.btn-outline:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { color: var(--white); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { color: var(--white); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn svg { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 11px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 36px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 55%;
  height: 180px;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 18px,
      rgba(255,255,255,0.04) 18px 28px
    );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--yellow);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
  display: inline-block;
  position: relative;
}
.hero h1 em::after {
  content: "";
  display: block;
  height: 7px;
  margin-top: 4px;
  background: var(--yellow);
  transform: skewX(-16deg);
  border-radius: 2px;
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 38ch;
  color: rgba(255,255,255,0.92);
  margin: 0 0 22px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.hero-pills li {
  border: 1px solid rgba(255,214,32,0.45);
  color: var(--yellow);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  border: 3px solid rgba(255,214,32,0.55);
}
.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}

/* Sections */
section { padding: 80px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--navy-deep);
}
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--red);
  margin: 0 0 8px;
}
.section-head p { margin: 0; color: var(--muted); }

.services { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--yellow);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  margin: 12px 0 8px;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--yellow);
  display: grid;
  place-items: center;
}

/* Fleets */
.fleets-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.fleets-panel {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.fleets-panel::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: var(--red);
  opacity: 0.18;
  transform: rotate(18deg);
}
.fleets-panel h2 { color: var(--white); margin: 0 0 12px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
.fleets-panel p { color: rgba(255,255,255,0.9); margin: 0 0 16px; }
.fleets-panel ul { margin: 0 0 24px; padding: 0; list-style: none; }
.fleets-panel li {
  position: relative;
  padding: 8px 0 8px 28px;
}
.fleets-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 6px;
  background: var(--yellow);
  transform: skewX(-16deg);
}
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
  padding: 10px 0 10px 36px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2302184a' stroke-width='2.2' d='M3 8.2l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Contact */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-card, .form-card, .map-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card, .form-card { padding: 28px 26px; }
.contact-card h3, .form-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-size: 1.3rem;
  color: var(--navy-deep);
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 16px; }
.contact-list a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--red); text-decoration: underline; }
.contact-list span.label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}
.dado-pendente {
  display: inline-block;
  background: #fff4c4;
  border-bottom: 2px dashed #c49200;
  padding: 1px 6px;
  font-weight: 700;
  color: var(--navy-ink);
}
.aviso-horario {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}
 .map-embed {
  position: relative;
  display: block;
  min-height: 280px;
  background: #d9e3d4;
}
.map-card iframe, .map-card .map-embed img {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  object-fit: cover;
}
.map-card { overflow: hidden; }
.map-caption {
  padding: 12px 16px 16px;
  font-size: 14px;
  color: var(--muted);
}
.map-caption .btn { margin-top: 10px; }

/* Form */
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(255, 214, 32, 0.7);
  border-color: var(--navy);
  background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-help { margin: 0; font-size: 13px; color: var(--muted); }
.form-error {
  display: none;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.form-error.is-visible { display: block; }

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 28px;
  font-size: 14px;
}
.footer a { color: var(--yellow); text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--yellow); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer strong { color: var(--white); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 12px; }
.legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; font-size: 13px; color: rgba(255,255,255,0.65); }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(31, 156, 75, 0.45);
  z-index: 90;
  text-decoration: none;
}
.wa-float:hover { color: var(--white); filter: brightness(1.08); transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
  .hero-grid, .fleets-grid, .contact-grid, .footer-grid, .service-grid {
    grid-template-columns: 1fr;
  }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 24px 0 48px; }
  .brand img { height: 44px; max-height: 44px; max-width: 190px; }
  .map-card iframe { height: 240px; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .service-grid, .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-float { transition: none; }
}

.fleets-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--navy-deep);
}

.map-attr {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #8a93a3;
}
