/* ============================================================
   Bulimba Sport Horses — site.css
   Shared site-wide styles, built on top of _d1.css tokens.
   ============================================================ */

@import url("./_d1.css");

/* ---------- Layout primitives ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .container { padding: 0 24px; } }

.section { padding: 112px 0; }
.section--bone { background: var(--bone); color: var(--bog); }
.section--eire { background: var(--eire); color: var(--bone); }
.section--bog  { background: var(--bog); color: var(--bone); }

.section--tight { padding: 72px 0; }
.section--wide  { padding: 144px 0; }

@media (max-width: 720px) {
  .section, .section--tight, .section--wide { padding: 72px 0; }
}

.eyebrow-gold {
  font-size: 11px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow-bone {
  font-size: 11px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(236,236,227,0.7);
}

.display-1 {
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 0.96;
}
.display-2 {
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 500; letter-spacing: -0.022em; line-height: 1.02;
}
.h-1 {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
}
.h-2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500; letter-spacing: -0.015em; line-height: 1.12;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55; max-width: 56ch;
  color: inherit;
}
.section--eire .lede,
.section--bog  .lede { color: rgba(236,236,227,0.82); }
.section--bone .lede { color: rgba(15,36,24,0.72); }

.muted { color: rgba(15,36,24,0.62); }
.section--eire .muted,
.section--bog  .muted { color: rgba(236,236,227,0.62); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
  text-decoration: none; font-family: var(--font-sans);
  border: 1px solid transparent;
}
.btn--primary { background: var(--gold); color: var(--bog); }
.btn--primary:hover { background: var(--bone); color: var(--bog); }
.btn--bone { background: var(--bone); color: var(--eire); }
.btn--bone:hover { background: var(--gold); color: var(--bog); }
.btn--ghost { background: transparent; color: var(--bone); border-color: rgba(236,236,227,0.4); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink-ghost { background: transparent; color: var(--bog); border-color: rgba(15,36,24,0.28); }
.btn--ink-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn .arr { display: inline-block; transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Logo (image) ---------- */
.logo-img {
  display: inline-block;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
/* New SVG logo viewBox is 1628 × 1320 — wider header allowed */
.logo-img--nav   { height: 64px; width: auto; }
.logo-img--hero  { width: clamp(320px, 44vw, 620px); }
.logo-img--md    { width: clamp(220px, 24vw, 340px); }
.logo-img--sm    { width: 180px; }

@media (max-width: 720px) {
  .logo-img--nav { height: 52px; }
  .logo-img--hero { width: 85vw; }
}

/* ---------- Wordmark — text-only logo lockup ---------- */
/* Pure-type lockup; replaces the horse mark while the silhouette is finalised. */
.wm {
  display: inline-flex; flex-direction: column; align-items: center;
  line-height: 0.9; user-select: none;
}
.wm__row { display: inline-flex; align-items: center; gap: 14px; }
.wm__bar { height: 1px; width: 36px; background: var(--gold); display: inline-block; }
.wm .b {
  font-weight: 500; letter-spacing: -0.012em;
  background: linear-gradient(135deg, #DCB661 0%, #B89146 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-color: var(--gold); /* fallback */
}
.wm .s {
  font-weight: 500; letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bone);
  margin-right: -0.21em;
  margin-top: 0;
}
.wm .t {
  font-weight: 500; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold);
}

/* Sizes */
.wm--xs .b { font-size: 18px; }
.wm--xs .s { font-size: 7px; margin-top: 4px; }
.wm--xs .t { font-size: 8px; }
.wm--xs .wm__bar { width: 14px; }

.wm--sm .b { font-size: 32px; }
.wm--sm .s { font-size: 10px; margin-top: 6px; }
.wm--sm .t { font-size: 10px; }
.wm--sm .wm__bar { width: 22px; }

.wm--md .b { font-size: 56px; }
.wm--md .s { font-size: 14px; margin-top: 8px; }
.wm--md .t { font-size: 12px; }
.wm--md .wm__bar { width: 28px; }

.wm--lg .b { font-size: clamp(80px, 11vw, 168px); }
.wm--lg .s { font-size: clamp(20px, 2vw, 30px); margin-top: 14px; }
.wm--lg .t { font-size: clamp(12px, 1vw, 14px); }
.wm--lg .wm__bar { width: 40px; }

/* On bone backgrounds, the wordmark sub-text is bog/eire */
.section--bone .wm .s { color: var(--eire); }

/* anti-clip for last letter on the foil gradient */
.wm .b {
  background-size: calc(100% + 16px) 100%;
  background-position: -8px 0;
  background-repeat: no-repeat;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 77, 46, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
          backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(236,236,227,0.12);
}
.nav__wrap {
  max-width: 1320px; margin: 0 auto;
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__links {
  display: flex; gap: 32px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--bone); text-decoration: none;
  opacity: 0.85; transition: opacity .25s, color .25s;
  padding: 6px 0;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1; color: var(--gold);
}
.nav__cta {
  padding: 10px 16px; font-size: 10px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; background: var(--gold); color: var(--bog);
  text-decoration: none; transition: background .25s, color .25s;
}
.nav__cta:hover { background: var(--bone); }

.nav__burger { display: none; background: transparent; border: 0; color: var(--bone); cursor: pointer; }
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; padding: 8px; }
}

/* ---------- Tagline strip ---------- */
.tagline-strip {
  background: var(--bog); color: var(--bone);
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase;
  flex-wrap: wrap;
}
.tagline-strip .rule { width: 32px; height: 1px; background: var(--gold); display: inline-block; }
.tagline-strip .word { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--bog); color: var(--bone); padding: 96px 40px 28px; }
.footer__inner { max-width: 1320px; margin: 0 auto; }
.footer__big {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 56px; border-bottom: 1px solid rgba(236,236,227,0.15);
  gap: 32px; flex-wrap: wrap;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 56px;
}
.footer__col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer__col a {
  display: block; padding: 5px 0;
  font-size: 13px; color: var(--bone); opacity: 0.82; text-decoration: none;
  transition: opacity .25s, color .25s;
}
.footer__col a:hover { opacity: 1; color: var(--gold); }
.footer__col p {
  font-size: 13px; line-height: 1.7; opacity: 0.82;
  font-family: var(--font-mono); margin: 4px 0;
}
.footer__meta {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(236,236,227,0.55);
  gap: 16px; flex-wrap: wrap;
}
.footer__meta .gold { color: var(--gold); }
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__big { flex-direction: column; align-items: flex-start; }
}

/* ---------- Hairline rule ---------- */
.rule-gold { width: 56px; height: 1px; background: var(--gold); display: inline-block; }
.rule-bone { width: 56px; height: 1px; background: var(--bone); display: inline-block; opacity: 0.6; }

/* ---------- Animated reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tabular figures ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bone); color: var(--bog);
  padding: 28px;
  border: 1px solid rgba(15,36,24,0.1);
}
.card--dark {
  background: rgba(236,236,227,0.04); color: var(--bone);
  border-color: rgba(236,236,227,0.12);
}

/* ---------- Imagery ---------- */
.photo {
  position: relative; overflow: hidden;
  background: var(--bog); /* fallback while image loads */
}
.photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo::after {
  /* subtle bottom-gradient so caption stays legible on any photo */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,36,24,0) 55%, rgba(15,36,24,0.55) 100%);
  pointer-events: none;
}
/* Variant placeholders for sections that still need a tonal fallback */
.photo--var2,
.photo--var3,
.photo--var4 { background: var(--bog); }
.photo .tag {
  position: absolute; top: 18px; left: 18px;
  background: var(--gold); color: var(--bog);
  padding: 5px 11px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
}
.photo .cap {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bone);
  display: flex; justify-content: space-between; gap: 12px;
}

/* ---------- Subtle texture for hero (very faint) ---------- */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(201,161,74,0.10), transparent 60%),
    radial-gradient(60% 50% at 15% 80%, rgba(42,111,68,0.4), transparent 70%);
  pointer-events: none;
}

/* ---------- Hero with photo background ---------- */
.hero-photo {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photo > img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: saturate(0.78) contrast(1.02);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(26,77,46,0.92) 0%, rgba(26,77,46,0.62) 45%, rgba(15,36,24,0.85) 100%);
}
.hero-photo + .container,
.hero-photo + .hero-bg + .container,
.hero-photo ~ .container { position: relative; z-index: 1; }

/* ---------- Roster / horizontal scroll card row ---------- */
.roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .roster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .roster { grid-template-columns: 1fr; } }

.roster__card {
  background: rgba(236,236,227,0.04);
  border: 1px solid rgba(236,236,227,0.12);
  transition: border-color .25s, transform .25s;
}
.section--bone .roster__card {
  background: rgba(15,36,24,0.03);
  border-color: rgba(15,36,24,0.12);
}
.roster__card:hover { border-color: var(--gold); transform: translateY(-2px); }
.roster__media { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: var(--bog); }
.roster__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.roster__body { padding: 20px 18px 22px; }
.roster__name { font-size: 20px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.05; }
.roster__ped  { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; margin-top: 6px; opacity: 0.72; }
.roster__stat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 12px; color: var(--gold); }

/* ---------- Results strip ---------- */
.results {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
@media (max-width: 880px) { .results { grid-template-columns: repeat(2, 1fr); } }

.result {
  padding: 28px 26px;
  border-left: 1px solid rgba(236,236,227,0.18);
}
.section--bone .result { border-left-color: rgba(15,36,24,0.14); }
.result:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 880px) { .result { border-left: 0 !important; padding-left: 0 !important; padding-top: 24px; border-top: 1px solid rgba(236,236,227,0.18); } .result:first-child, .result:nth-child(2) { border-top: 0; padding-top: 0; } }
.result__placing { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; color: var(--gold); margin-bottom: 14px; }
.result__horse { font-size: 22px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.1; margin-bottom: 8px; }
.result__meta  { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; opacity: 0.72; }

/* ---------- Quote / testimonial ---------- */
.quote { font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.012em; line-height: 1.32; }
.quote::before { content: "“"; color: var(--gold); margin-right: 6px; }
.quote::after  { content: "”"; color: var(--gold); margin-left: 6px; }
.quote-source { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 24px; color: var(--gold); }
