/* =========================================================
   MERIDIOTEC — CSS GLOBAL
   Compartilhado entre: hub (/), /rural, /topografia, /urbano
   Contém: reset, variáveis, header/nav, dif-bar, marquee,
   botões, footer, whatsapp float, animações e helpers de seção.

   Cada página mantém em seu próprio <style> apenas o CSS das
   seções exclusivas dela (ex: #inimigo, #mecanismo, #oferta).
========================================================= */

:root {
  --verde: #1F5C3B;
  --verde-escuro: #163A26;
  --vermelho: #FF3B30;
  --off-white: #f7f5f0;
  --branco: #ffffff;
  --texto: #2d2d2d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Barlow", sans-serif; color: var(--texto); background: var(--off-white); overflow-x: hidden; }

/* =========================================================
   HEADER
========================================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #111;
  border-bottom: 3px solid var(--vermelho);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.header-brand-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255,59,48,.35));
}
.header-brand-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}
.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 5px;
}
.header-brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}
.header-brand-sub {
  font-family: "Barlow", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  line-height: 1;
}

/* Navegação central entre as 3 frentes de serviço */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.header-nav a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.header-nav a.active { color: #fff; background: rgba(255,59,48,.16); }

/* Microcopy central (usado quando não há nav, ex: hub) */
.microcopy-header {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 6px 18px;
  max-width: 220px;
}
.microcopy-header::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vermelho);
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* Botão header */
.btn-header {
  background: var(--vermelho);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.btn-header:hover { background: #c8002a; transform: translateY(-1px); }

@media (max-width: 900px) {
  .header-nav { display: none; }
}

/* =========================================================
   BARRA DE DIFERENCIAIS (usada nas páginas de serviço)
   Layout: [logo-clara] | [ícone col] | [ícone col] | [ícone col] | [ícone col]
========================================================= */
#dif-bar {
  background: #fff;
  border-bottom: 1px solid #e5e0d8;
  position: relative;
  z-index: 3;
}

.dif-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  min-height: 90px;
}

.dif-logo-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 28px 16px 0;
  border-right: 1px solid #ddd;
  flex-shrink: 0;
  gap: 4px;
}
.dif-logo-col .dif-brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dif-logo-col .dif-icon-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.dif-logo-col .dif-brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2.5px;
  color: #163A26;
  text-transform: uppercase;
}
.dif-logo-col .dif-brand-sub {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #999;
  padding-left: 41px;
}

.dif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-right: 1px solid #eee;
  flex: 1;
}
.dif-item:last-child { border-right: none; }

.dif-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vermelho);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255,59,48,.28);
}

.dif-text strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.2;
}
.dif-text span {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .dif-logo-col { display: none; }
  .dif-inner { flex-wrap: wrap; min-height: auto; padding: 12px 16px; gap: 8px; }
  .dif-item { border-right: none; padding: 8px 10px; flex: 1 1 44%; min-width: 140px; }
}
@media (max-width: 480px) {
  .dif-item { flex: 1 1 100%; }
}

/* =========================================================
   MARQUEE
========================================================= */
.marquee-section {
  background: var(--vermelho);
  padding: 13px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  padding: 0 32px;
}
.marquee-track span::after { content: "◆"; margin-left: 32px; color: rgba(255,255,255,.4); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* =========================================================
   HELPERS DE SEÇÃO (usados em praticamente toda página)
========================================================= */
section { padding: 80px 24px; }
.container { max-width: 1080px; margin: 0 auto; }

.section-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--vermelho);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-size: clamp(28px,4vw,44px);
  line-height: 1.1; color: var(--verde-escuro);
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title .vermelho { color: var(--vermelho); }
.section-desc { font-size: 17px; color: #555; line-height: 1.7; max-width: 640px; }

/* botão CTA genérico (usado em várias seções) */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--vermelho); color: #fff;
  font-family:"Barlow Condensed",sans-serif; font-weight:800;
  font-size:20px; letter-spacing:1.5px; text-transform:uppercase;
  padding: 20px 44px; border-radius:4px; text-decoration:none;
  box-shadow: 0 8px 32px rgba(255,59,48,.4);
  transition: all .25s; border: none; cursor: pointer;
}
.btn-cta:hover { background:#c8002a; transform:translateY(-3px); box-shadow:0 14px 40px rgba(255,59,48,.5); }

.btn-branco {
  display:inline-flex; align-items:center; gap:10px;
  background:#fff; color:var(--vermelho);
  font-family:"Barlow Condensed",sans-serif; font-weight:800;
  font-size:20px; letter-spacing:1px; text-transform:uppercase;
  padding:20px 48px; border-radius:4px; text-decoration:none;
  box-shadow:0 8px 32px rgba(0,0,0,.2); transition:all .2s;
}
.btn-branco:hover { transform:translateY(-3px); box-shadow:0 14px 40px rgba(0,0,0,.3); }

/* fade-up (animação de entrada ao rolar a página) */
.fade-up { opacity:0; transform:translateY(30px); transition:opacity .6s ease,transform .6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* =========================================================
   FOOTER
========================================================= */
footer { background:#0d0d0d; color:rgba(255,255,255,.6); padding:40px 24px; text-align:center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-brand-icon { width: 46px; height: 46px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(255,59,48,.3)); }
.footer-brand-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1;
  gap: 5px;
}
.footer-brand-name {
  font-family:"Barlow Condensed",sans-serif; font-weight:900;
  font-size:28px; letter-spacing:4px; color:#fff; text-transform:uppercase; line-height:1;
}
.footer-brand-sub {
  font-size:8px; font-weight:600; letter-spacing:2.5px;
  text-transform:uppercase; color:rgba(255,255,255,.3); line-height:1;
}
.footer-nav { margin: 4px 0 18px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.footer-nav a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.55); text-decoration: none;
}
.footer-nav a:hover { color: var(--vermelho); }
footer p { font-size:13px; line-height:1.7; max-width:500px; margin:0 auto; }
footer a { color:rgba(255,255,255,.5); text-decoration:none; }
footer a:hover { color:var(--vermelho); }
.footer-divider { width:48px; height:2px; background:var(--vermelho); margin:18px auto; border:none; }

/* =========================================================
   WHATSAPP FLOAT
========================================================= */
.whatsapp-float {
  position:fixed; bottom:28px; right:28px; z-index:999;
  width:60px; height:60px; background:#25D366; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 24px rgba(37,211,102,.45); text-decoration:none;
  animation:waBounce 2s ease-in-out infinite; transition:transform .2s;
}
.whatsapp-float:hover { transform:scale(1.1); animation:none; }
@keyframes waBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }

/* =========================================================
   RESPONSIVO GERAL
========================================================= */
@media (max-width:480px) {
  section { padding:60px 16px; }
  .header-brand-name { font-size:20px; }
  .header-brand-sub { font-size:7px; }
}
