/* ============================================================
   North Forge Advisory — Base styles
   Reset, header + navigation, buttons, footer, consent.
   Section and page styling lives in modern.css.
   ============================================================ */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #090909;
  --bg-2:      #171717;
  --bg-deep:   #050505;
  --gold:      #c5a97f;
  --gold-hi:   #d8bc8a;
  --text:      #ffffff;
  --muted:     #bdbdbd;
  --line:      rgba(255, 255, 255, 0.23);
  --line-soft: rgba(255, 255, 255, 0.12);
  --danger:    #f0958a;

  --font-head: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-ui:   'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter:    56px;
  --max:       1540px;
  --header-h:  76px;
}
@media (max-width: 1050px) { :root { --gutter: 27px; } }
@media (max-width: 760px)  { :root { --gutter: 19px; } }

/* ─── Reset & base ───────────────────────────────────────────────────────── */
.nfa-site *, .nfa-site *::before, .nfa-site *::after { box-sizing: border-box; }
.nfa-site h1, .nfa-site h2, .nfa-site h3, .nfa-site p, .nfa-site ul, .nfa-site ol,
.nfa-site blockquote, .nfa-site figure { margin: 0; padding: 0; }
.nfa-site ul, .nfa-site ol { list-style: none; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

.nfa-site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.nfa-site img, .nfa-site video, .nfa-site iframe { display: block; max-width: 100%; height: auto; }
.nfa-site a { color: inherit; text-decoration: none; transition: color .25s var(--ease), opacity .2s; }
.nfa-site :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nfa-site ::selection { background: #bfac8f; color: #101410; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nfa-skip {
  position: fixed; top: -100px; left: 16px; z-index: 300; padding: 12px 20px;
  background: var(--gold); color: #000 !important; font-weight: 600; transition: top .2s;
}
.nfa-skip:focus { top: 16px; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.nfa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 12px 24px; border: 1px solid var(--gold); cursor: pointer;
  font: 600 12px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.nfa-site .nfa-btn--primary { background: var(--gold); color: #0a0a0a; }
.nfa-site .nfa-btn--primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.nfa-site .nfa-btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.nfa-site .nfa-btn--ghost:hover { border-color: var(--text); }
.nfa-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.admin-bar .nfa-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nfa-header { top: 46px; } }

.nfa-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .23);
  transition: background .35s var(--ease);
}
/* No backdrop-filter below desktop: it would make the header the containing
   block for the fixed mobile menu and squash the menu into the header bar. */
.nfa-header.is-scrolled { background: #090909; }
.nfa-header__inner { height: 100%; width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; padding-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.nfa-brand { display: block; flex: none; line-height: 0; }
.nfa-header .nfa-brand__img { height: 44px; width: auto; max-width: none; }

.nfa-burger { margin-left: auto; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
.nfa-burger__bars, .nfa-burger__bars::before, .nfa-burger__bars::after {
  position: absolute; left: 12px; width: 24px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), background .3s;
}
.nfa-burger__bars { top: 23px; }
.nfa-burger__bars::before, .nfa-burger__bars::after { content: ''; left: 0; }
.nfa-burger__bars::before { top: -8px; } .nfa-burger__bars::after { top: 8px; }
.nfa-burger[aria-expanded="true"] .nfa-burger__bars { background: transparent; }
.nfa-burger[aria-expanded="true"] .nfa-burger__bars::before { transform: translateY(8px) rotate(45deg); }
.nfa-burger[aria-expanded="true"] .nfa-burger__bars::after { transform: translateY(-8px) rotate(-45deg); }

.nfa-header__cta { display: none; min-height: 0; }
.nfa-site .nfa-header__cta { padding: 15px 20px; gap: 20px; font: 600 12px/1.2 var(--font-ui); letter-spacing: .02em; text-transform: none; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); white-space: nowrap; }
.nfa-site .nfa-header__cta span::after { content: '\2197'; margin-left: 20px; font-size: 13px; }
.nfa-site .nfa-header__cta:hover { background: #fff; color: #111; border-color: #fff; }

/* Mobile navigation: full-screen panel */
.nfa-nav {
  position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #0d0d0d; padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: safe center; gap: 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nfa-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nfa-nav__list { display: grid; gap: 4px; }
.nfa-nav__list a { display: block; padding: 10px 0; font-family: var(--font-head); font-size: 2rem; letter-spacing: -.04em; color: var(--text); border-bottom: 1px solid var(--line-soft); }
.nfa-nav__list a[aria-current="page"], .nfa-nav__list .current-menu-item > a { color: var(--gold); }
.nfa-nav__cta { align-self: flex-start; }
body.nav-open { overflow: hidden; }

@media (min-width: 1200px) {
  :root { --header-h: 92px; }
  .nfa-header.is-scrolled { background: rgba(9, 9, 9, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nfa-burger, .nfa-nav__cta { display: none; }
  .nfa-header__cta { display: inline-flex; }
  .nfa-nav {
    position: static; inset: auto; height: auto; overflow: visible; padding: 0; background: none; flex-direction: row; justify-content: center; flex: 1;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nfa-nav__list { display: flex; gap: clamp(20px, 2.4vw, 35px); }
  .nfa-nav__list a { padding: 6px 0; white-space: nowrap; font: 600 13px/1 var(--font-ui); letter-spacing: 0; border: 0; color: var(--text); position: relative; }
  .nfa-nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nfa-nav__list a[aria-current="page"]::after, .nfa-nav__list .current-menu-item > a::after { transform: scaleX(1); }
  .nfa-nav__list a:hover { color: var(--text); opacity: .65; }
  .nfa-nav__list a[aria-current="page"] { color: var(--text); }
}

/* ─── Placeholders (clearly labelled) ────────────────────────────────────── */
.nfa-placeholder-label {
  display: inline-block; padding: 6px 12px; border: 1px dashed var(--gold); background: rgba(9, 9, 9, .85);
  color: var(--gold); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5;
}

/* ─── Reveal on scroll (JS adds .js to <html>) ───────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--d, 0s), transform .8s ease var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ─── Consent banner ─────────────────────────────────────────────────────── */
.nfa-consent { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 440px; padding: 24px; background: #171717; color: #fff; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.nfa-consent[hidden] { display: none; }
.nfa-consent__title { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: -.04em; margin-bottom: 6px; }
.nfa-consent__text { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.nfa-consent__text a { text-decoration: underline; text-underline-offset: 3px; }
.nfa-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nfa-consent .nfa-btn { min-height: 44px; padding: 10px 20px; }

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nfa-site *, .nfa-site *::before, .nfa-site *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-timeline-item] * { opacity: 1 !important; transform: none !important; }
}
