/* ============================================================================
   BDS GOLF UNLIMITED — v2, rebuilt on the Golf Concepts technique
   Direction: the group as a dark premium house. Graphite ramp, bone
   foreground, mono micro-labels as furniture, real photography under ink
   scrims. Brand locked by Ginger Lion: division colours are the only colour
   on the page — green #2e6417 / orange #f27227 / navy #172c48 / magenta
   #d43790 — with bright steps derived for legibility on ink. Display is
   Anton (Zuume Rough Bold stand-in), text Poppins, labels IBM Plex Mono.
   Logos: Lynette's PNGs only — white-text versions on dark, never on a
   ground that matches their GOLF colour.

   COMPOSITION CONTRACT: hero display clamp(3rem,9vw,9.5rem) → 152px;
   splits 7fr/5fr · 2fr/1fr · 1fr/1.618fr; measures full-bleed/1240/880/62ch;
   doors + heroes run full-bleed; sections ≥ 12vh.
   ========================================================================== */

:root {
  --ink:    #0a0b0d;
  --coal:   #0f1114;
  --card:   #15181c;
  --card-2: #1c2026;

  --bone:  #f6f4f0;
  --muted: rgba(246, 244, 240, .62);
  --faint: rgba(246, 244, 240, .52);

  --green:   #2e6417;  --green-bright:   #7cc24e;
  --orange:  #f27227;  --orange-bright:  #ffa254;
  --navy:    #172c48;  --navy-bright:    #6f9bd8;
  --magenta: #d43790;  --magenta-bright: #ef7cc0;
  --grey:    #545454;

  --acc: var(--bone);
  --acc-bright: var(--bone);
  --acc-soft: rgba(246, 244, 240, .10);

  --line: rgba(246, 244, 240, .10);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --radius: 14px;
  --radius-sm: 8px;
}

[data-world="customfit"]   { --acc: var(--orange);  --acc-bright: var(--orange-bright);  --acc-soft: rgba(242,114,39,.12); }
[data-world="oncourse"]    { --acc: var(--green);   --acc-bright: var(--green-bright);   --acc-soft: rgba(46,100,23,.18); }
[data-world="leatherworx"] { --acc: var(--navy);    --acc-bright: var(--navy-bright);    --acc-soft: rgba(23,44,72,.3); }
[data-world="geardirect"]  { --acc: var(--magenta); --acc-bright: var(--magenta-bright); --acc-soft: rgba(212,55,144,.12); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--acc-bright); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: .012em;
}
h1 { font-size: clamp(3rem, 9vw, 9.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); }
p { color: var(--muted); }
strong { color: var(--bone); font-weight: 600; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 54ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--acc-bright);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--acc-bright); opacity: .8; flex: none; }

.wrap { width: min(1240px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(880px, 92vw); margin-inline: auto; }
.prose { max-width: 62ch; }
section { padding: clamp(4rem, 12vh, 8.5rem) 0; position: relative; }
.section-alt { background: var(--coal); }

:focus-visible { outline: 2px solid var(--acc-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(18px, 4vw, 48px);
}
.site-head .mark img { height: 62px; width: auto !important; aspect-ratio: 1 / 1; object-fit: contain; }
.head-links { display: flex; gap: 4px; }
.head-links a {
  font-size: .86rem; font-weight: 500; color: var(--muted);
  padding: 9px 14px; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.head-links a:hover { color: var(--bone); background: rgba(246,244,240,.07); }
.head-links a[aria-current="true"] { color: var(--bone); }
@media (max-width: 760px) { .head-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem;
  padding: 15px 28px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--bone); background: rgba(246,244,240,.05);
  cursor: pointer;
  transition: transform .16s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: rgba(246,244,240,.1); border-color: rgba(246,244,240,.3); }
.btn:active { transform: scale(.97); }
.btn--acc { background: var(--acc); border-color: transparent; color: var(--bone); }
[data-world="geardirect"] .btn--acc, [data-world="customfit"] .btn--acc { color: #140b06; }
[data-world="geardirect"] .btn--acc { color: #1b0712; }
.btn--acc:hover { filter: brightness(1.12); background: var(--acc); }

/* ---------- cinematic hero scaffold ---------- */
.hero {
  position: relative; min-height: 94vh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(48px, 9vh, 96px);
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(10,11,13,.72) 38%, rgba(10,11,13,.38) 70%, rgba(10,11,13,.55) 100%);
}
.hero .eyebrow { color: var(--acc-bright); }
.hero-logo { height: clamp(120px, 17vw, 210px); width: auto; aspect-ratio: 1 / 1; object-fit: contain; object-position: left; margin-bottom: clamp(10px, 2vh, 22px); }
.hero-sub { max-width: 52ch; margin-top: 20px; font-size: clamp(1rem, 1.4vw, 1.16rem); color: rgba(246,244,240,.78); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- reveal choreography: one orchestrated entrance ---------- */
.rv { opacity: 0; transform: translateY(22px); }
.is-ready .rv {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.is-ready .rv-1 { transition-delay: .05s; } .is-ready .rv-2 { transition-delay: .16s; }
.is-ready .rv-3 { transition-delay: .27s; } .is-ready .rv-4 { transition-delay: .38s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- the doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.door {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(62vh, 560px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius);
}
.door::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4px;
  background: var(--door-c, var(--bone));
  transform: scaleX(.22); transform-origin: left;
  transition: transform .5s var(--ease);
}
.door-media { position: absolute; inset: 0; z-index: -2; }
.door-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); filter: saturate(.92); }
.door-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,11,13,.88) 0%, rgba(10,11,13,.45) 45%, rgba(10,11,13,.25) 100%);
}
.door:hover .door-media img { transform: scale(1.045); }
.door:hover::after { transform: scaleX(1); }
.door img.door-logo { height: clamp(96px, 10vw, 136px); width: auto; aspect-ratio: 1 / 1; object-fit: contain; object-position: left; }
.door .goal {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(246,244,240,.75);
}
.door .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.door .meta .go {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid rgba(246,244,240,.35);
  display: grid; place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.door .meta .go svg { width: 16px; height: 16px; stroke: var(--bone); transition: transform .3s var(--ease); }
.door:hover .meta .go { background: var(--door-c); border-color: var(--door-c); }
.door:hover .meta .go svg { transform: translateX(2px); }
.door:focus-visible { outline: 3px solid var(--bone); outline-offset: -6px; }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } .door { min-height: 340px; } }

/* ---------- content splits ---------- */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 84px); align-items: center; }
.split--rev { grid-template-columns: 5fr 7fr; }
.split .pic { border-radius: var(--radius); overflow: hidden; }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split, .split--rev { grid-template-columns: 1fr; } }

/* ---------- data table (sessions / heritage) ---------- */
.dtable { width: 100%; border-collapse: collapse; }
.dtable td { padding: 20px 10px; border-top: 1px solid var(--line); vertical-align: baseline; }
.dtable tr:last-child td { border-bottom: 1px solid var(--line); }
.dtable .t-name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.15rem, 1.8vw, 1.5rem); white-space: nowrap; padding-right: 28px; }
.dtable .t-dim { color: var(--faint); font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }
.dtable .t-desc { color: var(--muted); font-size: .95rem; }
.dtable .t-price { text-align: right; font-weight: 600; color: var(--acc-bright); white-space: nowrap; font-size: 1.05rem; }
@media (max-width: 760px) { .dtable .t-desc { display: none; } }

/* ---------- footer ---------- */
.site-foot { background: var(--coal); border-top: 1px solid var(--line); padding: clamp(48px, 8vh, 88px) 0 40px; font-size: .95rem; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-foot h3 { font-size: 1.05rem; margin-bottom: 14px; }
.site-foot p, .site-foot li { color: var(--muted); }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot a:hover { color: var(--bone); }
.site-foot .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot .legal img { height: 44px; width: auto; aspect-ratio: 1 / 1; object-fit: contain; opacity: .85; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* ---------- hero push-in (photographic heroes) ---------- */
@keyframes heroPush { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-media--push img { animation: heroPush 2.6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .hero-media--push img { animation: none; } }

/* ---------- film cards ---------- */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.film { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); margin: 0; }
.film video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.film figcaption { padding: 16px 20px; font-size: .92rem; color: var(--muted); display: grid; gap: 4px; }
.film figcaption b { color: var(--acc-bright); font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 760px) { .films { grid-template-columns: 1fr; } }

/* ---------- photo gallery band ---------- */
.gallery { display: grid; grid-template-columns: 1.618fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .gallery img:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 10; } }

/* ---------- partner logo row ---------- */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4.5vw, 56px); }
.logo-row img { height: clamp(56px, 7vw, 84px); width: auto; }

/* ---------- page transition: fade through ink ---------- */
#veil {
  position: fixed; inset: 0; z-index: 999; background: var(--ink);
  opacity: 0; pointer-events: none;
  transition: opacity .32s ease;
}
#veil.on { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #veil { display: none; } }
