/* BioLogística Asa Delta — Guincho e Reboque 24h
   Paleta tirada da logo: azul-marinho + VERMELHO + aço/grafite
   (as variáveis --orange* guardam o vermelho da marca — nome mantido só p/ não quebrar refs) */

:root {
  --navy-950: #101a30;
  --navy-900: #14213d;
  --navy-800: #1c2b4d;
  --navy-700: #26385f;
  --orange: #c1272d;
  --orange-600: #9e1f24;
  --orange-050: #fbebeb;
  --ink: #161a20;
  --steel: #5c6779;
  --steel-200: #d7dce4;
  --paper: #f4f6f9;
  --white: #ffffff;
  --ok: #1f9d55;

  --radius-card: 14px;
  --radius-input: 10px;
  --shadow-card: 0 14px 34px -18px rgba(16, 26, 48, .35);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy-900);
  color: #eaeefa;
}
.section--navy h2 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--steel);
  max-width: 60ch;
}
.section--navy .lead { color: #b9c3dd; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--orange-600); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--whats { --btn-bg: #1faa52; }
.btn--whats:hover { background: #178a42; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--dark {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
}
.btn--dark:hover { background: var(--navy-700); }

.btn--tiktok {
  --btn-bg: #0f0f12;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .18);
}
.btn--tiktok:hover { background: #000; }

.btn svg { width: 20px; height: 20px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: #cdd6ec;
  font-size: .86rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .5rem;
}
.topbar strong { color: #fff; }
.topbar .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--ok);
  margin-right: .45rem;
  box-shadow: 0 0 0 0 rgba(31, 157, 85, .7);
  animation: pulse 2s infinite;
}
.topbar a { text-decoration: none; font-weight: 700; color: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .6); }
  70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 33, 61, .96);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 92px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand img {
  height: 76px;
  width: 76px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}
.brand span { font-size: 1.22rem; line-height: 1.1; }
.brand span small {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: #dce3f5;
}
.nav a:hover { color: #fff; }
.nav .btn { padding: .6rem 1.1rem; font-size: .92rem; }

/* Botão hambúrguer (só no mobile) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.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); }

@media (max-width: 860px) {
  .site-header .wrap { min-height: 68px; gap: .8rem; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
    padding: 8px 16px 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a:not(.btn) {
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav .btn {
    margin-top: 14px;
    padding: .9rem 1.1rem;
    font-size: 1rem;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header .wrap { min-height: 62px; }
  .brand img { height: 46px; width: 46px; border-radius: 11px; }
  .brand span { font-size: .98rem; }
  .brand span small { font-size: .62rem; letter-spacing: .09em; }
}
@media (max-width: 360px) {
  .brand span small { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  /* degradê de opacidade da esquerda (transparente) para a direita (opaca) */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 32%, #000 68%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 32%, #000 68%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
    rgba(16, 26, 48, .94) 0%,
    rgba(16, 26, 48, .82) 34%,
    rgba(16, 26, 48, .30) 66%,
    rgba(16, 26, 48, 0) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-copy { max-width: 620px; }
.hero h1 { max-width: 15ch; }
.hero .hl { color: var(--orange); }
.hero p { color: #d3dbf0; font-size: 1.12rem; max-width: 46ch; }
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.hero-badges li {
  font-size: .86rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: .4rem .8rem;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .hero-bg img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), #000 60%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), #000 60%);
  }
  .hero::after {
    background: linear-gradient(to bottom, rgba(16, 26, 48, .58) 0%, rgba(16, 26, 48, .5) 45%, rgba(16, 26, 48, .62) 100%);
  }
  .hero h1, .hero p, .hero .eyebrow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
  }
}

/* ---------- Marquee / frases ---------- */
.strip {
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  border-block: 3px solid var(--navy-900);
}
.strip__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding-block: .7rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: .95rem;
  animation: marquee 26s linear infinite;
}
.strip__track span::before { content: "▶  "; opacity: .6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; flex-wrap: wrap; white-space: normal; }
}

/* ---------- Carrossel de trabalhos (sentido oposto à tarja) ---------- */
.works .hgroup { margin-bottom: 2.2rem; }
.works__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.works__viewport:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.works__track {
  display: flex;
  gap: 14px;
  width: max-content;
  /* tarja vermelha corre para a esquerda; este carrossel corre para a direita */
  animation: works-scroll 55s linear infinite;
}
@keyframes works-scroll {
  from { transform: translateX(calc(-50% - 7px)); } /* -7px = metade do gap, p/ emenda invisível */
  to   { transform: translateX(0); }
}
.works__viewport:hover .works__track,
.works__viewport:focus-within .works__track { animation-play-state: paused; }

.works__item {
  flex: 0 0 auto;
  width: clamp(240px, 32vw, 360px);
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  cursor: pointer;
}
.works__item img,
.works__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
  pointer-events: none;
}
.works__item:hover img,
.works__item:focus-visible img,
.works__item:hover video,
.works__item:focus-visible video { transform: scale(1.05); }
.works__item:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .works__track { animation: none; }
  .works__viewport { overflow-x: auto; }
}
@media (hover: none) {
  .works__track { animation: none; width: auto; scroll-snap-type: x mandatory; }
  .works__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .works__viewport::-webkit-scrollbar { display: none; }
  .works__item { scroll-snap-align: center; }
  .works__item.is-dupe { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 22, .93);
  backdrop-filter: blur(3px);
}
.lightbox[hidden] { display: none; }
.lightbox img,
.lightbox video {
  max-width: min(1000px, 94vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.lightbox img[hidden],
.lightbox video[hidden] { display: none; }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Serviços ---------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.card .ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-050);
  color: var(--orange-600);
  margin-bottom: 1rem;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--steel); font-size: .95rem; }

@media (max-width: 880px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-services { grid-template-columns: 1fr; } }

/* ---------- Cobertura + mapa ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
.coverage ul { padding-left: 1.1rem; margin: 1rem 0 0; }
.coverage li { margin-bottom: .4rem; }
.map-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--steel-200);
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.map-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-card .map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 1.2rem;
}
.map-card .map-foot address {
  font-style: normal;
  font-size: .95rem;
  color: var(--steel);
}
.map-card .map-foot strong { color: var(--ink); display: block; }
@media (max-width: 820px) { .coverage { grid-template-columns: 1fr; } }

/* ---------- TikTok ---------- */
.tiktok-cta { text-align: center; }
.tiktok-cta .hgroup { max-width: 640px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #aab4cd;
  font-size: .92rem;
}
.site-footer .wrap {
  padding-block: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin: 0 0 .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.footer-brand img {
  height: 68px;
  width: 68px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand strong { font-size: 1.1rem; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  padding: 1.2rem 20px;
  font-size: .82rem;
  color: #7c88a4;
}
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Barra fixa mobile ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--navy-950);
  box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, .35);
}
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
}
.dock .call { background: var(--navy-800); }
.dock .whats { background: #1faa52; }
.dock svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .dock { display: grid; }
  body { padding-bottom: 60px; }
}

/* ---------- Botão flutuante WhatsApp (desktop) ---------- */
.fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #1faa52;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(31, 170, 82, .6);
}
.fab:hover { background: #178a42; }
.fab svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .fab { display: none; } }

/* ---------- utilidades ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hgroup { max-width: 62ch; }
.section--navy .hgroup .lead { color: #b9c3dd; }

/* =====================================================
   AJUSTES MOBILE (revisão de layout para celular)
   ===================================================== */
@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .section { padding-block: clamp(2.75rem, 9vw, 3.75rem); }

  /* barra do topo: só o essencial */
  .topbar { font-size: .8rem; }
  .topbar .wrap { gap: .6rem; padding-block: .45rem; }
  .topbar__area { display: none; }

  /* hero mais compacto e legível */
  .hero .wrap { padding-block: 2.25rem 2.5rem; }
  .hero-copy { max-width: none; }
  .hero h1 { max-width: 18ch; }
  .hero p { font-size: 1.02rem; max-width: none; }
  .hero-bg img { object-position: 64% center; }

  /* botões de ação ocupam a largura toda (alvo de toque maior) */
  .btn-row { gap: .65rem; }
  .btn-row .btn { flex: 1 1 100%; width: 100%; padding: .95rem 1rem; }

  /* pills do hero */
  .hero-badges { gap: .45rem; margin-top: 1.3rem; }
  .hero-badges li { font-size: .8rem; padding: .35rem .7rem; }

  /* tarja vermelha um tico menor */
  .strip__track { font-size: .85rem; gap: 2.25rem; }

  /* carrossel de trabalhos: 1 card em destaque por vez */
  .works__item { width: 80vw; }
  .works .lead { font-size: .98rem; }

  /* serviços */
  .card { padding: 1.25rem; }

  /* cobertura / mapa */
  .coverage { gap: 1.6rem; }
  .map-card iframe { height: 240px; }
  .map-card .map-foot { padding: .9rem 1rem; }
  .map-card .map-foot .btn { width: 100%; }

  /* rodapé */
  .site-footer .wrap { padding-block: 2.25rem 1.5rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.85rem; }
  .btn { font-size: .95rem; }
  .works__item { width: 84vw; }
}
