/* Norvian Advisory — Institutional Design System */

:root {
  --navy: #1a2744;
  --navy-deep: #11192c;
  --navy-soft: #2a3a5e;
  --gold: #c8a84b;
  --gold-soft: #b89a3f;
  --gold-pale: #e8dbb0;
  --paper: #fafaf7;
  --paper-warm: #f4f1e8;
  --rule: rgba(26, 39, 68, 0.14);
  --rule-strong: rgba(26, 39, 68, 0.28);
  --ink: #1a2744;
  --ink-mute: #5a6378;
  --ink-faint: #8a90a0;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 24px; }
}

/* ---------- Top nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 36px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.brand-tag {
  font-family: var(--sans);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  font-weight: 400;
  transition: color 0.18s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover { color: var(--navy); }

.nav-link.active {
  color: var(--navy);
  font-weight: 500;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 22px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-weight: 500;
  transition: all 0.18s ease;
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--paper);
}

/* Mobile menu controls — hidden on desktop */
.nav-toggle   { display: none; }
.nav-burger   { display: none; }
.nav-link-cta { display: none; }

@media (max-width: 900px) {
  .nav-inner { height: 70px; }

  /* Inline desktop CTA hides on mobile; it lives in the menu */
  .nav-cta { display: none; }

  /* Hamburger button */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: auto;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Dropdown panel */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: 460px;
    padding: 6px 24px 22px;
    border-bottom-color: var(--rule);
  }

  .nav-links .nav-link {
    padding: 15px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-link.active::after { display: none; }

  /* In-menu Schedule link, styled as a button */
  .nav-links .nav-link-cta {
    display: block;
    margin-top: 18px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    padding: 14px 22px;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-weight: 500;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 18px 32px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  background: none;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-primary .arrow,
.btn-ghost .arrow { transition: transform 0.2s ease; }

.btn:hover .arrow { transform: translateX(4px); }

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

.btn-ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-soft);
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--navy);
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--navy-soft);
}

.body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.body-lg {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  font-weight: 500;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.gold-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0;
}

/* ---------- Page header (sub-pages) ---------- */

.page-head {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.page-head .crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.page-head .crumb .sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--gold-soft);
}

.page-head h1 {
  max-width: 900px;
}

.page-head .lede {
  max-width: 760px;
  margin-top: 28px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: rgba(250, 250, 247, 0.72);
  padding: 80px 0 36px;
  margin-top: 120px;
}

.footer a { transition: color 0.18s ease; }
.footer a:hover { color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer .brand-name { color: #fff; }
.footer .brand-tag { color: rgba(250,250,247,0.5); }

.footer-blurb {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 380px;
  color: rgba(250, 250, 247, 0.6);
}

.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 500;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; font-size: 14px; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250,250,247,0.45);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---------- Section primitives ---------- */

section { padding: 120px 0; }

.section-tight { padding: 80px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: start;
}

.section-head .meta { padding-top: 12px; }
.section-head .meta .label { display: block; margin-bottom: 18px; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  section { padding: 80px 0; }
}

/* ---------- Reveal anim ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Utility ---------- */

.divider-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.divider-row .line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
