/* ============================================================
   BOSS LEVEL LEGAL — THE ARMORY DESIGN SYSTEM
   Version: 1.0  |  bosslevellegal.com
   ============================================================ */

/* Self-hosted fonts — fully spec-compliant, zero external requests */
@import url('/assets/fonts/fonts.css');

/* ============================================================
   COLOR TOKENS
   ============================================================ */
:root {
  /* Core palette — The Armory */
  --bll-midnight:     #121212;   /* Background — primary dark */
  --bll-carbon:       #1A1A1A;   /* Surface — cards, nav */
  --bll-carbon-light: #222222;   /* Surface raised */
  --bll-carbon-border:#2A2A2A;   /* Borders on dark */
  --bll-gold:         #C9A84C;   /* Primary accent — Burnished Gold */
  --bll-gold-light:   #DFC06A;   /* Gold hover */
  --bll-gold-dim:     #8A6E2E;   /* Gold muted / background tint */
  --bll-crimson:      #8B2500;   /* Alert / Power — Deep Crimson */
  --bll-crimson-light:#A33000;   /* Crimson hover */
  --bll-warm-white:   #F5F0E8;   /* Text primary on dark */
  --bll-steel:        #8A8A8A;   /* Text secondary */
  --bll-steel-light:  #AAAAAA;   /* Text tertiary */
  --bll-ivory:        #FAF9F6;   /* Light background */
  --bll-charcoal:     #1A1A1A;   /* Light mode text */

  /* Semantic tokens */
  --color-bg:         var(--bll-midnight);
  --color-surface:    var(--bll-carbon);
  --color-surface-2:  var(--bll-carbon-light);
  --color-border:     var(--bll-carbon-border);
  --color-accent:     var(--bll-gold);
  --color-accent-hover: var(--bll-gold-light);
  --color-power:      var(--bll-crimson);
  --color-text:       var(--bll-warm-white);
  --color-text-muted: var(--bll-steel);
  --color-text-dim:   var(--bll-steel-light);

  /* ============================================================
     TYPOGRAPHY TOKENS
     ============================================================ */
  /* Five-font hierarchy — fully self-hosted, zero CDN dependency */
  --font-display:   'Bebas Neue', 'Impact', sans-serif;             /* H1–H4, hero, stats, logo */
  --font-body:      'Source Sans 3', 'Helvetica Neue', sans-serif;  /* Body copy, UI, nav, buttons — BRAND SPEC */
  --font-editorial: 'Playfair Display', Georgia, serif;             /* Blog body, pull quotes, About */
  --font-reading:   'Source Serif 4', Georgia, serif;               /* Long-form article prose */
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;     /* Stats, badges, bar no., labels */
  --font-label:     var(--font-mono);                               /* Alias — backwards compat */

  /* Type scale */
  --text-xs:   0.75rem;   /* 12px — legal fine print */
  --text-sm:   0.875rem;  /* 14px — captions, meta */
  --text-base: 1rem;      /* 16px — body */
  --text-lg:   1.125rem;  /* 18px — lead copy */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px — subheads */
  --text-3xl:  2rem;      /* 32px — section heads */
  --text-4xl:  2.75rem;   /* 44px — page titles */
  --text-5xl:  4rem;      /* 64px — hero display */
  --text-6xl:  6rem;      /* 96px — hero impact */

  /* Line heights */
  --leading-tight:  1.15;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-wider:  0.15em;
  --tracking-widest: 0.25em;

  /* ============================================================
     SPACING TOKENS
     ============================================================ */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* ============================================================
     LAYOUT TOKENS
     ============================================================ */
  --max-w-site:   1280px;
  --max-w-prose:  720px;
  --max-w-narrow: 560px;

  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;
  --radius-xl:  16px;

  /* ============================================================
     EFFECTS
     ============================================================ */
  --shadow-card:  0 2px 16px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 32px rgba(201,168,76,0.12);
  --shadow-lift:  0 8px 40px rgba(0,0,0,0.6);

  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Gold rule — thin horizontal divider */
  --rule-gold: 1px solid rgba(201,168,76,0.3);
  --rule-border: 1px solid var(--bll-carbon-border);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);   /* Source Sans 3 — brand spec */
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-hover); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

/* Display — Bebas Neue, all uppercase by default */
.t-display {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neue is single-weight */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--color-text);
}

/* Sizes */
.t-hero    { font-size: clamp(3.5rem, 10vw, var(--text-6xl)); }
.t-h1      { font-size: clamp(2.5rem, 6vw, var(--text-5xl)); }
.t-h2      { font-size: clamp(2rem, 4vw, var(--text-4xl)); }
.t-h3      { font-size: clamp(1.5rem, 3vw, var(--text-3xl)); }
.t-h4      { font-size: var(--text-2xl); }

/* Gold accent on display text */
.t-gold { color: var(--color-accent); }

/* Editorial — Playfair Display */
.t-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

/* Labels / badges — JetBrains Mono */
.t-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Body copy — Source Sans 3 */
.t-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
  font-weight: 300;
}

.t-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

/* Long-form reading — Source Serif 4 */
.t-reading {
  font-family: var(--font-reading);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
}

.t-muted  { color: var(--color-text-muted); }
.t-dim    { color: var(--color-text-dim); }
.t-white  { color: var(--color-text); }

/* Stat callouts — JetBrains Mono for tabular figures */
.t-stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w-site);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-12); }
}

.section {
  padding: var(--space-20) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-32) 0; }
}

.section--sm {
  padding: var(--space-12) 0;
}

/* ============================================================
   COMPONENT: NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--rule-gold);
  transition: background var(--transition-base);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
  text-decoration: none;
}
.nav__logo-top {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.nav__logo-divider {
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}
.nav__logo-bottom {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.nav__links a:hover { color: var(--color-accent); }

.nav__cta {
  display: none;
}
@media (min-width: 900px) {
  .nav__cta { display: flex; }
}

/* Mobile menu toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
@media (min-width: 900px) {
  .nav__toggle { display: none; }
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-accent);
  transition: all var(--transition-base);
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: var(--rule-gold);
  padding: var(--space-6) var(--space-6) var(--space-8);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-4);
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  border-bottom: var(--rule-border);
}
.nav__drawer a:hover { color: var(--color-accent); }

/* ============================================================
   COMPONENT: BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--gold {
  background: var(--color-accent);
  color: var(--bll-midnight);
}
.btn--gold:hover {
  background: var(--color-accent-hover);
  color: var(--bll-midnight);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn--ghost:hover {
  background: rgba(201,168,76,0.08);
  color: var(--color-accent-hover);
}

.btn--crimson {
  background: var(--color-power);
  color: var(--bll-warm-white);
}
.btn--crimson:hover {
  background: var(--bll-crimson-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn--lg {
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-10);
}

/* ============================================================
   COMPONENT: CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border: var(--rule-border);
  padding: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-glow);
}

.card--practice {
  position: relative;
  overflow: hidden;
}
.card--practice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-base);
}
.card--practice:hover::before {
  transform: scaleY(1);
}

/* ============================================================
   COMPONENT: DISCLAIMER BANNER
   ============================================================ */
.disclaimer-bar {
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent);
  padding: var(--space-4) 0;
}

.disclaimer-bar__text {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  line-height: 1.6;
  text-align: center;
}

/* Inline disclaimer — appears at end of articles and in sidebars */
.disclaimer-inline {
  background: rgba(201,168,76,0.05);
  border-left: 2px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
}
.disclaimer-inline p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  font-style: italic;
}

/* ============================================================
   COMPONENT: GOLD RULE DIVIDER
   ============================================================ */
.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
  margin: var(--space-12) 0;
}

.rule--left {
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0.4;
}

/* ============================================================
   COMPONENT: SECTION LABEL
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}
.section-label span {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================================
   COMPONENT: FAQ BLOCK (AEO optimized)
   ============================================================ */
.faq-item {
  border-bottom: var(--rule-border);
}
.faq-item:first-child {
  border-top: var(--rule-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question__text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  line-height: var(--leading-snug);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}
.faq-item.is-open .faq-question__icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 var(--space-6);
}
.faq-item.is-open .faq-answer {
  display: block;
}
.faq-answer p {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* ============================================================
   COMPONENT: FOOTER
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: var(--rule-gold);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__logo-top {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-1);
}
.footer__logo-rule {
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
  margin-bottom: var(--space-1);
}
.footer__logo-bottom {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-dim);
  display: block;
  margin-bottom: var(--space-6);
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: var(--leading-loose);
  max-width: 400px;
}

.footer__col-head {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--color-accent); }

.footer__bottom {
  border-top: var(--rule-border);
  padding-top: var(--space-8);
}

.footer__legal {
  font-family: var(--font-label);
  font-size: 10px;
  color: var(--color-text-dim);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.footer__bar-info {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
}
.footer__bar-info span {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-nav { padding-top: 72px; } /* offset for fixed nav */

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 600px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes goldPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ============================================================
   SCROLLBAR (Dark theme)
   ============================================================ */
::-webkit-scrollbar        { width: 8px; }
::-webkit-scrollbar-track  { background: var(--bll-midnight); }
::-webkit-scrollbar-thumb  { background: var(--bll-carbon-border); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--bll-gold-dim); }

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(201,168,76,0.25);
  color: var(--color-text);
}
