/* ==========================================================================
   BLACK STALLION — blackstallion.co.za
   Jack's Black Stallion
   Design system v1.0 — Stallion Black / Champion Gold / Ivory
   Strict CSP: all styling lives here; no inline styles anywhere.
   ========================================================================== */

:root {
  color-scheme: dark;
  --black: #0b0b0f;
  --midnight: #131320;
  --midnight-2: #191927;
  --gold: #c9a227;
  --gold-bright: #e8c55a;
  --gold-dim: rgba(201, 162, 39, 0.35);
  --ivory: #f4efe6;
  --silver: #b9bdc7;
  --muted: #8b8f9c;
  --oxblood: #4a1e22;
  --line: rgba(201, 162, 39, 0.22);
  --line-soft: rgba(244, 239, 230, 0.08);
  --serif: "Didot", "Bodoni MT", "Playfair Display", "Georgia", serif;
  --sans: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  min-width: 320px;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ivory);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 162, 39, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(74, 30, 34, 0.18), transparent 55%),
    var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover, a:focus-visible { color: var(--ivory); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

::selection { background: var(--gold); color: var(--black); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--silver); max-width: 46ch; }

.gold-rule {
  border: 0;
  height: 1px;
  width: 84px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.6rem 0;
}

.center { text-align: center; }
.center .gold-rule { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.center .lede { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ivory);
}

.brand .mark { width: 44px; height: 44px; flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
}

.brand-tag {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.site-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); list-style: none; }

.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--ivory); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); border-bottom-color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(11, 11, 15, 0.98); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.6rem var(--pad) 1.2rem; }
  .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-seal { width: min(380px, 70vw); margin: 0 auto; filter: drop-shadow(0 0 60px rgba(201, 162, 39, 0.18)); }

.hero h1 { margin: 0.4rem 0 1rem; }
.hero .tagline { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.hero .lede { margin-top: 1.4rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-seal { order: -1; width: min(280px, 60vw); }
  .hero { text-align: center; }
  .hero .lede, .hero .gold-rule { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--black); }

.btn-solid { background: var(--gold); color: var(--black); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--gold-bright); color: var(--black); }

.btn-ghost { border-color: var(--line); color: var(--silver); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold-bright); background: transparent; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-dark { background: linear-gradient(180deg, var(--midnight) 0%, var(--black) 100%); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Manifesto band */

.manifesto {
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(201, 162, 39, 0.08), transparent 60%),
    var(--midnight);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ivory);
  max-width: 26ch;
  margin: 0 auto;
}

.manifesto cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Card grids */

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(160deg, var(--midnight) 0%, var(--midnight-2) 100%);
  border: 1px solid var(--line-soft);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }

.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--silver); font-size: 0.98rem; }

.card .icon { width: 46px; height: 46px; margin-bottom: 1.2rem; }

.card-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}

/* --------------------------------------------------------------------------
   Product line
   -------------------------------------------------------------------------- */

.product-card { text-align: center; position: relative; }

.product-card .bottle { height: 190px; width: auto; margin: 0 auto 1.4rem; display: block; }

.product-format {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.product-card h3 { font-size: 1.5rem; }

.product-line {
  font-family: var(--serif);
  font-style: italic;
  color: var(--silver);
  display: block;
  margin: 0.5rem 0 0.9rem;
}

.product-note { font-size: 0.9rem; color: var(--muted); }

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 0.3rem 0.6rem;
}

/* Story page */

.story-body { max-width: 68ch; }
.story-body p { margin-bottom: 1.5rem; color: var(--silver); font-size: 1.08rem; }
.story-body p strong, .story-body p em { color: var(--ivory); }

.story-quote {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 2.4rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ivory);
}

/* Standards / pillars */

.pillar-list { list-style: none; counter-reset: pillar; max-width: 820px; }

.pillar-list li {
  counter-increment: pillar;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.pillar-list li::before {
  content: counter(pillar, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.pillar-list h3 { margin-bottom: 0.5rem; }
.pillar-list p { color: var(--silver); }

/* FAQ */

.faq { max-width: 820px; }

.faq details {
  border: 1px solid var(--line-soft);
  background: var(--midnight);
  margin-bottom: 0.9rem;
}

.faq details[open] { border-color: var(--gold-dim); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 1.6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ivory);
  position: relative;
  padding-right: 3rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-family: var(--serif);
}

.faq details[open] summary::after { content: "\2212"; }

.faq .answer { padding: 0 1.6rem 1.5rem; color: var(--silver); }
.faq .answer p + p { margin-top: 0.8rem; }

/* Contact */

.contact-grid { align-items: start; }

.contact-card a.big {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--gold-bright);
  word-break: break-word;
}

.contact-card .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* Notice / disclaimer bands */

.notice {
  border: 1px solid var(--line);
  background: rgba(201, 162, 39, 0.05);
  padding: 1.4rem 1.8rem;
  font-size: 0.92rem;
  color: var(--silver);
  max-width: 820px;
}

.notice strong { color: var(--gold-bright); }

/* Legal pages */

.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.legal-body p, .legal-body li { color: var(--silver); margin-bottom: 0.9rem; }
.legal-body ul { padding-left: 1.4rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--midnight);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand .mark { width: 56px; height: 56px; margin-bottom: 1rem; }
.foot-brand .tagline { display: block; margin-top: 0.3rem; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; max-width: 38ch; margin-top: 1rem; }

.site-foot h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 0.55rem; }
.site-foot ul a { color: var(--silver); font-size: 0.95rem; }
.site-foot ul a:hover { color: var(--ivory); }

.foot-legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.age-note { color: var(--gold); letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* 404 */

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--pad); }
.lost .mark { width: 120px; height: 120px; margin: 0 auto 2rem; opacity: 0.9; }
.lost p { color: var(--silver); margin: 1rem 0 2rem; }
