/* ==========================================================================
   GRUPO BCM — Site institucional
   Folha de estilo única, sem dependências externas.
   Sumário:
     01. Tokens (cores, tipografia, espaçamento)
     02. Base e acessibilidade
     03. Layout e utilitários
     04. Botões
     05. Cabeçalho e navegação
     06. Hero
     07. Marcas do grupo
     08. Seções institucionais (blocos, cards, números)
     09. Áreas de atuação
     10. Diferenciais e método
     11. Projetos (galeria com filtros)
     12. Responsabilidade social
     13. Sustentabilidade
     14. Presença e mapa
     15. Contato e formulário
     16. Rodapé
     17. Páginas de texto (legal)
     18. Animações e responsividade
   ========================================================================== */

/* ============================ 01. TOKENS ================================= */
:root {
  /* Superfícies */
  --bg:            #04070f;
  --bg-soft:       #070d1c;
  --bg-elevated:   #0a1122;
  --surface:       rgba(255, 255, 255, .038);
  --surface-2:     rgba(255, 255, 255, .058);
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .16);

  /* Marca — índigo #2E3192 e verde #22A44A vêm do logotipo oficial do grupo.
     As variantes claras existem para garantir contraste sobre o fundo escuro. */
  --brand-indigo:  #2e3192;
  --brand-green:   #22a44a;
  --blue:          #2f6fe0;
  --blue-soft:     #8aa9ff;
  --cyan:          #29a8e0;
  --green:         #22a44a;
  --green-soft:    #5fdc8b;
  --metal:         #c8d4e8;

  /* Texto */
  --text:          #e9eefb;
  --text-strong:   #ffffff;
  --muted:         #a4b3d0;
  --muted-2:       #7c8bab;

  /* Sinalização */
  --warn:          #f5b942;
  --warn-bg:       rgba(245, 185, 66, .10);
  --ok:            #22c55e;
  --danger:        #ff6b6b;

  /* Gradientes */
  --grad-brand:    linear-gradient(115deg, #2e3192 0%, #1f63d6 54%, #17853b 100%);
  --grad-text:     linear-gradient(100deg, #ffffff 0%, #bcd7ff 44%, #8ef0b4 100%);
  --grad-surface:  linear-gradient(160deg, rgba(46,49,146,.20) 0%, rgba(34,164,74,.07) 100%);

  /* Tipografia */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display:  'Sora', 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Métrica */
  --radius-sm:     12px;
  --radius:        18px;
  --radius-lg:     26px;
  --shadow-sm:     0 6px 20px rgba(0, 0, 0, .28);
  --shadow:        0 18px 46px rgba(0, 0, 0, .40);
  --shadow-lg:     0 30px 80px rgba(2, 8, 24, .60);
  --container:     1240px;
  --gutter:        clamp(18px, 4vw, 40px);
  --section-y:     clamp(64px, 8vw, 118px);
  --header-h:      86px;
}

/* ======================= 02. BASE E ACESSIBILIDADE ======================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, .42vw + 15px, 17.5px);
  line-height: 1.68;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Textura de fundo suave e fixa — dá profundidade sem pesar */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%,  rgba(46, 99, 214, .17), transparent 62%),
    radial-gradient(900px  560px at 6%  12%,  rgba(34, 164, 74, .10),  transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(34, 184, 240, .10), transparent 62%),
    var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 3.55vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.72rem, 3.1vw, 2.62rem); font-weight: 700; }
h3 { font-size: clamp(1.16rem, 1.5vw, 1.38rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }

p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-soft); }

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong, b { color: var(--text-strong); font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Foco visível e consistente em todo o site */
:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Pular para o conteúdo (leitores de tela e teclado) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== 03. LAYOUT E UTILITÁRIOS =========================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(46px, 5.5vw, 76px); }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 70%); }
.section + .section { border-top: 1px solid rgba(255, 255, 255, .045); }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 54px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 16px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(34, 164, 74, .28);
  border-radius: 999px;
  background: rgba(34, 164, 74, .07);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.eyebrow--blue { color: var(--blue-soft); border-color: rgba(46,99,214,.30); background: rgba(46,99,214,.08); }
.eyebrow--blue::before { background: var(--blue-soft); box-shadow: 0 0 12px var(--blue); }

.lede { color: var(--muted); font-size: clamp(1.02rem, 1.1vw, 1.15rem); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Marcador de conteúdo pendente de confirmação documental */
.confirmar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px dashed rgba(245, 185, 66, .48);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  max-width: 100%;
  vertical-align: middle;
}
@media (max-width: 640px) { .confirmar { white-space: normal; } }
.confirmar::before { content: '!'; font-weight: 800; }

/* =============================== 04. BOTÕES ============================== */
.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 17px 30px;
  cursor: pointer;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  box-shadow: 0 12px 30px rgba(46, 49, 146, .38);
}
.btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(46, 49, 146, .50);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  color: var(--text-strong);
  background: var(--surface-2);
  border-color: var(--blue-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.btn--wa {
  background: linear-gradient(120deg, #1faa55, #25d366);
  color: #04231a;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .26);
}
.btn--wa:hover { box-shadow: 0 18px 40px rgba(37, 211, 102, .36); }

.btn--sm { padding: 12px 20px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Link com seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==================== 05. CABEÇALHO E NAVEGAÇÃO ========================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .28s ease, background .28s ease, border-color .28s ease, backdrop-filter .28s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  height: 66px;
  background: rgba(4, 7, 15, .86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header { transition: transform .32s ease, height .28s ease, background .28s ease, border-color .28s ease; }

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}
/* o cabeçalho respira além da grade do conteúdo para acomodar o menu completo */
.site-header .container { max-width: 1420px; }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 62px; width: auto; transition: height .28s ease; }
.site-header.is-stuck .brand img { height: 50px; }

.nav { display: flex; align-items: center; gap: clamp(4px, .9vw, 16px); }
.nav a {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 10px;
  white-space: nowrap;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}
.nav a:hover, .nav a.is-active { color: var(--text-strong); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  color: var(--text-strong);
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .26s ease, top .2s ease;
}
.nav-toggle span::before { top: -6.5px; }
.nav-toggle span::after  { top:  6.5px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after  { top: 0; transform: rotate(-45deg); }

/* Menu móvel */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 7, 15, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: calc(var(--header-h) + 22px) var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
}
.drawer nav a:hover { color: var(--green-soft); }
.drawer .btn { margin-top: 26px; }

body.no-scroll { overflow: hidden; }

/* =============================== 06. HERO ================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.hero::after {
  /* malha técnica discreta */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 62% 34%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 62% 34%, #000 0%, transparent 72%);
  opacity: .7;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: clamp(1.04rem, 1.25vw, 1.2rem); max-width: 44ch; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hero-tags li {
  margin: 0;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
}

/* Composição visual do hero: mosaico de setores em SVG próprio */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-visual svg { width: 100%; height: auto; display: block; border-radius: 20px; }

/* Mosaico de frentes de atuação — conteúdo real, sem foto de banco de imagens */
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 70% 0%, rgba(46, 99, 214, .18), transparent 65%),
    rgba(4, 7, 15, .55);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  transition: transform .26s ease, border-color .26s ease, background .26s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 99, 214, .45);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
}
.tile__ico {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(46, 99, 214, .14);
  border: 1px solid rgba(46, 99, 214, .3);
  color: var(--blue-soft);
  margin-bottom: 9px;
}
.tile:nth-child(3n+1) .tile__ico {
  background: rgba(34, 164, 74, .14);
  border-color: rgba(34, 164, 74, .32);
  color: var(--green-soft);
}
.tile__ico svg { width: 19px; height: 19px; }
@media (max-width: 560px) { .hero-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile b { font-family: var(--font-display); font-size: .93rem; color: var(--text-strong); }
.tile small { font-size: .76rem; color: var(--muted-2); line-height: 1.45; }

.hero-badge {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 13, 28, .94);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 20px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  font-size: .85rem;
  color: var(--muted);
}
.hero-badge strong { color: var(--text-strong); font-family: var(--font-display); }

/* ======================== 07. MARCAS DO GRUPO ============================ */
.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 3 x 2 marcas */
  gap: 16px;
}
@media (max-width: 900px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brands { grid-template-columns: minmax(0, 1fr); } }
.brand-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 99, 214, .40);
  box-shadow: var(--shadow);
}
.brand-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;   /* o logotipo nunca é cortado */
  object-position: center;
  background: #04070f;
}
.brand-card figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px 16px;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.brand-card figcaption b { color: var(--text-strong); font-family: var(--font-display); font-size: .98rem; }
.brand-card figcaption .confirmar { white-space: normal; }

/* ================= 08. SEÇÕES INSTITUCIONAIS E CARDS ===================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}
.split--center { align-items: center; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.panel h3 { margin-bottom: 12px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 13px;
  color: var(--muted);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(34, 164, 74, .14);
  border: 1px solid rgba(34, 164, 74, .5);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 6px; top: .68em;
  width: 5px; height: 9px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.check-list li b { color: var(--text-strong); }

/* Números do grupo */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  width: 100%; height: 3px;
  background: var(--grad-brand);
  opacity: .8;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-strong);
  display: block;
  margin-bottom: 8px;
}
.stat__value--pending { color: var(--muted-2); }
.stat__label { color: var(--muted); font-size: .92rem; display: block; }
.stat .confirmar { margin-top: 12px; }

/* ======================== 09. ÁREAS DE ATUAÇÃO =========================== */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}
.area {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  padding: clamp(24px, 2.4vw, 32px);
  overflow: hidden;
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}
.area::after {
  content: '';
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .26s ease;
}
.area:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 99, 214, .38);
  box-shadow: var(--shadow);
}
.area:hover::after { opacity: 1; }

.area__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(46, 99, 214, .12);
  border: 1px solid rgba(46, 99, 214, .28);
  color: var(--blue-soft);
  margin-bottom: 20px;
}
.area__icon svg { width: 26px; height: 26px; }
.area--green .area__icon {
  background: rgba(34, 164, 74, .12);
  border-color: rgba(34, 164, 74, .30);
  color: var(--green-soft);
}
.area h3 { margin-bottom: 10px; }
.area p { color: var(--muted); font-size: .97rem; }
.area ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.area ul li {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  padding: 6px 11px;
}
.area .area__foot {
  margin-top: auto;
  padding-top: 18px;
  font-size: .85rem;
  color: var(--muted-2);
}
.area__note {
  margin-top: 16px;
  font-size: .84rem;
  color: var(--muted-2);
  border-left: 2px solid rgba(245, 185, 66, .45);
  padding-left: 12px;
}

/* ==================== 10. DIFERENCIAIS E MÉTODO ========================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  transition: border-color .24s ease, background .24s ease;
}
.pillar:hover { border-color: rgba(34, 164, 74, .35); background: var(--surface-2); }
.pillar__mark {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #ffffff;
}
.pillar__mark svg { width: 17px; height: 17px; }
.pillar h4 { margin: 0 0 4px; font-family: var(--font-display); }
.pillar p { font-size: .89rem; color: var(--muted); margin: 0; }

/* Como trabalhamos */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  padding: 28px 24px 24px;
}
.steps li::before {
  content: '0' counter(step);
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .55;
}
.steps h3 { font-size: 1.06rem; margin: 0 0 8px; padding-right: 54px; }
.steps p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ===================== 11. PROJETOS (GALERIA) ============================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}
.filter {
  font-family: var(--font-display);
  font-size: .87rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all .22s ease;
}
.filter:hover { color: var(--text-strong); border-color: var(--line-strong); }
.filter[aria-pressed='true'] {
  color: #ffffff;
  background: var(--grad-brand);
  border-color: transparent;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
}
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform .3s ease, opacity .3s ease, border-color .25s ease;
}
.shot.is-hidden { display: none; }
.shot:hover { transform: translateY(-4px); border-color: rgba(46,99,214,.35); }
.shot__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, rgba(46,99,214,.14), rgba(34,164,74,.08));
  color: var(--muted-2);
  text-align: center;
  padding: 20px;
}
.shot__media svg { width: 46px; height: 46px; opacity: .5; margin-bottom: 10px; }
.shot__media span { display: block; font-size: .8rem; line-height: 1.5; }
.shot__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot__body { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.shot__body h3 { font-size: 1rem; margin: 0 0 5px; }
.shot__body p { font-size: .86rem; color: var(--muted); margin: 0; }
.shot__tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-strong);
  background: rgba(4, 7, 15, .74);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
}
/* Selo discreto: a imagem é ilustração, não registro de obra executada */
.shot__ilustra {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(4, 7, 15, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-note {
  margin-top: 22px;
  font-size: .86rem;
  color: var(--muted-2);
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
}

/* ================== 12. RESPONSABILIDADE SOCIAL ========================== */
.social-block {
  position: relative;
  border: 1px solid rgba(34, 164, 74, .24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(720px 340px at 88% 6%, rgba(34, 164, 74, .16), transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.social-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.social-pillars li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--muted);
  background: rgba(34, 164, 74, .07);
  border: 1px solid rgba(34, 164, 74, .2);
  border-radius: 12px;
  padding: 12px 14px;
}
.social-pillars li svg { width: 17px; height: 17px; color: var(--green-soft); flex: 0 0 auto; }
.social-art {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(4, 7, 15, .45);
  padding: 8px;
}
.social-art svg { width: 100%; height: auto; border-radius: 16px; display: block; }
.social-art figcaption {
  font-size: .78rem;
  color: var(--muted-2);
  padding: 12px 10px 6px;
  text-align: center;
}

/* ======================== 13. SUSTENTABILIDADE =========================== */
.impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
}
.impact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.impact-card__icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(34, 164, 74, .12);
  border: 1px solid rgba(34, 164, 74, .28);
  color: var(--green-soft);
  margin-bottom: 16px;
}
.impact-card__icon svg { width: 22px; height: 22px; }
.impact-card h3 { font-size: 1.04rem; }
.impact-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ======================= 14. PRESENÇA E MAPA ============================= */
.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  min-height: 340px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, rgba(46,99,214,.12), rgba(34,164,74,.06));
}
.map-consent p { color: var(--muted); font-size: .9rem; max-width: 42ch; margin-inline: auto; }

.address-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  padding: clamp(24px, 3vw, 36px);
}
.address-card address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.address-card address b { display: block; color: var(--text-strong); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }


/* Fotos do escritório (sede em Salvador) */
.office {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.office-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform .26s ease, border-color .26s ease;
}
.office-shot:hover { transform: translateY(-3px); border-color: rgba(46, 99, 214, .38); }
.office-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) { .office { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .office { grid-template-columns: minmax(0, 1fr); } }

/* Unidades de apoio */
.units-title {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  margin: clamp(38px, 4vw, 56px) 0 18px;
}
.units {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
}
.unit {
  font-style: normal;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 22px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  transition: border-color .24s ease, transform .24s ease;
}
.unit:hover { border-color: rgba(46, 99, 214, .38); transform: translateY(-3px); }
.unit b {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
}
.unit--sede { border-color: rgba(34, 164, 74, .34); background: rgba(34, 164, 74, .06); }
.unit__tag {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-soft);
  border: 1px solid rgba(34, 164, 74, .4);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ==================== 15. CONTATO E FORMULÁRIO =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list__icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(46, 99, 214, .12);
  border: 1px solid rgba(46, 99, 214, .26);
  color: var(--blue-soft);
}
.contact-list__icon svg { width: 19px; height: 19px; }
.contact-list b { display: block; font-family: var(--font-display); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 3px; }
.contact-list a, .contact-list span { color: var(--text); font-size: 1rem; }
.contact-list a:hover { color: var(--green-soft); }

.form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
}
.field .hint { font-size: .78rem; color: var(--muted-2); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--text);
  background: rgba(4, 7, 15, .55);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4b3d0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.field select option { background: #0a1122; color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: #64749a; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(46, 99, 214, .22);
  background: rgba(4, 7, 15, .8);
}
.field[data-error] input,
.field[data-error] select,
.field[data-error] textarea { border-color: var(--danger); }
.field .error-msg {
  font-size: .8rem;
  color: var(--danger);
  min-height: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}
.consent input[type='checkbox'] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

/* Campo isca anti-spam — invisível para pessoas, sem display:none */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok   { background: rgba(34, 164, 74, .1);  border: 1px solid rgba(34, 164, 74, .38); color: #b7f2cd; }
.form-status--err  { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .38); color: #ffc9c9; }
.form-status a { text-decoration: underline; }

.privacy-note { font-size: .8rem; color: var(--muted-2); margin-top: 16px; }

/* ============================= 16. RODAPÉ ================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 40%);
  padding-top: clamp(48px, 6vw, 76px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 48px);
  padding-bottom: 44px;
}
.footer-brand img { height: 92px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: .92rem; color: var(--muted); max-width: 42ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--green-soft); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: all .22s ease;
}
.socials a:hover { color: var(--text-strong); border-color: var(--blue-soft); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.footer-legal {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  font-size: .84rem;
  color: var(--muted-2);
}
.footer-legal .disclaimer {
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 22px;
  line-height: 1.65;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--text); }

/* Botão flutuante de WhatsApp */
.wa-float {
  position: fixed;
  right: clamp(14px, 2.4vw, 26px);
  bottom: clamp(14px, 2.4vw, 26px);
  z-index: 90;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(120deg, #1faa55, #25d366);
  color: #04101f;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .35);
  transition: transform .24s ease, box-shadow .24s ease;
}
.wa-float:hover { color: #04101f; transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 44px rgba(37, 211, 102, .45); }
.wa-float svg { width: 29px; height: 29px; }

/* ====================== 17. PÁGINAS DE TEXTO ============================= */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(44px, 6vw, 78px));
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.page-hero p { color: var(--muted); max-width: 62ch; }

.prose { max-width: 860px; }
.prose h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 42px 0 14px; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 1rem; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; color: var(--muted); vertical-align: top; }
.prose th { background: rgba(255, 255, 255, .04); color: var(--text-strong); font-family: var(--font-display); }
.prose .callout {
  border-left: 3px solid var(--blue);
  background: rgba(46, 99, 214, .07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--muted);
  font-size: .95rem;
}
.prose .updated { font-size: .85rem; color: var(--muted-2); }

/* ================= 18. ANIMAÇÕES E RESPONSIVIDADE ======================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: .08s; }
.reveal[data-delay='2'] { transition-delay: .16s; }
.reveal[data-delay='3'] { transition-delay: .24s; }

/* Entre 1200px e 1400px o menu completo ainda cabe, desde que o botão
   de WhatsApp fique só com o ícone. */
@media (max-width: 1520px) {
  .nav a { font-size: .86rem; padding: 9px 9px; }
  .nav a::after { left: 9px; right: 9px; }
}

@media (max-width: 1200px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--wa { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .social-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .lede { max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .btn-row { gap: 12px; }
  .btn--sm { width: auto; }
  .hero-badge { position: static; transform: none; margin: 18px auto 0; justify-content: center; white-space: normal; text-align: center; }
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .filter, .area, .stat { border: 1px solid CanvasText; }
}
