/* RLE Country Faire — site styles. Mobile-first, no external fonts or frameworks. */
:root {
  --cream: #fefdf0;
  --paper: #fffdf7;
  --ink: #2b2118;
  --muted: #6b5d4f;
  --brown: #7a4419;
  --green: #2f6b2f;
  --green-dark: #224f22;
  --red: #b3261e;
  --gold: #f2c230;
  --line: #e6dcc6;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(60, 40, 20, .12);
  --wrap: 1120px;
  --head: "Rockwell", "Roboto Slab", "Zilla Slab", "Georgia", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; color: var(--brown); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  background: var(--green-dark); color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  border-bottom: 4px solid var(--gold);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { color: #fff; text-decoration: none; font-family: var(--head); line-height: 1.1; }
.brand strong { display: block; font-size: 1.25rem; }
.brand span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.brand:hover { color: var(--gold); }

.nav-toggle {
  display: none; background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff;
  border-radius: 8px; padding: .45rem .7rem; font: inherit; font-size: .95rem; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle;
}
.nav-toggle .bars { margin-right: .4rem; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.site-nav a {
  display: block; color: #fff; text-decoration: none; padding: .55rem .7rem; border-radius: 8px; font-weight: 600; font-size: .98rem;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--gold); color: var(--ink); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-dark); border-bottom: 4px solid var(--gold); }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .8rem .75rem; font-size: 1.05rem; }
  .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: .5rem; }
  html:not(.js) .site-nav ul { flex-direction: row; padding: 0; }
}

/* ---------- Hero & page headers ---------- */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero img { width: 100%; max-width: 1600px; margin: 0 auto; }
.page-head { background: linear-gradient(180deg, #f6eccd, var(--cream)); border-bottom: 1px solid var(--line); padding: 2rem 0 1.25rem; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }

main { padding-bottom: 3rem; }
.section { padding: 2rem 0; }
.section + .section { border-top: 1px dashed var(--line); }
.lead { font-size: 1.2rem; max-width: 65ch; }
.mission {
  font-family: var(--head); font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--green-dark);
  border-left: 6px solid var(--gold); padding: .5rem 0 .5rem 1rem; margin: 1rem 0 1.5rem; max-width: 60ch;
}

.notice {
  background: #fff6d6; border: 1px solid #ecd58a; border-left: 6px solid var(--gold);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.notice strong { color: var(--brown); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1.15fr .85fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(60,40,20,.18); color: inherit; }
a.card .more { color: var(--green-dark); font-weight: 700; }

.event { display: grid; gap: .25rem 1rem; grid-template-columns: auto 1fr; align-items: start; }
.date-badge {
  background: var(--red); color: #fff; border-radius: 10px; text-align: center; min-width: 70px; padding: .4rem .5rem;
  font-family: var(--head); line-height: 1.1;
}
.date-badge .m { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.date-badge .d { display: block; font-size: 1.5rem; font-weight: 700; }
.event h3 { margin: 0 0 .25rem; }
.event .meta { color: var(--muted); margin: 0 0 .5rem; font-size: .98rem; }

.figure { margin: 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.list-check li::before { content: "★"; color: var(--gold); position: absolute; left: 0; text-shadow: 0 0 1px var(--brown); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-weight: 600; font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700;
  padding: .8rem 1.25rem; border-radius: 999px; border: 0; min-height: 48px; font-size: 1rem;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-pay { background: #0070ba; }
.btn-pay:hover { background: #005ea6; }
.btn-alt { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn-alt:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.small { font-size: .9rem; color: var(--muted); }

.pay-card { border-top: 6px solid #0070ba; }
.deadline { display: inline-block; background: #fdecea; color: var(--red); font-weight: 700; border-radius: 6px; padding: .15rem .55rem; font-size: .92rem; }

/* ---------- Documents list ---------- */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.docs a {
  display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem 1rem; text-decoration: none; color: var(--ink); font-weight: 600;
}
.docs a:hover { border-color: var(--green); color: var(--green-dark); }
.docs .ext { background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 4px; padding: .2rem .4rem; letter-spacing: .05em; }
.docs .size { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .85rem; white-space: nowrap; }

/* ---------- Gallery ---------- */
.album-nav ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.album-nav a { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: .55rem 1rem; border-radius: 999px; }
.album-nav a:hover { background: var(--green-dark); color: #fff; }
.album-nav span { font-weight: 400; opacity: .85; }
.album h2 { scroll-margin-top: 90px; }
.album { margin: 2rem 0 3rem; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.gallery-grid a { display: block; border-radius: 8px; overflow: hidden; background: #ddd; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-grid a:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox .lb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 4px; }
.lightbox button {
  position: absolute; background: rgba(0,0,0,.55); color: #fff; border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px; width: 48px; height: 48px; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(0,0,0,.85); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2118; color: #eadfcb; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 { color: var(--gold); font-size: 1.1rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .25rem 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; opacity: .8; }

@media print {
  .site-header, .site-footer, .btn-row, .hero { display: none; }
  body { background: #fff; }
}
.mt-2 { margin-top: 2rem; }

/* ---------- Payments (Vendors / Get Involved) ---------- */
.pay-card { margin: 1.5rem 0; }
.pay-card h2 { margin-bottom: .35rem; }
.span-all { grid-column: 1 / -1; }
.step { font-weight: 700; font-size: 1.1rem; margin: 1.25rem 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.step span { background: var(--green); color: #fff; border-radius: 50%; width: 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.spot-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.spot {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
}
.spot .price { font-family: var(--head); font-size: 1.6rem; color: var(--green-dark); font-weight: 700; }
.spot .spot-desc { font-size: .9rem; color: var(--muted); }
.checkout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .checkout { grid-template-columns: 1fr 190px; } }
.paypal-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-height: 120px; }
.pp-status { margin: 0; color: var(--muted); }
.pp-error { color: var(--red); font-weight: 600; }
.qr { margin: 0; text-align: center; }
.qr img { width: 160px; height: 160px; margin: 0 auto; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.qr figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.donate-card { border-top-color: var(--gold); }
