/* Pontypridd Golf Club — concept mock · Studio 72 · Aug 2026 */

/* ---------- tokens ---------- */
:root {
  --pine-950: #0d1b13;
  --pine-900: #14271b;
  --pine-800: #1e3a2a;
  --pine-700: #2a4c38;
  --cream: #faf6ee;
  --cream-dark: #f1eadb;
  --brass: #a97e42;        /* decorative: borders, marks, dashes */
  --brass-text: #7c5a26;   /* brass as TEXT on cream — WCAG 4.5:1 */
  --brass-btn: #8a6430;    /* brass as button ground under white text */
  --brass-light: #c9a165;
  --ink: #24292b;
  --ink-soft: #55605a;
  --open-green: #2e7d4f;
  --closed-amber: #b7791f;      /* decorative: the timeline's major markers */
  --closed-amber-btn: #9a6416;  /* amber as a pill ground under white text — WCAG 4.99:1 */
  --text-base: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-hero: clamp(2.75rem, 1.4rem + 6vw, 6.5rem);
  --text-h2: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --text-h3: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --nav-h: 72px;
  --strip-h: 58px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 10px;
}

/* ---------- fonts (self-hosted, offline-safe) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 570;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: inherit;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
section { scroll-margin-top: calc(var(--nav-h) + 64px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--pine-950); color: var(--cream);
  padding: 14px 22px; font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass-text);
  display: block; margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); max-width: 34em; }

/* ---------- buttons: 54px minimum, obvious, big targets ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem; font-weight: 600; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brass-btn); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: #6f4f24; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250, 246, 238, 0.65); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--cream); background: rgba(250, 246, 238, 0.12); }
.btn-pine { background: var(--pine-800); color: var(--cream); }
.btn-pine:hover, .btn-pine:focus-visible { background: var(--pine-700); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 41, 43, 0.12);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  /* --nav-h is the nav's full height including its 1px border, so the
     things that stack under it (the status strip, scroll margins) line up. */
  min-height: calc(var(--nav-h) - 1px); max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.brand-name {
  font-family: "Fraunces", Georgia, serif; font-weight: 620;
  font-size: 1.22rem; line-height: 1.05; color: var(--pine-950); letter-spacing: 0.01em;
}
.brand-name small { display: block; font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-text); margin-top: 3px; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink);
  border-radius: 8px; transition: background-color 0.2s;
}
.nav-links a:hover { background: rgba(169, 126, 66, 0.12); }
.nav .btn { min-height: 48px; padding: 0 22px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(calc(100svh - var(--nav-h) - var(--strip-h)), 560px);
  /* Headline sits high: the top of this frame is sky and hillside, so the
     clubhouse, the green and the town stay unobstructed underneath it. */
  display: flex; align-items: flex-start;
  background: var(--pine-950); color: var(--cream);
  overflow: clip;
}
.hero-media, .hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* The clubhouse and the green sit mid-frame in this shot, with the town behind
   and above them, so hold the crop lower than the old hero needed. */
.hero-media img { object-position: center 46%; }
@media (max-width: 640px) { .hero-media img { object-position: 54% 44%; } }
.hero-media video { opacity: 0; transition: opacity 0.8s; }
.hero-media video.playing { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 27, 19, 0.60) 0%, rgba(13, 27, 19, 0.32) 42%, rgba(13, 27, 19, 0) 72%),
    linear-gradient(180deg, rgba(13, 27, 19, 0.68) 0%, rgba(13, 27, 19, 0.30) 38%, rgba(13, 27, 19, 0.08) 60%, rgba(13, 27, 19, 0.50) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(44px, 7vh, 88px) clamp(16px, 4vw, 40px) clamp(60px, 8vh, 96px);
}
.hero h1 { font-size: var(--text-hero); max-width: 9.5em; text-wrap: balance; }
.hero .lede { margin: 1.4rem 0 2.2rem; color: rgba(250, 246, 238, 0.92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* The hero's two buttons stack -- side by side they ran along the clubhouse
   roofline. Scoped to .hero so the rows in the clubhouse and membership bands
   stay side by side. */
.hero .hero-ctas { flex-direction: column; align-items: flex-start; gap: 12px; }

@media (max-width: 640px) {
  /* Phone: headline at the top of the frame, buttons pinned to the bottom of
     it, full width so they read as the two things to do. */
  .hero { align-items: stretch; }
  .hero-inner { display: flex; flex-direction: column; }
  .hero .hero-ctas { margin-top: auto; align-items: stretch; width: 100%; }
  .hero .hero-ctas .btn { width: 100%; }

  /* "Book a tee time" already lives in the sticky header, and on a phone the
     header is reduced to the crest and that button -- it never leaves the
     screen. A second copy in the hero was the same action twice in one view.
     Dropped here, and venue hire takes the primary slot: a function booking is
     worth many times a green fee, and it was the one playing second fiddle. */
  .hero .hero-ctas .btn-primary { display: none; }
  .hero .hero-ctas .btn-ghost {
    background: var(--brass-btn); color: #fff; border-color: transparent;
  }
}
.hero-caption {
  position: absolute; right: clamp(12px, 2.5vw, 28px); bottom: 12px; z-index: 3;
  font-size: 0.78rem; letter-spacing: 0.02em; color: rgba(250, 246, 238, 0.85);
  background: rgba(13, 27, 19, 0.55); padding: 7px 12px; border-radius: 7px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  max-width: min(78vw, 420px); text-align: right;
}

/* ---------- course status strip ---------- */
.status-strip {
  position: sticky; top: var(--nav-h); z-index: 90;
  border: none; width: 100%; display: block;
  background: var(--pine-900); color: var(--cream);
  cursor: pointer; text-align: left;
  font-family: inherit; font-size: 1rem;
  border-bottom: 1px solid rgba(250, 246, 238, 0.14);
  perspective: 600px;
}
.status-faces { position: relative; min-height: calc(var(--strip-h) - 1px); }
.status-face {
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  max-width: 1200px; margin: 0 auto; min-height: calc(var(--strip-h) - 1px);
  padding: 8px clamp(16px, 4vw, 40px);
  transition: transform 0.55s var(--ease-out), opacity 0.4s;
  backface-visibility: hidden;
}
.status-face.status-closed {
  position: absolute; inset: 0;
  transform: rotateX(-92deg); opacity: 0; pointer-events: none;
}
.status-strip[data-state="closed"] { background: #33270e; }
.status-strip[data-state="closed"] .status-face.status-open { transform: rotateX(92deg); opacity: 0; pointer-events: none; }
.status-strip[data-state="closed"] .status-face.status-closed { transform: rotateX(0); opacity: 1; pointer-events: auto; }
/* Unknown: the shipped state, and the fallback whenever the live status can't be read. */
.status-face.status-unknown { position: absolute; inset: 0; transform: rotateX(-92deg); opacity: 0; pointer-events: none; }
.status-strip[data-state="unknown"] .status-face.status-open { transform: rotateX(92deg); opacity: 0; pointer-events: none; }
.status-strip[data-state="unknown"] .status-face.status-unknown { transform: rotateX(0); opacity: 1; pointer-events: auto; }
.status-strip { transition: background-color 0.55s; }
.status-pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
}
.status-open .status-pill { background: var(--open-green); color: #fff; }
.status-closed .status-pill { background: var(--closed-amber-btn); color: #fff; }
.status-unknown .status-pill { background: rgba(250, 246, 238, 0.16); color: var(--cream); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }

/* The line next to the pill. Static when there is only a timestamp; a
   ticker when the club has left a note. Either way, one row. */
.status-line {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 0.98rem; line-height: 1.3;
  /* fade the edges so text slides in and out rather than clipping hard */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.status-line:not(.is-ticking) {
  -webkit-mask-image: none; mask-image: none;
}
.status-item { display: inline-flex; align-items: baseline; gap: 0.9em; }
.status-note { color: var(--cream); font-weight: 600; }
.status-when { color: rgba(250, 246, 238, 0.72); }
.status-note + .status-when::before { content: "\00b7"; margin-right: 0.9em; opacity: 0.55; }

/* ticker: the track holds the same group twice and slides one group-width
   left, so the loop is seamless. Duration is set by the script from the
   measured width, so speed is constant whatever the message length. */
.status-line.is-ticking .status-track {
  display: inline-flex; will-change: transform;
  animation: ticker linear infinite;
  animation-duration: var(--ticker-dur, 20s);
}
.status-line.is-ticking .status-group { display: inline-flex; }
.status-line.is-ticking .status-item { padding-right: 2.4em; }
.status-line.is-ticking .status-item::after { content: "\00b7"; margin-left: 2.4em; opacity: 0.55; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* stop it so it can be read */
.status-strip:hover .status-track, .status-strip:focus-visible .status-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .status-face { transition: opacity 0.3s; transform: none !important; }
  .status-dot { animation: none; }
  .status-line.is-ticking .status-track { animation: none; }
}
@media (max-width: 640px) {
  :root { --strip-h: 52px; }
  .status-face { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .status-pill { font-size: 0.78rem; padding: 6px 12px; letter-spacing: 0.1em; }
  .status-line { font-size: 0.88rem; }
  /* smaller phones: the hero floor drops so the strip still lands on screen */
  .hero { min-height: max(calc(100svh - var(--nav-h) - var(--strip-h)), 520px); }
}

/* ---------- sections ---------- */
.band { padding: var(--space-section) 0; }
.band-pine { background: var(--pine-950); color: var(--cream); }
.band-pine .kicker { color: var(--brass-light); }
.band-pine .muted, .band-pine p { color: rgba(250, 246, 238, 0.86); }
.band-cream-dark { background: var(--cream-dark); }
h2 { font-size: var(--text-h2); margin-bottom: 1rem; text-wrap: balance; }
.muted { color: var(--ink-soft); }

/* club intro */
.club-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.club-photo { position: relative; }
.club-photo img,
.club-photo video { border-radius: var(--radius); box-shadow: 14px 14px 0 0 rgba(169, 126, 66, 0.28); width: 100%; display: block; }
.club-photo video { aspect-ratio: 16 / 9; object-fit: cover; background: var(--pine-950); }
.club-photo figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
.band-pine .club-photo figcaption { color: rgba(250, 246, 238, 0.72); }
.film-note { display: inline-block; margin-top: 4px; font-style: italic; opacity: 0.85; }
.club-facts { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 2.2rem; flex-wrap: wrap; }
.club-fact strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--pine-800); }
.club-fact span { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .club-grid { grid-template-columns: 1fr; } }

/* hole cards */
.holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); margin-top: 3rem; }
.hole-card {
  background: var(--pine-900); border: 1px solid rgba(250, 246, 238, 0.12);
  border-radius: var(--radius); overflow: clip; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.hole-card:hover { transform: translateY(-6px); border-color: rgba(201, 161, 101, 0.55); }
.hole-photo { position: relative; margin: 0; }
.hole-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; display: block; }
/* where the photograph was taken, in the club captain's words */
.hole-where {
  position: absolute; left: 14px; bottom: 12px;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 0.9rem;
  color: var(--cream); padding: 5px 11px; border-radius: 999px;
  background: rgba(13, 27, 19, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(250, 246, 238, 0.18);
}
.hole-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hole-num { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1rem; color: var(--brass-light); letter-spacing: 0.08em; }
.hole-card h3 { font-size: var(--text-h3); }
.hole-card p { font-size: 1rem; }
.hole-tag {
  margin-top: auto; padding-top: 16px; font-size: 0.85rem; color: var(--brass-light);
  border-top: 1px solid rgba(250, 246, 238, 0.14);
}
@media (max-width: 860px) { .holes { grid-template-columns: 1fr; } }

/* venue */
.venue-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 24px); margin: 3rem 0; }
.venue-card {
  grid-column: span 2;
  background: #fff; border: 1px solid rgba(36, 41, 43, 0.1); border-radius: var(--radius);
  overflow: clip; transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.venue-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -18px rgba(13, 27, 19, 0.35); }
.venue-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block; }
.venue-media { position: relative; }
.concept-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(13, 27, 19, 0.74); color: var(--cream);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.venue-card-body { padding: 22px 24px 26px; }
.venue-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.venue-card p { font-size: 0.98rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .venue-cards { grid-template-columns: 1fr 1fr; }
  .venue-card { grid-column: span 1; }
  .venue-card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .venue-cards { grid-template-columns: 1fr; }
  .venue-card, .venue-card:last-child:nth-child(odd) { grid-column: span 1; }
}

/* enquiry form */
.form-panel {
  background: var(--pine-950); color: var(--cream);
  border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 4.5vw, 56px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 60px);
}
.form-panel .kicker { color: var(--brass-light); }
.form-panel h3 { font-size: var(--text-h3); margin-bottom: 0.8rem; }
.form-panel p { color: rgba(250, 246, 238, 0.85); font-size: 1.02rem; }
.enquiry-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
/* hints such as "(optional)" sit on the dark panel, so the cream-on-ink muted tone is wrong here — 10:1 */
.form-panel .muted { color: rgba(250, 246, 238, 0.78); font-weight: 400; }
.field input, .field select, .field textarea {
  min-height: 54px; padding: 12px 16px; font: inherit; font-size: 1.02rem;
  color: var(--ink); background: var(--cream);
  border: 2px solid transparent; border-radius: 8px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; align-items: flex-start; gap: 14px;
  background: rgba(46, 125, 79, 0.18); border: 1px solid rgba(46, 125, 79, 0.55);
  border-radius: var(--radius); padding: 20px 22px; margin-top: 4px;
}
.form-success.show { display: flex; animation: rise 0.5s var(--ease-out); }
.form-success svg { flex: none; margin-top: 3px; }
.form-success strong { display: block; margin-bottom: 3px; }
.form-success span { font-size: 0.95rem; color: rgba(250, 246, 238, 0.85); }
.form-success a, .form-fallback a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-fallback {
  display: none; align-items: flex-start; gap: 14px;
  background: rgba(224, 178, 90, 0.14); border: 1px solid rgba(224, 178, 90, 0.6);
  border-radius: var(--radius); padding: 20px 22px; margin-top: 4px;
}
.form-fallback.show { display: flex; animation: rise 0.5s var(--ease-out); }
.form-fallback svg { flex: none; margin-top: 3px; }
.form-fallback strong { display: block; margin-bottom: 3px; }
.form-fallback span { font-size: 0.95rem; color: rgba(250, 246, 238, 0.85); }
/* honeypot: off-screen, not in the tab order, never shown to people */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .form-panel { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* membership */
/* auto-fit so the row balances whether there are two cards or three -- the
   offer card comes and goes with the renewal season. */
.member-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-top: 3rem; }
.member-card {
  background: #fff; border: 1px solid rgba(36, 41, 43, 0.1); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 10px;
}
.member-card h3 { font-size: 1.35rem; }
.price { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3.1rem); font-weight: 600; color: var(--pine-800); line-height: 1; }
.price small { font-family: "Inter", system-ui, sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.member-card p { font-size: 0.98rem; color: var(--ink-soft); }
/* .member-card p (0,1,1) was beating .price (0,1,0), so the membership figure
   rendered at 0.98rem instead of the 2.2-3.1rem the rule asks for. The clamp and
   line-height:1 on .price were written for a large number; restore it. */
.member-card .price { font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3.1rem); color: var(--pine-800); }
.member-card .btn { margin-top: auto; align-self: flex-start; }
.offer-card { background: var(--cream); border: 2px dashed var(--brass); position: relative; }
.offer-flag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-text); background: rgba(169, 126, 66, 0.14);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 6px; align-self: flex-start;
}
.offer-note { font-size: 0.85rem; font-style: italic; color: var(--ink-soft); }
@media (max-width: 860px) { .member-cards { grid-template-columns: 1fr; } }

/* visitors */
.visit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.visit-list { list-style: none; display: grid; gap: 14px; margin: 1.8rem 0 2.4rem; }
.visit-list li { display: flex; gap: 14px; align-items: flex-start; }
.visit-list svg { flex: none; margin-top: 6px; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* footer */
.footer { background: var(--pine-950); color: rgba(250, 246, 238, 0.88); padding: var(--space-section) 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); margin-bottom: 3.5rem; }
.footer h2 { font-size: 1.5rem; color: var(--cream); }
.footer address { font-style: normal; line-height: 1.9; }
.footer a { text-decoration-color: rgba(201, 161, 101, 0.6); text-underline-offset: 3px; }
.footer a:hover { color: var(--brass-light); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-meta { border-top: 1px solid rgba(250, 246, 238, 0.16); padding-top: 2rem; display: grid; gap: 10px; font-size: 0.92rem; color: rgba(250, 246, 238, 0.62); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* reveal — visible by default; JS opts elements in */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media video { transition: none; }
  .hole-card, .venue-card, .btn { transition: none; }
}

/* venue-hire page bands */
.vh-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid rgba(36, 41, 43, 0.1); }
.vh-band:last-of-type { border-bottom: none; }
.vh-band img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.vh-media { position: relative; }
.vh-media .concept-badge { border-radius: var(--radius) 0 var(--radius) 0; top: 0; right: 0; }
.vh-band:nth-child(even) .vh-media { order: 2; }
.vh-band h3 { font-size: var(--text-h3); margin-bottom: 0.6rem; }
.vh-band .muted { font-size: 1.02rem; }
.page-head { padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5.5rem)) 0 clamp(3rem, 6vw, 5rem); background: var(--pine-950); color: var(--cream); }
.page-head .kicker { color: var(--brass-light); }
.vh-band h2 { font-size: var(--text-h3); margin-bottom: 0.6rem; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 4.5vw, 5rem); max-width: 12em; text-wrap: balance; }
.page-head .lede { margin-top: 1.2rem; color: rgba(250, 246, 238, 0.9); }
@media (max-width: 780px) { .vh-band { grid-template-columns: 1fr; } .vh-band:nth-child(even) .vh-media { order: 0; } }


/* ---------- history page ---------- */
.timeline { margin-top: 3rem; border-left: 2px solid rgba(169, 126, 66, 0.35); padding-left: clamp(20px, 3vw, 40px); }
.tl-item { position: relative; padding-bottom: clamp(2rem, 4vw, 3.2rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(20px, 3vw, 40px) - 7px); top: 0.55em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brass); border: 2px solid var(--cream);
}
.band-pine .tl-item::before { border-color: var(--pine-900); }
.tl-year {
  display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 600;
  color: var(--brass-text); letter-spacing: 0.01em; margin-bottom: 0.35rem;
}
.band-pine .tl-year { color: var(--brass-light); }
.tl-item h3 { font-size: var(--text-h3); margin-bottom: 0.5rem; }
.tl-item p { font-size: 1.02rem; max-width: 46em; }
.tl-source { display: block; margin-top: 0.7rem; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }
.band-pine .tl-source { color: rgba(250, 246, 238, 0.62); }
.tl-item.tl-major .tl-year { font-size: 2rem; }
.tl-item.tl-major::before { width: 16px; height: 16px; left: calc(-1 * clamp(20px, 3vw, 40px) - 9px); background: var(--closed-amber); }

.history-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .history-grid { grid-template-columns: 1fr; } }
.pull {
  border-left: 3px solid var(--brass); padding: 0.2rem 0 0.2rem 1.2rem; margin: 2rem 0;
  font-family: "Fraunces", Georgia, serif; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  font-style: italic; line-height: 1.4; color: var(--pine-800);
}
.band-pine .pull { color: var(--cream); border-left-color: var(--brass-light); }
.gap-panel {
  background: var(--cream-dark); border: 1px solid rgba(169, 126, 66, 0.35); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px); margin-top: 3rem;
}
.gap-panel h3 { font-size: var(--text-h3); margin-bottom: 0.6rem; }
.gap-panel ul { margin: 1rem 0 1.4rem 1.1rem; }
.gap-panel li { margin-bottom: 0.4rem; font-size: 1rem; color: var(--ink-soft); }


/* ---------- prose rhythm ----------
   The reset at the top of this file zeroes every margin and nothing ever put
   paragraph spacing back. Single paragraphs got away with it; the history page
   stacks them, so the text ran together into a wall. Fixed here rather than
   per-component, so it holds on every page. */
p + p,
p + ul, p + ol,
ul + p, ol + p { margin-top: 1.15em; }

.footer-meta p + p { margin-top: 0.25rem; }

/* Reading measure. 46em ran to roughly 95 characters a line; about 78 is the
   comfortable ceiling for body text this size. */
.timeline { max-width: 42em; }
.tl-item p { max-width: 38em; line-height: 1.72; }
.history-grid p:not(.pull) { line-height: 1.72; }
.gap-panel p { line-height: 1.7; }

/* ---------- the club's archive film ---------- */
.film-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.film-frame { margin: 0; }
.film-frame video {
  width: 100%; max-width: 640px; aspect-ratio: 568 / 320;
  background: #000; border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 30, 25, 0.20);
}
.film-frame figcaption {
  margin-top: 14px; font-size: 0.82rem; line-height: 1.6;
  color: var(--ink-soft); max-width: 40em;
}
@media (max-width: 900px) {
  .film-grid { grid-template-columns: 1fr; }
  .film-frame video { max-width: 100%; }
}


/* ---------- bilingual identity ----------
   The club's Welsh name, on every page, at the vice captain's request.
   .brand-name small already existed but was never used and carried 0.3em
   tracking -- fine for a three-word strapline, far too loose for the
   twenty-one characters of "Clwb Golff Pontypridd". */
.brand-name small {
  letter-spacing: 0.09em;
  font-size: 0.6rem;
  text-transform: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
}
.footer-cy {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.86em; font-weight: 500;
  opacity: 0.7; margin-top: 3px;
}

/* The header was already wrapping "Pontypridd Golf Club" onto two lines on a
   phone, and the tee-time button with it. Adding the Welsh name made that
   scruffiness obvious. Scale the lockup down on small screens so the club's
   name -- in both languages -- sits on one line each, and stop the button
   breaking mid-phrase. */
@media (max-width: 560px) {
  .brand-name { font-size: 0.98rem; line-height: 1.2; }
  .brand-name small { font-size: 0.53rem; letter-spacing: 0.05em; margin-top: 2px; }
  .nav-inner .btn { padding: 0 16px; font-size: 0.92rem; white-space: nowrap; }
}

/* ---------- course card page ---------- */
/* The club's printed card, as web content. The table is the thing golfers
   actually search for, so it is real markup rather than a picture of a card:
   readable on a phone, readable by a screen reader, and indexable. */

.tee-cards {
  display: grid; gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}
.tee-card {
  background: var(--cream); border: 1px solid rgba(169, 126, 66, 0.28);
  border-radius: var(--radius); padding: clamp(16px, 2vw, 22px);
}
.tee-card h3 {
  font-size: 1.05rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brass-text); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 9px;
}
.tee-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.tee-card--white { border-top: 3px solid #8b8375; }
.tee-card--white h3 { color: var(--pine-950); }
.tee-card--white .tee-dot { background: #fff; border: 2px solid #8b8375; }
.tee-card--yellow { border-top: 3px solid #e0b400; }
.tee-card--yellow h3 { color: #7a5900; }
.tee-card--yellow .tee-dot { background: #f5c518; border: 2px solid #8e6b00; }
.tee-card--red { border-top: 3px solid #c62828; }
.tee-card--red h3 { color: #a32222; }
.tee-card--red .tee-dot { background: #c62828; border: 2px solid #8e1f1f; }
.tee-card .tee-par { font-family: "Fraunces", Georgia, serif; font-size: 2rem; line-height: 1; color: var(--pine-950); }
.tee-card .tee-par small { font-size: 0.9rem; font-family: inherit; color: var(--ink-soft); }
.tee-card dl { display: flex; gap: 1.6rem; margin-top: 0.9rem; }
.tee-card dt { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.tee-card dd { font-size: 1.15rem; font-weight: 600; color: var(--pine-950); margin-top: 2px; }

.table-scroll {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(169, 126, 66, 0.3); border-radius: var(--radius);
  background: var(--cream);
}
.card-table { border-collapse: collapse; width: 100%; min-width: 620px; font-variant-numeric: tabular-nums; }
.card-table caption { text-align: left; padding: 14px 16px 0; color: var(--ink-soft); font-size: 0.9rem; }
.card-table th, .card-table td { padding: 9px 10px; text-align: center; font-size: 0.95rem; }
.card-table thead th { background: var(--pine-950); color: var(--cream); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.card-table thead tr:first-child th { border-bottom: 1px solid rgba(250, 246, 238, 0.22); }
.card-table tbody td, .card-table tbody th { border-top: 1px solid rgba(169, 126, 66, 0.22); }
.card-table tbody th[scope="row"] {
  text-align: center; font-weight: 700; color: var(--pine-950);
  position: sticky; left: 0; background: var(--cream);
  box-shadow: 1px 0 0 rgba(169, 126, 66, 0.22);
}
/* Tee colours. On the dark table head the real tee colours are legible, so the
   words carry them. On the cream cards they are not -- yellow text on cream is
   unreadable -- so the card shows a swatch in the true colour and the word takes
   the darkest version of it that still passes AA. */
.tee-w { color: var(--cream); }
.tee-y { color: #f2c94c; }
.tee-r { color: #e8756a; }

/* The red group: tinted in the body, a shade lighter in the head. This used to
   set one light background for BOTH, which left cream head text on a pale tint. */
.card-table tbody .grp-red { background: rgba(198, 40, 40, 0.06); }
.card-table thead .grp-red { background: var(--pine-900); }
.card-table tbody tr.sum .grp-red { background: #efe4d8; }
.card-table tbody tr.sum th[scope="row"], .card-table tbody tr.sum td { background: var(--cream-dark); font-weight: 700; color: var(--pine-950); }
.card-table tbody tr.sum th[scope="row"] { background: var(--cream-dark); }
.card-table tbody tr.total th[scope="row"], .card-table tbody tr.total td { border-top: 2px solid var(--brass); }
.card-note { margin-top: 0.9rem; font-size: 0.92rem; color: var(--ink-soft); }
.band-pine .card-note { color: rgba(250, 246, 238, 0.75); }

.map-figure { margin-top: clamp(1.8rem, 3vw, 2.6rem); text-align: center; }
.map-figure img {
  width: 100%; max-width: 560px; height: auto; border-radius: var(--radius);
  background: var(--cream); padding: clamp(10px, 2vw, 22px);
}
.map-figure figcaption { margin-top: 0.9rem; font-size: 0.92rem; color: var(--ink-soft); }
.band-pine .map-figure figcaption { color: rgba(250, 246, 238, 0.75); }

.rules-grid { display: grid; gap: clamp(14px, 2vw, 26px) clamp(24px, 4vw, 52px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.rules-grid h3 { font-size: 1.02rem; margin-bottom: 0.25rem; color: var(--pine-950); }
.band-pine .rules-grid h3 { color: var(--cream); }
.rules-grid p { font-size: 0.98rem; }
.rules-grid ul { margin: 0.5rem 0 0; padding-left: 1.15rem; list-style: disc; }
.rules-grid ul li { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.35rem; line-height: 1.55; }
.rules-grid ul li:last-child { margin-bottom: 0; }

.dress-note {
  margin-top: clamp(1.6rem, 3vw, 2.2rem); padding: clamp(16px, 2.4vw, 24px);
  background: var(--cream-dark); border-left: 4px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0;
}
.dress-note h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.downloads { display: grid; gap: clamp(12px, 1.6vw, 18px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.dl-card {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none;
  background: var(--cream); border: 1px solid rgba(169, 126, 66, 0.3);
  border-radius: var(--radius); padding: clamp(16px, 2vw, 20px); color: var(--ink);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.dl-card:hover, .dl-card:focus-visible { border-color: var(--brass); transform: translateY(-2px); }
.dl-card svg { flex: none; margin-top: 2px; }
.dl-card strong { display: block; color: var(--pine-950); font-size: 1.02rem; margin-bottom: 2px; }
.dl-card span { font-size: 0.9rem; color: var(--ink-soft); }

/* Joining: the steps that sit under the membership cards on the homepage. */
.join-steps { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: clamp(2rem, 3.4vw, 3rem); }
.join-step { position: relative; padding-left: 46px; }
.join-step .n {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pine-950); color: var(--cream);
  font-weight: 700; font-size: 0.95rem;
}
.join-step h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.join-step p { font-size: 0.96rem; color: var(--ink-soft); }

@media (max-width: 560px) {
  .card-table th, .card-table td { padding: 8px 7px; font-size: 0.9rem; }
  .card-table { min-width: 560px; }
}

.member-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.7rem; }
