/* =====================================================================
   Instituto Dorival — main.css
   CSS puro com custom properties. Sem framework de build.
   ===================================================================== */

/* -----------------------------------------------------------------------
   1. VARIÁVEIS (custom properties)
------------------------------------------------------------------------ */
:root {
  /* Paleta da marca Instituto Dorival */
  --bg:            oklch(0.982 0.005 78);   /* branco quente */
  --fg:            oklch(0.265 0.040 72);   /* #403722 — marrom escuro */
  --bg-white:      oklch(1.000 0.000 0);
  --muted-fg:      oklch(0.490 0.030 75);   /* #7a6d58 — marrom médio */
  --border:        oklch(0.858 0.022 79);   /* borda quente suave */
  --primary:       oklch(0.808 0.175 68);   /* #ffb719 — amarelo da marca */
  --primary-fg:    oklch(0.265 0.040 72);   /* #403722 */
  --brand-dark:    oklch(0.660 0.155 65);   /* #c8920e — âmbar escuro */
  --brand-light:   oklch(0.940 0.080 88);   /* #ffe9a0 — amarelo claro */
  --surface-warm:  oklch(0.975 0.008 78);   /* rodapé */
  --accent:        oklch(0.940 0.080 88);
  --ring:          oklch(0.808 0.175 68);
  --sage:          oklch(0.640 0.070 145);  /* #7a9e78 — verde-sálvia muted */
  --sage-soft:     oklch(0.912 0.038 148);  /* verde-sálvia muito claro */
  --sky:           oklch(0.640 0.055 220);  /* #7a9ab0 — azul-cinza empoeirado */
  --sky-soft:      oklch(0.922 0.022 218);  /* azul empoeirado muito claro */
  --cream:         #FFF6E6;                 /* creme quente da marca */
  --teal:          oklch(0.500 0.075 148);  /* verde-sálvia profundo */
  --coral:         oklch(0.570 0.130 42);   /* #c4623a — terracota quente */

  /* Tipografia */
  --font-sans:    'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Outfit', ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --container-max: 80rem;
  --px: 1rem;
  --radius:   0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

/* -----------------------------------------------------------------------
   2. RESET & BASE
------------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* -----------------------------------------------------------------------
   3. LAYOUT
------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--px);
}

@media (min-width: 640px)  { :root { --px: 1.5rem; } }
@media (min-width: 1024px) { :root { --px: 2rem; } }

.section       { padding-block: 4rem; }
.section--sm   { padding-block: 2rem; }
.section--hero { padding-top: 4rem; padding-bottom: 3rem; }

@media (min-width: 1024px) {
  .section--hero { padding-top: 6rem; }
}

/* Grids */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Alinhamento */
.text-center { text-align: center; }
.text-brand-dark { color: var(--brand-dark); }

/* Utilitário de margem top */
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

/* -----------------------------------------------------------------------
   4. TIPOGRAFIA
------------------------------------------------------------------------ */
.page-title {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .page-title { font-size: 3rem; } }

.section-title {
  font-size: 1.875rem;
  letter-spacing: -0.015em;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }


.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-fg);
}

.body-text {
  line-height: 1.75;
  color: var(--muted-fg);
}

.small-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

/* -----------------------------------------------------------------------
   5. TAGS / BADGES
------------------------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-sage       { background: var(--sage-soft); color: var(--fg); }
.tag-sky        { background: var(--sky-soft);  color: var(--fg); }
.tag-primary    { background: var(--brand-light); color: var(--fg); }
.tag-primary-soft { background: color-mix(in oklch, var(--primary) 30%, var(--bg)); color: var(--fg); }

/* -----------------------------------------------------------------------
   6. BOTÕES
------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s, opacity 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: var(--bg-white);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--accent); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
  padding: 0;
  background: none;
  border: none;
}
.btn-link:hover { text-decoration: underline; }
.btn-link svg { flex-shrink: 0; }

/* -----------------------------------------------------------------------
   7. FORMULÁRIOS
------------------------------------------------------------------------ */
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--fg);
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 1px var(--ring);
}
.form-textarea { resize: vertical; }

.form-submit {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s;
}
.form-submit:hover { background: var(--brand-dark); }

/* -----------------------------------------------------------------------
   8. CARDS — bases
------------------------------------------------------------------------ */
.card { border-radius: var(--radius-2xl); }
.card-sage  { background: var(--sage-soft); }
.card-sky   { background: var(--sky-soft); }
.card-cream { background: var(--cream); }
.card-white { background: var(--bg-white); }

.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
}
.card-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

/* Icon wrap */
.icon-wrap {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgb(0 0 0 / .08);
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   9. HELP CARDS (Em que podemos ajudar)
------------------------------------------------------------------------ */
.help-card {
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s;
}
.help-card:hover { transform: translateY(-2px); }

/* -----------------------------------------------------------------------
   10. PATH CARDS (Como podemos ajudar — 4 opções)
------------------------------------------------------------------------ */
.path-card {
  display: block;
  border-radius: 1rem;
  background: var(--bg-white);
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s;
}
.path-card:hover { transform: translateY(-2px); }

.path-card__icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: color-mix(in oklch, var(--primary) 20%, var(--bg));
  color: var(--brand-dark);
}

.path-card__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}
.path-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

/* -----------------------------------------------------------------------
   11. STEP CARDS (processo de inscrição)
------------------------------------------------------------------------ */
.step-card {
  border-radius: 1rem;
  background: var(--cream);
  padding: 1.5rem;
}
.step-card__n {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
}
.step-card__title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}
.step-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

/* Step card variante com ícone */
.step-card--icon {
  background: var(--bg-white);
}
.step-card--icon .step-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-card--icon .step-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: color-mix(in oklch, var(--primary) 20%, var(--bg));
  color: var(--brand-dark);
}

/* -----------------------------------------------------------------------
   12. NUM CARDS + CARROSSEL
------------------------------------------------------------------------ */
.carousel-wrap { position: relative; }

.carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 1rem;
  margin-inline: -1rem;
  padding: 0 1rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.num-card {
  flex-shrink: 0;
  width: 72vw;
  max-width: 72vw;
  scroll-snap-align: start;
  border-radius: 1rem;
  background: var(--cream);
  padding: 1.5rem;
}
/* num-cards dentro de seção coral têm fundo cream */

.num-card__n {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.num-card__title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
}
.num-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.carousel-prev,
.carousel-next {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--fg);
  box-shadow: 0 1px 3px rgb(0 0 0 / .07);
  transition: opacity 0.2s;
}
.carousel-prev:disabled,
.carousel-next:disabled { opacity: 0.3; cursor: default; }
.carousel-prev:not(:disabled):hover,
.carousel-next:not(:disabled):hover { background: var(--accent); }

@media (min-width: 640px) {
  .carousel-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    overflow-x: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding: 0;
    scroll-padding-left: 0;
  }
  .num-card {
    width: auto;
    max-width: none;
    scroll-snap-align: none;
  }
  .carousel-controls { display: none; }
}
@media (min-width: 1024px) {
  .carousel-track { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* -----------------------------------------------------------------------
   13. FAQ
------------------------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border-radius: 1rem;
  background: var(--cream);
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
details[open].faq-item { border-left-color: var(--primary); }

.faq-question {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question > span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}

.faq-chevron {
  display: flex;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--bg-white);
  color: var(--brand-dark);
  transition: transform 0.2s;
}
details[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

/* -----------------------------------------------------------------------
   14. TEAM CARD
------------------------------------------------------------------------ */
.team-card {
  border-radius: 1rem;
  background: var(--primary);
  padding: 1.5rem;
  text-align: center;
}
.team-avatar {
  display: flex;
  width: 5rem;
  height: 5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--bg-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  max-width: none;
  flex: 0 0 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
.team-name {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}
.team-role {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* -----------------------------------------------------------------------
   15. VALUE CARD
------------------------------------------------------------------------ */
.value-card {
  border-radius: 1rem;
  background: var(--bg-white);
  padding: 1.5rem;
}
.value-card .icon-wrap { color: var(--brand-dark); }
.value-card h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}
.value-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

/* -----------------------------------------------------------------------
   16. STATS
------------------------------------------------------------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-radius: 1.5rem;
  background: var(--cream);
  padding: 2rem;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.stat { text-align: center; padding: 0.75rem 0.5rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-dark);
}
.stat__title {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-dark);
}
.stat__label {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted-fg);
}
.stats-track .stat {
  flex-shrink: 0;
  width: 72vw;
  max-width: 72vw;
  scroll-snap-align: start;
  border-radius: 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .stats-track .stat {
    width: auto;
    max-width: none;
    scroll-snap-align: none;
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
  }
  .stats-track {
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--cream);
    padding: 2rem;
  }
}

/* -----------------------------------------------------------------------
   17. EVENTO CARD
------------------------------------------------------------------------ */
.event-card {
  display: flex;
  gap: 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--cream);
  padding: 1.5rem;
}
@media (min-width: 1024px) { .event-card { padding: 2rem; } }

.event-date-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 1rem;
  background: var(--bg-white);
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgb(0 0 0 / .07);
  min-width: 3.5rem;
}
.event-date-badge__day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1;
}
.event-date-badge__month {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  text-transform: uppercase;
}
.event-date-badge__year {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 400;
  color: color-mix(in oklch, var(--muted-fg) 50%, var(--bg-white));
  letter-spacing: 0.02em;
}

.event-body { flex: 1; display: flex; flex-direction: column; }

.event-tag {
  align-self: flex-start;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.event-tag--caminhada  { background: var(--sage-soft); color: var(--teal); }
.event-tag--feira      { background: var(--sky-soft);  color: var(--brand-dark); }
.event-tag--arrecadacao{ background: color-mix(in oklch, var(--primary) 20%, var(--bg)); color: var(--brand-dark); }
.event-tag--roda       { background: var(--brand-light); color: var(--fg); }

.event-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}
.event-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
  flex: 1;
}
.event-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.event-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.event-location svg { flex-shrink: 0; }

/* -----------------------------------------------------------------------
   17b. ABAS DE EVENTOS
------------------------------------------------------------------------ */
.events-tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--cream);
  margin-bottom: 2rem;
}

.events-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-fg);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.events-tab-btn:hover { color: var(--fg); }
.events-tab-btn.is-active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
}

.events-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--cream);
  color: var(--muted-fg);
}
.events-tab-btn.is-active .events-tab-count {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.events-tab-panel { display: none; }
.events-tab-panel.is-active { display: block; }

/* -----------------------------------------------------------------------
   17c. CARD EVENTO ANTERIOR (layout horizontal com carrossel)
------------------------------------------------------------------------ */
.events-past-list { display: flex; flex-direction: column; gap: 1.5rem; }

.event-card-past {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2rem;
  background: var(--cream);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}
/* Card sem fotos: coluna única */
.event-card-past--no-photo { grid-template-columns: 1fr; }

.event-past-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Data badge + tipo + título em linha */
.event-past-info__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.event-past-info__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.event-past-info__meta .event-title { margin-top: 0; }

.event-past-info .event-desc  { flex: 1; margin-top: 0; }
.event-past-info .event-location { margin-top: auto; }

/* Carrossel de fotos — sem overflow:hidden no pai (cortava setas e bloqueava scroll) */
.event-past-carousel { position: relative; }

.event-photo-carousel-wrap { position: relative; }

/* .event-photo-track não tem .carousel-track — sem conflito com o grid responsivo */
.event-photo-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius-xl);
}
.event-photo-track::-webkit-scrollbar { display: none; }

/* 3 fotos visíveis por vez (desktop) */
.event-photo-slide {
  flex: 0 0 calc((100% - 1rem) / 3);
  width: calc((100% - 1rem) / 3);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
}

/* Setas sobre o carrossel */
.event-photo-carousel-wrap .carousel-prev,
.event-photo-carousel-wrap .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.92);
  border: none;
  cursor: pointer;
  color: var(--fg);
  box-shadow: 0 1px 6px rgb(0 0 0 / .2);
  transition: background 0.15s, opacity 0.15s;
}
.event-photo-carousel-wrap .carousel-prev { left: 0.5rem; }
.event-photo-carousel-wrap .carousel-next { right: 0.5rem; }
.event-photo-carousel-wrap .carousel-prev:hover,
.event-photo-carousel-wrap .carousel-next:hover { background: #fff; }
.event-photo-carousel-wrap .carousel-prev:disabled,
.event-photo-carousel-wrap .carousel-next:disabled { opacity: 0.3; pointer-events: none; }

/* Mobile: empilha, 2 fotos por vez */
@media (max-width: 767px) {
  .event-card-past {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .event-photo-slide {
    flex: 0 0 calc(50% - 0.25rem);
    width: calc(50% - 0.25rem);
  }
}

/* Mobile: tab nav pode transbordar com labels longos — scroll horizontal */
@media (max-width: 640px) {
  .events-tab-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .events-tab-nav::-webkit-scrollbar { display: none; }
  .events-tab-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* -----------------------------------------------------------------------
   18. CONTATO INFO CARDS (página Contato)
------------------------------------------------------------------------ */
.contact-info-card {
  border-radius: 1rem;
  padding: 1.5rem;
}
.contact-info-card--sage  { background: var(--sage-soft); }
.contact-info-card--sky   { background: var(--sky-soft); }
.contact-info-card--cream { background: var(--cream); }

.contact-info-inner { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  flex-shrink: 0;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 10%, var(--bg));
  color: var(--brand-dark);
}
.contact-info-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}
.contact-info-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-fg);
}

/* -----------------------------------------------------------------------
   19. CONTACT BLOCK (vamos caminhar juntos — rodapé de páginas)
------------------------------------------------------------------------ */
.contact-block { background: none; }

/* -----------------------------------------------------------------------
   20. COLORED SECTION BACKGROUNDS
------------------------------------------------------------------------ */
.section-coral    { background: var(--coral); }
.section-sky-soft { background: var(--sky-soft); }
.section-cream    { background: var(--cream); }
.section-sage-soft{ background: var(--sage-soft); }

/* Títulos e textos em seção coral */
.section-coral .section-title,
.section-coral h2 { color: white; }
.section-coral p   { color: rgb(255 255 255 / 0.8); }
.section-coral .num-card__desc { color: var(--muted-fg); }

/* -----------------------------------------------------------------------
   21. HERO SEÇÃO
------------------------------------------------------------------------ */
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
@media (min-width: 640px)  { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-img-wrap {
  position: relative;
}
.hero-img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgb(0 0 0 / .12);
}
.hero-img img {
  width: 100%;
  height: 26rem;
  object-fit: cover;
}

/* Float badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: var(--bg-white);
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 12px rgb(0 0 0 / .1);
}
.float-badge__icon {
  display: flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: color-mix(in oklch, var(--primary) 20%, var(--bg));
}
.float-badge__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
}

/* Decorative blobs behind hero image */
.hero-blob-teal {
  position: absolute;
  left: -1.5rem;
  top: 2.5rem;
  z-index: -1;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--teal) 30%, transparent);
}
.hero-blob-primary {
  position: absolute;
  right: -1rem;
  top: -1rem;
  z-index: -1;
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 40%, transparent);
}

/* Seção "você não está sozinho" */
.alone-section {
  border-radius: var(--radius-2xl);
  background: var(--sage-soft);
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 1024px) { .alone-section { padding: 3.5rem 3.5rem; } }
.alone-flower {
  width: 6rem;
  height: 6rem;
  color: color-mix(in oklch, var(--teal) 70%, transparent);
}

/* Seção "como podemos ajudar" (4 opções) */
.how-help-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--cream);
  padding: 3rem 2rem;
}
@media (min-width: 1024px) { .how-help-wrap { padding: 4rem 3.5rem; } }

.how-help-squiggle {
  position: absolute;
  right: 2.5rem;
  top: 2.5rem;
  display: none;
  width: 4rem;
  height: 6rem;
  color: color-mix(in oklch, var(--fg) 30%, transparent);
}
@media (min-width: 1024px) { .how-help-squiggle { display: block; } }

/* -----------------------------------------------------------------------
   22. HEADER / NAVBAR
------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 2px solid var(--primary);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: var(--primary);
  flex-shrink: 0;
}
.logo-mark span {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-fg);
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-list a:hover { color: var(--primary); }
.nav-list a.current,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--brand-dark); font-weight: 600; }

/* Instagram icon link */
.instagram-link {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  color: var(--brand-dark);
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.instagram-link:hover { background: var(--primary); color: var(--fg); }
.instagram-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.375rem;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1rem var(--px);
}
.nav-mobile.is-open { display: block; }

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-list a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-list li:last-child a { border-bottom: none; }

.nav-mobile-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}
.nav-mobile-instagram svg { width: 1rem; height: 1rem; fill: currentColor; }

/* -----------------------------------------------------------------------
   23. FOOTER
------------------------------------------------------------------------ */
.site-footer {
  border-top: 2px solid var(--brand-dark);
  background: var(--primary);
  color: #000;
}
.footer-instagram:hover,
.footer-nav-list a:hover,
.footer-contact-list a:hover { color: #5a3e00; }

.footer-inner { padding-block: 3rem; }

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.4fr; }
}

.footer-brand .logo-name { font-size: 1rem; }

.footer-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #000;
  max-width: 20rem;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-instagram:hover { color: #5a3e00; }
.footer-instagram svg { width: 1rem; height: 1rem; fill: currentColor; flex-shrink: 0; }

.footer-heading {
  font-size: 0.875rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #000;
}

.footer-nav-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem 1rem;
}
@media (min-width: 768px) {
  .footer-nav-list { grid-template-columns: 1fr 1fr; }
}

.footer-nav-list a {
  font-size: 0.875rem;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: #5a3e00; }

.footer-contact-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-contact-list a {
  font-size: 0.875rem;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-list a:hover { color: #5a3e00; }

.footer-copy {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  font-size: 0.875rem;
  color: #000;
}
.footer-copy__privacy {
  color: inherit;
  opacity: 0.45;
  text-decoration: none;
}
.footer-copy__privacy::before {
  content: '|';
  margin-right: 1.25rem;
  opacity: 0.5;
}
.footer-copy__privacy:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -----------------------------------------------------------------------
   24. CRISE — bloco de 2 painéis
------------------------------------------------------------------------ */
.crise-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .crise-grid { grid-template-columns: 1fr 1fr; }
}

.crise-info {
  border-radius: var(--radius-2xl);
  background: var(--cream);
  padding: 2.5rem;
}
.crise-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
}
.crise-info .squiggle-icon {
  width: 2rem;
  height: 2.5rem;
  color: color-mix(in oklch, var(--muted-fg) 50%, transparent);
}
.crise-info h2 {
  margin-top: 1.5rem;
  font-size: 2rem;
}

.crise-flower-panel {
  display: flex;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  background: var(--sage-soft);
}
.crise-flower {
  width: 10rem;
  height: 10rem;
  color: color-mix(in oklch, var(--sage) 60%, transparent);
}

/* -----------------------------------------------------------------------
   25. QUEM SOMOS — 2 cols
------------------------------------------------------------------------ */
.hero-grid--sobre {
  align-items: stretch;
}
@media (min-width: 1024px) {
  .hero-grid--sobre { grid-template-columns: 3fr 2fr; }
}

.about-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 20px rgb(0 0 0 / .1);
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

/* -----------------------------------------------------------------------
   26. MANIFESTO — "Por que existimos"
------------------------------------------------------------------------ */
.manifesto-block {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

/* -----------------------------------------------------------------------
   27. SOBRE — causa e parcerias (bloco colorido com valores)
------------------------------------------------------------------------ */
.tinted-block {
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
}
@media (min-width: 1024px) { .tinted-block { padding: 4rem 3.5rem; } }

/* -----------------------------------------------------------------------
   27. LIGHTBOX
------------------------------------------------------------------------ */
.id-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgb(26 20 10 / 0.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.id-lightbox.is-open { display: flex; }

.id-lightbox__inner {
  position: relative;
  max-width: 56rem;
  width: 100%;
  border-radius: var(--radius-2xl);
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.4);
  border: 1px solid var(--border);
}

.id-lightbox__img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--fg);
}

.id-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.id-lightbox__counter {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  font-weight: 500;
}

.id-lightbox__close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.9);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
  transition: background 0.15s;
  z-index: 2;
}
.id-lightbox__close:hover { background: #fff; }
.id-lightbox__close svg { pointer-events: none; }

.id-lightbox__prev,
.id-lightbox__next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.id-lightbox__prev:hover,
.id-lightbox__next:hover { background: var(--accent); }
.id-lightbox__prev:disabled,
.id-lightbox__next:disabled { opacity: 0.3; pointer-events: none; }

.event-photo-slide { cursor: zoom-in; }

@media (max-width: 640px) {
  .id-lightbox { padding: 0.75rem; }
  .id-lightbox__img { max-height: 65vh; }
}

.tinted-block--sky   { background: var(--sky-soft); }
.tinted-block--cream { background: var(--cream); }

/* -----------------------------------------------------------------------
   27. FORM PAGE (contato)
------------------------------------------------------------------------ */
.form-card {
  border-radius: var(--radius-2xl);
  background: var(--cream);
  padding: 2rem;
}
.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.form-stack {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* -----------------------------------------------------------------------
   28. 404
------------------------------------------------------------------------ */
.page-404 {
  display: flex;
  min-height: calc(100vh - 4rem);
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}
.page-404__num {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: var(--fg);
}
.page-404__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.page-404__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.page-404__btn { margin-top: 1.5rem; }

/* -----------------------------------------------------------------------
   29. SCROLL ANCHOR OFFSET (para ancora com header fixo)
------------------------------------------------------------------------ */
[id="sintomas"],
[id="como-ajudar"],
[id="crise"],
[id="inscricao"] {
  scroll-margin-top: 5rem;
}

/* -----------------------------------------------------------------------
   30. MAIN layout wrapper
------------------------------------------------------------------------ */
.site-main { flex: 1; }

.flex-col-full {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* -----------------------------------------------------------------------
   31. LOGO PERSONALIZADO (WordPress custom-logo)
------------------------------------------------------------------------ */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.custom-logo {
  display: block;
  max-height: 2.75rem;
  width: auto;
  height: auto;
}

/* -----------------------------------------------------------------------
   32. BORDAS SUTIS — contraste dos módulos com o fundo da página
------------------------------------------------------------------------ */

/* Cards com fundo colorido (sage, sky, cream) ou branco */
.card,
.help-card,
.path-card,
.step-card,
.num-card,
.team-card,
.value-card,
.event-card,
.event-card-past,
.contact-info-card,
.form-card {
  border: 1px solid var(--border);
}

/* Blocos maiores: seções e wrappers */
.alone-section,
.how-help-wrap,
.tinted-block,
.crise-info,
.crise-flower-panel,
.stats-grid {
  border: 1px solid var(--border);
}

/* FAQ — destaca cada item */
.faq-item {
  border: 1px solid var(--border);
}

/* Badge de data do evento — já tem sombra, borda reforça */
.event-date-badge {
  border: 1px solid var(--border);
}
