:root {
  --forest: #1f7a4a;
  --forest-mid: #2f9a62;
  --leaf: #3cbf78;
  --gold: #f0c14b;
  --gold-soft: #ffe9a8;
  --cream: #f4fbf4;
  --paper: #ffffff;
  --ink: #163024;
  --muted: #4d6758;
  --earth: #e07a2f;
  --river: #1aa0b8;
  --line: rgba(22, 48, 36, 0.1);
  --shadow: 0 16px 40px rgba(31, 122, 74, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(60,191,120,.16), transparent 60%),
    radial-gradient(700px 320px at 0% 0%, rgba(240,193,75,.14), transparent 55%),
    var(--cream);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 251, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--gold);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.brand img {
  width: auto; height: 68px; object-fit: contain;
  border-radius: 10px; background: #000;
}
.brand strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; letter-spacing: .02em; }
.brand span { display: block; font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links .nav-news {
  display: inline-block;
  background: var(--forest);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(31, 122, 74, .28);
  animation: newsPulse 2.4s ease-in-out infinite;
}
.nav-links .nav-news:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
}
@keyframes newsPulse {
  0%, 100% { box-shadow: 0 8px 18px rgba(31, 122, 74, .28); }
  50% { box-shadow: 0 10px 26px rgba(60, 191, 120, .55); }
}
.nav-links .cta {
  position: relative;
  overflow: hidden;
  background: var(--gold); color: #2a1c04 !important;
  padding: 10px 16px; border-radius: 999px;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.nav-links .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(226,176,58,.45);
  filter: brightness(1.05);
}
.nav-links .cta:active { transform: translateY(0) scale(.97); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}

.hero {
  position: relative; min-height: 78vh;
  display: grid; align-items: end;
  color: white;
  overflow: hidden;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(20,90,55,.28) 0%, rgba(47,154,98,.12) 48%, rgba(26,160,184,.16) 100%),
    linear-gradient(180deg, rgba(12,40,28,.02) 10%, rgba(12,40,28,.42) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 80px 0 56px; }
.kicker {
  letter-spacing: .16em; text-transform: uppercase; font-size: .78rem;
  color: var(--gold-soft); margin-bottom: 12px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08; max-width: 16ch; font-weight: 500;
}
.hero p { max-width: 42ch; margin: 18px 0 28px; font-size: 1.12rem; color: #f3ead6; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, background-color .28s ease, border-color .28s ease, color .28s ease;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.45) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-gold {
  background: var(--gold); color: #2a1c04;
  box-shadow: 0 8px 20px rgba(226,176,58,.35);
}
.btn-gold:hover {
  box-shadow: 0 14px 28px rgba(226,176,58,.5);
}
.btn-ghost {
  background: transparent; color: white;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--gold-soft);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.btn-gold, .nav-links .cta {
  animation: btnPulse 2.4s ease-in-out infinite;
}
.btn-ghost {
  animation: ghostPulse 2.4s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(226,176,58,.35); }
  50% { box-shadow: 0 10px 28px rgba(226,176,58,.62); }
}
@keyframes ghostPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,224,138,0); border-color: rgba(255,255,255,.4); }
  50% { box-shadow: 0 0 18px rgba(255,224,138,.28); border-color: var(--gold-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .nav-links .cta { transition: none; animation: none; }
  .btn:hover, .nav-links .cta:hover { transform: none; }
}

section { padding: 72px 0; }
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500; margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.grid-3, .grid-2 { display: grid; gap: 22px; margin-top: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr .9fr; align-items: center; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 22px; }
.card h3 { font-family: "Fraunces", serif; font-size: 1.3rem; margin-bottom: 8px; }
.meta { color: var(--earth); font-weight: 700; font-size: .85rem; margin-bottom: 8px; }

.band {
  background:
    radial-gradient(700px 180px at 90% 0%, rgba(240,193,75,.32), transparent),
    linear-gradient(135deg, #1f8a58, #34b56e 52%, #1aa0b8);
  color: #f7fff8;
}
.band .lead { color: #d7e4db; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.stat { border-top: 2px solid var(--gold); padding-top: 14px; }
.stat b { display: block; font-family: "Fraunces", serif; font-size: 1.8rem; color: var(--gold-soft); }
.stat span { color: #c9d7ce; font-size: .95rem; }

.split img { border-radius: var(--radius); height: 420px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.gallery figure.contain img {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
.gallery figcaption {
  padding: 12px 14px 16px;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
}
.split h2 { margin-bottom: 14px; }

.page-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(700px 220px at 8% 0%, rgba(240,193,75,.28), transparent),
    radial-gradient(500px 180px at 92% 10%, rgba(60,191,120,.22), transparent),
    var(--cream);
}
.page-hero h1 { font-family: "Fraunces", serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }

.prose { max-width: 70ch; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0 20px; }
.prose li { margin-bottom: 8px; }

.event-ref {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.event-ref a { color: var(--leaf); font-weight: 700; text-decoration: none; }
.event-ref a:hover { text-decoration: underline; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover h3 { color: var(--leaf); }

.form {
  display: grid; gap: 12px; margin-top: 20px;
  background: var(--paper); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); font: inherit; background: #fff;
}
.form button { justify-self: start; cursor: pointer; }

footer {
  background: linear-gradient(135deg, #18724a, #1aa0b8); color: #f4fff6; padding: 48px 0 28px;
}
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; align-items: flex-start; gap: 14px; }
.foot-brand img {
  height: 78px; width: auto; border-radius: 10px; background: #000; flex-shrink: 0;
}
footer a { color: var(--gold-soft); text-decoration: none; }
.tiny { margin-top: 28px; font-size: .82rem; color: #93a89c; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: var(--cream); flex-direction: column; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-2, .stats, .foot, .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-copy { padding: 48px 0 36px; }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
    line-height: 1.12;
  }
  .hero-line2 { display: block; }
  .hero p { font-size: 1.02rem; margin: 14px 0 22px; }
  .brand span { max-width: 16ch; line-height: 1.25; letter-spacing: .05em; }
  .page-hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}
.hero-line2 { display: block; }


.yt-intro { padding-top: 48px; padding-bottom: 24px; }
.yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-intro .video-cap { margin-top: 12px; }
.video-block .meta { margin-bottom: 10px; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 640px;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.logo-wash {
  position: relative;
}
.logo-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(420px, 70%);
  opacity: .22;
  pointer-events: none;
}
.logo-wash > * { position: relative; z-index: 1; }
.video-block video {
  width: 100%;
  max-height: 640px;
  background: #111;
  border-radius: var(--radius);
  display: block;
}
.video-cap a { color: var(--earth); font-weight: 700; text-decoration: none; }

.split img.affiche {
  object-fit: contain;
  background: #f4fbf4;
  height: auto;
  max-height: none;
  width: 100%;
}
.card img.affiche, .card img[alt="Affiche Matawai Festival"] {
  object-fit: contain;
  background: #07324a;
  height: 280px;
}
