/* ============================================================
   AImpact — stylesheet
   Tokens follow website-design.md §6. Mobile-first.
   ============================================================ */

:root {
  /* Brand palette */
  --green-deep: #2D5A3D;
  --green-dark: #1F3F2A;
  --green-bright: #5FA678;
  --amber-warm: #D89042;
  --amber-bright: #E8A85F;

  /* Neutrals */
  --cream: #EFE9DC;
  --cream-soft: #F4EFE6;
  --ink-dark: #141C16;
  --off-white: #F0EDE5;

  /* Functional */
  --bg: var(--cream);
  --bg-alt: var(--cream-soft);
  --text: var(--green-deep);
  --text-strong: var(--green-dark);
  --text-muted: rgba(45, 90, 61, 0.7);
  --accent: var(--amber-warm);
  --border: rgba(45, 90, 61, 0.18);
  --border-strong: rgba(45, 90, 61, 0.35);

  /* Typography */
  --font-sans: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --font-h1: clamp(2.5rem, 6vw, 5rem);
  --font-h2: clamp(1.875rem, 3.5vw, 2.75rem);
  --font-h3: clamp(1.25rem, 2vw, 1.625rem);
  --font-body: 1.0625rem;
  --font-small: 0.875rem;
  --font-eyebrow: 0.8125rem;

  /* Layout */
  --container: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(4rem, 10vw, 9rem);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ============================================================
   Reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--text-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-strong);
}

h1 {
  font-size: var(--font-h1);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-h2);
}

h3 {
  font-size: var(--font-h3);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  padding-inline-start: 1.25rem;
}

/* ============================================================
   Utilities
   ============================================================ */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  display: inline-block;
  font-size: var(--font-eyebrow);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.text-muted {
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 50ch;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--green-deep);
  color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--cream);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--amber-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible {
  outline-offset: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.875rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-deep);
  color: var(--cream);
  border-color: var(--green-deep);
}

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--cream);
}

.btn--secondary {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.btn--secondary:hover {
  background: var(--green-deep);
  color: var(--cream);
}

.btn--large {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 233, 220, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav--scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
  min-height: 4.5rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav__brand:hover {
  color: var(--green-deep);
}

.nav__brand-symbol {
  width: 28px;
  height: 28px;
}

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  align-items: center;
}

.nav__links a {
  color: var(--green-deep);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--accent);
}

.nav__lang {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav__lang a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.375rem;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__lang a:hover {
  color: var(--green-deep);
  background: rgba(45, 90, 61, 0.06);
}

.nav__lang [aria-current="true"] {
  color: var(--green-dark);
  font-weight: 700;
}

.nav__lang-sep {
  opacity: 0.4;
}

/* Hamburger */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--green-deep);
  cursor: pointer;
}

.nav__toggle:hover {
  border-color: var(--border-strong);
}

.nav__toggle-bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav__toggle-bars::before { top: 2px; }
.nav__toggle-bars::after  { top: 8px; }

.nav[data-open="true"] .nav__toggle-bars::before {
  top: 5px;
  transform: rotate(45deg);
}
.nav[data-open="true"] .nav__toggle-bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* Mobile menu panel */
@media (max-width: 899px) {
  .nav[data-open="true"] .nav__menu {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad-x) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 25px -10px rgba(20, 28, 22, 0.15);
  }

  .nav__menu .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__menu .nav__links li {
    border-bottom: 1px solid var(--border);
  }

  .nav__menu .nav__links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.0625rem;
    border-bottom: none;
  }

  .nav__menu .nav__lang {
    display: inline-flex;
    margin-top: 1.25rem;
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
  .nav__lang { display: inline-flex; }
  .nav__menu { display: contents; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero__title {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 48ch;
  margin-bottom: 2.25rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__art {
  display: none;
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}

.hero__symbol {
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.35fr 1fr;
  }
  .hero__art {
    display: block;
  }
}

/* ============================================================
   Section base
   ============================================================ */

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head .lead {
  margin-top: 0.5rem;
}

/* ============================================================
   Manifesto cards
   ============================================================ */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
  margin: 0 0 0.25rem;
}

.card__body {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.section__after-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--green-dark);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.section__after-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   Process — 6 step grid
   ============================================================ */

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step__num {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.step__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
  line-height: 1.25;
}

.step__body {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pullquote {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 1.75rem clamp(1.5rem, 3vw, 2.25rem);
  border-left: 3px solid var(--accent);
  background: transparent;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.5;
  color: var(--text-strong);
  font-style: normal;
  font-weight: 500;
  max-width: 75ch;
}

.pullquote p { margin: 0; }

/* ============================================================
   CTA blocks (organizações / voluntários)
   ============================================================ */

.cta-block {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 800px) {
  .cta-block { grid-template-columns: 1.2fr 1fr; }
}

.cta-block__body p {
  max-width: 52ch;
  color: var(--text);
}

.cta-block__action {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
}

@media (min-width: 800px) {
  .cta-block__action {
    align-items: flex-end;
  }
}

.cta-block__note {
  font-size: var(--font-small);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  border-top: 1px solid var(--border);
  max-width: 800px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
  padding-block: 0.25rem;
}

.faq__summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-strong);
  line-height: 1.35;
}

.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::marker { display: none; content: ""; }

.faq__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
  margin-top: 0.375rem;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq__icon::before { width: 1rem; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 1rem; }

.faq__item[open] .faq__icon::after { transform: scaleY(0); opacity: 0; }

.faq__answer {
  padding: 0 0 1.5rem;
  color: var(--text);
  max-width: 70ch;
  line-height: 1.6;
}

.faq__answer p { margin: 0; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--green-dark);
  color: var(--off-white);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer a {
  color: var(--off-white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.footer a:hover {
  opacity: 1;
  color: var(--amber-bright);
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 22rem;
}

.footer__symbol {
  width: 44px;
  height: 44px;
}

.footer__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--off-white);
  line-height: 1;
}

.footer__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.65;
}

.footer__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
  color: var(--off-white);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__bottom {
  border-top: 1px solid rgba(240, 237, 229, 0.12);
  padding-top: 1.5rem;
  font-size: var(--font-small);
  opacity: 0.65;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   Privacy page
   ============================================================ */

.privacy {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.privacy__inner {
  max-width: 70ch;
}

.privacy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.privacy h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.privacy p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}

.privacy__meta {
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Body scroll-lock when mobile nav open
   ============================================================ */

body.is-nav-open {
  overflow: hidden;
}

/* ============================================================
   Team page — .team / .member
   ============================================================ */

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .team { grid-template-columns: repeat(3, 1fr); }
}

.member {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member__photo {
  width: 7rem;
  height: 7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 0.5rem;
}

.member__name {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-strong);
  margin: 0;
}

.member__role {
  font-size: var(--font-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.member__bio {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  max-width: 50ch;
}

.member__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--font-small);
  font-weight: 500;
  text-decoration: none;
  color: var(--green-dark);
  border-bottom: 1px solid var(--border-strong);
  padding: 0.125rem 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.member__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
