/* ============================================================
   TRANSAGRO 540 — style.css
   Sistema de design baseado na identidade da marca:
   verde-pinheiro da logo, verde-lima do swoosh, e o vermelho
   da terra do Cerrado presente em todas as fotos da frota.
   ============================================================ */

:root {
  /* Paleta — extraída da logo (verdes) e das fotos reais (terra e trigo) */
  --pine-950: #0a2a1a;
  --pine-800: #0f3d26;
  --pine-700: #145233;
  --pine-600: #1c6b42;
  --lime-500: #9ccb4a;
  --lime-400: #b4dc6a;
  --terra-600: #ab4a22;
  --terra-500: #c25a2c;
  --sand-100: #f3ede0;
  --sand-50: #faf7f0;
  --ink-900: #181c16;
  --ink-600: #4a5247;
  --white: #ffffff;

  /* Tipografia */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  /* Layout */
  --max-w: 1240px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius-sm: 4px;

  /* Sombra discreta única (reservada para o header fixo e o lightbox) */
  --shadow-soft: 0 12px 30px -12px rgba(10, 42, 26, 0.35);
}

/* ---------- Reset básico ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--sand-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--pine-950);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Foco visível para acessibilidade (nunca remover outline sem substituto) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--lime-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine-950);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

/* ---------- Rótulo de seção ----------
   Pequeno marcador que reaproveita o traço diagonal da própria logo
   (a faixa inclinada abaixo do nome "TransAgro") como elemento de marca,
   em vez de um eyebrow genérico em caixa alta. */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--terra-600);
  margin-bottom: 0.6rem;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 4px;
  background: var(--lime-500);
  transform: skewX(-20deg);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 30ch;
}

.section-intro {
  max-width: 62ch;
  color: var(--ink-600);
  font-size: 1.08rem;
  margin-top: 0.9rem;
}

section { position: relative; }
.section-pad { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.bg-sand { background: var(--sand-100); }
.bg-white { background: var(--white); }
.bg-pine { background: var(--pine-950); color: var(--sand-50); }
.bg-pine .section-title,
.bg-pine h3 { color: var(--white); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-terra { background: var(--terra-600); color: var(--white); }
.btn-terra:hover { background: #8f3c19; }
.btn-whatsapp { background: #1f8a44; color: var(--white); }
.btn-whatsapp:hover { background: #176b34; }
.btn-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost-pine {
  background: transparent;
  border-color: var(--pine-950);
  color: var(--pine-950);
}
.btn-ghost-pine:hover { background: var(--pine-950); color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: rgba(10, 42, 26, 0.0);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  padding: 1.1rem 0;
}
.site-header.is-scrolled {
  background: rgba(10, 42, 26, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 0.65rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}
.brand img { height: 42px; width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .brand img { height: 34px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--lime-400);
}

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  color: var(--sand-50);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--lime-500);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.nav-cta {
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  padding: 0.2rem 0.3rem;
  line-height: 1;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--pine-950);
  z-index: 950;
  display: flex;
  flex-direction: column;
  padding: 1.5rem clamp(1.25rem, 6vw, 3rem);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.mobile-nav-close { background: none; border: none; color: var(--white); font-size: 1.8rem; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.6rem; }
.mobile-nav a { color: var(--white); font-family: var(--font-display); font-size: 1.4rem; }
.mobile-nav .btn { margin-top: 2rem; align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background-color: var(--pine-950);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media picture, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,26,16,0.92) 0%, rgba(8,26,16,0.55) 42%, rgba(8,26,16,0.25) 68%, rgba(8,26,16,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(4.5rem, 10vw, 6.5rem);
  padding-top: 9rem;
  width: 100%;
}
.hero-content .section-tag { color: var(--lime-400); }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  max-width: 16ch;
  color: var(--white);
}
.hero-lede {
  margin-top: 1.3rem;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--sand-100);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Faixa diagonal ao fim do hero — reaproveita o traço da logo como
   corte de seção, no lugar de uma curva/onda genérica de SVG. */
.hero-cut {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 64px;
  z-index: 2;
  background: var(--sand-50);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
.bg-white + .hero-cut, .hero-cut.to-white { background: var(--white); }

/* ============================================================
   SOBRE
   ============================================================ */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 2.5rem;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(10,42,26,0.12);
  border: 1px solid rgba(10,42,26,0.12);
}
.stat {
  background: var(--sand-100);
  padding: 1.6rem 1.4rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--terra-600);
}
.stat span { font-size: 0.92rem; color: var(--ink-600); }

/* ============================================================
   DESTAQUES — lista com traço lateral (não cartão-padrão)
   ============================================================ */
.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(10,42,26,0.1);
  border-top: 1px solid rgba(10,42,26,0.1);
  margin-top: 2.5rem;
}
.highlight {
  background: var(--white);
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem);
  border-left: 4px solid var(--lime-500);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.highlight i {
  font-size: 1.3rem;
  color: var(--terra-600);
  margin-top: 0.2rem;
  flex: none;
}
.highlight h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.highlight p { margin: 0; color: var(--ink-600); font-size: 0.96rem; }

/* ============================================================
   FROTA / SERVIÇOS
   ============================================================ */
.fleet-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: 2.5rem;
  align-items: start;
}
.fleet-photo { position: relative; }
.fleet-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.fleet-photo::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 70px; height: 70px;
  border-top: 6px solid var(--lime-500);
  border-left: 6px solid var(--lime-500);
  z-index: 1;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(10,42,26,0.12);
  font-weight: 500;
}
.service-list li i { color: var(--terra-600); font-size: 1.05rem; flex: none; width: 1.4rem; text-align: center; }

.wash-note {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  background: var(--pine-950);
  color: var(--sand-50);
  font-size: 0.95rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.wash-note i { color: var(--lime-400); margin-top: 0.15rem; }

/* ============================================================
   GALERIA
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: transparent;
  border: 2px solid var(--pine-950);
  color: var(--pine-950);
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.filter-btn:hover { background: rgba(10,42,26,0.08); }
.filter-btn.active { background: var(--pine-950); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--pine-800);
  cursor: pointer;
}
.gallery-item.is-hidden { display: none; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,42,26,0) 55%, rgba(10,42,26,0.75) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .gallery-cap {
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.7rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }
.gallery-item .zoom-icon {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  width: 34px; height: 34px;
  background: rgba(10,42,26,0.72);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .zoom-icon { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(6, 16, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-figure {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: 100%;
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}
.lightbox-caption {
  color: var(--sand-100);
  margin-top: 0.9rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.18s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: -3.2rem; right: 0; }
.lightbox-prev { left: -3.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -3.5rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   EXPERIÊNCIA
   ============================================================ */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.experience-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.experience-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.experience-card:hover img { transform: scale(1.06); }
.experience-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,26,16,0.88) 10%, rgba(8,26,16,0.15) 65%);
}
.experience-card-text {
  position: relative;
  z-index: 1;
  padding: 1.6rem;
}
.experience-card-text .section-tag { color: var(--lime-400); margin-bottom: 0.3rem; }
.experience-card-text h3 { color: var(--white); font-size: 1.35rem; }
.experience-card-text p { color: var(--sand-100); margin: 0.4rem 0 0; font-size: 0.95rem; max-width: 34ch; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
  background: var(--terra-600);
  color: var(--white);
  padding: clamp(2.8rem, 6vw, 4rem) 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 22ch; margin: 0 auto; }
.cta-band p { margin-top: 0.8rem; color: rgba(255,255,255,0.9); }
.cta-actions {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-actions .btn-outline { border-color: var(--white); color: var(--white); }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: 2.5rem;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  margin: 0 0 1.1rem;
}
.contact-info i { color: var(--terra-600); width: 1.4rem; text-align: center; }
.contact-map {
  margin-top: 1.6rem;
  border: 1px solid rgba(10,42,26,0.15);
  height: 260px;
  overflow: hidden;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  border: 1px solid rgba(10,42,26,0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(10,42,26,0.25);
  border-radius: var(--radius-sm);
  background: var(--sand-50);
}
.contact-form textarea { margin-top: 0.9rem; resize: vertical; }
.contact-form select { margin-top: 0.9rem; }
.contact-form button { width: 100%; margin-top: 1.1rem; justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--ink-600); margin-top: 0.7rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--pine-950);
  color: var(--sand-100);
  padding-top: clamp(3rem, 6vw, 4rem);
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col p { color: var(--sand-100); font-size: 0.92rem; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--lime-400); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-bottom {
  padding: 1.4rem 0 1.8rem;
  font-size: 0.82rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 4vw, 1.8rem);
  bottom: clamp(1rem, 4vw, 1.8rem);
  z-index: 800;
  width: 58px; height: 58px;
  background: #1f8a44;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 25px rgba(31, 138, 68, 0.45);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
