/* =====================================================================
   ACTIVE SOCIAL CLUB - STYLESHEET

   EDIT HERE: change the brand colour and logo size in the block below.
   Everything else on the site follows from these values.

   BRAND COLOUR  : change --brand to any hex colour.
                   Hover colours and the pale section tint are worked out
                   from it automatically. White text sits on top of it, so
                   pick a colour that is dark enough to read white text on.
   LOGO FILE     : replace assets/logo.png with your new logo (keep the
                   same file name, transparent background works best).
   LOGO SIZE     : change --logo-height (header) and --logo-height-footer.
   ===================================================================== */
:root {
  --brand: #A65541;               /* logo colour, taken from your logo file */
  --logo-height: 52px;
  --logo-height-footer: 64px;

  /* Neutrals. Change only if you want a different look. */
  --ink: #1E1B19;
  --muted: #5A5450;
  --bg: #FFFFFF;
  --line: #DAD5D0;

  /* Worked out from the brand colour. Do not edit. */
  --brand-hover: color-mix(in srgb, var(--brand) 80%, black);
  --tint: color-mix(in srgb, var(--brand) 7%, white);
  --on-brand: #FFFFFF;
  --on-ink: #F4F1EE;
}
/* ===================== END OF EDITABLE SETTINGS ===================== */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/inter-display-extrabold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 {
  font-family: "Inter Display", "Inter", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: 1.5rem; }
.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--on-ink); padding: 0.6rem 1rem; border-radius: 3px;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 0.9rem;
}
.logo { display: block; line-height: 0; }
.logo img { height: var(--logo-height); width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  padding-block: 0.4rem; border-bottom: 3px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--line); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 1rem/1.2 "Inter", system-ui, sans-serif;
  padding: 0.85rem 1.5rem; border-radius: 3px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Track lane lines: the one decorative motif */
.lanes { height: 11px; border-top: 4px solid var(--brand); border-bottom: 4px solid var(--line); }

/* Sections */
.section { padding-block: 4.5rem; }
.section--tint { background: var(--tint); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding-block: 3.5rem 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 30% 40%; border-radius: 4px; }

/* Programme panels */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.two-col > * { min-width: 0; }
.panel { border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 2rem; }
.panel p { margin-top: 0.9rem; color: var(--muted); }
.panel a.more { display: inline-block; margin-top: 1.25rem; font-weight: 600; }

/* Photo row */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-row img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.principles > * { min-width: 0; }
.principles h3 { padding-top: 1rem; border-top: 4px solid var(--brand); }
.principles p { margin-top: 0.75rem; color: var(--muted); }

/* Split blocks (image and text) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.split--flip { grid-template-columns: 1.1fr 0.9fr; }
.split > * { min-width: 0; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.split h2 + p, .split h2 + .prose { margin-top: 1.25rem; }
.split .btn-row { margin-top: 1.75rem; }

.landscape { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

/* Page title block on inner pages */
.page-head { padding-block: 3.5rem 3rem; }
.page-head .lede { margin-top: 1.25rem; }

/* Prose */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.15rem; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul { margin-top: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0.75rem 0 0; }
.prose li + li { margin-top: 0.4rem; }
.prose > :first-child { margin-top: 0; }
.updated { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }

.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; max-width: 36rem; }
.checklist li { padding-left: 1.5rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.7em; width: 0.7rem; height: 3px; background: var(--brand);
}

/* FAQ */
.faq { max-width: 44rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1.1rem; font-size: 1.5rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq .answer { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }

/* Contact */
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 46rem; }
.contact-list > * { min-width: 0; }
.contact-item { border-top: 4px solid var(--brand); padding-top: 1rem; }
.contact-item h2 { font-size: 1.15rem; letter-spacing: 0; }
.contact-item p { margin-top: 0.5rem; }
.contact-item a { font-weight: 600; overflow-wrap: anywhere; }
.contact-item--wide { grid-column: 1 / -1; }

/* Call to action band */
.cta { background: var(--ink); color: var(--on-ink); padding-block: 4rem; }
.cta .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.cta .wrap > * { min-width: 0; }
.cta p { margin-top: 0.9rem; color: #D5CFCA; max-width: 34rem; }
.cta .btn-row { margin-top: 0; justify-content: flex-start; }
.cta .btn--line { color: var(--on-ink); border-color: var(--on-ink); }
.cta .btn--line:hover { background: var(--on-ink); color: var(--ink); }
.cta .btn { border-color: var(--on-brand); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); font-size: 0.97rem; border-top: 1px solid #3a3531; }
.site-footer .wrap { padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid > * { min-width: 0; }
.site-footer .logo img { height: var(--logo-height-footer); filter: brightness(0) invert(1); }
.site-footer h2 { font: 600 0.95rem/1.3 "Inter", system-ui, sans-serif; letter-spacing: 0.02em; margin-bottom: 0.9rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-about { margin-top: 1rem; color: #D5CFCA; max-width: 22rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3a3531; color: #BDB6B0; font-size: 0.9rem; }
.footer-legal p + p { margin-top: 0.4rem; }

/* Tablet and phone */
@media (max-width: 62rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 52rem) {
  .section { padding-block: 3.25rem; }
  .hero { padding-block: 2.5rem 3rem; }
  .hero-grid, .split, .split--flip, .two-col, .principles, .cta .wrap { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero-img { aspect-ratio: 4 / 3; object-position: 30% 35%; }
  .split { gap: 2rem; }
  .split img { aspect-ratio: 4 / 3; object-position: center 30%; }
  .principles { gap: 2rem; }
  .photo-row { gap: 0.5rem; }
  .contact-list { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 34rem) {
  .wrap { padding-inline: 1rem; }
  .panel { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav ul { gap: 0.25rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Timetable */
.panel .when { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 0.75rem; }
.when-line { color: var(--muted); }
.when-line strong { color: var(--ink); }
.panel address { font-style: normal; color: var(--muted); margin-top: 0.4rem; }
