/* ==========================================================================
   INSTITUTO HEBROM — Design System
   Paleta oficial da identidade visual 2025 (verde floresta + sálvia + areia)
   Tipografia: Cormorant Garamond (títulos, editorial/institucional) + Red Hat Display (corpo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Red+Hat+Display:wght@400;500;600;700;800&display=swap');

:root{
  /* --- Cor: identidade Hebrom (hex oficiais do brand book 2025) --- */
  --color-forest-900:#183029;
  --color-forest-800:#1E362E;
  --color-forest-700:#2C4A3D;
  --color-forest-600:#43604F;
  --color-green-500:#577051;
  --color-sage-400:#74956C;
  --color-sage-300:#B0BDB0;
  --color-sage-200:#CBD5C4;
  --color-sage-100:#DCE3D6;
  --color-gold-600:#46644F;
  --color-gold-500:#74956C;
  --color-gold-400:#A9C0A0;
  --color-gold-100:#EDF0E8;

  /* --- Tokens semânticos --- */
  --color-primary: var(--color-forest-800);
  --color-primary-dark: var(--color-forest-900);
  --color-on-primary:#FFFFFF;
  --color-secondary: var(--color-green-500);
  --color-accent: var(--color-green-500);
  --color-on-accent:#FFFFFF;
  --color-background:#F5F4EE;
  --color-surface:#FFFFFF;
  --color-foreground:#20302A;
  --color-muted-foreground:#5B6660;
  --color-muted:#E7E9E1;
  --color-border:#DDE1D6;
  --color-destructive:#B3261E;
  --color-ring: var(--color-forest-700);

  /* --- Tipografia --- */
  --font-heading:'Cormorant Garamond', ui-serif, Georgia, serif;
  --font-body:'Red Hat Display', system-ui, -apple-system, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.9rem;
  --text-5xl: 3.6rem;

  /* --- Espaçamento (escala 4/8) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(21,41,34,0.06), 0 1px 3px rgba(21,41,34,0.08);
  --shadow-md: 0 8px 24px -8px rgba(21,41,34,0.18);
  --shadow-lg: 0 24px 48px -16px rgba(21,41,34,0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --ease-card: cubic-bezier(0.22, 0.61, 0.36, 1);

  --accent-gold: var(--color-gold-500);
  --accent-forest: var(--color-forest-700);
  --accent-green: var(--color-green-500);
  --accent-gold-bg: var(--color-gold-100);
  --accent-forest-bg: var(--color-sage-100);
  --accent-green-bg: #E9EEE5;

  --container-max: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    transition-delay:0ms !important;
    scroll-behavior:auto !important;
  }
}
body{
  margin:0;
  min-height:100dvh;
  background:var(--color-background);
  color:var(--color-foreground);
  font-family:var(--font-body);
  font-size:var(--text-base);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }
input, textarea, select{ font:inherit; }
h1,h2,h3,h4,p,figure{ margin:0; }
:focus-visible{
  outline:3px solid var(--color-ring);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------- Tipografia ---------- */
h1,h2,h3,h4{ font-family:var(--font-heading); color:var(--color-primary-dark); font-weight:600; letter-spacing:-0.01em; }
h1{ font-size:var(--text-5xl); line-height:1.06; font-weight:600; }
h2{ font-size:var(--text-3xl); line-height:1.15; }
h3{ font-size:var(--text-xl); line-height:1.3; }
p{ color:var(--color-muted-foreground); }
.lede{ font-size:var(--text-lg); line-height:1.6; }

.eyebrow{
  display:inline-flex; align-items:center; gap:var(--space-2);
  font-family:var(--font-body); font-weight:700; font-size:var(--text-xs);
  letter-spacing:0.14em; text-transform:uppercase; color:var(--color-gold-600);
}

@media (max-width: 640px){
  h1{ font-size:2.35rem; }
  h2{ font-size:1.7rem; }
  :root{ --text-lg:1.05rem; }
}

/* ---------- Layout ---------- */
.container{
  width:100%; max-width:var(--container-max); margin-inline:auto;
  padding-inline:var(--space-5);
}
@media (min-width:768px){ .container{ padding-inline:var(--space-7); } }

section{ padding-block:var(--space-9); }
.section-tight{ padding-block:var(--space-8); }
@media (max-width:640px){
  section{ padding-block:var(--space-8); }
}

.section-head{
  max-width:640px; margin-bottom:var(--space-7);
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{ margin-top:var(--space-3); }
.section-head p{ margin-top:var(--space-4); }

.grid{ display:grid; gap:var(--space-6); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){
  .grid-3{ grid-template-columns:1fr 1fr; }
  .grid-4{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
}

.bg-forest{ background:var(--color-primary-dark); color:#EDEFE8; }
.bg-forest h2, .bg-forest h3, .bg-forest h4{ color:#FFFFFF; }
.bg-forest p{ color:#C7D0C6; }
.bg-sage{ background:var(--color-sage-100); }
.bg-muted{ background:var(--color-muted); }
.bg-white{ background:var(--color-surface); }

/* ---------- Botões ---------- */
.btn{
  position:relative; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2);
  padding:0.9rem 1.6rem; border-radius:var(--radius-full);
  font-weight:600; font-size:var(--text-sm); white-space:nowrap;
  border:1px solid transparent; cursor:pointer;
  transition:transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
  min-height:48px;
}
.btn svg{ width:18px; height:18px; flex:none; }
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn::after{
  content:''; position:absolute; inset:0; background:rgba(255,255,255,0.16);
  transform:translateX(-101%); transition:transform 0.5s var(--ease-card); pointer-events:none;
}
.btn:hover::after{ transform:translateX(101%); }

.btn-primary{ background:var(--color-accent); color:var(--color-on-accent); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--color-forest-700); box-shadow:var(--shadow-md); }

.btn-outline{ background:transparent; border-color:currentColor; color:var(--color-primary-dark); }
.btn-outline:hover{ background:var(--color-primary-dark); color:#fff; border-color:var(--color-primary-dark); }

.bg-forest .btn-outline{ color:#fff; }
.bg-forest .btn-outline:hover{ background:#fff; color:var(--color-primary-dark); }

.btn-ghost{ background:rgba(255,255,255,0.08); color:#fff; border-color:rgba(255,255,255,0.35); }
.btn-ghost:hover{ background:rgba(255,255,255,0.18); }

.btn-block{ width:100%; }
.btn-sm{ padding:0.6rem 1.1rem; min-height:40px; font-size:var(--text-xs); }

/* ---------- Cards ---------- */
.card{
  position:relative; display:flex; flex-direction:column; height:100%;
  background:var(--color-surface); border:1px solid var(--color-border); border-top:4px solid var(--color-border);
  border-radius:var(--radius-md); padding:var(--space-6); box-shadow:var(--shadow-sm);
  transition:transform var(--duration-base) var(--ease-card), box-shadow var(--duration-base) var(--ease-card), border-color var(--duration-base) var(--ease-card);
  cursor:default;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
a.card, button.card{ cursor:pointer; }

/* Cycling accent top-border for card grids — gives every card grid the
   same organized, color-coded rhythm as the reference site. */
.grid-3 .card:nth-child(3n+1), .grid-4 .card:nth-child(4n+1), .testimonial-track .card:nth-child(3n+1){ border-top-color:var(--accent-gold); }
.grid-3 .card:nth-child(3n+2), .grid-4 .card:nth-child(4n+2), .testimonial-track .card:nth-child(3n+2){ border-top-color:var(--accent-forest); }
.grid-3 .card:nth-child(3n+3), .grid-4 .card:nth-child(4n+3), .testimonial-track .card:nth-child(3n+3){ border-top-color:var(--accent-green); }
.grid-4 .card:nth-child(4n+4){ border-top-color:var(--accent-forest); }
.grid-2 .card:nth-child(odd){ border-top-color:var(--accent-gold); }
.grid-2 .card:nth-child(even){ border-top-color:var(--accent-forest); }
.grid-2 .card:nth-child(odd) .icon-badge{ background:var(--accent-gold-bg); color:var(--color-gold-600); }
.grid-2 .card:nth-child(even) .icon-badge{ background:var(--accent-forest-bg); color:var(--accent-forest); }
.grid-2 .card:nth-child(odd):hover .icon-badge{ background:var(--accent-gold); color:#fff; }
.grid-2 .card:nth-child(even):hover .icon-badge{ background:var(--accent-forest); color:#fff; }

/* Icon badge tint follows the same cycle, and fills solid on card hover:
   a small "flip" moment that reads as intentional and alive rather than
   a static illustration. */
.grid-3 .card:nth-child(3n+1) .icon-badge, .grid-4 .card:nth-child(4n+1) .icon-badge{ background:var(--accent-gold-bg); color:var(--color-gold-600); }
.grid-3 .card:nth-child(3n+2) .icon-badge, .grid-4 .card:nth-child(4n+2) .icon-badge{ background:var(--accent-forest-bg); color:var(--accent-forest); }
.grid-3 .card:nth-child(3n+3) .icon-badge, .grid-4 .card:nth-child(4n+3) .icon-badge{ background:var(--accent-green-bg); color:var(--accent-green); }
.grid-4 .card:nth-child(4n+4) .icon-badge{ background:var(--accent-forest-bg); color:var(--accent-forest); }

.grid-3 .card:nth-child(3n+1):hover .icon-badge{ background:var(--accent-gold); color:#fff; }
.grid-3 .card:nth-child(3n+2):hover .icon-badge{ background:var(--accent-forest); color:#fff; }
.grid-3 .card:nth-child(3n+3):hover .icon-badge{ background:var(--accent-green); color:#fff; }
.grid-4 .card:nth-child(4n+1):hover .icon-badge{ background:var(--accent-gold); color:#fff; }
.grid-4 .card:nth-child(4n+2):hover .icon-badge{ background:var(--accent-forest); color:#fff; }
.grid-4 .card:nth-child(4n+3):hover .icon-badge{ background:var(--accent-green); color:#fff; }
.grid-4 .card:nth-child(4n+4):hover .icon-badge{ background:var(--accent-forest); color:#fff; }

/* Equal-height, tidy text in card grids regardless of copy length.
   Scoped to .news-card only (listagens de projetos/notícias, onde vários
   cards de tamanhos de texto variados precisam alinhar) — nunca em cards
   de conteúdo institucional (Missão, Valores, Pilares etc.), onde cortar
   texto no meio da frase é pior do que uma altura desigual. */
.news-card h3{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.news-card p, .news-body p{
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

.icon-badge{
  width:56px; height:56px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  background:var(--color-sage-100); color:var(--color-primary-dark);
  margin-bottom:var(--space-5);
  transition:background var(--duration-base) var(--ease-card), color var(--duration-base) var(--ease-card);
}
.icon-badge svg{ width:28px; height:28px; }
.icon-badge.gold{ background:var(--color-gold-100); color:var(--color-gold-600); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header{
  position:sticky; top:0; left:0; right:0; z-index:100;
  background:rgba(251,250,246,0.88);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--color-border);
  transition:box-shadow var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), backdrop-filter var(--duration-base) var(--ease-out);
}
.site-header.is-scrolled{ box-shadow:var(--shadow-sm); }

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:var(--space-3); gap:var(--space-5);
}
.nav-brand{ display:flex; align-items:center; gap:var(--space-3); color:var(--color-primary-dark); transition:color var(--duration-base) var(--ease-out); }
.nav-brand img{ width:38px; height:38px; flex:none; }
.nav-brand__mark{ position:relative; width:38px; height:38px; flex:none; }
.nav-brand__mark img{ position:absolute; inset:0; }
.nav-brand span{ font-family:var(--font-heading); font-weight:600; font-size:1.3rem; letter-spacing:0.01em; line-height:1; }

.nav-links{ display:flex; align-items:center; gap:var(--space-6); }
.nav-links a{
  font-weight:600; font-size:var(--text-sm); color:var(--color-foreground);
  position:relative; padding-block:var(--space-2);
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--color-accent); transition:right var(--duration-base) var(--ease-out);
  border-radius:2px;
}
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }
.nav-links a.active{ color:var(--color-primary-dark); }

.nav-actions{ display:flex; align-items:center; gap:var(--space-3); }
.nav-cta{ display:none; }
@media (min-width:1024px){ .nav-cta{ display:inline-flex; } }

.nav-toggle{
  display:flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:var(--radius-sm); border:1px solid var(--color-border);
  background:var(--color-surface);
}
.nav-toggle svg{ width:22px; height:22px; }
@media (min-width:1024px){ .nav-toggle{ display:none; } }
@media (max-width:1023px){ .nav-links{ display:none; } }

/* Mobile drawer */
.mobile-drawer{
  position:fixed; inset:0; z-index:200;
  background:var(--color-primary-dark);
  color:#fff;
  transform:translateX(100%);
  transition:transform var(--duration-base) var(--ease-out);
  display:flex; flex-direction:column;
  padding:var(--space-5);
}
.mobile-drawer.open{ transform:translateX(0); }
.mobile-drawer-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:var(--space-7); }
.mobile-drawer-close{ width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; }
.mobile-drawer-close svg{ width:20px; height:20px; }
.mobile-drawer nav{ display:flex; flex-direction:column; gap:var(--space-2); }
.mobile-drawer nav a{
  font-family:var(--font-heading); font-size:var(--text-2xl); padding-block:var(--space-3);
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.mobile-drawer-footer{ margin-top:auto; display:flex; flex-direction:column; gap:var(--space-4); }
body.no-scroll{ overflow:hidden; }

/* ==========================================================================
   HERO (ver seção HERO SLIDER mais abaixo — versão completa em tela cheia)
   ========================================================================== */

/* ==========================================================================
   PILARES
   ========================================================================== */
.pillar-card{ text-align:left; }
.pillar-card h3{ margin-bottom:var(--space-3); }

/* ==========================================================================
   IMPACTO (stats strip)
   ========================================================================== */
.stats-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-6);
  text-align:center;
}
@media (max-width:900px){ .stats-strip{ grid-template-columns:1fr 1fr; } }
.stat b{
  display:block; font-family:var(--font-heading); font-size:var(--text-4xl);
  color:var(--color-gold-400); line-height:1;
}
.stat span{ display:block; margin-top:var(--space-3); font-size:var(--text-sm); color:#C7D0C6; }

/* ==========================================================================
   QUEM SOMOS
   ========================================================================== */
.about-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:var(--space-8); align-items:center; }
@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; } }
.about-media{ position:relative; border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:4/3; box-shadow:var(--shadow-md); }
.about-media img{ width:100%; height:100%; object-fit:cover; object-position:center 42%; }
.about-tags{ display:flex; gap:var(--space-3); flex-wrap:wrap; margin-top:var(--space-6); }
.tag{
  display:inline-flex; align-items:center; gap:var(--space-2);
  padding:0.5rem 0.95rem; border-radius:var(--radius-full);
  background:var(--color-sage-100); color:var(--color-forest-700);
  font-size:var(--text-xs); font-weight:700; letter-spacing:0.02em;
}
.tag svg{ width:14px; height:14px; }
.legal-strip{
  display:flex; gap:var(--space-6); margin-top:var(--space-6); flex-wrap:wrap;
  padding-top:var(--space-6); border-top:1px solid var(--color-border);
}
.legal-strip div b{ display:block; font-family:var(--font-heading); font-size:var(--text-lg); color:var(--color-primary-dark); }
.legal-strip div span{ font-size:var(--text-xs); color:var(--color-muted-foreground); }

/* ==========================================================================
   PROJETO EM DESTAQUE
   ========================================================================== */
.project-card{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  border-radius:var(--radius-lg); overflow:hidden; background:var(--color-surface);
  box-shadow:var(--shadow-md); border:1px solid var(--color-border);
}
@media (max-width:900px){ .project-card{ grid-template-columns:1fr; } }
.project-media{ position:relative; min-height:340px; }
.project-media img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.project-body{ padding:var(--space-8); display:flex; flex-direction:column; gap:var(--space-5); }
.project-list{ display:flex; flex-direction:column; gap:var(--space-3); }
.project-list li{ display:flex; gap:var(--space-3); align-items:flex-start; color:var(--color-foreground); font-size:var(--text-sm); }
.project-list svg{ width:20px; height:20px; flex:none; color:var(--color-gold-600); margin-top:2px; }

/* Painel de destaques dentro do artigo do projeto — separa a lista do texto
   corrido, em vez de deixar tudo espremido em sequência dentro do .prose. */
.project-highlights{
  background:var(--color-sage-100); border-radius:var(--radius-lg);
  padding:var(--space-6) var(--space-7); margin-block:var(--space-7);
}
.project-highlights__title{
  font-family:var(--font-heading); font-weight:600; font-size:var(--text-xl);
  color:var(--color-primary-dark); margin-bottom:var(--space-5);
}
.project-highlights .project-list{
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4) var(--space-6);
}
.project-highlights .project-list li{ font-size:var(--text-base); line-height:1.5; }
.project-highlights .project-list svg{
  width:38px; height:38px; padding:9px; box-sizing:border-box; margin-top:0;
  border-radius:var(--radius-sm); background:var(--color-surface); color:var(--color-green-500);
}
@media (max-width:640px){
  .project-highlights{ padding:var(--space-5); }
  .project-highlights .project-list{ grid-template-columns:1fr; }
}

.gallery{
  display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4);
}
@media (max-width:640px){ .gallery{ grid-template-columns:1fr 1fr; } }
.gallery-item{
  border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:1/1; position:relative;
  cursor:pointer; border:none; padding:0;
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform var(--duration-base) var(--ease-out); }
.gallery-item:hover img{ transform:scale(1.06); }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:300; background:rgba(21,41,34,0.92);
  display:flex; align-items:center; justify-content:center; padding:var(--space-6);
  opacity:0; pointer-events:none; transition:opacity var(--duration-base) var(--ease-out);
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:min(900px,90vw); max-height:82vh; border-radius:var(--radius-md); box-shadow:var(--shadow-lg); }
.lightbox-close{
  position:absolute; top:var(--space-5); right:var(--space-5);
  width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,0.12); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close svg{ width:22px; height:22px; }

/* Expandable gallery (hover-expand strip) + navigable lightbox */
.expand-gallery{ display:flex; gap:var(--space-3); height:420px; }
.expand-gallery-item{
  flex:1; min-width:0; position:relative; overflow:hidden; border-radius:var(--radius-sm);
  cursor:pointer; border:none; padding:0;
  transition:flex 0.5s ease-in-out;
}
.expand-gallery:hover .expand-gallery-item{ flex:0.5; }
.expand-gallery:hover .expand-gallery-item:hover{ flex:2; }
.expand-gallery-item img{ width:100%; height:100%; object-fit:cover; }
.expand-gallery-item::before{
  content:''; position:absolute; inset:0; background:rgba(15,28,23,0.28);
  transition:opacity var(--duration-base) var(--ease-out);
}
.expand-gallery-item:hover::before{ opacity:0; }
@media (max-width:768px){
  .expand-gallery{ flex-direction:column; height:auto; }
  .expand-gallery-item{ height:200px; flex:none !important; }
}

.expand-lightbox{
  position:fixed; inset:0; z-index:300; background:rgba(21,41,34,0.94);
  display:flex; align-items:center; justify-content:center; padding:var(--space-6);
  opacity:0; pointer-events:none; transition:opacity var(--duration-base) var(--ease-out);
}
.expand-lightbox.open{ opacity:1; pointer-events:auto; }
.expand-lightbox img{ max-width:min(900px,88vw); max-height:80vh; border-radius:var(--radius-md); box-shadow:var(--shadow-lg); }
.expand-lightbox-close, .expand-lightbox-prev, .expand-lightbox-next{
  position:absolute; width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,0.12); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.expand-lightbox-close svg, .expand-lightbox-prev svg, .expand-lightbox-next svg{ width:22px; height:22px; }
.expand-lightbox-close{ top:var(--space-5); right:var(--space-5); }
.expand-lightbox-prev{ left:var(--space-5); top:50%; transform:translateY(-50%); }
.expand-lightbox-next{ right:var(--space-5); top:50%; transform:translateY(-50%); }
.expand-lightbox-counter{
  position:absolute; bottom:var(--space-5); left:50%; transform:translateX(-50%);
  color:#fff; font-size:var(--text-sm); background:rgba(255,255,255,0.12); padding:0.4rem 1rem; border-radius:var(--radius-full);
}
@media (max-width:640px){
  .expand-lightbox-prev, .expand-lightbox-next{ width:40px; height:40px; }
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.testimonial-track{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-6); }
@media (max-width:900px){ .testimonial-track{ grid-template-columns:1fr; } }
.testimonial-card{ display:flex; flex-direction:column; gap:var(--space-5); }
.testimonial-quote{ font-family:var(--font-heading); font-size:var(--text-lg); color:var(--color-primary-dark); font-style:italic; line-height:1.5; }
.testimonial-person{ display:flex; align-items:center; gap:var(--space-3); margin-top:auto; }
.avatar-mono{
  width:44px; height:44px; border-radius:50%; background:var(--color-sage-100);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-heading);
  color:var(--color-primary-dark); font-weight:600;
}
.testimonial-person b{ display:block; font-size:var(--text-sm); }
.testimonial-person span{ font-size:var(--text-xs); color:var(--color-muted-foreground); }

/* ==========================================================================
   NOTÍCIAS
   ========================================================================== */
.news-card{ display:flex; flex-direction:column; padding:0; overflow:hidden; }
.news-thumb{ aspect-ratio:16/10; background:var(--color-sage-100); position:relative; display:flex; align-items:center; justify-content:center; color:var(--color-forest-600); overflow:hidden; }
.news-thumb img{ transition:transform 0.6s var(--ease-card); }
.news-card:hover .news-thumb img{ transform:scale(1.06); }
.news-thumb svg{ width:40px; height:40px; }
.news-body{ padding:var(--space-6); display:flex; flex-direction:column; gap:var(--space-3); }
.news-meta{ display:flex; gap:var(--space-3); align-items:center; font-size:var(--text-xs); color:var(--color-muted-foreground); text-transform:uppercase; letter-spacing:0.04em;}
.news-meta .tag{ background:var(--color-gold-100); color:var(--color-gold-600); }
.news-link{ margin-top:var(--space-2); font-weight:700; font-size:var(--text-sm); color:var(--color-primary-dark); display:inline-flex; align-items:center; gap:var(--space-2); }
.news-link svg{ width:16px; height:16px; transition:transform var(--duration-fast) var(--ease-out); }
.news-card:hover .news-link svg{ transform:translateX(4px); }

/* ==========================================================================
   COMO APOIAR
   ========================================================================== */
.support-card{ display:flex; flex-direction:column; height:100%; }
.support-card p{ flex:1; }
.support-card .btn{ margin-top:var(--space-5); align-self:flex-start; }
.support-card--cta{ background:var(--color-primary-dark); border-color:var(--color-primary-dark); }
.grid-3 .support-card--cta, .grid-4 .support-card--cta{ border-top-color:var(--accent-gold) !important; }
.support-card--cta .icon-badge{ background:var(--color-gold-100); color:var(--color-gold-600); }
.support-card--cta:hover .icon-badge{ background:var(--accent-gold); color:#fff; }

/* ==========================================================================
   TRANSPARÊNCIA
   ========================================================================== */
.doc-card{ display:flex; flex-direction:row; align-items:center; gap:var(--space-5); flex-wrap:wrap; }
.doc-card .icon-badge{ margin:0; flex:none; }
.doc-info{ flex:1 1 200px; min-width:0; }
.doc-info b{ display:block; font-size:var(--text-base); color:var(--color-foreground); }
.doc-info span{ font-size:var(--text-xs); color:var(--color-muted-foreground); }
.doc-actions{ display:flex; flex-direction:column; align-items:flex-end; gap:var(--space-2); }
@media (max-width:640px){
  .doc-actions{
    flex-direction:row; align-items:center; justify-content:space-between;
    flex-basis:100%; width:100%; margin-top:var(--space-2);
  }
}
.doc-status{
  font-size:var(--text-xs); font-weight:700; padding:0.3rem 0.7rem; border-radius:var(--radius-full);
}
.doc-status.ok{ background:#E4F1E4; color:#2C6E31; }
.doc-status.pending{ background:var(--color-gold-100); color:var(--color-gold-600); }

/* ==========================================================================
   CONTATO / FORM
   ========================================================================== */
.contact-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:var(--space-8); }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-item{ display:flex; gap:var(--space-4); align-items:flex-start; margin-bottom:var(--space-5); }
.contact-info-item .icon-badge{ margin:0; width:44px; height:44px; flex:none; }
.contact-info-item .icon-badge svg{ width:20px; height:20px; }
.contact-info-item b{ display:block; color:var(--color-foreground); }
.contact-info-item span, .contact-info-item a{ font-size:var(--text-sm); color:var(--color-muted-foreground); }

.form-field{ margin-bottom:var(--space-5); }
.form-field label{ display:block; font-size:var(--text-sm); font-weight:600; margin-bottom:var(--space-2); color:var(--color-foreground); }
.form-field .required{ color:var(--color-destructive); }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding:0.85rem 1rem; border-radius:var(--radius-sm);
  border:1.5px solid var(--color-border); background:var(--color-surface); color:var(--color-foreground);
  transition:border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline:none; border-color:var(--color-secondary); box-shadow:0 0 0 4px rgba(87,112,82,0.15);
}
.form-field textarea{ min-height:130px; resize:vertical; }
.form-field .hint{ font-size:var(--text-xs); color:var(--color-muted-foreground); margin-top:var(--space-2); }
.form-field .error-msg{ font-size:var(--text-xs); color:var(--color-destructive); margin-top:var(--space-2); display:none; }
.form-field.has-error input, .form-field.has-error textarea{ border-color:var(--color-destructive); }
.form-field.has-error .error-msg{ display:block; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.form-honeypot{ position:absolute; left:-9999px; opacity:0; height:0; }

.form-status{
  display:none; align-items:center; gap:var(--space-3); padding:var(--space-4) var(--space-5);
  border-radius:var(--radius-sm); font-size:var(--text-sm); font-weight:600; margin-bottom:var(--space-5);
}
.form-status.show{ display:flex; }
.form-status.success{ background:#E4F1E4; color:#2C6E31; }
.form-status.error{ background:#FBE9E7; color:var(--color-destructive); }
.form-status svg{ width:20px; height:20px; flex:none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ padding-block:var(--space-8) var(--space-6); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:var(--space-7); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:var(--space-3); margin-bottom:var(--space-4); }
.footer-brand img{ width:42px; height:42px; }
.footer-brand span{ font-family:var(--font-heading); font-weight:600; font-size:1.3rem; letter-spacing:0.01em; color:#fff; }
.footer-col h4{ color:#fff; font-family:var(--font-body); font-size:var(--text-sm); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:var(--space-4); }
.footer-col a, .footer-col p{ display:block; font-size:var(--text-sm); color:#C7D0C6; margin-bottom:var(--space-3); }
.footer-col a:hover{ color:#fff; }
.footer-social{ display:flex; gap:var(--space-3); margin-top:var(--space-4); }
.footer-social a{
  width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
  transition:background var(--duration-fast) var(--ease-out);
}
.footer-social a:hover{ background:var(--color-gold-500); }
.footer-social svg{ width:18px; height:18px; }
.footer-bottom{
  margin-top:var(--space-8); padding-top:var(--space-6); border-top:1px solid rgba(255,255,255,0.12);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:var(--space-3);
  font-size:var(--text-xs); color:#9AAA96;
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.whatsapp-float{
  position:fixed; bottom:var(--space-6); right:var(--space-6); z-index:150;
  width:60px; height:60px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg);
  transition:transform var(--duration-fast) var(--ease-out);
}
.whatsapp-float:hover{ transform:scale(1.08); }
.whatsapp-float svg{ width:30px; height:30px; }
@media (max-width:640px){
  .whatsapp-float{ width:52px; height:52px; bottom:var(--space-4); right:var(--space-4); }
  .whatsapp-float svg{ width:26px; height:26px; }
}

/* ==========================================================================
   BREADCRUMB / PAGE HEADER (subpáginas)
   ========================================================================== */
.page-hero{ padding-block:var(--space-8) var(--space-7); background:var(--color-sage-100); }
.breadcrumb{ display:flex; gap:var(--space-2); align-items:center; font-size:var(--text-xs); color:var(--color-muted-foreground); margin-bottom:var(--space-4); text-transform:uppercase; letter-spacing:0.05em; }
.breadcrumb a{ color:var(--color-forest-700); font-weight:600; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal]{
  opacity:0; transform:translateY(24px);
  transition:opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].in-view{ opacity:1; transform:translateY(0); }

/* Cascata: cartões dentro de uma grade sobem em sequência, não todos de uma vez */
.grid > [data-reveal]:nth-child(1){ transition-delay:0ms; }
.grid > [data-reveal]:nth-child(2){ transition-delay:90ms; }
.grid > [data-reveal]:nth-child(3){ transition-delay:180ms; }
.grid > [data-reveal]:nth-child(4){ transition-delay:270ms; }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top{
  position:fixed; bottom:var(--space-6); left:var(--space-6); z-index:150;
  width:48px; height:48px; border-radius:50%; background:var(--color-primary-dark); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-md);
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
.back-to-top svg{ width:20px; height:20px; }
@media (max-width:640px){ .back-to-top{ display:none; } }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.max-w-prose{ max-width:640px; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:var(--space-4); top:-60px; z-index:400;
  background:var(--color-primary-dark); color:#fff; padding:var(--space-3) var(--space-5);
  border-radius:var(--radius-sm); transition:top var(--duration-fast) var(--ease-out);
}
.skip-link:focus{ top:var(--space-4); }

/* ==========================================================================
   NAV DROPDOWN ("Sobre")
   ========================================================================== */
.has-dropdown{ position:relative; }
.nav-dropdown-trigger{
  display:inline-flex; align-items:center; gap:6px; background:none; border:none;
  font:inherit; font-weight:600; font-size:var(--text-sm); color:var(--color-foreground);
  cursor:pointer; padding-block:var(--space-2); position:relative;
}
.nav-dropdown-trigger::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--color-accent); transition:right var(--duration-base) var(--ease-out);
  border-radius:2px;
}
.nav-dropdown-trigger:hover::after, .nav-dropdown-trigger.active::after{ right:0; }
.nav-dropdown-trigger.active{ color:var(--color-primary-dark); }
.nav-dropdown-trigger svg{ width:14px; height:14px; transition:transform var(--duration-fast) var(--ease-out); }
.has-dropdown.open .nav-dropdown-trigger svg{ transform:rotate(180deg); }
.nav-dropdown-menu{
  position:absolute; top:100%; left:50%; transform:translate(-50%,8px);
  min-width:220px; background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-md); box-shadow:var(--shadow-lg); padding:var(--space-2);
  opacity:0; pointer-events:none; transition:opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  z-index:50;
}
.has-dropdown.open .nav-dropdown-menu{ opacity:1; pointer-events:auto; transform:translate(-50%,0); }
.nav-dropdown-menu a{
  display:block; padding:0.65rem 0.9rem; border-radius:var(--radius-sm); font-size:var(--text-sm); font-weight:600;
  color:var(--color-foreground); transition:background var(--duration-fast) var(--ease-out);
}
.nav-dropdown-menu a:hover{ background:var(--color-muted); }

.mobile-drawer .drawer-group-label{
  font-size:var(--text-xs); text-transform:uppercase; letter-spacing:0.08em; color:#9AAA96;
  margin-top:var(--space-4); padding-block:var(--space-2) var(--space-1);
}
.mobile-drawer .drawer-sub a{ font-size:var(--text-lg); padding-block:var(--space-2); padding-left:var(--space-4); }

/* ==========================================================================
   HERO SLIDER — tela cheia, com efeito Ken Burns e slide de marca
   ========================================================================== */
.hero-slider{
  position:relative; overflow:hidden;
  min-height:100vh; min-height:100svh;
  width:100%;
}
.hero-slide{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0; visibility:hidden; z-index:0;
  transition:opacity 900ms var(--ease-out), visibility 900ms var(--ease-out);
  display:flex; align-items:center;
  background-size:cover; background-position:center;
  overflow:hidden;
}
.hero-slide.is-active{ opacity:1; visibility:visible; z-index:1; }
.hero-slide::after{
  content:''; position:absolute; inset:0; z-index:0;
  background-image:inherit; background-size:cover; background-position:inherit;
  will-change:transform;
}
.hero-slide.is-active::after{ animation:heroKen 18s ease-in-out infinite alternate; }
@keyframes heroKen{ from{ transform:scale(1); } to{ transform:scale(1.12); } }
@media (prefers-reduced-motion: reduce){ .hero-slide.is-active::after{ animation:none; } }
.hero-slide::before{
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(100deg, rgba(15,28,23,0.90) 0%, rgba(15,28,23,0.62) 48%, rgba(15,28,23,0.32) 100%);
}
.hero-slide__inner{ position:relative; z-index:2; width:100%; max-width:var(--container-max); margin-inline:auto; padding:calc(var(--space-9) + 40px) var(--space-5) var(--space-9); }
.hero-slide__content{ max-width:640px; margin-inline:auto; text-align:left; }
@media (min-width:768px){ .hero-slide__content{ margin-inline:0; } }
.hero-slide__content .eyebrow{ color:#fff; opacity:0.92; }
.hero-slide__content h1, .hero-slide__content h2{ color:#fff; font-size:var(--text-4xl); margin-top:var(--space-3); }
.hero-slide__content p{ color:rgba(255,255,255,0.92); margin-top:var(--space-3); font-size:var(--text-lg); max-width:52ch; }
.hero-slide__actions{ display:flex; gap:var(--space-4); margin-top:var(--space-6); flex-wrap:wrap; }
.hero-slide.is-active .hero-slide__content{ animation:heroContentIn 1s var(--ease-out) both; }
@keyframes heroContentIn{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce){ .hero-slide.is-active .hero-slide__content{ animation:none; } }

/* Slide de marca (logotipo grande centralizado) */
.hero-slide--brand .hero-slide__inner{ display:grid; place-items:center; text-align:center; padding-block:var(--space-8); }
.hero-slide--brand .hero-slide__content{ max-width:none; margin-inline:auto; }
.hero-slide--brand::before{ background:linear-gradient(180deg, rgba(24,48,41,0.72) 0%, rgba(24,48,41,0.55) 45%, rgba(24,48,41,0.82) 100%); }
.hero-brandmark{ width:min(220px,50vw); height:auto; margin-inline:auto; display:block; }
.hero-slide--brand .hero-brandmark{ animation:brandIn 1.3s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce){ .hero-slide--brand .hero-brandmark{ animation:none; } }
@keyframes brandIn{ from{ opacity:0; transform:scale(0.92); } to{ opacity:1; transform:scale(1); } }
.hero-slide--brand .eyebrow{ display:block; margin-top:var(--space-6); letter-spacing:0.28em; font-size:0.85rem; justify-content:center; }

.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:50px; height:50px; border-radius:50%; background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.35); color:#fff; display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  transition:background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.hero-arrow:hover{ background:rgba(255,255,255,0.28); }
.hero-arrow svg{ width:22px; height:22px; }
.hero-arrow--prev{ left:var(--space-4); }
.hero-arrow--next{ right:var(--space-4); }
@media (max-width:760px){ .hero-arrow{ display:none; } }

.hero-dots{ position:absolute; z-index:3; bottom:84px; left:50%; transform:translateX(-50%); display:flex; gap:6px; }
.hero-dots button{
  width:34px; height:6px; padding:0; cursor:pointer; border:none; border-radius:4px;
  background:rgba(255,255,255,0.4);
  transition:background var(--duration-fast) var(--ease-out), width var(--duration-fast) var(--ease-out);
}
.hero-dots button:hover{ background:rgba(255,255,255,0.7); }
.hero-dots button.is-active{ width:52px; background:#fff; }

/* Indicador de rolagem */
.scroll-cue{
  position:absolute; z-index:3; left:50%; bottom:20px; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(255,255,255,0.6); border-radius:16px;
  pointer-events:none;
}
.scroll-cue::before{
  content:''; position:absolute; left:50%; top:7px; margin-left:-2px;
  width:4px; height:8px; border-radius:4px; background:#fff;
  animation:cueDrop 1.8s var(--ease-out) infinite;
}
@keyframes cueDrop{ 0%{ opacity:0; transform:translateY(0); } 30%{ opacity:1; } 100%{ opacity:0; transform:translateY(14px); } }
@media (max-width:760px){ .scroll-cue{ display:none; } }
@media (prefers-reduced-motion: reduce){ .scroll-cue::before{ animation:none; } }

@media (max-width:640px){
  .hero-slide__content h1, .hero-slide__content h2{ font-size:clamp(1.7rem, 1.2rem + 4vw, 2.4rem); }
  .hero-brandmark{ width:min(170px,58vw); }
}

/* ==========================================================================
   HEADER TRANSPARENTE SOBRE O HERO
   ========================================================================== */
body.has-hero .site-header{ position:fixed; background:transparent; border-bottom-color:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
body.has-hero .site-header.is-scrolled{
  background:rgba(245,244,238,0.92); border-bottom-color:var(--color-border);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:var(--shadow-sm);
}
body.has-hero .site-header:not(.is-scrolled) .nav-brand,
body.has-hero .site-header:not(.is-scrolled) .nav-links a,
body.has-hero .site-header:not(.is-scrolled) .nav-dropdown-trigger{ color:#fff; }
body.has-hero .site-header:not(.is-scrolled) .nav-toggle{ background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.35); color:#fff; }
/* O submenu tem fundo sólido claro sempre — o texto deve continuar escuro mesmo com o header transparente */
body.has-hero .site-header:not(.is-scrolled) .nav-dropdown-menu a{ color:var(--color-foreground); }
body.has-hero .site-header:not(.is-scrolled) .logo--dark{ opacity:0; }
body.has-hero .site-header:not(.is-scrolled) .logo--light{ opacity:1; }
.logo--light{ opacity:0; }
.logo--dark, .logo--light{ transition:opacity var(--duration-base) var(--ease-out); }

/* ==========================================================================
   DIFERENCIAIS (grid 4)
   ========================================================================== */
.diferencial{ display:flex; flex-direction:column; gap:var(--space-3); }
.diferencial .icon-badge{ margin-bottom:var(--space-2); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band{ text-align:center; max-width:720px; margin-inline:auto; }
.cta-band-actions{ display:flex; gap:var(--space-4); justify-content:center; margin-top:var(--space-6); flex-wrap:wrap; }

/* ==========================================================================
   FLOATING CONTACT WIDGET
   ========================================================================== */
.floating-widget{
  position:fixed; bottom:var(--space-6); right:var(--space-6); z-index:150; display:flex; flex-direction:column; align-items:flex-end; gap:var(--space-3);
  transition:transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}
.floating-widget.is-hidden{ transform:translateY(calc(100% + var(--space-6))); opacity:0; pointer-events:none; }
@media (prefers-reduced-motion: reduce){ .floating-widget{ transition:none; } }
.floating-options{
  display:flex; flex-direction:column; gap:var(--space-3); align-items:flex-end;
  opacity:0; pointer-events:none; transform:translateY(12px);
  transition:opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.floating-widget.open .floating-options{ opacity:1; pointer-events:auto; transform:translateY(0); }
.floating-link{
  display:flex; align-items:center; gap:var(--space-3); background:var(--color-surface); color:var(--color-foreground);
  padding:0.6rem 1.1rem 0.6rem 0.6rem; border-radius:var(--radius-full); box-shadow:var(--shadow-md); font-weight:600; font-size:var(--text-sm);
  border:1px solid var(--color-border);
}
.floating-link span.ic{ width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; flex:none; }
.floating-link span.ic svg{ width:18px; height:18px; }
.floating-link--whatsapp span.ic{ background:#25D366; }
.floating-link--instagram span.ic{ background:radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.floating-toggle{
  width:60px; height:60px; border-radius:50%; background:var(--color-primary-dark); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg); position:relative;
}
.floating-toggle svg{ width:26px; height:26px; position:absolute; transition:opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.floating-toggle .ic-open{ opacity:1; transform:rotate(0deg); }
.floating-toggle .ic-close{ opacity:0; transform:rotate(-45deg); }
.floating-widget.open .floating-toggle .ic-open{ opacity:0; transform:rotate(45deg); }
.floating-widget.open .floating-toggle .ic-close{ opacity:1; transform:rotate(0deg); }
@media (max-width:640px){
  .floating-widget{ bottom:var(--space-4); right:var(--space-4); }
  .floating-toggle{ width:52px; height:52px; }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner{
  position:fixed; left:var(--space-5); right:var(--space-5); bottom:var(--space-5); z-index:250;
  max-width:460px; background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-md); box-shadow:var(--shadow-lg); padding:var(--space-6);
  max-height:calc(100dvh - var(--space-5) * 2); overflow-y:auto;
  transform:translateY(140%); transition:transform var(--duration-base) var(--ease-out);
}
.cookie-banner.show{ transform:translateY(0); }
.cookie-banner h2{ font-size:var(--text-lg); margin-bottom:var(--space-2); }
.cookie-banner p{ font-size:var(--text-sm); }
.cookie-banner-actions{ display:flex; gap:var(--space-3); margin-top:var(--space-5); flex-wrap:wrap; }
@media (max-width:480px){
  .cookie-banner{
    left:var(--space-3); right:var(--space-3); bottom:var(--space-3);
    padding:var(--space-5) var(--space-5) var(--space-4);
  }
  .cookie-banner h2{ font-size:var(--text-base); }
  .cookie-banner p{ font-size:var(--text-xs); }
  .cookie-banner-actions{ margin-top:var(--space-4); gap:var(--space-2); }
  .cookie-banner-actions .btn{ padding:0.65rem 1.1rem; min-height:42px; font-size:var(--text-xs); }
}

/* ==========================================================================
   ARTICLE / PROSE (notícias, projeto detalhe)
   ========================================================================== */
.prose{ max-width:720px; margin-inline:auto; }
.prose p{ color:var(--color-foreground); margin-bottom:var(--space-5); font-size:var(--text-lg); line-height:1.7; }
.prose h2{ margin-top:var(--space-7); margin-bottom:var(--space-3); }
.article-meta{ display:flex; gap:var(--space-4); align-items:center; margin-bottom:var(--space-5); flex-wrap:wrap; }
.article-hero-img{ border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:16/9; margin-bottom:var(--space-7); box-shadow:var(--shadow-md); }
.article-hero-img img{ width:100%; height:100%; object-fit:cover; }
.back-link{ display:inline-flex; align-items:center; gap:var(--space-2); font-weight:700; font-size:var(--text-sm); color:var(--color-primary-dark); margin-bottom:var(--space-6); }
.back-link svg{ width:16px; height:16px; }

/* ==========================================================================
   ABOUT / DETAIL PAGES SHARED
   ========================================================================== */
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-5); }
@media (max-width:768px){ .info-grid{ grid-template-columns:1fr; } }
.info-item{ display:flex; gap:var(--space-4); align-items:flex-start; }
.info-item .icon-badge{ margin:0; flex:none; }

.locale-banner{
  position:relative; overflow:hidden; border-radius:var(--radius-md);
  background-size:cover; background-position:center; color:#fff; box-shadow:var(--shadow-md);
}
.locale-banner::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(24,48,41,0.92) 0%, rgba(24,48,41,0.74) 45%, rgba(24,48,41,0.4) 100%);
}
.locale-banner__inner{ position:relative; z-index:1; padding:var(--space-8); max-width:560px; }
.locale-banner .eyebrow{ color:#fff; opacity:0.92; }
.locale-banner h2{ color:#fff; margin-top:var(--space-3); }
.locale-banner p{ color:rgba(255,255,255,0.9); margin-top:var(--space-3); }
.locale-banner .project-list li{ color:rgba(255,255,255,0.92); }
.locale-banner .project-list svg{ color:#fff; }
@media (max-width:640px){
  .locale-banner__inner{ padding:var(--space-6) var(--space-5); }
  .locale-banner .btn{ width:100%; white-space:normal; text-align:center; }
}

/* Timeline (linha do tempo de ações sociais e campanhas) — progresso animado pelo scroll, igual ao site modelo */
.timeline-legend{ display:flex; flex-wrap:wrap; gap:var(--space-5); margin-top:var(--space-5); }
.timeline-legend span{ display:inline-flex; align-items:center; gap:var(--space-2); font-size:var(--text-xs); color:var(--color-muted-foreground); font-weight:600; }
.timeline-legend .dot{ width:9px; height:9px; border-radius:50%; flex:none; }

.timeline{ position:relative; margin-top:var(--space-8); padding-top:var(--space-2); }
.timeline::before{
  content:''; position:absolute; top:0; bottom:0; left:50%; width:3px; margin-left:-1.5px;
  background:var(--color-sage-100); border-radius:3px;
}
.timeline__progress{
  position:absolute; top:0; left:50%; width:3px; margin-left:-1.5px; height:0;
  background:linear-gradient(180deg, var(--color-green-500), var(--color-gold-500) 55%, var(--color-forest-700));
  border-radius:3px; z-index:1;
}
.timeline__item{
  position:relative; width:calc(50% - 44px);
  background:var(--color-surface); border-radius:var(--radius-md); box-shadow:var(--shadow-sm);
  padding:var(--space-6); margin-bottom:var(--space-7);
  opacity:0; transform:translateY(28px);
  transition:opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.timeline__item:hover{ box-shadow:var(--shadow-md); }
.timeline__item:last-of-type{ margin-bottom:0; }
.timeline__item:nth-of-type(even){ margin-left:auto; }
.timeline__item.is-active{ opacity:1; transform:none; }
.timeline__item::before{
  content:''; position:absolute; top:26px; z-index:2;
  width:18px; height:18px; border-radius:50%;
  background:var(--color-surface); border:4px solid var(--dot-color, var(--color-green-500));
  transform:scale(0);
  transition:transform 0.45s var(--ease-out) 0.1s;
}
.timeline__item.is-active::before{ transform:scale(1); }
.timeline__item:nth-of-type(odd)::before{ right:-53px; }
.timeline__item:nth-of-type(even)::before{ left:-53px; }

.timeline__meta{ display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
.timeline__date{ font-size:var(--text-xs); font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--color-muted-foreground); }
.timeline__badge{ display:inline-flex; padding:0.2rem 0.7rem; border-radius:var(--radius-full); font-weight:700; font-size:var(--text-xs); background:var(--badge-bg,var(--color-sage-100)); color:var(--badge-color,var(--color-primary-dark)); }
.timeline__status{ margin-left:auto; background:var(--color-sage-100); color:var(--color-primary-dark); padding:0.2rem 0.7rem; border-radius:var(--radius-full); font-weight:700; font-size:var(--text-xs); }
.timeline__item h4{ margin-top:var(--space-3); }
.timeline__item p{ margin-top:var(--space-2); color:var(--color-foreground); font-size:var(--text-sm); }
.timeline__location{ display:flex; align-items:center; gap:var(--space-2); margin-top:var(--space-3); font-size:var(--text-xs); color:var(--color-muted-foreground); }
.timeline__location svg{ width:14px; height:14px; flex:none; color:var(--color-gold-600); }
.timeline__note{ max-width:720px; margin:var(--space-7) auto 0; font-size:var(--text-xs); color:var(--color-muted-foreground); text-align:center; }

@media (max-width:760px){
  .timeline::before, .timeline__progress{ left:8px; margin-left:0; }
  .timeline__item, .timeline__item:nth-of-type(even){ width:auto; margin-left:34px; margin-right:0; }
  .timeline__item:nth-of-type(odd)::before, .timeline__item:nth-of-type(even)::before{ left:-34px; right:auto; }
  .timeline__item{ margin-bottom:var(--space-6); padding:var(--space-5); }
}

/* ==========================================================================
   OBRIGADO PAGE
   ========================================================================== */
.thanks-box{
  max-width:560px; margin-inline:auto; text-align:center; padding:var(--space-9) var(--space-6);
}
.thanks-icon{
  width:88px; height:88px; border-radius:50%; background:var(--color-sage-100); color:var(--color-forest-700);
  display:flex; align-items:center; justify-content:center; margin:0 auto var(--space-6);
}
.thanks-icon svg{ width:44px; height:44px; }

/* ==========================================================================
   BRAND ARC MOTIF — elemento gráfico da identidade (arco + ponto), usado
   como camada decorativa em seções sem foto real disponível.
   ========================================================================== */
.brand-arc{ position:absolute; z-index:0; pointer-events:none; overflow:visible; }
.brand-arc--corner-br{ right:-8%; bottom:-18%; width:min(58vw,620px); color:var(--color-sage-300); opacity:0.5; }
.brand-arc--corner-tr{ right:-12%; top:-14%; width:min(50vw,520px); color:#FFFFFF; opacity:0.08; }
.brand-arc--corner-tr.on-light{ color:var(--color-sage-300); opacity:0.4; }
.brand-arc--full{ inset:0; width:100%; height:100%; color:var(--color-sage-300); opacity:0.5; }
@media (max-width:640px){
  .brand-arc--corner-br{ width:80vw; right:-20%; bottom:-10%; }
  .brand-arc--corner-tr{ width:70vw; }
}

.arc-panel{ position:relative; overflow:hidden; }
.arc-panel > .container{ position:relative; z-index:1; }
