/* ═══════════════════════════════════════════════════════════
   ABL Digital Technologies — Shared Stylesheet
   All pages import this file via <link rel="stylesheet">
═══════════════════════════════════════════════════════════ */

:root {
  --ink:        #f4f1eb;
  --paper:      #0a0d14;
  --gold:       #a07828;
  --gold-light: #c8941e;
  --steel:      #e8e4d6;
  --steel-mid:  #ddd9c8;
  --accent:     #007a5e;
  --accent-dim: rgba(0,122,94,0.12);
  --muted:      #5a6878;
  --line:       rgba(160,120,40,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(244,241,235,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo .abl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.nav-logo .sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Small "back to main site" link used in the WFM section nav */
.nav-links a.nav-back { color: var(--muted); opacity: 0.9; }
.nav-links a.nav-back:hover { color: var(--gold); opacity: 1; }

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── NAV DROPDOWNS ────────────────────────────────────── */
.nav-links li.has-dd { position: relative; }
.nav-links .dd-toggle {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links .dd-toggle::after {
  content: '\25be';                 /* ▾ */
  font-size: 0.7rem;
  color: var(--gold);
  transition: transform 0.2s;
}
.nav-links li.has-dd:hover .dd-toggle,
.nav-links .dd-toggle.active { color: var(--gold); }
.nav-links li.has-dd:hover .dd-toggle::after { transform: rotate(180deg); }

.nav-dd {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  list-style: none;
  background: rgba(244,241,235,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.nav-links li.has-dd:hover .nav-dd {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dd li { display: block; }
.nav-dd a {
  display: block;
  padding: 0.65rem 1.4rem;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dd a small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  margin-top: 0.25rem;
}
.nav-dd a:hover { background: rgba(160,120,40,0.09); color: var(--gold); }

/* ── SECONDARY SUB-NAV (section pages) ────────────────── */
.subnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding: 0.85rem 4rem;
  margin-top: 4.85rem;                 /* clear the fixed main nav on desktop */
  background: var(--steel-mid);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 90;
}
.subnav-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.subnav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.subnav a:hover { color: var(--gold); }
.subnav a.active { color: var(--gold); border-bottom-color: var(--gold); }
/* The subnav already sits below the fixed nav, so trim the following hero's top padding. */
.subnav + .page-hero { padding-top: 3rem; }
.subnav + .kb-hero   { padding-top: 3rem; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(10,13,20,0.2);
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-primary:disabled,
.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── SECTION COMMONS ──────────────────────────────────── */
section { padding: 7rem 4rem; }

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.section-sub {
  color: rgba(10,13,20,0.55);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero {
  padding: 10rem 4rem 5rem;
  background: var(--steel);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(160,120,40,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .section-tag { margin-bottom: 1rem; }

.page-hero .section-title {
  font-size: clamp(3.5rem, 5vw, 6rem);
}

.page-hero .section-sub { max-width: 600px; }

/* ── STATS BAR ────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(200,195,180,0.5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  backdrop-filter: blur(8px);
}

.stat-item {
  padding: 2rem 3rem;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.6s ease;
}

.stat-item:hover::before { width: 100%; }

/* ── TICKER ───────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(200,168,75,0.03);
  padding: 0.8rem 0;
}

.ticker {
  display: flex;
  gap: 4rem;
  animation: ticker 25s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ticker-item span { color: var(--gold); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CTA BANNER ───────────────────────────────────────── */
.cta-banner {
  padding: 7rem 4rem;
  background: var(--steel);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,168,75,0.05) 0%, transparent 50%, rgba(0,122,94,0.05) 100%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 5vw, 6rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.cta-sub {
  color: rgba(10,13,20,0.6);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: rgba(218,213,198,1);
  padding: 4rem 4rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .abl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  display: block;
  line-height: 1;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(10,13,20,0.5);
  line-height: 1.7;
  margin-top: 0.8rem;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(10,13,20,0.5);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
}

.footer-col ul li a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: rgba(10,13,20,0.4);
  letter-spacing: 0.1em;
}

.footer-domain {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── HAMBURGER (hidden on desktop) ────────────────────── */
.nav-hamburger { display: none; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {

  /* Nav bar */
  nav {
    padding: 1.1rem 1.5rem;
    position: relative;
  }
  .nav-cta { display: none; }

  /* Hamburger button */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
  }
  .nav-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--paper);
    transition: transform 0.25s ease, opacity 0.18s ease;
    transform-origin: center;
  }
  nav.mobile-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav.mobile-open .nav-hamburger span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  nav.mobile-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile dropdown menu */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(244,241,235,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 0.4rem 0 0.8rem;
    gap: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.22s ease;
    z-index: 99;
  }
  nav.mobile-open .nav-links {
    pointer-events: all;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  /* Dropdowns expand inline (static) on mobile */
  .nav-links li.has-dd { border-bottom: 1px solid var(--line); }
  .nav-links .dd-toggle {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
  }
  .nav-links .dd-toggle::after { display: none; }
  .nav-dd {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    min-width: 0;
    background: rgba(0,0,0,0.03);
    backdrop-filter: none;
    border: none;
    border-top: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-dd a {
    padding: 0.75rem 1.5rem 0.75rem 2.6rem;
    font-size: 0.72rem;
  }
  .nav-dd a small { display: none; }

  /* Sub-nav: no fixed-nav clearance needed (nav is in-flow on mobile) */
  .subnav { margin-top: 0; padding: 0.7rem 1.2rem; gap: 1.2rem; }
  .subnav-label { display: none; }
  .subnav + .page-hero { padding-top: 3.5rem; }
  .subnav + .kb-hero   { padding-top: 2.5rem; }

  /* Rest of layout */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  section { padding: 4rem 2rem; }
  .page-hero { padding: 8rem 2rem 3rem; }
  .cta-banner { padding: 4rem 2rem; }
  footer { padding: 3rem 2rem 2rem; }
}

/* ── HERO (home + WFM Advisory) ───────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.06) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-glow { position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0,122,94,0.07) 0%, transparent 65%); pointer-events: none; }
.hero-glow-2 { position: absolute; bottom: -100px; left: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,168,75,0.06) 0%, transparent 65%); pointer-events: none; }
.hero-content { display: flex; flex-direction: column; justify-content: center; padding: 6rem 3rem 6rem 4rem; position: relative; z-index: 2; }
.hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--accent); }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 6vw, 7.5rem); line-height: 0.92; letter-spacing: 0.02em; margin-bottom: 2rem; }
.hero-title .line-gold { color: var(--gold); }
.hero-title .line-dim  { color: rgba(10,13,20,0.35); }
.hero-desc { font-size: 1rem; line-height: 1.75; color: rgba(10,13,20,0.65); max-width: 460px; margin-bottom: 3rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; z-index: 2; overflow: visible; padding: 6rem 3rem 6rem 1rem; }
.kinetic { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; max-width: 580px; }
.kinetic-spacer { height: calc(0.92 * clamp(4rem, 6vw, 7.5rem) * 2 - 1.5rem); }
.kinetic-label { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 0.8rem; }
.kinetic-label::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--accent); }
.kinetic-stage { position: relative; height: calc(clamp(4rem, 6vw, 7.5rem) * 1.16); overflow: hidden; }
.kinetic-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-start; font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 6vw, 7.5rem); line-height: 1; letter-spacing: 0.04em; color: var(--gold); white-space: nowrap; opacity: 0; transform: translateY(30px); animation: kineticCycle 18s infinite cubic-bezier(0.45, 0.05, 0.2, 1); }
.kinetic-word:nth-child(1) { animation-delay: 0s;  }
.kinetic-word:nth-child(2) { animation-delay: 3s;  }
.kinetic-word:nth-child(3) { animation-delay: 6s;  }
.kinetic-word:nth-child(4) { animation-delay: 9s;  }
.kinetic-word:nth-child(5) { animation-delay: 12s; }
.kinetic-word:nth-child(6) { animation-delay: 15s; }
@keyframes kineticCycle { 0%, 18%, 100% { opacity: 0; transform: translateY(30px); } 3%, 14% { opacity: 1; transform: translateY(0); } 16.5% { opacity: 0; transform: translateY(-30px); } }
.kinetic-progress { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.kinetic-dot { width: 40px; height: 2px; background: rgba(160,120,40,0.18); position: relative; overflow: hidden; }
.kinetic-dot::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: kineticDot 18s infinite linear; }
.kinetic-dot:nth-child(1)::after { animation-delay: 0s;  }
.kinetic-dot:nth-child(2)::after { animation-delay: 3s;  }
.kinetic-dot:nth-child(3)::after { animation-delay: 6s;  }
.kinetic-dot:nth-child(4)::after { animation-delay: 9s;  }
.kinetic-dot:nth-child(5)::after { animation-delay: 12s; }
.kinetic-dot:nth-child(6)::after { animation-delay: 15s; }
@keyframes kineticDot { 0% { transform: scaleX(0); } 16.66% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
.kinetic-foot { font-size: 1rem; line-height: 1.75; color: rgba(10,13,20,0.65); margin-top: 0.5rem; max-width: 460px; }
.kinetic-foot strong { color: var(--paper); font-weight: 600; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 5rem 2rem 3rem; }
}
