@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Chakra+Petch:wght@400;500;700&display=swap');

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4fa;
  --text: #162033;
  --muted: #5a6a81;
  --accent: #0b66ff;
  --accent-soft: #e8f1ff;
  --ok: #227a4d;
  --line: #d8e1ed;
  --header-bg: rgba(255, 255, 255, 0.96);
  --timeline-bg: #f8fbff;
  --table-head-bg: #f7f9fd;
  --past-bg: #f5f8fc;
  --past-text: #8b99ad;
  --input-bg: #ffffff;
  --hero-overlay: linear-gradient(rgba(7, 16, 33, 0.56), rgba(7, 16, 33, 0.56));
  --lightbox-bg: rgba(17, 24, 39, 0.82);
  --max: 1120px;
  --shadow: 0 8px 24px rgba(9, 30, 66, 0.08);
}

[data-theme='dark'] {
  --bg: #0f1623;
  --surface: #141f30;
  --surface-soft: #1a2a40;
  --text: #e8effa;
  --muted: #b3c2d9;
  --accent: #5aa2ff;
  --accent-soft: #1b3557;
  --ok: #6fd39a;
  --line: #2b3e59;
  --header-bg: rgba(15, 22, 35, 0.96);
  --timeline-bg: #17263a;
  --table-head-bg: #17273c;
  --past-bg: #111b2b;
  --past-text: #8296b5;
  --input-bg: #101b2b;
  --hero-overlay: linear-gradient(rgba(3, 10, 20, 0.6), rgba(3, 10, 20, 0.6));
  --lightbox-bg: rgba(2, 8, 18, 0.9);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

[data-theme='sunset'] {
  --bg: #fff6ef;
  --surface: #fffdfb;
  --surface-soft: #ffefe3;
  --text: #3f2b1f;
  --muted: #7f5c45;
  --accent: #c8531f;
  --accent-soft: #ffe3d4;
  --ok: #2d7d58;
  --line: #efcfbe;
  --header-bg: rgba(255, 249, 243, 0.96);
  --timeline-bg: #fff3ea;
  --table-head-bg: #fff0e4;
  --past-bg: #f9ece3;
  --past-text: #9f7860;
  --input-bg: #fffaf6;
  --hero-overlay: linear-gradient(rgba(62, 30, 16, 0.5), rgba(62, 30, 16, 0.5));
  --lightbox-bg: rgba(45, 25, 14, 0.8);
  --shadow: 0 10px 24px rgba(126, 73, 34, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Chakra Petch', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

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

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

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.03em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
}

.brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.nav-menu a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #c3d8ff;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-social svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.nav-menu a.nav-social:hover,
.nav-menu a.nav-social:focus-visible {
  background: var(--accent-soft);
  border-color: #c3d8ff;
  color: var(--accent);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}

.hero-full .container {
  position: relative;
  z-index: 2;
  width: min(var(--max), 92%);
}

.hero-full-content {
  max-width: 680px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-full .kicker {
  color: #dbe9ff;
}

.hero-full h1 {
  color: #ffffff;
}

.hero-full .lead {
  color: #eff5ff;
}

.hero-full .btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.hero-full .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots {
  margin-top: 1rem;
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.hero-dot.active {
  background: #ffffff;
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.32rem;
  margin-bottom: 0.6rem;
}

.lead {
  color: var(--muted);
  max-width: 66ch;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.64rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-main {
  background: var(--accent);
  color: #ffffff;
}

.btn-main:hover {
  background: #0054e0;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-soft);
}

section {
  padding: 2rem 0;
}

section[id] {
  scroll-margin-top: 92px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 1rem;
}

.stat strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  color: var(--text);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card p,
.card li,
.copy,
.timeline li,
.table td,
.table th {
  color: var(--muted);
}

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

.timeline li {
  border-left: 3px solid var(--accent);
  background: var(--timeline-bg);
  padding: 0.72rem 0.95rem;
  border-radius: 0 10px 10px 0;
}

.timeline span {
  color: var(--text);
  font-weight: 700;
  display: block;
}

.palmares-variants {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.palmares-variant h3 {
  margin-bottom: 0.8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.gallery-item button {
  all: unset;
  display: block;
  cursor: pointer;
}

.gallery-item figcaption {
  padding: 0.58rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.logo {
  border: 1px dashed #bfcada;
  border-radius: 10px;
  padding: 1.1rem 0.8rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: var(--text);
  background: var(--table-head-bg);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr.is-past td {
  color: var(--past-text);
  background: var(--past-bg);
}

.badge {
  display: inline-block;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.14rem 0.58rem;
  background: #e4f5e8;
  color: var(--ok);
  font-weight: 600;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.donation-grid {
  margin-top: 1rem;
}

.donation-option {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.don-code {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.92rem;
  word-break: break-word;
}

.qr-code-wrap {
  width: min(230px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 0.35rem;
}

.qr-code-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.62rem 0.68rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c3d8ff;
  outline-offset: 1px;
  border-color: #9dbfff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-note {
  color: var(--ok);
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.2rem;
  padding: 1.3rem 0 1.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-text {
  margin: 0;
}

.footer-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-switch label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-switch select {
  width: auto;
  min-width: 112px;
  padding: 0.4rem 0.55rem;
}

.footer-partners {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-partners-title {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.footer-partners-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-partners-logos img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.22rem 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  background: var(--lightbox-bg);
  z-index: 70;
  display: none;
  place-items: center;
  padding: 1rem;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  border-radius: 999px;
  width: 36px;
  height: 36px;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .gallery-grid,
  .logo-list,
  .contact-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.6rem;
  }

  .hero-full {
    padding: 0;
    min-height: 100svh;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .gallery-grid,
  .logo-list,
  .form-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer-partners {
    flex-direction: column;
    align-items: flex-start;
  }
}
