/* =========================================================
   3F Infraestrutura e Pavimentações - Folha de Estilos
   Paleta: laranja (logo) + preto/grafite + branco
   ========================================================= */
:root {
  --laranja: #E8590C;
  --laranja-escuro: #C94E0B;
  --laranja-claro: #FB923C;
  --preto: #0F172A;
  --grafite: #1F2937;
  --grafite-medio: #374151;
  --cinza-claro: #F3F4F6;
  --branco: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-escuro: #1EBE5A;
  --fonte-titulo: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --fonte-corpo: 'Inter', 'Segoe UI', sans-serif;
  --sombra: 0 10px 30px rgba(15, 23, 42, 0.08);
  --sombra-forte: 0 16px 40px rgba(15, 23, 42, 0.16);
  --raio: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte-corpo);
  color: var(--grafite-medio);
  background: var(--branco);
  line-height: 1.7;
  font-size: 16px;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  color: var(--preto);
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

.section-tag {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laranja);
  margin-bottom: 0.5rem;
}

.section-title { margin-bottom: 0.75rem; }

.section-subtitle {
  max-width: 640px;
  color: var(--grafite-medio);
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-laranja {
  background: var(--laranja);
  color: var(--branco);
  box-shadow: 0 6px 18px rgba(232, 89, 12, 0.35);
}

.btn-laranja:hover {
  background: var(--laranja-escuro);
  transform: translateY(-2px);
}

.btn-contorno {
  background: transparent;
  color: var(--branco);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-contorno:hover {
  border-color: var(--branco);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--branco);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-escuro);
  transform: translateY(-2px);
}

.btn-escuro {
  background: var(--preto);
  color: var(--branco);
}

.btn-escuro:hover { background: var(--grafite); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--preto);
  border-bottom: 3px solid var(--laranja);
  transition: box-shadow 0.3s;
}

.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
}

.logo img { height: 56px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--laranja-claro); }

.nav-cta {
  background: var(--laranja) !important;
  color: var(--branco) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}

.nav-cta:hover { background: var(--laranja-escuro) !important; }

/* Dropdown Serviços */
.nav-item-drop {
  position: relative;
}

.drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--preto);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-width: 300px;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: var(--sombra-forte);
}

.nav-item-drop:hover .drop-menu,
.nav-item-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.drop-menu a:hover { color: var(--laranja-claro); background: rgba(255, 255, 255, 0.05); }

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--branco);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--branco);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (com imagem de fundo) ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.72) 45%, rgba(11, 18, 32, 0.30) 100%),
    url('../images/fundo-hero.png') center / cover no-repeat;
  color: var(--branco);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero h1 { color: var(--branco); margin-bottom: 1.1rem; }

.hero h1 .destaque { color: var(--laranja-claro); }

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.hero-badges span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--branco);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero interno (páginas de serviço) */
.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 89, 12, 0.22), transparent 45%),
    linear-gradient(135deg, #0B1220 0%, var(--preto) 60%, #16233C 100%);
  color: var(--branco);
  padding: 3.6rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { color: var(--branco); margin-bottom: 0.6rem; }

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a { color: var(--laranja-claro); }

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
}

/* ---------- Seções ---------- */
.section { padding: 4.5rem 0; }

.section-cinza { background: var(--cinza-claro); }

.section-escura {
  background: var(--preto);
  color: rgba(255, 255, 255, 0.85);
}

.section-escura h2, .section-escura h3 { color: var(--branco); }

/* ---------- Cards de serviço ---------- */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servico-card {
  background: var(--branco);
  border: 1px solid #E5E7EB;
  border-radius: var(--raio);
  padding: 2rem 1.7rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-forte);
  border-color: var(--laranja);
}

.servico-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(232, 89, 12, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--laranja);
}

.servico-card h3 { margin-bottom: 0.6rem; }

.servico-card p {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.servico-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--laranja);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.servico-link:hover { color: var(--laranja-escuro); }

/* ---------- Ciclo do terreno ---------- */
.ciclo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ciclo-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--raio);
  padding: 1.8rem;
  position: relative;
}

.ciclo-num {
  font-family: var(--fonte-titulo);
  font-size: 3rem;
  font-weight: 700;
  color: var(--laranja);
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.ciclo-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.ciclo-step p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Diferenciais ---------- */
.diffs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.diff-item {
  text-align: center;
  padding: 1.8rem 1.2rem;
  background: var(--branco);
  border-radius: var(--raio);
  border: 1px solid #E5E7EB;
  transition: transform 0.25s, box-shadow 0.25s;
}

.diff-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}

.diff-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: rgba(232, 89, 12, 0.12);
  color: var(--laranja);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.diff-item p { font-size: 0.88rem; }

/* ---------- Área de atuação ---------- */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.area-pill {
  background: var(--branco);
  border: 1px solid #E5E7EB;
  border-radius: 30px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--preto);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.area-pill:hover {
  background: var(--laranja);
  color: var(--branco);
  border-color: var(--laranja);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--laranja) 0%, var(--laranja-escuro) 100%);
  color: var(--branco);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--branco); margin-bottom: 0.8rem; }

.cta-band p {
  max-width: 620px;
  margin: 0 auto 1.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .btn {
  background: var(--branco);
  color: var(--laranja-escuro);
  margin: 0 0.4rem;
}

.cta-band .btn:hover { background: var(--preto); color: var(--branco); }

/* ---------- Conteúdo de serviço (páginas) ---------- */
.servico-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 3rem;
  align-items: start;
}

.servico-conteudo h2 {
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
}

.servico-conteudo p { margin-bottom: 1.1rem; }

.servico-conteudo ul {
  margin: 0 0 1.4rem 0;
  padding: 0;
}

.servico-conteudo li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.servico-conteudo li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--laranja);
}

.processos {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.processo-item {
  display: flex;
  gap: 1.2rem;
  background: var(--cinza-claro);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--laranja);
}

.processo-num {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--laranja);
  line-height: 1;
  min-width: 34px;
}

.processo-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }

.processo-item p { font-size: 0.92rem; margin: 0; }

.sidebar-card {
  background: var(--cinza-claro);
  border-radius: var(--raio);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid #E5E7EB;
}

.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }

.sidebar-card ul li {
  padding: 0.35rem 0;
  font-size: 0.92rem;
  position: relative;
  padding-left: 1.4rem;
}

.sidebar-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--laranja);
}

.sidebar-card .btn { width: 100%; margin-top: 0.5rem; }

.sidebar-escuro {
  background: var(--preto);
  color: var(--branco);
  border: none;
}

.sidebar-escuro h3 { color: var(--branco); }

.sidebar-escuro p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.sobre-logo-box {
  background: var(--preto);
  border-radius: var(--raio);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.sobre-logo-box img { max-height: 140px; }

.sobre-texto p { margin-bottom: 1rem; }

.dados-empresa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dado-item {
  background: var(--cinza-claro);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.dado-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--laranja);
}

.dado-item .valor { font-weight: 600; color: var(--preto); font-size: 0.95rem; }

/* ---------- Formulário ---------- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contato-info-card {
  background: var(--preto);
  color: var(--branco);
  border-radius: var(--raio);
  padding: 2rem;
}

.contato-info-card h3 { color: var(--branco); margin-bottom: 1.2rem; }

.info-linha {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-linha:last-child { border-bottom: none; }

.info-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(232, 89, 12, 0.2);
  color: var(--laranja-claro);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-linha .rotulo {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.info-linha .valor { font-size: 0.95rem; font-weight: 600; }

.form-card {
  background: var(--branco);
  border: 1px solid #E5E7EB;
  border-radius: var(--raio);
  padding: 2.2rem;
  box-shadow: var(--sombra);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--preto);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font-family: var(--fonte-corpo);
  font-size: 0.95rem;
  color: var(--preto);
  background: var(--branco);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.15);
}

.form-note {
  font-size: 0.82rem;
  color: var(--grafite-medio);
  margin-top: 0.9rem;
  text-align: center;
}

.form-note a { color: var(--laranja); font-weight: 600; }

.map-box {
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 1px solid #E5E7EB;
  margin-top: 2.5rem;
}

.map-box iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--preto);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 0;
  border-top: 3px solid var(--laranja);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand img { height: 48px; margin-bottom: 1rem; }

.footer-brand p { font-size: 0.9rem; max-width: 340px; }

.footer-col h4 {
  color: var(--branco);
  font-family: var(--fonte-corpo);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--laranja-claro); }

.footer-col li { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s, background 0.25s;
}

.whats-float:hover {
  transform: scale(1.08);
  background: var(--whatsapp-escuro);
}

.whats-float svg { width: 30px; height: 30px; }

/* ---------- Responsivo ---------- */
@media (max-width: 992px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .diffs-grid { grid-template-columns: repeat(2, 1fr); }
  .ciclo-steps { grid-template-columns: repeat(2, 1fr); }
  .servico-layout { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85%);
    height: 100vh;
    background: var(--preto);
    padding: 6rem 2rem 2rem;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 95;
  }

  .main-nav.open { right: 0; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .main-nav a {
    display: block;
    padding: 0.8rem 0.4rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta { text-align: center; margin-top: 0.8rem; }

  .drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0.4rem 0 0.4rem 1rem;
  }

  .nav-item-drop { border-bottom: none; }

  .drop-menu a { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

  .servicos-grid { grid-template-columns: 1fr; }
  .ciclo-steps { grid-template-columns: 1fr; }
  .diffs-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dados-empresa { grid-template-columns: 1fr; }

  .hero {
    background:
      linear-gradient(90deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.85) 60%, rgba(11, 18, 32, 0.60) 100%),
      url('../images/fundo-hero.png') center / cover no-repeat;
    padding: 3.8rem 0;
  }

  .footer-grid { grid-template-columns: 1fr; }
}