/* ============================================================
   CEPAGRO — página independente de mobilização
   Estrutura e componentes seguem o padrão Casa do Caminho.
   ============================================================ */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --brand: #005a18;
  --brand-deep: #073e17;
  --leaf: #38783c;
  --orange: #ff5811;
  --ink: #1e2326;
  --ink-mid: #414943;
  --ink-low: #68716a;
  --surface: #e7eee3;
  --paper: #fbfaf5;
  --white: #fffefa;
  --cream: #f3f0e5;
  --brand-tint: #eef3e9;
  --orange-soft: #fff0e7;
  --border: rgba(0, 90, 24, .24);
  --border-soft: rgba(0, 90, 24, .12);
  --shadow-sm: 0 2px 8px rgba(30, 35, 38, .06);
  --shadow-md: 0 8px 32px rgba(30, 35, 38, .10);
  --shadow-lg: 0 24px 64px rgba(30, 35, 38, .16);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: var(--r-sm); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.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; z-index: 200; left: 16px; top: -100px;
  padding: 12px 20px; border-radius: var(--r-pill);
  color: var(--white); background: var(--brand);
  font: 500 13px var(--font-mono); text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Type scale */
.eyebrow {
  display: block; margin: 0 0 14px;
  color: var(--orange); font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow--light { color: rgba(255, 254, 250, .82); }
.display-lg {
  margin: 0; color: var(--brand);
  font-size: clamp(34px, 5vw, 56px); font-weight: 700;
  line-height: 1.06; letter-spacing: -.045em;
}
.display-md {
  margin: 0; color: var(--brand);
  font-size: clamp(26px, 3vw, 40px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.035em;
}
.title-sm { margin: 0; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.body-lg { margin: 0; color: var(--ink-mid); font-size: 17px; line-height: 1.7; }
.body-md { margin: 0; color: var(--ink-mid); font-size: 15px; line-height: 1.65; }
.caption { margin: 0; color: var(--ink-low); font: 400 12px/1.55 var(--font-mono); letter-spacing: .015em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: 0; border-radius: var(--r-pill);
  font: 500 13px/1.2 var(--font-mono); letter-spacing: .04em;
  text-align: center; text-decoration: none; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { color: var(--white); background: var(--brand); box-shadow: 0 4px 16px rgba(0, 90, 24, .22); }
.btn--primary:hover { background: var(--leaf); box-shadow: 0 8px 24px rgba(0, 90, 24, .27); }
.btn--light { color: var(--brand); background: var(--white); box-shadow: var(--shadow-sm); }
.btn--light:hover { box-shadow: var(--shadow-md); }
.btn--sm { padding: 11px 22px; font-size: 12px; }
.btn--lg { padding: 17px 38px; font-size: 14px; }

/* Independent organization header */
.header {
  position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-h);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 254, 250, .84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(-100%); transition: transform .35s var(--ease);
}
.header.is-visible { transform: translateY(0); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.header__brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.header__logo { width: auto; height: 62px; object-fit: contain; }

/* Hero */
.hero {
  overflow: hidden; padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 96px);
  background:
    radial-gradient(70% 45% at 9% 100%, rgba(0, 90, 24, .15), transparent 70%),
    radial-gradient(60% 45% at 100% 100%, rgba(255, 88, 17, .12), transparent 72%),
    linear-gradient(180deg, var(--white) 0%, #f6f6ed 45%, #e8efe2 100%);
}
.brandbar { display: flex; justify-content: center; margin-bottom: clamp(18px, 2.4vw, 30px); }
.brandbar__logo { width: auto; height: clamp(96px, 9vw, 124px); object-fit: contain; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: clamp(28px, 3.6vw, 48px); }
.hero__text { align-self: center; }
.hero__title { margin-bottom: 18px; font-size: clamp(34px, 4vw, 52px); }
.hero__lead { margin-bottom: 13px; font-size: 15px; line-height: 1.62; }
.hero__lead:last-of-type { margin-bottom: 0; }
.hero__secondary-title { margin: 23px 0 0; font-size: clamp(23px, 2.5vw, 31px); }
.hero__figure { position: relative; min-height: 100%; margin: 0; }
.hero__img { width: 100%; height: 100%; min-height: clamp(380px, 47vw, 600px); object-fit: cover; object-position: 50% 44%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero__badge {
  position: absolute; right: 18px; bottom: 22px;
  padding: 10px 16px; border: 1px solid rgba(255, 254, 250, .8); border-radius: var(--r-pill);
  color: var(--brand); background: rgba(255, 254, 250, .9);
  font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--shadow-md); backdrop-filter: blur(12px);
}
.hero__badge::before { display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--orange); content: ""; }

/* Donation choices */
.donate {
  margin-top: clamp(20px, 2.6vw, 30px); padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--border-soft); border-radius: var(--r-xl);
  background: var(--white); box-shadow: 0 18px 44px rgba(30, 45, 30, .14);
}
.donate .eyebrow { margin-bottom: 10px; color: var(--brand); }
.donate__title { margin: 0 0 18px; color: var(--brand); font-size: clamp(19px, 1.8vw, 25px); font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.amount {
  display: flex; align-items: center; justify-content: center; min-height: 53px;
  padding: 12px 7px; border: 2px solid rgba(0, 90, 24, .27); border-radius: var(--r-md);
  color: var(--brand); background: var(--white);
  font: 700 19px/1.2 var(--font-display); letter-spacing: -.025em; text-decoration: none; text-align: center;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.amount:hover { transform: translateY(-2px); border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 6px 18px rgba(0, 90, 24, .12); }
.amount--featured { border-color: var(--orange); color: var(--white); background: var(--orange); box-shadow: 0 8px 20px rgba(255, 88, 17, .24); }
.amount--featured:hover { color: var(--white); background: #e74b0a; }
.amount--other { color: var(--orange); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.trust { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-low); font: 400 11px/1.5 var(--font-mono); letter-spacing: .035em; }
.trust svg { flex: 0 0 auto; }

/* Shared section rhythm */
.section { padding: clamp(72px, 9vw, 110px) 0; }
.section--surface { background: var(--surface); }
.section--cream { background-color: var(--cream); background-image: radial-gradient(rgba(0, 90, 24, .11) 1px, transparent 1px); background-size: 22px 22px; }
.section--tight-bottom { padding-bottom: 20px; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section__head--center { margin-right: auto; margin-left: auto; text-align: center; }
.section__head .display-md { margin-bottom: 18px; }
.section__head .body-lg { max-width: 64ch; margin-right: auto; margin-left: auto; }

/* Testimonial carousel */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--r-xl); }
.carousel__track { display: flex; transition: transform .55s var(--ease); }
.carousel__slide { min-width: 100%; }
.quote {
  display: grid; grid-template-columns: 360px 1fr; min-height: 400px; overflow: hidden;
  margin: 0; border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--white);
}
.quote__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.quote__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.quote__mark { margin-bottom: 20px; color: var(--orange); font-size: 56px; font-weight: 300; line-height: .6; opacity: .55; }
.quote__text { margin: 0 0 28px; color: var(--ink); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.quote__author { display: flex; flex-direction: column; gap: 4px; }
.quote__name { color: var(--brand); font-size: 17px; font-weight: 700; }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.carousel__dots { display: flex; gap: 8px; }
.dot { width: 32px; height: 4px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--border); cursor: pointer; transition: background-color .3s var(--ease), width .3s var(--ease); }
.dot[aria-current="true"] { width: 48px; background: var(--brand); }
.carousel__arrows { display: flex; gap: 8px; }
.arrow {
  display: grid; width: 46px; height: 46px; place-items: center;
  border: 1.5px solid var(--border); border-radius: 50%; color: var(--brand); background: var(--white); cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.arrow:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--white); background: var(--brand); }

/* Original photo archive, adapted to the reference page's mosaic gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 220px); gap: 12px; }
.gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: var(--r-lg); background: var(--brand-tint); }
.gallery figure:nth-child(5n + 1) { grid-row: span 2; }
.gallery figure:nth-child(7n + 3) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }

@media (min-width: 701px) {
  .gallery figure:nth-child(17) { grid-row: span 2; }
}

/* CEPAGRO's work in the field and in the city */
.support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.support__card {
  padding: 34px 30px; border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.support__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.support__icon { width: 72px; height: 72px; margin-bottom: 22px; padding: 10px; border-radius: var(--r-md); background: var(--brand-tint); object-fit: contain; }
.support__card .title-sm { margin-bottom: 10px; color: var(--brand); }

/* Close */
.cta { padding: 0 0 clamp(72px, 9vw, 110px); background: var(--surface); }
.cta__panel {
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 64px); border-radius: var(--r-xl);
  color: var(--white); background: linear-gradient(135deg, var(--brand-deep), var(--brand) 72%, #397745);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta__panel .display-md { margin-bottom: 16px; color: var(--white); }
.cta__panel .body-lg { max-width: 52ch; margin: 0 auto 34px; color: rgba(255, 254, 250, .82); }
.cta__panel .btn { border-radius: 10px; color: var(--orange); }
.cta__panel .btn:hover { color: var(--white); background: var(--orange); }
.cta__trust { margin: 22px 0 0; color: rgba(255, 254, 250, .78); font: 400 11px/1.5 var(--font-mono); letter-spacing: .06em; }

/* CEPAGRO-owned footer, independent of the Doare site shell */
.footer { border-top: 3px solid var(--orange); color: var(--ink-mid); background: linear-gradient(180deg, #edf2e9 0%, #e3ecdf 100%); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 56px); padding: clamp(48px, 6vw, 72px) 0 40px; }
.footer__brandcol { text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.footer__logo { width: auto; height: 112px; object-fit: contain; }
.footer__links { display: grid; gap: 30px; align-content: start; }
.footer h2 { margin: 0 0 16px; color: var(--ink-low); font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.footer p { margin: 0; font-size: 14px; line-height: 1.65; }
.footer a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
.footer a:hover { color: var(--orange); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--brand); background: rgba(255, 254, 250, .7); transition: transform .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease); }
.social:hover { transform: translateY(-2px); color: var(--white) !important; background: var(--brand); }
.social svg { width: 20px; height: 20px; }
.footer__made { font-size: 14px; }
.footer__made a { border-bottom: 1px solid rgba(0, 90, 24, .35); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid var(--border-soft); color: var(--ink-low); font: 400 11px/1.5 var(--font-mono); letter-spacing: .025em; }

/* Persistent mobile donation action */
.mobile-cta { position: fixed; z-index: 90; inset: auto 0 0; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-soft); background: rgba(255, 254, 250, .92); backdrop-filter: blur(14px); }
.mobile-cta .btn { width: 100%; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__figure { order: -1; min-height: 0; }
  .hero__img { min-height: 0; aspect-ratio: 16 / 11; }
  .quote { grid-template-columns: 1fr; min-height: 0; }
  .quote__img { height: auto; aspect-ratio: 16 / 10; }
  .support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  :root { --header-h: 68px; }
  body { padding-bottom: 76px; }
  .mobile-cta { display: block; }
  .header .btn { display: none; }
  .header__logo { height: 50px; }
  .brandbar__logo { height: 100px; }
  .footer__logo { height: 100px; }
  .amount { min-height: 48px; padding: 12px 5px; font-size: 16px; }
  .amount--other { font-size: 10px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 48vw, 230px); }
  .gallery figure:nth-child(7n + 3) { grid-column: span 1; }
  .gallery figure:nth-child(5n + 1) { grid-row: span 2; }
  .carousel__controls { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .carousel__arrows { justify-content: center; }
  .carousel__dots { justify-content: center; }
  .support { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { gap: 22px; text-align: center; }
  .footer__links > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
  .footer h2 { margin: 0; }
  .socials { justify-content: center; }
  .footer__bar { justify-content: center; gap: 6px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}