/* SITE_EDIT v7 — 2026-05-09 — cache-bust public event loading */
:root {
  --olive: #4b5a32;
  --olive-deep: #253016;
  --olive-soft: #eef1e5;
  --cream: #fff8ec;
  --card: #fffdf6;
  --ink: #1f2418;
  --muted: #637151;
  --gold: #d49a39;
  --gold-soft: #ffe0a3;
  --line: rgba(31, 36, 24, 0.16);
  --shadow: 0 24px 70px rgba(20, 25, 12, 0.24);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--olive);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
code { background: rgba(212,154,57,0.2); border-radius: 8px; padding: 2px 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 58px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--cream);
  background: rgba(37,48,22,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #201508;
  font-family: Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand strong { display: block; font-size: 21px; line-height: 1; }
.brand small { color: var(--gold-soft); font-weight: 800; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 850;
  color: #f9efe0;
}
.site-nav a:hover, .nav-cta { background: rgba(255,255,255,0.12); }
.nav-cta { border: 1px solid rgba(255,255,255,0.25); }
.nav-toggle { display: none; }

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  background: linear-gradient(180deg, var(--olive), var(--olive-deep));
  color: var(--cream);
}
.hero-image { min-height: 620px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.hero-copy {
  padding: clamp(36px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(37,48,22,0.99), rgba(75,90,50,0.94));
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 7vw, 92px); line-height: 0.94; letter-spacing: -0.06em; margin-bottom: 22px; }
h2 { font-size: clamp(32px, 4vw, 58px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 16px; }
h3 { font-size: 24px; line-height: 1.12; margin-bottom: 10px; }
.lead { max-width: 640px; font-size: clamp(18px, 2vw, 24px); color: #eadbc7; }
.hero-actions, .contact-actions, .socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(31,23,16,0.18);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.button.primary { background: var(--gold); color: #1b1208; border-color: var(--gold); }
.button.ghost { background: rgba(255,255,255,0.12); color: var(--cream); border-color: rgba(255,255,255,0.22); }
.text-link { color: var(--olive); font-weight: 950; text-underline-offset: 4px; }

.quick-strip {
  position: relative;
  z-index: 2;
  margin: -52px clamp(18px, 4vw, 58px) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick-strip article,
.section-lite,
.section-block,
.feature-copy,
.contact-card,
.enquiry,
.hours-card,
.event-card,
.gallery-card,
.cards article,
.story-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(30,18,10,0.10);
}
.quick-strip article { padding: 18px; box-shadow: var(--shadow); }
.quick-strip strong { display: block; font-size: 22px; line-height: 1.1; }
.quick-strip span, .muted { color: var(--muted); }

.section-lite,
.section-block,
.split,
.dark-section,
.visit-panel {
  margin: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 58px);
}
.section-lite,
.section-block,
.visit-panel {
  background: var(--olive-soft);
  border-radius: 36px;
  padding: clamp(24px, 4vw, 44px);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.7fr);
  gap: clamp(20px, 6vw, 80px);
  align-items: end;
}
.intro > p, .section-heading > p { color: var(--muted); font-size: 18px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.6fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: end;
  margin-bottom: 24px;
}
.events-section { position: relative; overflow: hidden; }
.events-section::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 260px;
  height: 260px;
  background: rgba(212,154,57,0.16);
  border-radius: 50%;
}
.events-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event-card { padding: 18px; display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: start; }
.event-date {
  min-height: 104px;
  border-radius: 22px;
  background: var(--olive-deep);
  color: var(--cream);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}
.event-date span, .event-date small { color: var(--gold-soft); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.event-date strong { display: block; color: var(--cream); font-size: 34px; line-height: 0.9; margin: 0; }
.event-copy h3 { margin-bottom: 8px; }
.event-meta { color: var(--muted); font-weight: 850; margin-bottom: 10px; }
.empty-event { grid-template-columns: 1fr; }
.events-note {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  background: rgba(75,90,50,0.10);
  border: 1px solid rgba(75,90,50,0.18);
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.events-note strong { color: var(--olive-deep); }
.events-note a { color: var(--olive); font-weight: 950; }
.tag {
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(212,154,57,0.18);
  color: #6c4513;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}
.split.alt { grid-template-columns: 1.08fr 0.92fr; }
.split > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-copy {
  background: var(--olive-soft);
  padding: clamp(26px, 5vw, 58px);
}
.check-list { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 24px 0; }
.check-list li::before { content: "✓"; color: var(--olive); font-weight: 950; margin-right: 9px; }
.cards.compact { display: grid; gap: 10px; margin: 20px 0; }
.cards article { padding: 16px; box-shadow: none; display: grid; gap: 4px; }
.cards article span { color: var(--muted); }

.dark-section {
  background: var(--olive-deep);
  color: var(--cream);
  border-radius: 36px;
  padding: clamp(28px, 6vw, 70px);
}
.inverted > p { color: #d8c9b7; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.story-grid article { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); padding: 24px; box-shadow: none; }
.story-grid span { color: var(--gold); font-weight: 950; }
.story-grid p { color: #d8c9b7; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-card { overflow: hidden; margin: 0; background: var(--card); }
.gallery-card.large { grid-column: span 2; }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card.large img { aspect-ratio: 16 / 9; }
.gallery-card figcaption { padding: 12px 14px; font-weight: 850; color: var(--muted); }

.visit-panel {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: 18px;
  align-items: start;
}
.hours-card, .contact-card, .enquiry { padding: 24px; }
.hours-list { margin-top: 18px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.hours-row.today { color: var(--olive); font-weight: 950; }
.hours-note { color: var(--muted); margin-top: 16px; font-size: 14px; }
.contact-card p { margin-bottom: 8px; }
.contact-card a { overflow-wrap: anywhere; }
.socials a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(75,90,50,0.10);
  color: var(--olive);
  text-decoration: none;
  font-weight: 900;
}
.enquiry label { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 850; }
.enquiry input, .enquiry textarea, .enquiry select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf7;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 58px);
  background: var(--olive-deep);
  color: var(--cream);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold-soft); font-weight: 900; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--cream);
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
  }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 18px 20px;
    background: var(--olive-deep);
  }
  .site-nav.open { display: grid; }
  .site-nav a { border-radius: 14px; }
  .hero, .split, .split.alt, .intro, .section-heading, .visit-panel { grid-template-columns: 1fr; }
  .hero-image { min-height: 360px; }
  .hero-copy { padding: 34px 20px 58px; }
  .quick-strip { grid-template-columns: repeat(2, 1fr); margin-top: -28px; }
  .events-grid, .story-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split > img { min-height: 340px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 72px; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { min-height: auto; grid-template-columns: auto auto auto; justify-content: start; gap: 8px; }
  .event-date strong { font-size: 24px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand strong { font-size: 17px; }
  .hero { min-height: auto; }
  .quick-strip, .events-grid, .story-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.large { grid-column: span 1; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .site-footer { display: grid; }
}

/* v5 events admin */
.admin-body {
  background: #f4efe3;
  color: var(--ink);
}
.admin-topbar {
  min-height: 92px;
  padding: 22px clamp(18px, 5vw, 64px);
  background: var(--olive-deep);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.admin-topbar h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); }
.admin-topbar .eyebrow { margin-bottom: 4px; color: var(--gold-soft); }
.admin-shell {
  padding: 24px clamp(16px, 4vw, 56px) 56px;
  display: grid;
  gap: 18px;
}
.admin-panel {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(31, 37, 21, 0.10);
  padding: 20px;
}
.admin-help p { max-width: 900px; }
.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: start;
}
.admin-label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  font-weight: 900;
}
.admin-label input,
.admin-label textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf0;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  font-weight: 650;
}
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-actions-row .button { border: 0; }
.admin-message {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 850;
  color: var(--muted);
}
.admin-message.ok { color: #2d6b36; }
.admin-message.warn { color: #8c6215; }
.admin-message.bad { color: #9d2f24; }
.admin-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.admin-list-heading h2 { margin: 0; }
.admin-list-heading span {
  color: var(--muted);
  font-weight: 900;
}
.events-admin-list {
  display: grid;
  gap: 12px;
}
.admin-event-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fffaf0;
  display: grid;
  gap: 12px;
}
.admin-event-row.editing {
  outline: 3px solid rgba(75,90,50,0.35);
}
.admin-event-row h3 {
  margin: 7px 0 5px;
  font-size: 22px;
}
.admin-event-row p {
  margin: 0;
  color: var(--muted);
}
.admin-event-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-event-meta span {
  background: rgba(75,90,50,0.10);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 950;
}
.admin-row-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.admin-row-buttons button {
  border: 0;
  border-radius: 999px;
  background: #e7dfca;
  color: var(--ink);
  padding: 8px 11px;
  font-weight: 950;
}
.admin-row-buttons button.danger-lite {
  background: #ffe3d8;
  color: #9d2f24;
}
.admin-empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}
code {
  background: rgba(75,90,50,0.10);
  border-radius: 8px;
  padding: 2px 6px;
}
@media (max-width: 900px) {
  .admin-layout, .admin-two-col { grid-template-columns: 1fr; }
  .admin-topbar { display: grid; }
}
