/* Bundaberg Sailing Club — site styles
   Colours and fonts follow the original Wix design:
   charcoal #1a1a1a, off-white #f8f9fa, club blue #0056b3, Fraunces headings. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #495057;
  --paper: #f8f9fa;
  --paper-2: #e9ecef;
  --white: #ffffff;
  --blue: #0056b3;
  --blue-dark: #00438c;
  --blue-light: #d6e6f7;
  --line: rgba(26, 26, 26, 0.12);
  --line-light: rgba(248, 249, 250, 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 2px;
  --shadow: none;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 30, "opsz" 96;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: #8fbcec; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  background: var(--blue); color: var(--white); border: 1px solid var(--blue);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn--ghost { color: var(--paper); border-color: rgba(248, 249, 250, 0.6); }
.on-dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Secondary links styled as outlined buttons so they stand out */
.text-link {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  padding: 11px 22px; border: 1px solid var(--blue); border-radius: var(--radius); white-space: nowrap;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); background: transparent; text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.text-link:hover, a.card:hover .text-link, a.logo-card:hover .text-link { background: var(--blue); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); flex-shrink: 0; }
.brand img { width: 34px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; margin-top: 3px; }

/* Menu button */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; color: var(--paper); cursor: pointer; padding: 10px 0;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.nav-toggle .bars { position: relative; display: block; width: 28px; height: 1.5px; background: currentColor; transition: background 0.3s; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 28px; height: 1.5px; background: currentColor; transition: transform 0.35s;
}
.nav-toggle .bars::before { top: -8px; }
.nav-toggle .bars::after { top: 8px; }
.nav-toggle:hover .bars::after { transform: translateX(-6px); }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 420px) { .nav-toggle .nav-label { display: none; } }

/* Slide-in menu panel */
.nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 100%); background: var(--ink); color: var(--paper);
  padding: 100px clamp(28px, 5vw, 56px) 40px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), visibility 0.45s;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6);
}
.nav-open .nav { transform: none; visibility: visible; }
.nav-open .nav-toggle { position: fixed; top: 15px; right: var(--gutter); z-index: 80; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 13px 0;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(248, 249, 250, 0.85); text-decoration: none; transition: color 0.2s, padding 0.3s;
}
.nav a:hover { color: var(--white); padding-left: 6px; }
.nav a[aria-current="page"] { color: #8fbcec; }
.nav-foot { font-size: 0.88rem; color: rgba(248, 249, 250, 0.6); line-height: 1.8; }
.nav-foot a { display: inline; padding: 0; font-family: var(--sans); font-size: inherit; color: rgba(248, 249, 250, 0.85); }
.nav-foot a:hover { padding: 0; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 65; background: rgba(10, 12, 16, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.nav-open .nav-scrim { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

/* ---------- Hero (home): full image background ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--ink);
  min-height: clamp(460px, 78vh, 760px); display: flex; align-items: flex-end;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 20, 0.82) 0%, rgba(15, 17, 20, 0.35) 45%, rgba(15, 17, 20, 0.15) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { margin-bottom: 16px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero .tagline {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9); margin: 0; line-height: 1.8;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; margin-bottom: 18px; }
.page-hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(248, 249, 250, 0.78); max-width: 58ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--tint { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { max-width: 46ch; margin: 0; color: var(--ink-soft); }
.on-dark .section-head p, .section--dark .section-head p { color: rgba(248, 249, 250, 0.72); }

/* ---------- Intro cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.card {
  position: relative; padding: 40px 36px 40px 0; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card + .card { padding-left: 36px; border-left: 1px solid var(--line); }

.card h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.card p { color: var(--ink-soft); flex-grow: 1; }
.card .text-link { margin-top: 18px; }
a.card h2 { transition: color 0.2s; }
a.card:hover h2 { color: var(--blue); }


@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .stack-img {
  position: absolute; width: 46%; right: -6%; bottom: -12%; aspect-ratio: 1; object-fit: cover;
  border: 6px solid var(--ink); border-radius: var(--radius);
}
.section--white .split-media .stack-img { border-color: var(--white); }
.split-body p { color: var(--ink-soft); max-width: 52ch; }
.section--dark .split-body p { color: rgba(248, 249, 250, 0.75); }

.contact-chip {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 6px;
  padding: 14px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light);
  font-size: 0.95rem;
}
.contact-chip strong { font-weight: 600; }
.contact-chip a { color: #8fbcec; text-decoration: none; font-weight: 600; white-space: nowrap; }
.contact-chip a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { margin-right: 6%; margin-bottom: 8%; }
}

/* ---------- Activities / gallery grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.tile { margin: 0; }
.tile button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; border-radius: var(--radius); position: relative;
}
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.tile button:hover img { transform: scale(1.02); }
.tile button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.35), transparent 50%);
  opacity: 0; transition: opacity 0.4s;
}

.tile figcaption { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 2px 0; }
.tile .t-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.tile .t-num { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 0.95rem; }
.tile .t-desc { grid-column: 1 / -1; font-size: 0.93rem; color: var(--ink-soft); }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* Larger first tile on the gallery page */
.gallery--feature .tile:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--feature .tile:first-child img { aspect-ratio: auto; height: 100%; min-height: 0; }
.gallery--feature .tile:first-child button { height: calc(100% - 78px); }
@media (max-width: 900px) {
  .gallery--feature .tile:first-child { grid-row: auto; }
  .gallery--feature .tile:first-child img { aspect-ratio: 16 / 10; height: auto; }
  .gallery--feature .tile:first-child button { height: auto; }
}
@media (max-width: 560px) { .gallery--feature .tile:first-child { grid-column: auto; } }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 12, 16, 0.92); }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: var(--paper); text-align: center; margin: 16px 0 0; font-family: var(--serif); font-size: 1.15rem; }
.lightbox p span { display: block; font-family: var(--sans); font-size: 0.9rem; opacity: 0.7; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: rgba(255, 255, 255, 0.08); color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

/* ---------- Contact block ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.details { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.details li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.details .value { font-size: 1.02rem; overflow-wrap: anywhere; }
.details .value strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: block; }
.details a { color: var(--blue); text-decoration: none; font-weight: 500; }
.details a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .details li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Accreditations ---------- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.logo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 36px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); text-align: center; transition: box-shadow 0.3s, transform 0.3s;
}
a.logo-card:hover { border-color: var(--ink); }
.logo-card img { height: 92px; width: auto; object-fit: contain; }
.logo-card span { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 480px) { .logos { grid-template-columns: 1fr; } }

/* ---------- Opening hours ---------- */
.hours-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow);
}
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours th, .hours td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hours .closed { color: var(--blue); font-style: italic; font-family: var(--serif); }

/* ---------- Prose (history) ---------- */
.prose { max-width: 68ch; }
.prose p { font-size: 1.12rem; line-height: 1.85; color: #2b2f33; }
.prose p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 4.6rem; line-height: 0.85;
  padding: 8px 12px 0 0; color: var(--blue); font-weight: 600;
}
.history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 6vw, 80px); align-items: start; }
.timeline { position: sticky; top: 110px; list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue);
}
.timeline b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.timeline span { font-size: 0.92rem; color: var(--ink-soft); }
.pullquote {
  margin: 48px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--blue);
  font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-style: italic; line-height: 1.35; color: var(--ink);
}
.figure-wide { margin: 48px 0; }
.figure-wide img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .history-layout { grid-template-columns: 1fr; }
  .timeline { position: static; }
}

/* ---------- Events ---------- */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px 36px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.event .num { font-family: var(--serif); font-style: italic; color: var(--blue); }
.event time { display: block; }
.event time .d { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.event time .m { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.event h3 { margin-bottom: 6px; }
.event .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-light); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.event p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 700px) {
  .event { grid-template-columns: 1fr; gap: 10px; }
  .event .num { display: none; }
  .event time { display: flex; align-items: baseline; gap: 10px; }
}

/* ---------- Simple panels ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start;
}
.panel p { color: var(--ink-soft); flex-grow: 1; }
.panel--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel--dark p { color: rgba(248, 249, 250, 0.75); }
@media (max-width: 760px) { .panel-grid { grid-template-columns: 1fr; } }

.note {
  background: var(--white); border: 1px dashed rgba(0, 86, 179, 0.4); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); max-width: 720px;
}
.note p:last-of-type { margin-bottom: 0; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1px solid rgba(26, 26, 26, 0.22); border-radius: var(--radius); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15); }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; color: var(--blue); min-height: 1.5em; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: var(--white); padding: clamp(48px, 6vw, 72px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band .btn { background: var(--white); color: var(--blue); border-color: var(--white); }
.cta-band .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #111214; color: rgba(248, 249, 250, 0.7); padding: 72px 0 32px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer h3 { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; break-inside: avoid; }
.site-footer a { color: rgba(248, 249, 250, 0.7); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand img { width: 44px; }
.footer-brand .brand span { font-size: 1.4rem; }
.site-footer .brand, .site-footer .brand:hover { color: var(--paper); }
.footer-brand p { max-width: 34ch; }
.footer-links { columns: 2; column-gap: 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.82rem; color: rgba(248, 249, 250, 0.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Classic overrides ---------- */
.eyebrow { display: none; }
.event-sub { font-family: var(--serif); font-style: italic; color: var(--blue); margin: 0 0 4px !important; }
.contact-line { margin: 4px 0 0; }
.contact-line a { color: #8fbcec; text-decoration: none; }
.section--white .contact-line a, .split-body .contact-line a { text-decoration: underline; text-underline-offset: 3px; }
.split-media img { box-shadow: none; }
.hours-card { box-shadow: none; }
.figure-wide img { box-shadow: none; }
.details .label, .field label, .site-footer h3 { font-family: var(--sans); letter-spacing: 0.12em; font-size: 0.74rem; }
.hero .tagline, .brand small, .nav-toggle { font-family: "Source Serif 4", Georgia, serif; }

.logo-card .text-link { align-self: center; }

/* ---------- Announcement bar (set from the admin panel) ---------- */
.announce { background: var(--blue); color: var(--white); font-size: 1rem; }
.announce--alert { background: #8a1c1c; }
.announce .wrap { padding-top: 12px; padding-bottom: 12px; }
.announce p { margin: 0; text-align: center; line-height: 1.5; }
.announce a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }

/* ---------- Programme list ---------- */
.prog-when { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--blue); line-height: 1.3; }
.events--past .event { opacity: 0.72; }
.events--past time .d { font-size: 2rem; }
