/* Modelo visual inspirado na estrutura de site institucional/ONG.
   Troque as variáveis abaixo para a identidade da organização. */

:root {
  --brand: #1b3014;
  --brand-mid: #2a4a22;
  --brand-soft: #e2ecdc;
  --ink: #132019;
  --muted: #4a5c54;
  --paper: #f4faf7;
  --surface: #ffffff;
  --accent: #f58634;
  --accent-deep: #e07828;
  --logo-yellow: #fdee21;
  --line: rgba(19, 32, 25, 0.12);
  --shadow: 0 18px 50px rgba(27, 48, 20, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header-h: 78px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(224, 122, 47, 0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(26, 92, 69, 0.14), transparent 50%),
    linear-gradient(180deg, #eef7f2 0%, var(--paper) 28%, #f7fbf9 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Top bar —— */
.topbar {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.topbar a:hover {
  color: #fff;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px -6px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.22);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 0 1.25rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.55rem 0;
  flex: 0 1 auto;
}

.brand__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(280px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.nav__panel {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0 1rem 0 0;
}

.nav__links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.35rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Itec-style header Doar: square orange block, uppercase, header-height weight */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0;
  padding: 0 1.35rem;
  min-width: 5.5rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 300ms ease;
  flex-shrink: 0;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover,
.nav__cta[aria-current="page"] {
  background: var(--accent-deep);
  transform: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Layout helpers —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.65rem;
}

.section h2,
.page-hero h1,
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--brand);
  margin: 0 0 0.85rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Hero (full-bleed, brand-first) —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(8, 36, 28, 0.88) 0%, rgba(12, 59, 46, 0.55) 48%, rgba(14, 48, 38, 0.35) 100%),
    url("../assets/hero-cover.jpg") center / cover no-repeat,
    linear-gradient(160deg, #0c3b2e, #1a5c45 45%, #254a3a);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__glow {
  position: absolute;
  inset: auto -10% -20% 30%;
  height: 55%;
  z-index: -1;
  background: radial-gradient(circle, rgba(224, 122, 47, 0.35), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero__content {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 1.25rem clamp(3.5rem, 8vh, 5rem);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  max-width: 14ch;
  animation: riseIn 0.9s var(--ease) both;
}

.hero__headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  max-width: 34rem;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.hero__support {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  animation: riseIn 0.9s 0.22s var(--ease) both;
}

.hero .btn-row {
  animation: riseIn 0.9s 0.32s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Inner page hero —— */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 59, 46, 0.92), rgba(12, 59, 46, 0.72)),
    url("../assets/hero-cover.jpg") center / cover no-repeat;
  z-index: -1;
}

.page-hero .wrap {
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
}

/* —— Program spotlight bands —— */
.programs {
  display: grid;
  gap: 1.25rem;
}

.program {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 280px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.program:nth-child(even) .program__visual {
  order: 2;
}

.program__visual {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(160deg, rgba(12, 59, 46, 0.25), rgba(224, 122, 47, 0.2)),
    var(--program-bg, linear-gradient(135deg, #1a5c45, #0c3b2e));
  background-size: cover;
  background-position: center;
}

.program__visual::after {
  content: attr(data-label);
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.program__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.program__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin: 0;
  color: var(--brand);
  font-weight: 400;
}

.program__body p {
  margin: 0;
  color: var(--muted);
}

.program__link {
  align-self: flex-start;
  margin-top: 0.4rem;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.92rem;
}

.program__link:hover {
  text-decoration: underline;
}

/* —— About teaser —— */
.about-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-band__visual {
  border-radius: calc(var(--radius) + 6px);
  min-height: 360px;
  background:
    linear-gradient(145deg, rgba(12, 59, 46, 0.15), rgba(224, 122, 47, 0.18)),
    url("../assets/about-acps.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 500;
}

/* —— Values / mission —— */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value {
  padding: 1.4rem 1.3rem;
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.72);
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-weight: 400;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Project list —— */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.project-item {
  padding: 1.15rem 1.15rem 1.25rem;
  border-left: 3px solid var(--brand-mid);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-item:hover {
  background: #fff;
  transform: translateX(4px);
}

.project-item h3,
.project-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand);
  margin: 0 0 0.45rem;
}

.project-item p,
.project-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.activity-grid .project-item {
  min-height: 100%;
}

@media (max-width: 920px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Donate / CTA band —— */
.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(12, 59, 46, 0.94), rgba(26, 92, 69, 0.88)),
    url("../assets/cta-apoio.jpg") center / cover no-repeat;
}

.cta-band h2 {
  color: #fff;
  max-width: 16ch;
}

.cta-band p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 1.4rem;
}

/* —— Contact / forms —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.contact-panel,
.form-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.contact-panel h3,
.form-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 1rem;
  color: var(--brand);
  font-weight: 400;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--brand);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(224, 122, 47, 0.35);
  border-color: var(--accent);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form__note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.map-placeholder {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  min-height: 220px;
  background:
    linear-gradient(160deg, rgba(12, 59, 46, 0.2), rgba(224, 122, 47, 0.15)),
    url("../assets/map-placeholder.svg") center / cover no-repeat;
  border: 1px solid var(--line);
}

/* —— Donate amounts (interaction, not decorative cards clutter) —— */
.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}

.amount-options label,
.amount-options > a {
  display: grid;
  place-items: center;
  padding: 0.9rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.amount-options > a:hover,
.amount-options > a:focus-visible {
  border-color: var(--accent);
  background: rgba(224, 122, 47, 0.1);
}

.amount-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-options input:checked + span,
.amount-options label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(224, 122, 47, 0.1);
}

.amount-options span {
  pointer-events: none;
}

/* —— Prose —— */
.prose {
  max-width: 46rem;
}

.prose p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.prose ul {
  color: var(--muted);
  padding-left: 1.15rem;
}

.stack > * + * {
  margin-top: 2.5rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.86);
  padding: 3.5rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.85rem;
  color: #fff;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* —— Mobile —— */
@media (max-width: 920px) {
  .nav {
    padding-left: 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: 0.35rem;
  }

  .nav__panel {
    position: fixed;
    inset: calc(var(--header-h) + 34px) 0 auto 0;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    z-index: 60;
  }

  body.nav-open .nav__panel {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0;
  }

  .nav__cta {
    width: auto;
    min-width: 4.75rem;
    padding: 0 1.1rem;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .brand__logo {
    height: 44px;
    max-width: min(210px, 46vw);
  }

  .program,
  .about-band,
  .split,
  .footer-grid,
  .values,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .program:nth-child(even) .program__visual {
    order: 0;
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    flex-direction: column;
    gap: 0.35rem;
  }

  .brand__logo {
    height: 38px;
    max-width: min(180px, 48vw);
  }

  .nav__cta {
    min-width: 4.25rem;
    padding: 0 0.9rem;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .hero {
    min-height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
