/* ===================== Variáveis / Reset ===================== */
:root {
  --preto: #211f1e;
  --grafite: #2b2826;
  --grafite-2: #322e2b;
  --ouro: #e3a82b;
  --ouro-claro: #f2bd45;
  --terra: #855e37;
  --claro: #f4f1ec;
  --suave: #c9c3ba;
  --bege: #ece3d3;
  --bege-card: #ffffff;
  --bege-texto: #2b2622;
  --bege-suave: #6b6259;
  --bege-linha: rgba(43, 38, 34, 0.10);
  --linha: rgba(255, 255, 255, 0.10);
  --wpp: #25d366;
  --radius: 14px;
  --container: 1160px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --t: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--preto);
  color: var(--claro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* ===================== Botões ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--t), background var(--t), box-shadow var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ouro); color: #2a2010; }
.btn-primary:hover { background: var(--ouro-claro); box-shadow: 0 10px 24px rgba(227, 168, 43, 0.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--preto); }
.btn-whatsapp { background: var(--wpp); color: #07371b; }
.btn-whatsapp:hover { background: #2ee676; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }

/* ===================== Header ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(33, 31, 30, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
.site-header.scrolled { background: rgba(28, 26, 25, 0.96); border-bottom-color: var(--linha); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
/* Título textual: escondido no desktop (o logo basta) */
.brand-text {
  display: none;
  font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; font-size: 1.1rem; color: var(--claro); white-space: nowrap;
  transition: opacity 0.25s ease;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 500; font-size: 0.96rem; color: var(--claro); transition: color var(--t); }
.nav a:hover { color: var(--ouro); }
.nav .nav-cta { color: #07371b; }
.nav .nav-cta:hover { color: #07371b; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 3px; background: var(--claro); border-radius: 3px; transition: var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(33,31,30,0.72) 0%, rgba(33,31,30,0.82) 55%, rgba(33,31,30,0.95) 100%);
}
.hero-content { padding: 130px 22px 70px; max-width: 760px; }
.hero-eyebrow {
  display: inline-block; color: var(--ouro); font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 0.82rem; margin-bottom: 16px;
  border: 1px solid rgba(227,168,43,0.4); padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 18px; }
.hero h1 span { color: var(--ouro); }
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.22rem); color: var(--suave); max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 0.95rem; color: var(--claro); }
.hero-badges li { font-weight: 500; }

/* ===================== Seções genéricas ===================== */
.section { padding: 92px 0; }
.section-alt { background: var(--grafite); }

/* ===================== Tema claro (seções bege alternadas) ===================== */
.section--light { background: var(--bege); color: var(--bege-texto); }
.section--light .section-head h2,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--bege-texto); }
.section--light .section-head p,
.section--light p { color: var(--bege-suave); }
.section--light .kicker { color: var(--terra); }

/* Cards de serviço */
.section--light .card { background: var(--bege-card); border-color: var(--bege-linha); }
.section--light .card:hover { border-color: rgba(133, 94, 55, 0.5); box-shadow: 0 16px 34px rgba(133, 94, 55, 0.16); }
.section--light .card p { color: var(--bege-suave); }
.section--light .card-icon { background: rgba(133, 94, 55, 0.12); color: var(--terra); }
.section--light .card h3 { color: var(--bege-texto); }

/* Diferenciais */
.section--light .diff { background: rgba(133, 94, 55, 0.06); }
.section--light .diff strong { color: var(--terra); }
.section--light .diff p { color: var(--bege-suave); }

/* Frota */
.section--light .frota-card { background: var(--bege-card); border-color: var(--bege-linha); }
.section--light .frota-body h3 { color: var(--terra); }
.section--light .frota-body p { color: var(--bege-suave); }

/* Sobre + estatísticas */
.section--light .stat { background: var(--bege-card); border-color: var(--bege-linha); }
.section--light .stat-label { color: var(--bege-suave); }
.section--light .sobre-grid p { color: var(--bege-suave); }

/* Cidades + mapa */
.section--light .cidades li { background: var(--bege-card); border-color: var(--bege-linha); color: var(--bege-texto); }
.section--light .mapa { border-color: var(--bege-linha); }

/* Contato */
.section--light .contato-list li { border-bottom-color: var(--bege-linha); }
.section--light .contato-list a:hover { color: var(--terra); }
.section--light .form-card { background: var(--bege-card); border-color: var(--bege-linha); box-shadow: 0 16px 40px rgba(133, 94, 55, 0.14); }
.section--light .field label { color: var(--bege-texto); }
.section--light .field input,
.section--light .field select,
.section--light .field textarea { background: #faf8f4; color: var(--bege-texto); border-color: rgba(43, 38, 34, 0.14); }
.section--light .field input:focus,
.section--light .field select:focus,
.section--light .field textarea:focus { border-color: var(--ouro); }

/* ===================== Seção de avaliações (faixa terra) ===================== */
.section--reviews { background: linear-gradient(135deg, #2b2826 0%, #3c2f20 50%, #2b2826 100%); }
.section--reviews .kicker { color: var(--ouro-claro); }
.rating-badge { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.rating-stars { color: var(--ouro); font-size: 1.7rem; letter-spacing: 3px; }
.rating-num { font-family: "Oswald", sans-serif; font-size: 1.9rem; color: #fff; line-height: 1; }
.rating-count { color: var(--suave); font-size: 0.98rem; }
.reviews-grid { max-width: 920px; margin: 0 auto; }
.review-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--linha); border-radius: var(--radius); padding: 30px 28px; }
.review-card .review-stars { color: var(--ouro); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 12px; }
.review-card blockquote { font-size: 1.12rem; font-style: italic; color: var(--claro); margin-bottom: 14px; }
.review-card figcaption { color: var(--suave); font-size: 0.9rem; font-weight: 600; }
.reviews-cta { text-align: center; margin-top: 38px; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; color: var(--ouro); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--suave); font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================== Cards de serviços ===================== */
.card {
  background: var(--grafite-2); border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 32px 26px; transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-6px); border-color: rgba(227,168,43,0.5); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(227,168,43,0.12); color: var(--ouro);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--suave); font-size: 0.97rem; }

/* ===================== Diferenciais ===================== */
.diff { padding: 26px 22px; border-left: 3px solid var(--ouro); background: rgba(255,255,255,0.02); border-radius: 0 var(--radius) var(--radius) 0; }
.diff strong { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.5px; font-size: 1.12rem; margin-bottom: 8px; color: var(--ouro-claro); }
.diff p { color: var(--suave); font-size: 0.96rem; }

/* ===================== Frota ===================== */
.frota-card { background: var(--grafite-2); border: 1px solid var(--linha); border-radius: var(--radius); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.frota-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.frota-card img { width: 100%; height: 300px; object-fit: cover; }
.frota-body { padding: 24px 26px 28px; }
.frota-body h3 { font-size: 1.35rem; color: var(--ouro-claro); margin-bottom: 10px; }
.frota-body p { color: var(--suave); }

/* ===================== Vitrine de vídeo (Trabalhos) ===================== */
.video-showcase { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.video-vertical {
  width: 320px; max-width: 100%; aspect-ratio: 478 / 850; border-radius: var(--radius);
  background: #000; object-fit: cover; box-shadow: var(--shadow); border: 1px solid var(--linha);
}
.video-showcase-text h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 6px 0 12px; color: var(--claro); }
.video-showcase-text p { color: var(--suave); margin-bottom: 22px; max-width: 520px; }

/* ===================== Galeria ===================== */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.galeria-item { padding: 0; border: 0; cursor: pointer; background: none; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease, filter var(--t); }
.galeria-item::after { content: "🔍"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(33,31,30,0.45); opacity: 0; transition: opacity var(--t); }
.galeria-item:hover img { transform: scale(1.08); }
.galeria-item:hover::after { opacity: 1; }
.galeria-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* ===================== Sobre ===================== */
.sobre-grid { align-items: center; gap: 50px; }
.sobre-grid h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 18px; }
.sobre-grid p { color: var(--suave); margin-bottom: 14px; }
.sobre-grid .cnpj { font-size: 0.9rem; color: var(--terra); font-weight: 600; }
.sobre-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--grafite-2); border: 1px solid var(--linha); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.stat-num { display: block; font-family: "Oswald", sans-serif; font-size: 2.6rem; color: var(--ouro); line-height: 1; }
.stat-label { display: block; margin-top: 8px; color: var(--suave); font-size: 0.9rem; }

/* ===================== Área de atendimento ===================== */
.cidades { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 0 auto 40px; }
.cidades li { background: var(--grafite-2); border: 1px solid var(--linha); border-radius: 999px; padding: 9px 18px; font-size: 0.92rem; color: var(--claro); }
.mapa { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linha); }
.mapa iframe { display: block; }

/* ===================== Contato ===================== */
.contato-grid { gap: 46px; align-items: start; }
.contato-grid h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; }
.contato-grid > div > p { color: var(--suave); margin-bottom: 24px; }
.contato-list { list-style: none; margin-bottom: 26px; }
.contato-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linha); font-size: 1.02rem; }
.contato-list .ci { font-size: 1.2rem; width: 26px; text-align: center; }
.contato-list a:hover { color: var(--ouro); }

.form-card { background: var(--grafite-2); border: 1px solid var(--linha); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; color: var(--claro); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--linha);
  background: var(--preto); color: var(--claro); font-family: inherit; font-size: 1rem; transition: border-color var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ouro); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { margin-top: 14px; font-size: 0.95rem; text-align: center; min-height: 1.2em; }
.form-feedback.ok { color: #7fe3a0; }
.form-feedback.err { color: #ff9b8a; }

/* ===================== Footer ===================== */
.site-footer { background: #1a1817; border-top: 1px solid var(--linha); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--suave); font-size: 0.95rem; max-width: 340px; }
.footer-col h4 { color: var(--ouro); font-size: 1rem; margin-bottom: 14px; letter-spacing: 1px; }
.footer-col a, .footer-col span { display: block; color: var(--suave); font-size: 0.94rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ouro); }
.footer-bottom { border-top: 1px solid var(--linha); padding: 18px 0; }
.footer-bottom span { color: #8c857c; font-size: 0.85rem; }

/* ===================== WhatsApp flutuante ===================== */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wpp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45); transition: transform var(--t);
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===================== Lightbox ===================== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,13,12,0.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 22px; right: 28px; font-size: 2.6rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ===================== Animações de entrada ===================== */
/* O estado "escondido" só vale quando há JS (classe .js no <html>).
   Sem JS, o conteúdo aparece normalmente — melhor para SEO e acessibilidade. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===================== Responsivo ===================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(24,22,21,0.99); border-bottom: 1px solid var(--linha);
    padding: 10px 0; transform: translateY(-150%); transition: transform 0.35s ease;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 15px 24px; border-bottom: 1px solid var(--linha); }
  .nav .nav-cta { margin: 14px 24px; width: calc(100% - 48px); }
  .hamburger { display: flex; }

  /* Título "Bitelo Terraplanagem" visível no topo do celular; some ao rolar */
  .brand-text { display: inline-block; }
  .site-header.scrolled .brand-text { opacity: 0; transform: translateX(-6px); pointer-events: none; }

  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .sobre-grid, .contato-grid { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .galeria-item:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .video-showcase { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .video-vertical { margin: 0 auto; width: 280px; }
  .video-showcase-text p { margin-left: auto; margin-right: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { padding-top: 110px; }
  .frota-card img { height: 220px; }
}

@media (max-width: 420px) {
  .galeria { grid-template-columns: 1fr; }
  .galeria-item:nth-child(1) { grid-column: auto; }
  .sobre-stats { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-float { animation: none; }
  html { scroll-behavior: auto; }
}
