/* ==========================================================
   ESG na Prática: Legado e Ação — Static LP
   Token-driven complement to Tailwind CDN.
   ========================================================== */

:root {
  --kfa-cream: #f5efe4;
  --kfa-ivory: #faf6ec;
  --kfa-sand: #ebe0c8;
  --kfa-clay: #c8b89a;
  --kfa-cocoa: #6b513a;
  --kfa-espresso: #2a1b10;
  --kfa-navy: #0c1a2a;
  --kfa-gold: #b58a3c;
  --kfa-mist: #f0ece2;
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

img { max-width: 100%; display: block; }

/* ============== Reusable ============== */
.text-balance { text-wrap: balance; }

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--kfa-cocoa);
  margin-bottom: 14px;
  font-weight: 500;
}
.eyebrow-center { text-align: center; }
.eyebrow-dark { color: var(--kfa-gold); font-weight: 700; }

.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.05;
  color: var(--kfa-espresso);
  text-wrap: balance;
  font-weight: 500;
}
.title-dark { color: #f8f5ec; }

.prose-kfa {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--kfa-cocoa);
  max-width: 65ch;
}
.prose-kfa p + p { margin-top: 16px; }
.prose-dark { color: rgba(255,255,255,0.78); }
.prose-dark strong { color: #fff; }

.head-center { max-width: 56rem; margin: 0 auto; text-align: center; }
.head-center .prose-kfa { margin-left: auto; margin-right: auto; }

.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--kfa-cocoa);
}
.micro-label .dash {
  width: 32px; height: 1px; background: var(--kfa-gold);
  display: inline-block;
}

.shadow-elegant { box-shadow: 0 22px 60px -20px rgba(20,15,8,0.45); }
.shadow-soft { box-shadow: 0 12px 28px -16px rgba(20,15,8,0.25); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  color: var(--kfa-ivory);
  background: linear-gradient(90deg, var(--kfa-espresso), var(--kfa-cocoa));
  box-shadow: 0 18px 40px -20px rgba(42,27,16,0.55);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline {
  color: var(--kfa-espresso);
  border-color: rgba(107,81,58,0.4);
}
.btn-outline:hover { background: var(--kfa-sand); }
.btn-gold {
  color: var(--kfa-navy);
  background: var(--kfa-gold);
}
.btn-gold:hover { background: var(--kfa-ivory); color: var(--kfa-espresso); }
.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }

/* ============== Hero ornaments ============== */
.grain {
  background-image: radial-gradient(var(--kfa-cocoa) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.08;
  mix-blend-mode: multiply;
}
.glow-blue { background: radial-gradient(circle, rgba(0,100,203,0.32), transparent 65%); }
.glow-blue-soft { background: radial-gradient(circle, rgba(0,100,203,0.22), transparent 65%); }
.soft-blue-glow { background: radial-gradient(circle, rgba(0,100,203,0.1), transparent 70%); }
.gold-glow { background: radial-gradient(circle, rgba(181,138,60,0.18), transparent 70%); }
.gold-glow-strong { background: radial-gradient(circle, rgba(181,138,60,0.35), transparent 70%); }
.portrait-glow-1 {
  background: radial-gradient(circle, rgba(0,100,203,0.45), rgba(0,100,203,0.15) 45%, transparent 70%);
  filter: blur(36px);
}
.portrait-glow-2 {
  background: radial-gradient(circle, rgba(0,100,203,0.55), transparent 60%);
  filter: blur(60px);
}
.dots-gold {
  background-image: radial-gradient(var(--kfa-gold) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.06;
}
.dots-cocoa {
  background-image: radial-gradient(var(--kfa-cocoa) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.08;
}

/* logos top */
.logo { width: auto; object-fit: contain; transition: opacity 0.25s; }
.logo:hover { opacity: 0.7; }
.logo-base { height: 34px; }
.logo-tall { height: 48px; }
@media (min-width: 640px) { .logo-base { height: 44px; } .logo-tall { height: 60px; } }
@media (min-width: 1024px) { .logo-base { height: 56px; } .logo-tall { height: 76px; } }

/* ============== Dark cards (about / homem do planeta) ============== */
.card-dark {
  padding: 28px;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(181,138,60,0.3);
  transition: all 0.4s;
  backdrop-filter: blur(2px);
}
.card-dark:hover { border-color: var(--kfa-gold); background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.card-dark-tag {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--kfa-gold);
}

/* ============== Eixos ============== */
.eixo-card {
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: 2px;
  background: var(--kfa-cream);
  border: 1px solid rgba(200,184,154,0.4);
  transition: all 0.5s;
}
.eixo-card:hover { border-color: var(--kfa-gold); transform: translateY(-4px); box-shadow: 0 14px 30px -16px rgba(20,15,8,0.35); }
.eixo-top { display: flex; align-items: flex-start; justify-content: space-between; }
.eixo-top .n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; color: rgba(181,138,60,0.85); line-height: 1;
}
.eixo-top .line { width: 40px; height: 1px; background: var(--kfa-clay); margin-top: 20px; transition: all 0.5s; }
.eixo-card:hover .eixo-top .line { width: 64px; background: var(--kfa-gold); }
.eixo-card h3 {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: var(--kfa-espresso);
  line-height: 1.25;
  min-height: 3.4em;
}
.eixo-card ul { margin-top: 16px; font-size: 13.5px; color: var(--kfa-cocoa); line-height: 1.6; }
.eixo-card ul li { display: flex; gap: 10px; margin-top: 6px; }
.eixo-card ul li::before { content: "•"; color: var(--kfa-gold); margin-top: 1px; }

/* ============== Timeline ============== */
/* =========================================================
   TIMELINE PREMIUM RESPONSIVA
   ========================================================= */

.timeline-wrap{
  position:relative;
}

/* LINHA CENTRAL */
.timeline-wrap::before{
  content:"";
  position:absolute;

  top:100px;
  left:0;
  right:0;

  height:2px;

  background:linear-gradient(
    90deg,
    transparent 0%,
    rgba(200,184,154,.45) 8%,
    rgba(200,184,154,.65) 50%,
    rgba(200,184,154,.45) 92%,
    transparent 100%
  );

  z-index:0;
}

/* GRID MAIS INTELIGENTE */
.timeline-grid{
  position:relative;
  z-index:1;

  display:grid;

  /* AUTO RESPONSIVO */
  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap:28px;
}

/* CARD */
.tl-item{
  position:relative;

  min-height:240px;

  padding:28px 24px 24px;

  border-radius:20px;

  background:#fff;

  border:1px solid rgba(200,184,154,.38);

  box-shadow:
    0 10px 30px -18px rgba(20,15,8,.20);

  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;

  overflow:hidden;
}

/* CONEXÃO COM A LINHA */
.tl-item::before{
  content:"";

  position:absolute;

  top:-28px;
  left:32px;

  width:2px;
  height:28px;

  background:rgba(200,184,154,.55);
}

/* HOVER */
.tl-item:hover{
  transform:translateY(-6px);

  border-color:var(--kfa-gold);

  box-shadow:
    0 18px 40px -18px rgba(20,15,8,.28);
}

/* DOT */
.tl-item .dot{
  width:14px;
  height:14px;

  border-radius:999px;

  background:var(--kfa-gold);

  box-shadow:
    0 0 0 5px var(--kfa-cream);

  position:relative;
  z-index:2;
}

/* ANO */
.tl-item .y{
  margin-top:16px;

  font-size:.68rem;

  letter-spacing:.28em;

  text-transform:uppercase;

  color:var(--kfa-cocoa);

  line-height:1.4;
}

/* TÍTULO */
.tl-item .t{
  margin-top:10px;

  font-family:'Cormorant Garamond', serif;

  font-size:clamp(1.2rem, 2vw, 1.45rem);

  line-height:1.12;

  color:var(--kfa-espresso);

  text-wrap:balance;
}

/* TEXTO */
.tl-item .d{
  margin-top:14px;

  font-size:clamp(.92rem, 1vw, .98rem);

  line-height:1.72;

  color:var(--kfa-cocoa);

  text-wrap:pretty;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1024px){

  .timeline-grid{
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:640px){

  /* REMOVE LINHA HORIZONTAL */
  .timeline-wrap::before{
    display:none;
  }

  .timeline-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .tl-item{
    min-height:auto;
    padding:24px 20px;
    border-radius:18px;
  }

  /* LINHA VERTICAL */
  .tl-item::before{
    left:20px;
    top:-20px;
    width:2px;
    height:20px;
  }

  .tl-item .t{
    font-size:1.28rem;
    line-height:1.15;
  }

  .tl-item .d{
    font-size:.95rem;
    line-height:1.7;
  }

}

/* ============== Accordion (Diretrizes) ============== */
.accordion { width: 100%; }
.acc-item { border-bottom: 1px solid rgba(255,255,255,0.15); }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 0;
  background: transparent; color: #fff;
  border: 0; cursor: pointer;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}
.acc-trigger:hover { color: var(--kfa-clay); }
.acc-trigger .num-label { display: inline-flex; align-items: center; gap: 14px; }
.acc-trigger .n { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--kfa-gold); }
.acc-trigger .chev { transition: transform 0.3s; font-size: 1.4rem; color: var(--kfa-gold); }
.acc-item.open .acc-trigger .chev { transform: rotate(180deg); }
.acc-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-content-inner { padding: 0 0 20px 40px; color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.65; }

/* ============== Etapas (cronograma) ============== */
.etapa-card {
  padding: 28px;
  border: 1px solid rgba(42,27,16,0.2);
  border-radius: 2px;
  background: var(--kfa-espresso);
  color: var(--kfa-ivory);
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.5s;
}
.etapa-card:hover { background: var(--kfa-cocoa); border-color: var(--kfa-gold); transform: translateY(-2px); }
.etapa-top { display: flex; align-items: center; justify-content: space-between; }
.etapa-top .n { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--kfa-gold); }
.etapa-top .marker { width: 10px; height: 10px; border-radius: 50%; background: var(--kfa-gold); }
.etapa-card .d { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--kfa-gold); }
.etapa-card .t { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; line-height: 1.2; color: #fff; }
.etapa-card .s { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.78); }

/* ============== Apoio cells ============== */
.apoio {
  aspect-ratio: 3/2;
  background: var(--kfa-ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  transition: background 0.3s;
}
.apoio:hover { background: #fff; }
.apoio .ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(107,81,58,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; color: var(--kfa-espresso); margin-bottom: 8px;
}
.apoio .nm { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--kfa-cocoa); line-height: 1.2; }

/* ============== News cards ============== */
.news-card {
  display: flex; flex-direction: column;
  border-radius: 2px;
  border: 1px solid rgba(200,184,154,0.4);
  background: var(--kfa-cream);
  text-decoration: none;
  color: inherit;
  transition: all 0.5s;
  overflow: hidden;
  box-shadow: 0 10px 24px -18px rgba(20,15,8,0.25);
}
.news-card:hover { border-color: var(--kfa-gold); transform: translateY(-4px); }
.news-img {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--kfa-sand);
  border-bottom: 1px solid rgba(200,184,154,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(107,81,58,0.6);
  background-image: repeating-linear-gradient(45deg, rgba(120,90,60,0.06) 0 8px, transparent 8px 16px);
}
.news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; min-height: 32px;
}
.news-head img { height: 28px; width: auto; object-fit: contain; }
.news-head .logo-ph {
  padding: 4px 12px;
  border: 1px dashed var(--kfa-clay);
  border-radius: 2px;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(107,81,58,0.7);
}
.news-head .data { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--kfa-cocoa); }
.news-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; line-height: 1.25; color: var(--kfa-espresso); }
.news-card p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--kfa-cocoa); flex: 1; }
.news-card .more {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--kfa-espresso);
}
.news-card:hover .more span { transform: translateX(4px); }
.news-card .more span { transition: transform 0.3s; }

/* ============== Submission form ============== */
#stepper { display: flex; align-items: center; justify-content: center; }
#stepper .step { display: flex; align-items: center; gap: 12px; }
#stepper .num {
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--kfa-clay);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  color: var(--kfa-cocoa); background: transparent; transition: all 0.3s;
}
#stepper .step.active .num,
#stepper .step.done .num {
  background: var(--kfa-espresso); color: var(--kfa-ivory); border-color: var(--kfa-espresso);
}
#stepper .bar { width: 36px; height: 1px; background: var(--kfa-clay); }
@media (min-width: 640px) { #stepper .bar { width: 48px; } }
#stepper .step.done + .step .bar { background: var(--kfa-gold); }

.subm-pane { display: none; animation: fadeUp 0.4s ease both; }
.subm-pane.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kfa-field { display: flex; flex-direction: column; }
.kfa-field label {
  display: block;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--kfa-cocoa); margin-bottom: 8px;
}
.kfa-field input,
.kfa-field select,
.kfa-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--kfa-cream);
  border: 1px solid var(--kfa-clay);
  border-radius: 2px;
  color: var(--kfa-espresso);
  font-family: inherit; font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.kfa-field input:focus,
.kfa-field select:focus,
.kfa-field textarea:focus { border-color: var(--kfa-gold); }
.kfa-field textarea { resize: vertical; }
.kfa-field input[type="file"] {
  background: transparent; border: 0; padding: 0;
  font-size: 14px;
}
.kfa-field input[type="file"]::file-selector-button {
  margin-right: 16px;
  padding: 12px 20px;
  background: var(--kfa-espresso);
  color: var(--kfa-ivory);
  border: 0; border-radius: 2px; font-weight: 500;
  cursor: pointer;
}
.kfa-field input[type="file"]::file-selector-button:hover { background: var(--kfa-cocoa); }

/* ============== Footer logos ============== */
.footer-logo { height: 44px; width: auto; opacity: 0.9; transition: opacity 0.25s; }
.footer-logo:hover { opacity: 1; }
.footer-logo-tall { height: 60px; }
@media (min-width: 768px) { .footer-logo { height: 60px; } .footer-logo-tall { height: 80px; } }

/* ============== Reveal animation ============== */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============== Utilities for mobile ============== */
@media (max-width: 640px) {
  .title { font-size: 1.75rem; }
  .btn { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }
  .btn + .btn { margin-top: 0; }
}
