/* ============================================================
   reform.css — componentes da reformulação (seletor PF/PJ,
   barra de perfil, bloco institucional e páginas institucionais).
   Depende das variáveis e classes de styles.css.
   ============================================================ */

/* ─── PALETA: Carvão + Dourado + Prédios ────────────────── */
/* adiciona camadas de carvão e prata/platina ao tema existente */
:root {
  --char1:     #171717;  /* carvão  */
  --char2:     #262626;  /* grafite */
  --silver:    #B2B3B5;  /* prata   */
  --silver-lt: #E0E1E2;  /* platina */
  --hairline:  rgba(178,179,181,0.12);
}

/* HERO com skyline de prédios (P&B) atrás, sob overlay escuro */
#hero {
  background:
    linear-gradient(180deg, rgba(13,13,13,0.80) 0%, rgba(13,13,13,0.64) 45%, rgba(18,16,10,0.84) 100%),
    url("skyline.jpg") center bottom / cover no-repeat,
    #0D0D0D !important;
}
.hero-glow { opacity: 0.85; }

/* profundidade "encorpada": seções alternadas em carvão + hairline de prata */
#sobre, #contato { background: var(--char1); }
#equipe { background: var(--black); }
#sobre, #equipe, #contato, #institucional {
  border-top: 1px solid var(--hairline);
}

/* prédios como fundo da seção Áreas de Atuação (atrás dos cards) */
#areas {
  background:
    linear-gradient(rgba(13,13,13,0.84), rgba(13,13,13,0.88)),
    url("skyline.jpg") center / cover no-repeat,
    var(--black);
}

/* prata como apoio estrutural (sem competir com o dourado) */
/* cards em vidro fosco translúcido: os prédios aparecem por trás */
.area-card {
  border-color: var(--hairline);
  background: rgba(18,18,18,0.58);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.area-card:hover { background: rgba(28,28,28,0.78) !important; }
.area-card .card-number { color: rgba(178,179,181,0.10); }
.stat-item { border-left: 1px solid var(--hairline); padding-left: 1.2rem; }
.stat-item:first-child { border-left: none; padding-left: 0; }

/* faixa sutil de prédios subindo no rodapé do seletor */
body.selector-body::after {
  content: '';
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 44vh; z-index: 0; pointer-events: none;
  background: url("skyline.jpg") center bottom / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
body.selector-body .selector-wrap,
body.selector-body .selector-foot { position: relative; z-index: 1; }

/* ─── SELETOR PF/PJ (homepage) ──────────────────────────── */
/* o seletor não carrega o cursor custom (GSAP), então reabilita o nativo */
body.selector-body,
body.selector-body a,
body.selector-body .selector-card { cursor: auto; }

body.selector-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212,175,55,0.10), transparent 60%),
    var(--black);
}
.selector-wrap {
  flex: 1;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 6vw 3rem;
  gap: 2.4rem;
}
.selector-brand { height: 96px; width: auto; filter: invert(1); }
.selector-head { max-width: 720px; }
.selector-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.selector-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--light);
}
.selector-title em { font-style: italic; color: var(--gold); }
.selector-sub {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

.selector-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 1.8rem;
  width: 100%;
  max-width: 720px;
}
.selector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.6rem 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--light);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.selector-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.selector-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.55); background: #1c1c1c; }
.selector-card:hover::before { transform: scaleX(1); }
.selector-card-icon {
  width: 56px; height: 56px;
  color: var(--gold);
}
.selector-card-icon svg { width: 100%; height: 100%; }
.selector-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
}
.selector-card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}
.selector-card-cta {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}
.selector-card-cta svg { width: 16px; height: 16px; }

.selector-resume {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.selector-resume a { color: var(--gold); text-decoration: underline; }

/* ─── HOME · CONTATO (abaixo dos cards) ─────────────────── */
#contato.home-contato {
  position: relative;
  z-index: 1;
  /* fundo translúcido: deixa o skyline fixo continuar por trás do contato */
  background: linear-gradient(to bottom, var(--black) 0%, rgba(13,13,13,0.78) 45%, rgba(13,13,13,0.45) 100%);
  border-top: 1px solid var(--hairline);
  padding: 7rem 6vw;
}
@media (max-width: 600px) {
  .home-contato { padding: 4.5rem 6vw; }
}

.selector-foot {
  text-align: center;
  padding: 1.6rem 6vw 2.4rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}
.selector-foot a { color: inherit; text-decoration: underline; }

@media (max-width: 600px) {
  .selector-cards { grid-template-columns: 1fr; max-width: 360px; }
  .selector-wrap { gap: 1.8rem; }
}

/* ─── BARRA DE TROCA DE PERFIL (ambientes) ──────────────── */
.profile-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.profile-switch a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.profile-switch a:hover { border-color: var(--gold); }

/* ─── BLOCO COMPROMISSO INSTITUCIONAL (PJ) ──────────────── */
#institucional { background: var(--black2); }
.inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
}
.inst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2.2rem 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--light);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.inst-card:hover { transform: translateY(-5px); border-color: rgba(212,175,55,0.55); background: #1c1c1c; }
.inst-card-icon { width: 42px; height: 42px; color: var(--gold); }
.inst-card-icon svg { width: 100%; height: 100%; }
.inst-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
}
.inst-card-desc { font-size: 0.9rem; font-weight: 300; color: var(--muted); line-height: 1.55; }
.inst-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}
.inst-card-cta svg { width: 15px; height: 15px; }

/* ─── PÁGINAS INSTITUCIONAIS ─────────────────────────────── */
.page-hero {
  padding: 9rem 6vw 4rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.72) 0%, rgba(13,13,13,0.62) 100%),
    url("skyline.jpg") center / cover no-repeat,
    radial-gradient(900px 400px at 50% -20%, rgba(212,175,55,0.10), transparent 60%),
    var(--black);
}
.page-hero .section-label { display: block; margin-bottom: 1rem; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: var(--light);
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero .page-lead {
  max-width: 760px;
  margin: 1.4rem auto 0;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
}
.prose p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245,245,245,0.85);
  margin-bottom: 1.4rem;
  text-align: justify;
  hyphens: auto;
}
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--light);
  margin: 2.6rem 0 1rem;
}
.prose h2 em { font-style: italic; color: var(--gold); }

.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 1.6rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--light);
}

.todo-flag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: rgba(212,175,55,0.12);
  border: 1px dashed rgba(212,175,55,0.5);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
}

/* eixos / frentes / metas — cartões ESG */
.esg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.esg-card {
  padding: 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.esg-card .esg-eixo {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.esg-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--light);
}
.esg-card p { font-size: 0.9rem; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* tabela de metas / frentes */
.data-table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
  font-weight: 300;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.data-table td { font-size: 0.92rem; color: rgba(245,245,245,0.82); line-height: 1.55; }
.data-table td:first-child { color: var(--light); white-space: nowrap; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* grid de estados (atuação nacional) */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
  max-width: 1000px;
  margin: 0 auto;
}
.state-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.92rem;
  color: rgba(245,245,245,0.88);
}
.state-chip .uf {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
}
.state-chip.is-highlight { border-color: rgba(212,175,55,0.5); }

/* card de coordenação (Juliana) */
.coord-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.coord-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.coord-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--black2);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
}
.coord-role { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.coord-name { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 500; margin: 0.3rem 0 0.8rem; }
.coord-meta { font-size: 0.92rem; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* CTA de rodapé das páginas institucionais */
.page-cta {
  text-align: center;
  padding: 4rem 6vw 5rem;
  background: var(--black2);
}
.page-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.page-cta h2 em { font-style: italic; color: var(--gold); }

/* breadcrumb simples nas institucionais */
.crumb {
  max-width: 1100px;
  margin: 0 auto 2.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .coord-card { grid-template-columns: 1fr; text-align: center; }
  .coord-photo { max-width: 200px; margin: 0 auto; }
}

/* ── Espacamento mais enxuto nas paginas institucionais (PJ) ── */
.inst-page section { padding: 2.6rem 5vw; }
.inst-page .section-header { margin-bottom: 1.8rem; }
.inst-page .page-hero { padding-top: 7rem; padding-bottom: 2.2rem; }
@media (max-width: 700px) {
  .inst-page section { padding: 2.2rem 5vw; }
  .inst-page .section-header { margin-bottom: 1.5rem; }
}

/* ── Iniciativas / acoes na comunidade ── */
.acoes-lista { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.acao-card {
  display: grid; grid-template-columns: 460px 1fr; gap: 2.2rem; align-items: center;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; padding: 1.8rem;
}
.acao-card.reverse .acao-media { order: 2; }
.acao-media { width: 100%; position: relative; }
.acao-media img {
  width: 100%; height: auto; display: block;
  border-radius: 4px; border: 1px solid var(--border);
}
.acao-ig {
  position: absolute; right: 0.7rem; bottom: 0.7rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,13,13,0.74); border: 1px solid rgba(212,175,55,0.55);
  border-radius: 11px; color: var(--gold);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.acao-ig:hover { background: var(--gold); color: #0D0D0D; transform: translateY(-2px); }
.acao-ig svg { width: 21px; height: 21px; }

/* ── Botao WhatsApp (CTA das paginas institucionais) ── mesmo design das LPs */
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  justify-content: center; align-items: center;
}
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
  background: var(--gold); color: var(--black);
  padding: 1.2rem 2.4rem;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.4s ease, transform 0.3s ease;
}
.wa-btn:hover { background: var(--gold-lt); transform: translateY(-2px); }
.wa-btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.acao-ph {
  width: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--black2); color: var(--muted); font-size: 0.8rem; line-height: 1.5;
  padding: 1rem; border: 1px dashed rgba(212,175,55,0.40); border-radius: 4px;
}
.acao-ph span { display: block; }
.acao-eixo { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.acao-title { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 500; margin: 0.3rem 0 0.7rem; }
.acao-card p { font-size: 0.95rem; font-weight: 300; color: var(--muted); line-height: 1.75; margin: 0; }
.acao-card.full { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin: 0 auto; }

@media (max-width: 720px) {
  .acao-card, .acao-card.reverse { grid-template-columns: 1fr; text-align: center; }
  .acao-card.reverse .acao-media { order: 0; }
  .acao-media { max-width: 380px; margin: 0 auto; }
}
