/* Kapunda Ventures: shared styles for every sub-page.
   Mirrors the homepage (index.html). Page-specific rules stay inline in each page. */

:root {
  --gold: #F5C842;
  --gold-dim: #c9a12e;
  --charcoal: #2C2926;
  --charcoal-light: #3a3531;
  --black: #0e0d0c;
  --off-white: #F5F0E8;
  --mid-grey: #7a7570;
  --light-grey: #a8a39c;
  --border: rgba(245,200,66,0.15);
  --border-subtle: rgba(255,255,255,0.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--black); color: var(--off-white); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gold { color: var(--gold); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* NAV (same as homepage) */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14,13,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img.nav-logo-img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--off-white);
}
.nav-links { display: flex; gap: 18px; list-style: none; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--light-grey); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--black); background: var(--gold);
  padding: 8px 18px; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-dim); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--off-white); transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(14,13,12,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle); z-index: 99;
  padding: 24px 32px; flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'IBM Plex Mono', monospace; font-size: 17px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--light-grey); text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }

/* BANDS: black and charcoal alternate, as on the homepage.
   Cards take the opposite tone to the band they sit on. */
.band {
  padding: 100px 0; scroll-margin-top: 64px;
  --card-bg: var(--charcoal); --card-hover: var(--charcoal-light);
}
.band.charcoal { background: var(--charcoal); --card-bg: var(--black); --card-hover: #1a1816; }

/* HERO (with the same light grid as the homepage) */
.page-hero { padding: 110px 0 100px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,200,66,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,66,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 7vw, 88px); font-weight: 800;
  text-transform: uppercase; line-height: 0.95; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.hero-rule { width: 60px; height: 3px; background: var(--gold); margin: 28px 0 32px; }
.page-hero p { font-size: 20px; line-height: 1.7; color: var(--light-grey); font-weight: 300; max-width: 740px; }
.page-hero p + p { margin-top: 16px; }

/* SECTION HEADINGS */
.section-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(36px, 4vw, 54px);
  font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
}
.section-rule { width: 60px; height: 3px; background: var(--gold); margin-top: 20px; }
.section-intro {
  font-size: 18px; line-height: 1.7; color: var(--light-grey); font-weight: 300;
  max-width: 740px; margin-top: 32px;
}

/* CARDS: same hover highlight as the homepage (charcoal lightens, gold bar sweeps in) */
.right-card, .risk-card, .company-card, .story-card, .term-card, .block, .leg, .get {
  position: relative; overflow: hidden; background: var(--card-bg); transition: background 0.3s;
}
.right-card::before, .risk-card::before, .company-card::before, .story-card::before,
.term-card::before, .block::before, .leg::before, .get::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.right-card:hover, .risk-card:hover, .company-card:hover, .story-card:hover,
.term-card:hover, .block:hover, .leg:hover, .get:hover { background: var(--card-hover); }
.right-card:hover::before, .risk-card:hover::before, .company-card:hover::before, .story-card:hover::before,
.term-card:hover::before, .block:hover::before, .leg:hover::before, .get:hover::before { transform: scaleX(1); }

/* BUTTON + CTA */
.btn-primary {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--black); background: var(--gold);
  padding: 14px 28px; text-decoration: none; transition: background 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-dim); }
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,200,66,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,66,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(40px, 5vw, 64px);
  font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 16px;
}
.cta-sub { font-size: 18px; color: var(--light-grey); font-weight: 300; margin-bottom: 40px; line-height: 1.6; }

/* DISCLAIMER + FOOTER (same as homepage) */
.disclaimer { padding: 48px 0 72px; border-top: 1px solid var(--border-subtle); }
.disclaimer p {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.06em;
  color: var(--mid-grey); line-height: 1.7; max-width: 900px;
}
footer {
  padding: 40px 32px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-grey);
}
.footer-disclaimer {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.05em;
  color: var(--mid-grey); max-width: 500px; line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .right-card::before, .risk-card::before, .company-card::before, .story-card::before,
  .term-card::before, .block::before, .leg::before, .get::before { transition: none; }
}

@media (max-width: 1150px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  nav { padding: 0 20px; }
  .mobile-menu { padding: 24px 20px; }
  .band { padding: 72px 0; }
  .page-hero { padding: 64px 0 56px; }
  .page-hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .page-hero p { font-size: 18px; }
  .section-intro { font-size: 17px; }
  footer { padding: 32px 20px; }
}
