/* ============================================================
   KANSAS CITY SECRETS — v3 design system
   Dark editorial. Barbican / The Pitch KC energy.
   Ground near-black, warm white text, one brass-gold spot.
   DM Serif Display (display) · Inter (body, nav, labels)
   JetBrains Mono (stats + prices only)
   ============================================================ */

:root {
  --ground:  #161513;   /* primary background, warm near-black, lifted */
  --surface: #232220;   /* cards, elevated sections */
  --surface-2:#2b2926;  /* nested elevation */
  --light:   #F6F5F0;   /* primary text, warm white */
  --mid:     #A6A39B;   /* secondary text, captions, labels */
  --mid-2:   #7C7972;   /* faint */
  --gold:    #E8B931;   /* brass accent text/links (theme-aware) */
  --gold-fill:#E8B931;  /* solid gold fills (stays bright in both themes) */
  --gold-dim:#9c7d24;
  --divider: #35332F;   /* subtle rules */
  --nav-bg:  rgba(22,21,19,0.86);

  --maxw: 1200px;

  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --fs-hero: clamp(46px, 8.2vw, 84px);
  --fs-h1:   clamp(40px, 6.4vw, 68px);
  --fs-h2:   clamp(30px, 4.4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--light);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold-fill); color: #161513; }
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 860px; }
section { padding: 88px 0; }
.divider { height: 1px; background: var(--divider); border: 0; }
.divider-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.divider-wrap .divider { width: 100%; }

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  section { padding: 60px 0; }
}

/* ---------- type ---------- */
.kicker {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker.mid { color: var(--mid); }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
h1, .h1 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.005em; }
h3, .h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.2; }
.lead { font-size: 21px; line-height: 1.55; color: var(--light); }
.body { font-size: 17px; line-height: 1.7; color: var(--light); }
.muted { color: var(--mid); }
.serif-italic { font-family: var(--display); font-style: italic; }
.gold { color: var(--gold); }
.mono { font-family: var(--mono); }
.small { font-size: 14px; }
.maxch { max-width: 60ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--display); font-weight: 400; font-size: 24px;
  color: var(--light); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--body); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--mid); position: relative; padding: 4px 0; white-space: nowrap;
  transition: color .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--gold); transition: right .22s ease;
}
.nav-links a:hover { color: var(--light); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--light); }
.nav-links a.active::after { right: 0; }
@media (max-width: 640px) {
  .nav-inner { padding: 14px 22px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .wordmark { font-size: 20px; }
  .nav-links .nav-hide { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; line-height: 1;
  padding: 16px 26px; border: 1px solid var(--gold); border-radius: 2px;
  background: transparent; color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: background .18s ease, color .18s ease, transform .1s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover { background: rgba(232,185,49,0.08); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-fill); color: #161513; border-color: var(--gold-fill); }
.btn-primary:hover { background: #f1c645; }
.btn-ghost { border-color: var(--divider); color: var(--light); }
.btn-ghost:hover { border-color: var(--mid); background: transparent; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- stat bar ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .n {
  font-family: var(--mono); font-weight: 600; color: var(--gold);
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1; letter-spacing: -0.02em;
}
.stat .l {
  font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--mid);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.stats-inline {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  font-family: var(--mono); font-size: 15px; color: var(--light);
}
.stats-inline .dot { color: var(--mid-2); }
.stats-inline b { color: var(--gold); font-weight: 600; }
.source-line { font-family: var(--mono); font-size: 12.5px; color: var(--mid); line-height: 1.6; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 0; }
.hero-media { position: relative; width: 100%; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media image-slot, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,21,19,0.34) 0%, rgba(22,21,19,0.32) 22%, rgba(22,21,19,0.62) 44%, rgba(22,21,19,0.86) 58%, rgba(22,21,19,0.95) 72%, #161513 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px 72px; text-shadow: 0 1px 20px rgba(0,0,0,0.5); }
/* hero text + controls stay light over the photo regardless of theme */
.hero-content, .hero h1, .hero-sub { color: #F6F5F0; }
.hero .kicker { color: var(--gold-fill); }
.hero .btn:not(.btn-primary) { border-color: rgba(246,245,240,0.5); color: #F6F5F0; }
.hero .btn:not(.btn-primary):hover { background: rgba(246,245,240,0.1); border-color: rgba(246,245,240,0.8); }
.hero-sub { font-size: 21px; line-height: 1.5; color: #F6F5F0; max-width: 52ch; margin-top: 26px; text-shadow: 0 1px 12px rgba(0,0,0,0.85), 0 0 30px rgba(0,0,0,0.6); }
@media (max-width: 720px) {
  .hero-content { padding: 0 22px 48px; }
  .hero-sub { font-size: 18px; }
}

/* collage variant */
.collage {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 120% at 70% 10%, #2c2619 0%, #1d1b17 55%, #161513 100%);
}
.collage-grid {
  position: absolute; inset: -4% -2%; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px;
  transform: rotate(-3deg) scale(1.08); opacity: 0.92;
}
@media (max-width: 720px) {
  .collage-grid { grid-template-columns: repeat(2, 1fr); opacity: 0.6; }
  .hero h1, .hero-content { position: relative; }
}
.collage-card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 4px;
  padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.collage-card:nth-child(3n) { transform: translateY(28px) rotate(1.5deg); }
.collage-card:nth-child(3n+1) { transform: translateY(-18px) rotate(-1.5deg); }

/* ---------- faux group post (screenshot stand-in) ---------- */
.post { background: var(--surface); border: 1px solid var(--divider); border-radius: 4px; padding: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.post-ava { width: 38px; height: 38px; border-radius: 50%; background: #3a3935; flex: none; }
.post-name { height: 9px; width: 96px; background: #46443f; border-radius: 3px; margin-bottom: 6px; filter: blur(1.5px); }
.post-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--mid); }
.post-body { font-family: var(--body); font-size: 14.5px; line-height: 1.5; color: var(--light); margin: 0 0 12px; }
.post-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--mid);
  border-top: 1px solid var(--divider); padding-top: 10px; display: flex; gap: 16px; flex-wrap: wrap;
}
.post-meta b { color: var(--gold); font-weight: 600; }

/* big feed screenshot block */
.feed-shot {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 4px;
  padding: 26px; box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.feed-shot .post-body { font-size: 20px; line-height: 1.45; }
.feed-shot .post-ava { width: 48px; height: 48px; }
.feed-shot .post-name { width: 130px; height: 11px; }
.feed-shot .post-meta { font-size: 12px; padding-top: 14px; }
.shot-cap { font-family: var(--mono); font-size: 12.5px; color: var(--mid); line-height: 1.6; }

/* ---------- generic grids ---------- */
.grid-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.grid-6-6 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-8-4 { display: grid; grid-template-columns: 8fr 4fr; gap: 56px; align-items: end; }
@media (max-width: 860px) {
  .grid-7-5, .grid-6-6, .grid-8-4 { grid-template-columns: 1fr; gap: 36px; }
}
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.band { background: var(--surface); }

/* ---------- testimonials ---------- */
.quote-block { position: relative; }
.quote-mark {
  font-family: var(--display); font-size: 220px; line-height: 0.6; color: var(--gold);
  opacity: 0.1; position: absolute; top: -10px; left: -18px; z-index: 0; pointer-events: none;
}
.quote-lead {
  position: relative; z-index: 1;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.34; color: var(--light); letter-spacing: -0.005em;
}
.quote-by { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--light); margin-top: 22px; }
.quote-by .role { color: var(--mid); font-weight: 500; }
.quote-sm { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--divider); }
.quote-sm p { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--mid); }
.quote-sm p .bright { color: var(--light); }

/* ---------- rate card ---------- */
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .rate-grid { grid-template-columns: 1fr; } }
.rate {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 4px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease;
}
.rate:hover { border-color: #3a3a3a; }
.rate.featured { border-color: var(--gold); }
.rate.span-2 { grid-column: 1 / -1; }
.rate-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rate-name { font-family: var(--display); font-size: 28px; line-height: 1.15; }
.rate-tag {
  font-family: var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #161513; background: var(--gold-fill); padding: 4px 9px; border-radius: 2px; white-space: nowrap;
}
.rate-price { font-family: var(--mono); font-weight: 600; font-size: 34px; color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.rate-price .per { font-size: 15px; color: var(--mid); font-weight: 500; }
.rate-desc { font-size: 16px; line-height: 1.55; color: var(--light); }
.rate-avail { font-family: var(--mono); font-size: 12px; color: var(--mid); letter-spacing: 0.02em; }
.rate-includes { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; }
.rate-includes li { font-size: 14.5px; color: var(--mid); padding-left: 20px; position: relative; line-height: 1.45; }
.rate-includes li::before { content: "+"; position: absolute; left: 0; color: var(--gold); font-family: var(--mono); }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 18px; } }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--divider); }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--gold); font-weight: 600; }
.step h3 { font-size: 22px; }
.step p { font-size: 15.5px; color: var(--mid); line-height: 1.55; }

/* ---------- the list (directory + empty state) ---------- */
.empty-list {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 4px;
  padding: 64px 40px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.empty-list .h2 { max-width: 18ch; }
.empty-list p { color: var(--mid); max-width: 48ch; font-size: 17px; }
.cat-preview { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.cat-chip {
  font-family: var(--mono); font-size: 12px; color: var(--mid); letter-spacing: 0.04em;
  border: 1px solid var(--divider); border-radius: 2px; padding: 7px 13px;
}
.cat-chip.lit { color: var(--gold); border-color: var(--gold-dim); }
.directory-cat { margin-bottom: 44px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--divider); padding-bottom: 12px; margin-bottom: 4px; }
.cat-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); }
.listing { padding: 22px 0; border-bottom: 1px solid var(--divider); }
.listing-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.listing-name { font-family: var(--display); font-size: 24px; }
.listing-link { font-family: var(--body); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-decoration: none; white-space: nowrap; }
.listing-blurb { color: var(--mid); margin-top: 6px; max-width: 60ch; }

/* ---------- forms ---------- */
.field { margin-bottom: 22px; }
.field label {
  display: block; font-family: var(--body); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--light); margin-bottom: 9px;
}
.field .opt { color: var(--mid); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--light);
  background: var(--surface); border: 1px solid var(--divider); border-radius: 3px; padding: 14px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--mid-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,185,49,0.16); }
.textarea { resize: vertical; min-height: 110px; }
.select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-err .input, .field-err .select { border-color: #e0584f; box-shadow: 0 0 0 3px rgba(224,88,79,0.16); }
.errline { font-family: var(--body); font-size: 13px; color: #e0584f; margin-top: 8px; display: none; }
.field-err .errline { display: block; }
.form-msg { font-family: var(--body); font-size: 14px; padding: 14px 16px; border: 1px solid #e0584f; border-radius: 3px; color: #e0584f; margin-bottom: 20px; display: none; line-height: 1.5; }
.form-msg.show { display: block; }
.success {
  background: var(--surface); border: 1px solid var(--gold); border-radius: 4px; padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--divider); padding: 64px 0 56px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer .wordmark { font-size: 30px; display: inline-block; margin-bottom: 14px; }
.footer .tagline { color: var(--mid); font-size: 16px; max-width: 40ch; }
.footer .email { font-family: var(--mono); font-size: 14px; color: var(--gold); text-decoration: none; display: inline-block; margin-top: 16px; }
.footer .email:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.footer-links a { font-family: var(--body); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: var(--gold); }
@media (max-width: 640px) { .footer-links { align-items: flex-start; } }
.footer-fine { font-family: var(--mono); font-size: 11.5px; color: var(--mid-2); margin-top: 40px; letter-spacing: 0.02em; }

/* ---------- hero toggle control ---------- */
.hero-toggle {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  display: flex; gap: 2px; background: rgba(26,26,26,0.82);
  border: 1px solid var(--divider); border-radius: 3px; padding: 3px; backdrop-filter: blur(8px);
}
.hero-toggle button {
  font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mid); background: transparent; border: 0; padding: 7px 12px; border-radius: 2px; cursor: pointer;
}
.hero-toggle button.on { background: var(--gold-fill); color: #161513; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--divider); border-radius: 999px;
  padding: 7px 13px 7px 11px; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--light); border-color: var(--mid); }
.theme-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-fill); flex: none; }
@media (max-width: 640px) { .theme-toggle { padding: 6px 11px 6px 9px; font-size: 10px; } .theme-toggle .tt-label { display: none; } }

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --ground:  #F1EDE4;   /* warm paper */
  --surface: #FBF9F4;   /* cards */
  --surface-2:#FFFFFF;
  --light:   #1C1A16;   /* primary ink */
  --mid:     #6B665C;
  --mid-2:   #979286;
  --gold:    #8A6310;   /* deep brass for text/links — readable on paper */
  --gold-dim:#b89343;
  --divider: #E2DCCF;
  --nav-bg:  rgba(241,237,228,0.86);
}
[data-theme="light"] .feed-shot,
[data-theme="light"] .collage-card { box-shadow: 0 18px 44px rgba(28,26,22,0.12); }
[data-theme="light"] .post-ava { background: #d8d2c5; }
[data-theme="light"] .post-name { background: #cfc8ba; }

/* ---------- reveal on scroll ---------- */

/* ---------- reveal on scroll ---------- */
/* ---------- floating contact button (site-wide) ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; line-height: 1;
  padding: 15px 22px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: var(--gold-fill); color: #161513; border: 1px solid var(--gold-fill);
  box-shadow: 0 12px 34px rgba(0,0,0,0.42), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
}
.fab:hover { background: #f1c645; transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3); }
.fab:active { transform: translateY(0); }
.fab .fab-dot { width: 9px; height: 9px; border-radius: 50%; background: #161513; flex: none; }
@media (max-width: 640px) { .fab { right: 16px; bottom: 16px; padding: 13px 18px; font-size: 13px; } }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
