/* ===========================
   CEPA — Landing Page
   Paleta: Neblina da Serra
   =========================== */

:root {
  --verde:   #2E3D2E;
  --linho:   #EEE8DC;
  --ocre:    #B07D4A;
  --sage:    #6B8C5F;
  --ardosia: #4B5563;
  --preto:   #1A1A1A;

  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'DM Mono', monospace;

  --max-w:    1200px;
  --narrow-w: 800px;
  --pad-sec:  110px 0;
  --radius:   4px;
  --ease:     0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--linho);
  color: var(--preto);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Containers */
.container        { max-width: var(--max-w);    margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--narrow-w); margin: 0 auto; padding: 0 28px; }

/* Sections */
.section       { padding: var(--pad-sec); }
.section-light { background: var(--linho); color: var(--preto); }
.section-dark  { background: var(--verde); color: var(--linho); }

/* Section label */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocre);
  display: block;
  margin-bottom: 18px;
}
.section-label.light { color: var(--sage); }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p  { opacity: 0.75; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);  margin-bottom: 24px; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem);  margin-bottom: 14px; }
p  { margin-bottom: 16px; font-size: 1rem; }
p:last-child { margin-bottom: 0; }

.text-body p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 22px; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}
.btn-primary {
  background: var(--ocre);
  color: var(--linho);
  border-color: var(--ocre);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ocre);
}
.section-dark .btn-primary:hover { color: var(--linho); border-color: var(--linho); }
.btn-full { width: 100%; text-align: center; }

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all var(--ease);
}
.nav.scrolled {
  background: var(--verde);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--linho);
  letter-spacing: 0.18em;
  font-weight: 400;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}
.nav-menu a {
  color: var(--linho);
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
  transition: opacity var(--ease);
}
.nav-menu a:hover { opacity: 1; }
.nav-cta {
  background: var(--ocre) !important;
  color: var(--linho) !important;
  padding: 8px 22px !important;
  border-radius: var(--radius) !important;
  opacity: 1 !important;
}
.nav-cta:hover { opacity: 0.9 !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--linho);
  transition: all var(--ease);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/hero.jpg') center center / cover no-repeat;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 61, 46, 0.60) 0%,
    rgba(20, 36, 20, 0.78) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 0 28px;
  color: var(--linho);
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 28px;
}
.hero-title {
  font-weight: 300;
  font-style: italic;
  margin-bottom: 28px;
}
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 660px;
  margin: 0 auto 44px;
  opacity: 0.88;
}

/* ===========================
   Quem Somos
   =========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.col-text h2 { margin-bottom: 24px; }
.col-text p  { opacity: 0.82; margin-bottom: 16px; }

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--verde);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--linho);
  opacity: 0.55;
}
.video-placeholder svg { width: 52px; height: 52px; }
.video-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.video-embed { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; }

/* ===========================
   Stats / Impacto
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  margin-top: 0;
}
.stat-card { text-align: center; }
.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--sage);
}
.stat-icon svg { width: 100%; height: 100%; }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--ocre);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.stat-desc {
  font-size: 0.88rem;
  opacity: 0.68;
  line-height: 1.45;
}

/* ===========================
   Timeline
   =========================== */
.timeline { margin-top: 52px; }
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(238,232,220,0.12);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ocre);
  padding-top: 3px;
}
.timeline-content p { opacity: 0.78; font-size: 1rem; }

/* ===========================
   Práticas
   =========================== */
.pratica {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(238,232,220,0.12);
}
.pratica:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pratica-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pratica-header h3 { color: var(--linho); margin-bottom: 0; }
.pratica-area {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ocre);
  letter-spacing: 0.1em;
}
.pratica > p { opacity: 0.78; margin-bottom: 32px; font-size: 1.05rem; line-height: 1.8; }

/* Swiper */
.pratica-swiper { border-radius: 8px; overflow: hidden; }
.carousel-placeholder {
  height: 380px;
  background: rgba(107,140,95,0.12);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sage);
  letter-spacing: 0.14em;
  border-radius: 8px;
}
.pratica-swiper .swiper-button-prev,
.pratica-swiper .swiper-button-next { color: var(--ocre); }
.pratica-swiper .swiper-pagination-bullet        { background: var(--sage); opacity: 0.5; }
.pratica-swiper .swiper-pagination-bullet-active { background: var(--ocre); opacity: 1; }

/* ===========================
   Contribuição
   =========================== */
.contribuicao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}
.contribuicao-text h2 { margin-bottom: 24px; }
.contribuicao-text p  { opacity: 0.82; margin-bottom: 16px; }
.contribuicao-destaque {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ocre) !important;
  opacity: 1 !important;
  margin: 36px 0 !important;
}
.pix-box {
  background: rgba(46,61,46,0.06);
  border: 1px solid rgba(176,125,74,0.28);
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 36px;
}
.pix-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ardosia);
  display: block;
  margin-bottom: 8px;
}
.pix-key {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--preto);
  display: block;
  margin-bottom: 12px;
}
.pix-nota { font-size: 0.78rem; opacity: 0.55; margin: 0; }

/* Form */
.contribuicao-form {
  background: #fff;
  border-radius: 12px;
  padding: 44px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.07);
}
.contribuicao-form h3 { font-size: 1.6rem; margin-bottom: 8px; }
.contribuicao-form > p { opacity: 0.65; font-size: 0.9rem; margin-bottom: 32px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ardosia);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.optional { font-weight: 400; opacity: 0.55; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(75,85,99,0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--preto);
  background: var(--linho);
  outline: none;
  transition: border-color var(--ease);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--sage); }
.form-success {
  margin-top: 18px;
  padding: 18px;
  background: rgba(107,140,95,0.1);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--verde);
  text-align: center;
}

/* ===========================
   CTA Final
   =========================== */
.section-cta { padding: 130px 0; }
.section-cta h2 { color: var(--linho); margin-bottom: 44px; }

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--preto);
  color: var(--linho);
  padding: 64px 0 32px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(238,232,220,0.1);
}
.footer-logo {
  font-family: var(--font-title);
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.85rem; opacity: 0.55; line-height: 1.7; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links a { font-size: 0.85rem; opacity: 0.55; transition: opacity var(--ease); }
.footer-links a:hover { opacity: 1; }
.footer-bottom p { font-size: 0.78rem; opacity: 0.35; text-align: center; }

/* ===========================
   Scroll reveal
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 960px) {
  .two-col           { grid-template-columns: 1fr; gap: 52px; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .contribuicao-grid { grid-template-columns: 1fr; gap: 52px; }
  .timeline-item     { grid-template-columns: 90px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  :root { --pad-sec: 76px 0; }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--verde);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 1.25rem; opacity: 0.9; }
  .nav-toggle { display: flex; }

  .pratica-header { flex-direction: column; gap: 6px; }
  .contribuicao-form { padding: 32px 24px; }
  .footer-content { flex-direction: column; gap: 36px; }
}

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}
