/* ==========================================================================
   S3 Cargo — stylesheet
   ========================================================================== */

:root {
  --navy: #003477;
  --navy-dark: #00265a;
  --navy-light: #e8eefb;
  --graphite: #343638;
  --graphite-light: #6b6f73;
  --white: #ffffff;
  --gray-bg: #f5f7fa;
  --gray-border: #e3e7ee;
  --success: #25d366;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(0, 30, 80, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 30, 80, 0.10);
  --container-width: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--graphite-light); }
p strong { color: var(--graphite); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-soft {
  background: var(--navy-light);
  border-color: transparent;
  color: var(--navy);
}
.btn-soft svg { width: 19px; height: 19px; }
.btn-soft:hover { background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow .2s ease;
}
/* Note: intentionally no backdrop-filter here — it would create a new
   containing block for the fixed-position mobile nav (.main-nav) and
   break its full-viewport overlay on small screens. */
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,20,60,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--graphite);
  position: relative;
  padding: 6px 0;
}
.main-nav ul a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--navy);
  transition: width .2s ease;
}
.main-nav ul a:hover::after { width: 100%; }
.nav-cta {
  padding: 11px 22px;
  font-size: 0.9rem;
  background: var(--navy-light);
  color: var(--navy);
  box-shadow: none;
}
.nav-cta:hover {
  background: #fff;
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-light) 0%, #ffffff 65%);
  padding: 84px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.eyebrow, .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: block;
}
.hero-lead { font-size: 1.08rem; max-width: 54ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: grid;
  gap: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.92rem; color: var(--graphite-light); }

.hero-diagonal {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: linear-gradient(135deg, rgba(0,52,119,0.06), rgba(52,54,56,0.05));
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-bg); }
.center { text-align: center; }
.section-lead {
  max-width: 60ch;
  margin: -8px auto 48px;
  font-size: 1.05rem;
}
h2.center, p.section-eyebrow.center { margin-left: auto; margin-right: auto; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.mission {
  font-weight: 600;
  color: var(--navy);
  border-left: 3px solid var(--navy);
  padding-left: 18px;
  margin-top: 24px;
}
.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.4;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Frota */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.fleet-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.fleet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.fleet-photo:hover img { transform: scale(1.04); }

/* Cards / services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }

/* Cobertura / grade de atendimento */
.coverage-panel {
  max-width: 900px;
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px 12px;
}
.coverage-search {
  position: relative;
  margin-bottom: 18px;
}
.coverage-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--graphite-light);
  pointer-events: none;
}
.coverage-search input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px 13px 46px;
  border: 1.5px solid var(--gray-border);
  border-radius: 999px;
  background: var(--gray-bg);
  color: var(--graphite);
  transition: border-color .18s ease, background .18s ease;
}
.coverage-search input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.filial-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filial-chip {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-light);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filial-chip:hover { border-color: var(--navy); }
.filial-chip.is-active {
  background: var(--navy);
  color: #fff;
}
.coverage-count {
  font-size: 0.86rem;
  color: var(--graphite-light);
  margin-bottom: 16px;
}
.coverage-count strong {
  color: var(--navy);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.coverage-list {
  list-style: none;
  margin: 0;
  padding: 4px 4px 4px 0;
  max-height: 420px;
  overflow-y: auto;
  column-count: 3;
  column-gap: 28px;
  border-top: 1px solid var(--gray-border);
}
.coverage-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  break-inside: avoid;
  font-size: 0.92rem;
  color: var(--graphite);
  padding: 9px 0;
  border-bottom: 1px dashed var(--gray-border);
}
.coverage-list li .city-filial {
  font-size: 0.74rem;
  color: var(--graphite-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.coverage-list li.is-hidden { display: none; }
.coverage-empty {
  font-size: 0.92rem;
  padding: 20px 0 24px;
  text-align: center;
}
.coverage-empty a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Unidades */
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.units-grid-secondary {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 24px auto 0;
}
.unit-card-plain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gray-bg);
  border-style: dashed;
}
.unit-card-plain p { margin-bottom: 0; }
.unit-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
}
.unit-photo {
  display: block;
  width: calc(100% + 56px);
  height: 180px;
  object-fit: cover;
  object-position: center;
  margin: -30px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.unit-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  background: var(--navy-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.unit-card p { font-size: 0.94rem; }
.unit-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.unit-link:hover { text-decoration: underline; }

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.contact-desc { font-size: 0.9rem; margin-bottom: 20px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-border);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--graphite);
  transition: color .18s ease;
}
.contact-line:first-of-type { border-top: none; }
.contact-line:hover { color: var(--navy); }
.contact-line .ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--navy); }

.social-row {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-border);
  transition: border-color .18s ease, color .18s ease;
}
.social-row a:hover { border-color: var(--navy); color: var(--navy); }
.social-row svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd8ec;
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: .04em;
}
.footer-brand p { color: #b7c4de; margin-top: 10px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
  margin-top: 20px;
}
.footer-col h4:first-child { margin-top: 0; }
.footer-col ul { list-style: none; margin: 0 0 4px; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col p { color: #b7c4de; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom-inner { padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: 0.84rem; color: #93a3c4; text-align: center; }

/* ---------- WhatsApp bubbles ---------- */
.whatsapp-stack {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.whatsapp-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--success);
  color: #fff;
  padding: 11px 18px 11px 14px;
  border-radius: 999px 999px 4px 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.26);
}
.whatsapp-bubble svg { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-bubble .bubble-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.82rem;
  white-space: nowrap;
}
.whatsapp-bubble .bubble-text strong {
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 480px) {
  .whatsapp-stack { right: 16px; gap: 10px; }
  .whatsapp-bubble {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .whatsapp-bubble .bubble-text { display: none; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-list { column-count: 2; }
  .units-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .fleet-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 20px; width: 100%; }
  .main-nav ul a { font-size: 1.05rem; }
  .nav-ctas { flex-direction: column; width: 100%; gap: 14px; }
  .nav-cta, .nav-collab { width: 100%; text-align: center; }

  .hero-stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .coverage-panel { padding: 24px 20px 8px; }
  .coverage-list { column-count: 1; max-height: 360px; }
}
