/* =============================================
   PROJETO SOCIAL MANANCIAL – style.css
   Mobile-first | Acessível | Acolhedor
   ============================================= */

/* ---------- TOKENS ---------- */
:root {
  --primary:       #1a5276;   /* Azul marinho */
  --primary-dark:  #154360;
  --primary-light: #2980b9;
  --accent:        #e67e22;   /* Laranja (CTA) */
  --accent-hover:  #d35400;
  --bg:            #f8f9fa;   /* Off-white gelo */
  --surface:       #ffffff;
  --text:          #1c2833;
  --text-muted:    #566573;
  --border:        #d5d8dc;
  --success:       #27ae60;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);

  --transition: 0.25s ease;
  --max-w: 1140px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.section__label {
  display: inline-block;
  background: rgba(26,82,118,0.1);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.section__label--light {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section__title--light { color: #fff; }

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn--cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230,126,34,0.35);
}
.btn--cta:hover { 
  background: var(--accent-hover); 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: 0 12px 28px rgba(230,126,34,0.45); 
}

.btn--pulse {
  animation: btnPulse 2s infinite;
}
@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(230,126,34,0.7); }
  70% { box-shadow: 0 0 0 15px rgba(230,126,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,126,34,0); }
}

.btn--outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn--outline:hover { 
  background: #fff; 
  color: var(--primary); 
  border-color: #fff;
  transform: translateY(-4px); 
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
}
.header__logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}
.header__logo:hover img { transform: scale(1.05); }

/* ---------- NAV ---------- */
.nav { display: none; } /* Mobile hidden por padrão */
.nav__list { display: flex; flex-direction: column; gap: 0; }
.nav__link {
  display: block;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav__link:hover { color: var(--primary); background: rgba(26,82,118,0.06); }

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu Open */
.nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding-bottom: 1rem;
}

/* ---------- HERO (REDESIGN) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  background-image: 
    linear-gradient(135deg, rgba(21,67,96,0.95) 0%, rgba(26,82,118,0.85) 50%, rgba(41,128,185,0.7) 100%),
    url('imgs/hero-capa.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__shape {
  position: absolute;
  background: rgba(255,255,255,0.03);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 15s infinite alternate;
}
.hero__shape--1 { width: 400px; height: 400px; top: -100px; right: -100px; background: rgba(230,126,34,0.1); }
.hero__shape--2 { width: 300px; height: 300px; bottom: -50px; left: -50px; background: rgba(41,128,185,0.2); }
.hero__shape--3 { width: 200px; height: 200px; top: 20%; left: 10%; }

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
  100% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; transform: rotate(360deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 6rem 4rem;
}

.hero__highlight {
  position: relative;
  color: var(--accent);
  display: inline-block;
}
.hero__highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(230,126,34,0.2);
  z-index: -1;
}

.hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.hero__stat { text-align: center; }
.hero__stat-num { 
  display: block; 
  font-size: clamp(1.2rem, 4vw, 1.75rem); 
  font-weight: 800; 
  color: var(--accent); 
  line-height: 1.1; 
  margin-bottom: 0.25rem;
}
.hero__stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.hero__stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ---------- QUEM SOMOS (REESTRUTURADO) ---------- */
.quem-somos { background: var(--surface); }

.quem-somos__strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.quem-somos__strip-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.quem-somos__strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.quem-somos__strip-item:hover img { transform: scale(1.08); }

.quem-somos__content-wrap {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.quem-somos__text p {
  margin-bottom: 1.5rem;
}
.quem-somos__text .stats {
  justify-content: center;
  border-top: none;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .quem-somos__strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- STATS (QUEM SOMOS) ---------- */
.stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 600;
}



/* ---------- PROJETOS (EDITORIAL REDESIGN) ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.proj-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-card__img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.proj-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.proj-card__overlay {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  color: #fff;
  transition: all 0.4s ease;
}

.proj-card__badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.proj-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.proj-card__text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.proj-card:hover .proj-card__img { transform: scale(1.1); }
.proj-card:hover .proj-card__overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%); }
.proj-card:hover .proj-card__text { opacity: 0.9; max-height: 100px; }
.proj-card:hover .proj-card__title { transform: translateY(-5px); }

.proj-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.proj-meta__tag {
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.projetos__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Manter estilos antigos .cards para fallback */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.card__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; }
.card__tag {
  display: inline-block;
  background: rgba(26,82,118,0.08);
  color: var(--primary);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.85rem;
}
.card__text { color: var(--text-muted); font-size: 0.95rem; }
.card--wide { grid-column: 1; }


/* ---------- IMPACTO ---------- */
.impacto {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
}
.impacto__text {
  font-size: 1.1rem;
  max-width: 680px;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.92);
}
.impacto__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.impacto__card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}
.impacto__card:hover { background: rgba(255,255,255,0.2); }
.impacto__icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.impacto__card p { font-size: 0.9rem; color: rgba(255,255,255,0.9); line-height: 1.5; }

/* Depoimento */
.depoimento {
  background: rgba(255,255,255,0.12);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2rem 2rem 1.75rem;
  backdrop-filter: blur(8px);
}
.depoimento__texto {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.depoimento__autor {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

/* ---------- APOIAR ---------- */
.apoiar { background: var(--surface); }
.apoiar__intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.apoiar__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.apoiar__box {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.apoiar__box:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.apoiar__box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.apoiar__box-icon { font-size: 1.8rem; }
.apoiar__box-header h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}
.apoiar__box > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.apoiar__box--pix { border-color: var(--primary); }
.apoiar__box--whatsapp { border-color: #25d366; }

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover {
  background: #128c7e;
  color: #fff;
  transform: translateY(-2px);
}

.pix__key {
  background: var(--surface);
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.pix__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.pix__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  word-break: break-all;
}
.apoiar__name { font-size: 0.88rem; color: var(--text-muted); }

.bank__info { display: flex; flex-direction: column; gap: 0.5rem; }
.bank__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.bank__row span { color: var(--text-muted); font-size: 0.88rem; }
.bank__row strong { color: var(--primary); font-family: var(--font-head); font-size: 0.95rem; }

/* Observação centavos */
.apoiar__obs {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(230,126,34,0.08);
  border: 1px solid rgba(230,126,34,0.35);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.apoiar__obs-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.apoiar__obs strong { color: var(--primary); display: block; margin-bottom: 0.4rem; }
.apoiar__obs ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.apoiar__obs li { font-size: 0.92rem; color: var(--text-muted); }
.apoiar__obs li strong { color: var(--accent); display: inline; }

/* ---------- TRANSPARÊNCIA ---------- */
.transparencia { background: var(--bg); }
.transparencia__inner {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.transparencia__text p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.transparencia__valores {
  display: grid;
  gap: 1.25rem;
}
.valor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.valor:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.valor__icon { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.valor h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.valor p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- CONTATO ---------- */
.contato { background: var(--surface); }
.contato__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.contato__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-block: 2rem;
}
.contato__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.contato__icon {
  font-size: 1.5rem;
  background: rgba(26,82,118,0.08);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.contato__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.contato__item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.link--whatsapp {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(26,82,118,0.3);
  transition: text-decoration-color 0.3s ease;
}
.link--whatsapp:hover { text-decoration-color: var(--primary); }

.contato__map {
  width: 100%;
}

@media (min-width: 1024px) {
  .contato__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
}
.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}
.footer__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid rgba(255,255,255,0.2);
}
.footer__slogan {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.footer__slogan em { color: var(--accent); font-style: normal; }
.footer__title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.footer__info address p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.footer__info address strong { color: #fff; }

/* Redes Sociais */
.social__links { display: flex; flex-direction: column; gap: 0.75rem; }
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), background var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
  width: fit-content;
}
.social__link:hover { transform: translateY(-2px); }
.social__link--facebook { background: rgba(24,119,242,0.25); color: #7eb8f7; }
.social__link--facebook:hover { background: rgba(24,119,242,0.4); }
.social__link--instagram { background: rgba(228,64,95,0.25); color: #f89bb3; }
.social__link--instagram:hover { background: rgba(228,64,95,0.4); }
.social__link--whatsapp { background: rgba(37,211,102,0.25); color: #8ef5b4; }
.social__link--whatsapp:hover { background: rgba(37,211,102,0.4); }

/* Footer bottom */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer__bottom p + p { margin-top: 0.25rem; }
.footer__dev strong { color: rgba(255,255,255,0.65); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--success);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ================================================
   TABLET – min-width: 640px
   ================================================ */
@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav__list { flex-direction: row; gap: 0.25rem; }
  .nav__link {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
  }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: 1 / -1; }

  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card--wide { grid-column: 1 / -1; }
  .proj-card--wide .proj-card__img-wrap { height: 320px; }

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

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



  .footer__inner { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================
   DESKTOP – min-width: 1024px
   ================================================ */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card--wide { grid-column: 1 / -1; }

  .impacto__grid { grid-template-columns: repeat(4, 1fr); }



  .transparencia__inner { grid-template-columns: 1fr 1fr; }
  .transparencia__valores { grid-template-columns: 1fr; gap: 1rem; }

  .nav__link { font-size: 0.93rem; padding: 0.5rem 0.9rem; }

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

/* ================================================
   ACESSIBILIDADE – Foco e Alto Contraste
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ================================================
   SCROLL-REVEAL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================
   PERFORMANCE – CLS / CONTAIN
   ================================================ */

/* Aspect-ratio explícito nos cards evita reflow */
.proj-card__img-wrap {
  aspect-ratio: 16 / 10;
  height: auto;
  contain: layout style;
}
.proj-card__img-wrap--wide {
  aspect-ratio: 21 / 9;
}

/* Seções abaixo do fold: content-visibility acelera o paint */
.impacto,
.apoiar,
.transparencia {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ================================================
   ARIA / ACESSIBILIDADE EXTRA
   ================================================ */
[aria-current="page"] {
  color: var(--primary);
  font-weight: 800;
}

/* ================================================
   PRINT
   ================================================ */
@media print {
  .header, .hero__scroll-hint, .toast, .nav__toggle { display: none; }
  body { font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; }
}
