/* ============================================================
   Brasil Urbanismo — Tema institucional
   Fonte: Urbanist | Paleta: verde premium
   Tokens estruturais centralizados em :root
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Cores — verde premium (ajustáveis depois via Customizer) */
  --green-900: #0F2E22;   /* verde-petróleo profundo (seções dark, rodapé) */
  --green-800: #163D2E;
  --green-700: #1E5440;
  --green-500: #2E7D52;   /* verde de destaque (botões, links, números) */
  --green-400: #3E9A68;
  --green-100: #E4EFE8;   /* verde clarinho (fundos suaves) */

  --sand-50:  #F7F6F2;    /* off-white / areia (fundo principal) */
  --sand-100: #EFEDE6;
  --ink-900:  #1A1A1A;    /* texto principal grafite */
  --ink-600:  #4A524E;    /* texto secundário */
  --ink-400:  #8A918D;    /* texto sutil / labels */
  --line:     #E2E0D9;    /* bordas */
  --white:    #FFFFFF;

  /* Tipografia */
  --font: 'Urbanist', system-ui, -apple-system, sans-serif;

  /* Estrutura / larguras */
  --content-w: 1216px;        /* largura útil do conteúdo */
  --section-px: clamp(20px, 5vw, 80px);   /* respiro lateral fluido */
  --section-py: clamp(64px, 9vw, 128px);  /* respiro vertical das seções */
  --gap: 32px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-btn: 10px;   /* botões levemente arredondados */

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.16);

  /* Transições */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.section { padding-block: var(--section-py); }

.section--dark {
  background: var(--green-900);
  color: var(--sand-50);
}
.section--soft { background: var(--green-100); }

/* ---------- TYPOGRAPHY ---------- */
/* Tag/pill padrão — mesmo estilo da tag do hero, com bolinha piscando */
.label, .hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(46,125,82,0.35);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 24px;
  background: rgba(46,125,82,0.06);
}
.label::before, .hero__tag::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(46,125,82,0.5);
  animation: pill-pulse 1.8s var(--ease) infinite;
}
.section--dark .label,
.hero__tag {
  color: var(--green-400);
  border-color: rgba(62,154,104,0.4);
  background: rgba(62,154,104,0.08);
}
.section--dark .label::before,
.hero__tag::before {
  background: var(--green-400);
  box-shadow: 0 0 0 0 rgba(62,154,104,0.5);
  animation-name: pill-pulse-dark;
}

@keyframes pill-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,125,82,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(46,125,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,125,82,0); }
}
@keyframes pill-pulse-dark {
  0%   { box-shadow: 0 0 0 0 rgba(62,154,104,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(62,154,104,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,154,104,0); }
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }

.h1 { font-size: clamp(40px, 6vw, 72px); }
.h2 { font-size: clamp(30px, 4.2vw, 50px); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 720px;
}
.section--dark .lead { color: rgba(247, 246, 242, 0.78); }

p + p { margin-top: 1em; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(46, 125, 82, 0.28);
}
.btn--primary:hover { background: var(--green-700); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--green-500); color: var(--green-500); transform: translateY(-2px); }

.btn--light {
  background: var(--sand-50);
  color: var(--green-900);
}
.btn--light:hover { background: var(--white); transform: translateY(-2px); }

.section--dark .btn--ghost { color: var(--sand-50); border-color: rgba(247,246,242,0.25); }
.section--dark .btn--ghost:hover { border-color: var(--green-400); color: var(--green-400); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green-500);
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* ---------- IMAGE PLACEHOLDER ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--green-100) 0 14px, #dCE9E0 14px 28px);
  color: var(--green-700);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}
.ph::after {
  content: attr(data-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  text-align: center;
  padding: 0 16px;
}
.section--dark .ph {
  background: repeating-linear-gradient(45deg, var(--green-800) 0 14px, #123528 14px 28px);
  color: var(--green-400);
}

/* ---------- SCROLL REVEAL (animations) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
/* scrim escuro no topo (só quando não scrolled) — garante leitura do menu sobre a foto */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 180px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 45%, transparent 100%);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled {
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: blur(14px);
  padding-block: 12px;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sand-50);
  transition: color .4s var(--ease);
}
.site-header.is-scrolled .brand { color: var(--green-900); }
.brand strong { font-size: 21px; font-weight: 800; }
.brand span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-top: 3px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(247, 246, 242, 0.88);
  position: relative;
  transition: color .3s var(--ease);
}
.site-header.is-scrolled .site-nav a { color: var(--ink-900); }
.nav-toggle span { transition: background .4s var(--ease); }
.site-header:not(.is-scrolled) .nav-toggle span { background: var(--sand-50); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green-500);
  transition: width .3s var(--ease);
}
.site-nav a:hover { color: var(--green-500); }
.site-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-close { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  /* backdrop-filter cria containing-block e prende o painel fixed dentro do header;
     removemos no mobile para o menu lateral ocupar a viewport inteira */
  .site-header.is-scrolled,
  .site-header--solid { backdrop-filter: none; }
  .site-nav {
    position: fixed;
    top: 0; right: 0; left: auto;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 84vw);
    display: flex;
    flex-direction: column;
    background: var(--green-900);
    color: var(--sand-50);
    padding: 24px 32px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 110;   /* acima do header (100) para o painel cobrir e o X aparecer */
  }
  body.nav-open .site-nav { transform: none; box-shadow: var(--shadow-md); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 12px; }
  .site-nav a { color: var(--sand-50); font-size: 19px; }
  /* botão de fechar: fixo no topo, acima de tudo, visível só com o menu aberto */
  .nav-close {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 120;
    width: 46px; height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green-700);
    border: 1px solid rgba(247,246,242,0.3);
    transition: background .3s var(--ease), transform .3s var(--ease);
  }
  body.nav-open .nav-close { display: flex; }
  .nav-close:hover { background: var(--green-500); border-color: var(--green-500); transform: rotate(90deg); }
  .nav-close svg { width: 20px; height: 20px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   HERO (imagem full-bleed + card flutuante — estilo Sunex)
   ============================================================ */
.hero {
  min-height: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* conteúdo alinhado embaixo */
  color: var(--sand-50);
  padding-top: clamp(170px, 22vh, 240px);
  padding-bottom: clamp(70px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  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(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.48) 45%, rgba(0,0,0,.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 30%, rgba(0,0,0,.45) 100%);
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(32px, 5vw, 64px);
}
.hero__content { max-width: 640px; }
.hero .hero__tag {
  color: #fff;
  border-color: rgba(247,246,242,0.5);
  background: rgba(247,246,242,0.12);
}
.hero .hero__tag::before { background: #fff; animation-name: pill-pulse-dark; }
.hero h1 {
  margin-bottom: 24px;
  font-size: 42px;
  line-height: 1.1;
}
.hero h1 em { color: var(--green-400); font-style: normal; }
.hero__sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: rgba(247,246,242,0.88);
  max-width: 560px;
  margin-bottom: 38px;
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero__phone { display: flex; align-items: center; gap: 14px; }
.hero__phone-ic {
  width: 54px; height: 54px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  transition: background .3s var(--ease);
}
.hero__phone:hover .hero__phone-ic { background: var(--green-400); }
.hero__phone-ic svg { width: 24px; height: 24px; }
.hero__phone-txt { display: flex; flex-direction: column; line-height: 1.2; }
.hero__phone-txt small { font-size: 13px; color: rgba(247,246,242,0.7); }
.hero__phone-txt strong { font-size: 18px; font-weight: 700; }

/* card flutuante à direita */
.hero__card {
  background: rgba(15,46,34,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(247,246,242,0.14);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.hero__card-media {
  width: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.hero__card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero__card-body { position: relative; }
.hero__card-ic {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  margin-bottom: 14px;
}
.hero__card-ic svg { width: 22px; height: 22px; }
.hero__card-body h3 { font-size: 19px; margin-bottom: 8px; color: var(--sand-50); }
.hero__card-body p { font-size: 14px; line-height: 1.5; color: rgba(247,246,242,0.82); margin-bottom: 14px; }
.hero__card-list { display: flex; flex-direction: column; gap: 8px; }
.hero__card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(247,246,242,0.92);
}
.hero__card-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-400);
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__card { max-width: 520px; }
}
@media (max-width: 760px) {
  /* sobe o conteúdo: menos respiro acima no mobile */
  .hero { padding-top: clamp(120px, 20vw, 150px); }
}
@media (max-width: 560px) {
  .hero__card { grid-template-columns: 1fr; }
  .hero__card-media { width: 100%; aspect-ratio: 16 / 10; }
  .hero__actions { gap: 20px; }
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 18px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  overflow: hidden;
  max-width: 60px;
  transition: max-width .45s var(--ease), background .3s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float span {
  white-space: nowrap;
  opacity: 0;
  margin-left: 0;
  transition: opacity .35s var(--ease), margin-left .35s var(--ease);
}
.wa-float:hover { max-width: 280px; background: #1ebe5b; }
.wa-float:hover span { opacity: 1; margin-left: 12px; }
@media (max-width: 600px) {
  .wa-float { max-width: 56px; height: 56px; }
  .wa-float:hover { max-width: 56px; }
  .wa-float:hover span { opacity: 0; margin-left: 0; }
}

/* ============================================================
   CARD CLIP — corte transversal no canto superior direito
   ============================================================ */
.clip-card {
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
}
.clip-card::before {
  /* fina linha de destaque no chanfro */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 54px; height: 54px;
  background: var(--green-500);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.clip-card:hover::before { opacity: 1; }

/* ============================================================
   SECTION HEAD (cabeçalho de seção reutilizável)
   ============================================================ */
.section-head { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .label { justify-content: center; }
.section-head .h2 { margin-bottom: 20px; }

/* ============================================================
   SEÇÃO 2 — SOBRE
   ============================================================ */
.sobre__grid {
  display: grid;
  grid-template-columns: 35fr 65fr;
  gap: 40px;
  align-items: stretch;
}
.sobre__visual { position: relative; }
.sobre__visual .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.sobre__visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.sobre__text p { color: var(--ink-600); }
.sobre__text .h2 { margin-bottom: 24px; }

.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 5vw, 72px);
}
.pilar {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pilar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pilar__num {
  font-size: 14px; font-weight: 800;
  color: var(--green-500);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.pilar h3 { font-size: 21px; margin-bottom: 12px; }
.pilar p { font-size: 15.5px; color: var(--ink-600); line-height: 1.6; }

@media (max-width: 900px) {
  .sobre__grid { grid-template-columns: 1fr; }
  .pilares { grid-template-columns: 1fr; }
  .sobre__visual .ph { min-height: 300px; }
}

/* ============================================================
   SEÇÃO 3 — SERVIÇOS (grade de cards de foto, painel fosco)
   ============================================================ */
.servicos { background: #E8ECE8; }   /* cinza com leve tom de verde */
.servicos .section-head { margin-bottom: 56px; }

/* grade: 3 cards retrato em cima + 2 cards largos embaixo */
.servicos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.servico {
  position: relative;
  flex: 0 0 calc((100% - 56px) / 3);   /* 3 por linha na 1ª fileira */
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
/* os dois últimos preenchem a linha inteira (metade cada, formato paisagem) */
.servico:nth-child(4),
.servico:nth-child(5) {
  flex: 1 1 calc((100% - 28px) / 2);
  aspect-ratio: 16 / 10;
}
.servico__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .8s var(--ease);
}
.servico:hover .servico__img { transform: scale(1.06); }
/* véu escuro para legibilidade do texto */
.servico::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15,46,34,0) 28%, rgba(15,46,34,.55) 64%, rgba(15,46,34,.88) 100%);
  transition: background .4s var(--ease);
}
.servico:hover::after {
  background: linear-gradient(180deg, rgba(15,46,34,.2) 0%, rgba(15,46,34,.72) 50%, rgba(15,46,34,.94) 100%);
}

/* badge de ícone verde — fica no fluxo do painel, acima do título */
.servico__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-500);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  margin-bottom: 16px;
  transition: transform .45s var(--ease);
}
.servico__icon svg { width: 25px; height: 25px; }
.servico:hover .servico__icon { transform: translateY(-4px); }

/* número no canto superior do card */
.servico__num {
  position: absolute;
  top: 22px; right: 24px;
  z-index: 1;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  color: #fff;
  opacity: .65;
}

/* painel de texto na base */
.servico__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px 28px;
  color: #fff;
}
.servico__title { font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.servico__lead {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(247,246,242,.85);
}

/* texto completo: oculto, revela no hover/foco */
.servico__full {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows .45s var(--ease), opacity .35s var(--ease), margin-top .45s var(--ease);
}
.servico__full > * { overflow: hidden; }
.servico:hover .servico__full,
.servico:focus-within .servico__full {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}
.servico__full p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247,246,242,.92);
  margin-bottom: 14px;
}
.servico__full .link-arrow { color: var(--green-400); }
/* esconde o resumo quando o texto completo abre (evita redundância) */
.servico:hover .servico__lead,
.servico:focus-within .servico__lead {
  opacity: 0;
  max-height: 0;
  margin: 0;
  transition: opacity .25s var(--ease), max-height .4s var(--ease), margin .4s var(--ease);
}
.servico__lead { max-height: 80px; transition: opacity .3s var(--ease), max-height .4s var(--ease); }

/* faixa de chamada abaixo da grade */
.servicos__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  text-align: center;
}
.servicos__cta-dot {
  width: 38px; height: 38px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-500);
  color: #fff;
  border-radius: 50%;
}
.servicos__cta-dot svg { width: 19px; height: 19px; }
.servicos__cta p {
  font-size: 15.5px;
  color: var(--ink-600);
  margin: 0;
}
.servicos__cta .link-arrow { display: inline-flex; margin-left: 4px; font-weight: 700; }

@media (max-width: 980px) {
  .servico,
  .servico:nth-child(4),
  .servico:nth-child(5) {
    flex: 1 1 calc((100% - 28px) / 2);
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 760px) {
  .servico,
  .servico:nth-child(4),
  .servico:nth-child(5) {
    flex: 1 1 100%;
    aspect-ratio: 3 / 4;   /* mais esticado na vertical no mobile */
  }
  /* no toque não há hover: mostra o texto completo sempre */
  .servico__full { grid-template-rows: 1fr; opacity: 1; margin-top: 14px; }
  .servico__lead { display: none; }
}

/* ============================================================
   SEÇÃO 4 — METODOLOGIA (dark, timeline)
   ============================================================ */
.metodologia .section-head .lead { color: rgba(247,246,242,0.78); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: 36px 0;
  border-top: 1px solid rgba(247,246,242,0.12);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid rgba(247,246,242,0.12); }
.step__num {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1;
  color: var(--green-400);
  letter-spacing: -0.03em;
}
.step__content h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.step__content p { color: rgba(247,246,242,0.74); max-width: 760px; line-height: 1.65; }
.step__num { transition: transform .4s var(--ease), color .4s var(--ease); }
.step:hover .step__num { transform: translateX(6px); color: var(--green-400); }

/* tooltip de imagem que surge no hover da etapa */
.step__thumb {
  position: absolute;
  right: 0;
  top: 50%;
  width: 280px;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-40%) scale(.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 5;
  border: 1px solid rgba(62,154,104,0.3);
}
.step__thumb img, .step__thumb .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; min-height: 0; }
.step { position: relative; }
.step:hover .step__thumb { opacity: 1; transform: translateY(-50%) scale(1); }

@media (max-width: 1100px) { .step__thumb { display: none; } }
@media (max-width: 700px) {
  .step { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
}

/* ============================================================
   SEÇÃO 5 — DIFERENCIAIS (lista com ícones)
   ============================================================ */
.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.diferencial {
  position: relative;
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.diferencial:hover { border-color: var(--green-400); box-shadow: var(--shadow-sm); }
.diferencial__icon {
  flex: none;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 14px;
}
.diferencial__icon svg { width: 26px; height: 26px; }
.diferencial h3 { font-size: 19px; margin-bottom: 8px; }
.diferencial p { font-size: 15px; color: var(--ink-600); line-height: 1.6; }
.diferencial--last { grid-column: 1 / -1; }

@media (max-width: 800px) {
  .diferenciais__grid { grid-template-columns: 1fr; }
  .diferencial--last { grid-column: auto; }
}

/* ============================================================
   SEÇÃO 6 — EQUIPE (conteúdo dentro de uma caixa verde)
   ============================================================ */
.equipe { background: var(--white); }
.equipe__box {
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
  background: var(--green-900);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(48px, 6vw, 88px) clamp(28px, 5vw, 72px);
  color: var(--sand-50);
}
/* conteúdo interno continua centralizado e legível dentro da caixa larga */
.equipe__box > * { max-width: var(--content-w); margin-inline: auto; }
.equipe__box .h2 { color: var(--sand-50); }
.equipe__box .lead { color: rgba(247,246,242,0.78); }
.equipe__box .label { color: var(--green-400); border-color: rgba(62,154,104,0.4); background: rgba(62,154,104,0.1); }
.equipe__box .label::before { background: var(--green-400); animation-name: pill-pulse-dark; }
.membro { position: relative; }
.membro__body { text-align: center; }
.equipe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.membro {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.membro:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.membro .ph { min-height: 260px; border-radius: 0; }
.membro__body { padding: 22px; }
.membro__body strong { display: block; font-size: 17px; color: var(--ink-900); }
.membro__body span { font-size: 14px; color: var(--green-500); font-weight: 600; }

@media (max-width: 980px) { .equipe__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .equipe__grid { grid-template-columns: 1fr; } }

/* ============================================================
   SEÇÃO 7 — PARA QUEM DESENVOLVEMOS
   ============================================================ */
.clientes__rows { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); }
.cliente-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.cliente-row:nth-child(even) .cliente-row__visual { order: 2; }
.cliente-row__visual .ph,
.cliente-row__visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cliente-row__num {
  font-size: 14px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--green-500); margin-bottom: 14px;
}
.cliente-row h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.cliente-row p { color: var(--ink-600); line-height: 1.7; font-size: 17px; max-width: 100%; }

@media (max-width: 800px) {
  .cliente-row { grid-template-columns: 1fr; gap: 24px; }
  .cliente-row:nth-child(even) .cliente-row__visual { order: -1; }
  .cliente-row__visual { order: -1; }
  .cliente-row__visual .ph { min-height: 240px; }
}

/* ============================================================
   SEÇÃO 8 — BLOG (preview)
   ============================================================ */
.blog__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.blog__top .section-head { margin-bottom: 0; }
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .ph { min-height: 200px; border-radius: 0; }
/* Imagem destacada (WP) padronizada como o placeholder: altura fixa, cover, centralizada.
   Garante que cards de qualquer proporção de imagem fiquem do mesmo tamanho. */
.post-card > img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-500); margin-bottom: 12px;
}
.post-card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 14px; }
.post-card__meta { margin-top: auto; font-size: 14px; color: var(--ink-400); }

@media (max-width: 980px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .blog__grid { grid-template-columns: 1fr; }
  .blog__top { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SEÇÃO 9 — CONTATO (dark + form)
   ============================================================ */
.contato__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 5vw, 72px);
}
.contato__info .lead { margin-bottom: 32px; }
.contato__list { display: flex; flex-direction: column; gap: 18px; }
.contato__list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.contato__list svg { width: 22px; height: 22px; color: var(--green-400); flex: none; }
.contato__list a { color: rgba(247,246,242,0.9); }
.contato__list a:hover { color: var(--green-400); }

.form-card {
  background: var(--sand-50);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  color: var(--ink-900);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-600); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--ink-400); margin-top: 14px; text-align: center; }

@media (max-width: 900px) {
  .contato__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0A2018;
  color: rgba(247,246,242,0.75);
  padding-top: clamp(56px, 7vw, 90px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247,246,242,0.1);
}
.footer__brand strong { display: block; font-size: 24px; font-weight: 800; color: var(--sand-50); margin-bottom: 14px; }
.footer__brand p { max-width: 320px; line-height: 1.6; font-size: 15px; }
.footer__col h4 { color: var(--sand-50); font-size: 15px; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 15px; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--green-400); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-block: 28px;
  font-size: 14px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247,246,242,0.18);
  border-radius: 50%;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.footer__social a:hover { background: var(--green-500); border-color: var(--green-500); }
.footer__social svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   PÁGINAS INTERNAS — HEADER SÓLIDO
   (blog.html, post.html — não há hero escuro atrás)
   ============================================================ */
.site-header--solid {
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.site-header--solid::before { display: none; }
.site-header--solid .brand { color: var(--green-900); }
.site-header--solid .nav-toggle span { background: var(--green-900); }
/* links escuros só no desktop; no mobile o painel lateral é verde escuro com links claros */
@media (min-width: 981px) {
  .site-header--solid .site-nav a { color: var(--ink-900); }
}
/* compensa o header fixo nas páginas internas (NÃO na home: o hero já tem padding-top) */
.page:not(.home) main { padding-top: 86px; }

/* link de menu ativo: só quando o JS marca .is-active (scrollspy) ou aria-current real.
   Os itens com link /#secao NÃO devem ficar destacados o tempo todo na home. */
.site-nav a.is-active { color: var(--green-500); }
.site-nav a.is-active::after { width: 100%; }

/* ============================================================
   PAGE HERO (cabeçalho de páginas internas)
   ============================================================ */
.page-hero {
  background: var(--green-900);
  color: var(--sand-50);
  padding-block: clamp(64px, 9vw, 120px);
  text-align: center;
}
.page-hero .hero__tag { color: var(--green-400); border-color: rgba(62,154,104,0.4); background: rgba(62,154,104,0.08); }
.page-hero .hero__tag::before { background: var(--green-400); animation-name: pill-pulse-dark; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 22px; max-width: 26ch; margin-inline: auto; color: var(--sand-50); }
.page-hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(247,246,242,0.82);
  line-height: 1.65;
  max-width: 760px;
  margin-inline: auto;
}

/* ============================================================
   BLOG — LISTAGEM (busca + filtros + grade)
   ============================================================ */
/* sobe a listagem sobre o hero escuro */
.blog-list--lift {
  margin-top: clamp(-72px, -6vw, -48px);
  padding-top: 0;
  position: relative;
  z-index: 2;
}
.blog-list--lift .blog-toolbar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
}
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.blog-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 380px;
}
.blog-search svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-400);
  pointer-events: none;
}
.blog-search input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-search input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.12);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-600);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--green-500); color: var(--green-500); }
.chip.is-active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* esconde card filtrado sem quebrar o grid */
.post-card[hidden] { display: none; }
.post-card__excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-600);
  margin-bottom: 18px;
}
.blog-empty {
  text-align: center;
  font-size: 17px;
  color: var(--ink-600);
  padding: 48px 0;
}

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search { max-width: none; }
  .blog-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .chip { flex: none; }
}

/* ============================================================
   ARTIGO INDIVIDUAL (post.html)
   ============================================================ */
.article { padding-top: clamp(32px, 5vw, 56px); }
.article__head { padding-bottom: clamp(28px, 4vw, 40px); }
.article__head-inner {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--section-px);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-400);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-600); transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--green-500); }
.breadcrumb .is-current { color: var(--green-500); font-weight: 600; }

.article__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  margin: 14px 0 22px;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-600);
}
.article__meta strong { color: var(--ink-900); }
.article__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-400); }

.article__cover {
  max-width: 980px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding-inline: var(--section-px);
}
.article__cover .ph {
  min-height: clamp(240px, 38vw, 460px);
  border-radius: var(--radius);
}
.article__cover img {
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 460px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.article__body {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--section-px);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-900);
}
.article__lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-600);
  margin-bottom: 36px;
}
.article__body h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 44px 0 18px;
}
.article__body p { margin-bottom: 22px; }
/* Imagens inseridas no corpo do artigo: sempre centralizadas e responsivas. */
.article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: var(--radius);
}
.article__body figure {
  margin: 28px auto;
  text-align: center;
}
.article__body figure img { margin: 0 auto; }
.article__body figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-400);
  text-align: center;
}
/* Respeita os alinhamentos do editor quando o usuário escolher esquerda/direita. */
.article__body .alignleft { float: left; margin: 8px 28px 16px 0; }
.article__body .alignright { float: right; margin: 8px 0 16px 28px; }
.article__body .aligncenter { margin-left: auto; margin-right: auto; }
.article__body ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.article__body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.article__body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}
.article__body blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--green-500);
  background: var(--green-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--green-900);
}

.article__cta {
  max-width: 760px;
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding: 32px;
  margin-inline: max(var(--section-px), calc((100% - 760px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--green-900);
  border-radius: var(--radius);
  color: var(--sand-50);
}
.article__cta h3 { font-size: 21px; margin-bottom: 6px; color: var(--sand-50); }
.article__cta p { color: rgba(247,246,242,0.8); font-size: 15px; }
.article__cta .btn { flex: none; }

.article__share {
  max-width: 760px;
  margin: 32px auto clamp(64px, 9vw, 120px);   /* respiro maior antes da próxima seção */
  padding-inline: var(--section-px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
}
.article__share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--green-700);
  transition: all .3s var(--ease);
}
.article__share a:hover { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.article__share svg { width: 18px; height: 18px; }
