/* ─── SHARED STYLESHEET ─────────────────────────────────────────────────────
   styles.css — Value Alignment Consulting
   Shared across: index.html, speaking.html, insights.html
   ──────────────────────────────────────────────────────────────────────────── */

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

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  --bg-dark:    #0E1118;
  --bg-dark-2:  #151B24;
  --bg-light:   #F4EFE5;
  --bg-white:   #FDFAF4;
  --text-dark:  #1A1814;
  --text-light: #EDE8DE;
  --text-muted-dark:  #9A9288;
  --text-muted-light: #5A5550;
  --accent:       #C09030;
  --accent-bright: #D4A843;
  --accent-text:  #7A5A10; /* WCAG AA on light backgrounds (5.5:1 contrast) */
  --rule-dark:  rgba(192,144,48,0.25);
  --rule-light: rgba(26,24,20,0.12);
  --ff-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --ff-body:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ─── GRAIN OVERLAY ──────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  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)'/%3E%3C/svg%3E");
  opacity: 0.028;
}

/* ─── NAV — shared structure ─────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.nav-logo-sub {
  font-family: var(--ff-body);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-light); }
.nav-links a.active { color: var(--accent-bright); }

.nav-cta {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--accent);
  text-decoration: none;
  padding: 10px 22px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-bright); transform: translateY(-1px); }

/* ─── SKIP LINK ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--accent);
  color: var(--text-dark);
  padding: 8px 20px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ─── FOCUS STYLES ───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* ─── HAMBURGER NAV ──────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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