/* =========================================================
   LEGACY CAPITAL — Core Stylesheet
   Modern minimal · Black / White / Gold accent
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color */
  --ink:        #0a0a0a;
  --ink-soft:   #1a1a1a;
  --paper:      #fafaf7;
  --paper-warm: #f3f1ea;
  --line:       #e3e0d6;
  --line-soft:  #ebe8df;
  --muted:      #6b6862;
  --accent:     #c8a96e;   /* warm muted gold — matches Go West Investments */
  --accent-deep:#b08f55;

  /* Type — Montserrat throughout (Proxima Nova alternative) */
  --display: 'Montserrat', -apple-system, system-ui, sans-serif;
  --body:    'Montserrat', -apple-system, system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
}

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

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

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1.display { font-size: clamp(2.6rem, 6.5vw, 5.8rem); font-weight: 800; }
h2.display { font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 700; }
h3.display { font-size: clamp(1.3rem, 1.9vw, 1.8rem); font-weight: 600; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--accent);
}

.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
}

.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(80px, 11vw, 160px) 0; }

.rule { height: 1px; background: var(--line); width: 100%; }

/* ---------- Nav (fixed top, hidden menu) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s ease, padding .3s ease, color .3s ease;
  mix-blend-mode: difference;
  color: #fff;
}
.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mix-blend-mode: normal;
  color: var(--ink);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.nav__brand small {
  font-family: var(--body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 500;
  display: block;
  margin-top: 2px;
  opacity: 0.7;
}
.nav__menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}
.nav__menu-btn .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.nav__menu-btn .bars span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease;
}

/* Slide-in menu panel */
.menu-panel {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  overflow-y: auto;
}
.menu-panel.is-open { transform: translateY(0); }
.menu-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.menu-panel__close {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-panel__close::before {
  content: '×';
  font-size: 1.8rem;
  line-height: 0.5;
  font-family: var(--display);
  font-weight: 300;
}
.menu-panel__brand {
  font-family: var(--display);
  font-size: 1.3rem;
}
.menu-panel__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vw, 14px);
  margin: 6vh 0;
}
.menu-panel__nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  transition: color .25s ease, transform .35s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
}
.menu-panel__nav a:hover { color: var(--accent); }
.menu-panel__nav a .num {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  opacity: 0.5;
  font-weight: 500;
}
.menu-panel__footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 0.82rem;
  color: rgba(250,250,247,0.6);
  margin-top: auto;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost-light {
  border-color: rgba(255,255,255,0.6);
  color: var(--paper);
}
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap .25s ease;
}
.link-arrow:hover { gap: 16px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 110px) 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer__brand h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.15;
}
.footer__brand p {
  color: rgba(250,250,247,0.55);
  max-width: 320px;
  font-size: 0.92rem;
}
.footer h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer li a {
  color: rgba(250,250,247,0.75);
  font-size: 0.95rem;
  transition: color .2s ease;
}
.footer li a:hover { color: var(--accent); }
.footer__base {
  display: flex;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid rgba(250,250,247,0.12);
  font-size: 0.8rem;
  color: rgba(250,250,247,0.5);
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px 30px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 64px; }
