/* =========================================================
   Coopers' Cask Race — rebuilt from the Canva site
   Display: Anton · Body: Mulish (close matches; swap if needed)
   ========================================================= */

:root {
  --cream:      #f2ece0;   /* warm paper background of light sections */
  --cream-soft: #e7ddc9;   /* placeholder / subtle fills */
  --ink:        #161616;   /* near-black text + headings */
  --ink-soft:   #2c2c2c;   /* body text on cream */
  --light:      #f4eee2;   /* cream text on dark sections */
  --dark:       #1b1b1b;   /* dark section base (behind photo) */
  --line:       #d8cdb6;
  --max:        1180px;
  --radius:     14px;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body:    "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 0.98; }

/* Shared heading scale for the cream sections */
.split__body h2, .faqs h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); }

/* Accessible focus ring + screen-reader-only utility */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}
.btn--light:focus-visible, .hero__logo:focus-visible,
.contact a:focus-visible, .programme a:focus-visible { outline-color: var(--light); }
.btn--dark:focus-visible { outline-color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons (outlined pill, underlined label) ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark  { color: var(--ink); }
.btn--dark:hover  { background: var(--ink); color: var(--cream); }
.btn--light { color: var(--light); }
.btn--light:hover { background: var(--light); color: var(--ink); }

/* ---------- Generic section spacing ---------- */
.section {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  color: var(--light);
  background-color: var(--dark);
  background-image: linear-gradient(180deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.72) 100%), url("assets/photos/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.factbar {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.25rem, 4vw, 3.5rem);
}
.fact dt { font-size: .9rem; opacity: .85; margin-bottom: .25rem; }
.fact dd { margin: 0; font-size: 1.15rem; font-weight: 700; }

.hero__logo img { width: clamp(52px, 6vw, 72px); height: auto; }

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__headline h1 {
  margin: 0;
  font-size: clamp(3.2rem, 11vw, 8rem);
  letter-spacing: .01em;
}
.hero__tagline {
  margin: .9rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 400;
}

/* =========================================================
   SPLIT SECTIONS (text + photo)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split__body h2 { margin: 0 0 1.4rem; }
.split__body p { margin: 0 0 1.1rem; font-size: 1.1rem; max-width: 34ch; }
.split__body .btn { margin-top: 1.2rem; }

.photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-soft);
}

/* =========================================================
   FAQs
   ========================================================= */
.faqs h2 { margin: 0 0 2rem; }
.faqs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 6vw, 5rem);
}
.faq h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.faq p { margin: 0; font-size: 1.05rem; }

/* =========================================================
   CONTACT (dark photographic footer — matches the hero bookend)
   ========================================================= */
.contact {
  color: var(--light);
  background-color: var(--dark);
  background-image: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.58) 50%, rgba(0,0,0,.72) 100%), url("assets/photos/contact.jpg");
  background-size: cover;
  background-position: center;
}
.contact__inner {
  max-width: var(--max);
  margin-inline: auto;
  min-height: clamp(28rem, 70svh, 48rem);
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact__details h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 1.8rem;
}
.contact__item { margin-bottom: 1.15rem; }
.contact__item a, .contact__item span { display: block; }
.contact__label { font-size: .9rem; opacity: .8; margin-bottom: .15rem; }
.contact__item a:not(.contact__social a),
.contact__item > span:not(.contact__label) { font-size: 1.2rem; font-weight: 500; }
.contact__item a { text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }

.contact__social { display: flex; gap: .25rem; margin-top: .3rem; margin-left: -10px; }
.contact__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--light);
  opacity: .92;
  transition: opacity .15s ease;
}
.contact__social a:hover { opacity: 1; }

.contact__brand { display: flex; align-items: center; gap: 1.5rem; }
.contact__wordmark { width: clamp(220px, 32vw, 360px); height: auto; }

/* =========================================================
   PROGRAMME FLOW (dark photographic section)
   ========================================================= */
.programme {
  color: var(--light);
  background-color: var(--dark);
  background-image: linear-gradient(90deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.52) 45%, rgba(0,0,0,.78) 100%), url("assets/photos/programme.jpg");
  background-size: cover;
  background-position: center;
}
.programme__inner {
  max-width: var(--max);
  margin-inline: auto;
  min-height: clamp(30rem, 80svh, 52rem);
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.3fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.programme__intro h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 1.8rem; }

.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.1rem, 3vw, 2rem);
}
.schedule li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
}
.schedule__time { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.schedule__desc { font-size: 1.1rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  /* Consistent stacked order for both split variants: text first, image second */
  .split__body { order: 1; }
  .split__media { order: 2; }
  .split__body p { max-width: none; }
  .faqs__grid { grid-template-columns: 1fr; }
  .programme__inner { grid-template-columns: 1fr; }
  .factbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; }
  .hero__bottom { align-items: flex-start; }
  .contact__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .factbar { grid-template-columns: 1fr 1fr; }
  .fact dd { font-size: 1rem; }
}

/* Short / landscape viewports: release the full-height hero so rows never collide */
@media (max-height: 600px) {
  .hero__inner { min-height: auto; justify-content: flex-start; }
}
