/* Precinct 12 course detail pages: photo hero with fact strip, then overview, objectives, why-it-matters and a scheduling call to action */
:root {
  --ink: #060D18; --navy: #0A1628; --navy-2: #0F2040; --steel: #1A2C4A;
  --gold: #D4AF4A; --gold-hi: #F0CF6E; --bone: #F2ECDC; --mute: #A9B3C4;
  --line: rgba(212,175,74,.28);
  --f-display: 'Anton', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --f-label: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', 'Segoe UI', Roboto, sans-serif;
  --f-brand: 'Cinzel', Georgia, serif;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--f-body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-label); font-weight: 500; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 .7rem; }
.h-section { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1; }
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; text-decoration: none; padding: .9rem 1.5rem; border: 2px solid var(--gold); background: var(--gold); color: var(--ink); transition: background .2s, transform .2s; }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(242,236,220,.4); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 50; background: rgba(6,13,24,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand b { font-family: var(--f-brand); font-weight: 900; letter-spacing: .12em; color: var(--gold); font-size: 1.05rem; }
.brand small { display: block; font-family: var(--f-label); font-size: .6rem; letter-spacing: .3em; color: var(--mute); text-transform: uppercase; }
.back { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; text-decoration: none; color: var(--mute); white-space: nowrap; }
.back:hover { color: var(--gold); }
@media (max-width: 480px) { .brand span { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,13,24,.96) 0%, rgba(6,13,24,.82) 45%, rgba(6,13,24,.45) 100%), linear-gradient(0deg, rgba(6,13,24,.9), transparent 45%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
.code { display: inline-block; font-family: var(--f-label); font-weight: 600; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: .3rem .65rem; margin-bottom: 1rem; }
.hero h1 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .92; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .sub { max-width: 58ch; margin: 1.2rem 0 1.8rem; color: var(--mute); font-size: 1.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.partner { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.partner span { background: rgba(255,255,255,.94); padding: .4rem .6rem; border-radius: 4px; line-height: 0; }
.partner img { width: 110px; }
.partner p { margin: 0; font-size: .9rem; color: var(--bone); max-width: 42ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.facts div { padding: 1.2rem 1.1rem 1.4rem; min-width: 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-family: var(--f-label); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: .3rem 0 0; font-family: var(--f-label); font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Overview */
.overview { padding-block: 4rem; }
.overview .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.overview p.lede { margin: 0; font-size: 1.14rem; line-height: 1.85; border-left: 3px solid var(--gold); padding-left: 1.4rem; max-width: 66ch; }
@media (max-width: 820px) { .overview .wrap { grid-template-columns: 1fr; gap: 1.4rem; } }

/* Objectives */
.learn { background: var(--navy); border-block: 1px solid var(--line); padding-block: 4rem; }
.learn ol { list-style: none; counter-reset: obj; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.learn li { counter-increment: obj; background: var(--navy); padding: 1.3rem 1.3rem 1.3rem 4.2rem; position: relative; color: var(--mute); min-width: 0; }
.learn li::before { content: counter(obj, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.05rem; font-family: var(--f-display); font-size: 1.6rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.learn li strong { color: var(--bone); font-weight: 600; }
.learn li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 820px) { .learn ol { grid-template-columns: 1fr; } }

/* Why it matters */
.why { padding-block: 4rem; }
.why .intro { max-width: 66ch; color: var(--mute); font-size: 1.08rem; margin: 1rem 0 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; }
.why-grid div { background: var(--navy); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.4rem 1.2rem; min-width: 0; }
.why-grid h3 { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; margin-bottom: .6rem; }
.why-grid p { margin: 0; color: var(--mute); font-size: .95rem; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* Schedule CTA */
.schedule { background: linear-gradient(120deg, #8C6E22, var(--gold) 55%, var(--gold-hi)); color: var(--ink); }
.schedule .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 3rem; }
.schedule .h-section { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.schedule p { margin: .5rem 0 0; font-size: 1.05rem; max-width: 52ch; }
.schedule .mail { font-family: var(--f-label); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; user-select: all; }
.schedule .btn { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.schedule .btn:hover { background: var(--navy-2); }

/* Other courses + footer */
.more { padding-block: 3rem; border-bottom: 1px solid var(--line); }
.more ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.more a { display: inline-block; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; text-decoration: none; border: 1px solid var(--line); padding: .7rem 1rem; }
.more a:hover { border-color: var(--gold); color: var(--gold); }
footer { padding-block: 2rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
footer .motto { font-family: var(--f-brand); color: var(--gold); letter-spacing: .14em; font-size: .9rem; }
footer nav { display: flex; gap: 1.2rem; }
footer nav a { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--mute); text-decoration: none; }
footer small { width: 100%; color: rgba(169,179,196,.55); font-size: .75rem; }
