/* ============================================================
   GOODRICH PARTNERS — style.css
   Single source of truth for all pages.
   Pages link this file; no <style> blocks in HTML.
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:          #1b1c1a;
  --surface:      #fbf9f6;
  --surface-low:  #f5f3f0;
  --surface-mid:  #efeeeb;
  --surface-high: #eae8e5;
  --surface-top:  #e4e2df;
  --gold:         #7e5706;
  --gold-light:   #b8893a;
  --gold-pale:    #ffddae;
  --rule:         rgba(130,117,102,0.15);
  --mid:          #4f4538;
  --light:        #817566;

  /* Type */
  --serif:  'Noto Serif', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;

  /* Spacing */
  --gutter:  clamp(24px, 5vw, 96px);
  --section: clamp(64px, 10vw, 128px);

  /* Nav */
  --nav-h: 80px;
}

/* ── BASE ────────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-muted {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.6;
}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(251,249,246,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(126,87,6,0.35);
}

.nav-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.25s;
}
.nav-links a:hover  { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--gold); }

.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--gold);
  padding: 12px 32px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(251,249,246,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
  pointer-events: none;
}
.nav-mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.nav-mobile-menu ul { list-style: none; padding: 8px 0 16px; }
.nav-mobile-menu ul li { border-bottom: 1px solid var(--rule); }
.nav-mobile-menu ul li:last-child { border-bottom: none; }
.nav-mobile-menu ul a {
  display: block;
  padding: 16px var(--gutter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  transition: opacity 0.2s;
}
.nav-mobile-menu ul a:hover { opacity: 1; }
.nav-mobile-menu .menu-cta { color: var(--gold) !important; opacity: 1 !important; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--gold);
  padding: 16px 44px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(126,87,6,0.35);
  padding: 16px 44px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--gold-pale); border-color: var(--gold); }

.btn-secondary-light {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(184,137,58,0.4);
  padding: 16px 44px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary-light:hover { background: rgba(184,137,58,0.1); border-color: var(--gold-light); }

.btn-outline {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(130,117,102,0.35);
  padding: 12px 32px;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--surface); }

/* ── HERO (index.html) ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.48; }
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--surface) 35%, rgba(251,249,246,0.55) 65%, transparent);
}

.hero-content { position: relative; z-index: 1; padding: var(--section) var(--gutter); max-width: 1060px; }

.hero-headline {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 52px;
}
.hero-headline em { font-style: italic; }

.hero-actions  { display: flex; align-items: center; gap: 36px; }
.hero-rule     { width: 20px; height: 1px; background: var(--rule); flex-shrink: 0; }
.hero-aside    { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); opacity: 0.5; }
.hero-intro    { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); opacity: 0.5; margin-bottom: 48px; }

/* ── DARK HERO (services, investments sub-pages) ─────────────── */
.hero-dark { padding-top: var(--nav-h); background: var(--ink); }
.hero-dark .hero-inner { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gutter); }
.hero-dark .hero-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; display: block; }
.hero-dark .hero-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; color: var(--surface); margin-bottom: 20px; }
.hero-dark .hero-title em { font-style: italic; }
.hero-dark .hero-body { font-size: 15px; line-height: 1.85; color: rgba(251,249,246,0.5); max-width: 560px; }

/* ── IMAGE HERO (venture-partner.html) ───────────────────────── */
.hero-image {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-image .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-image .hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.48; }
.hero-image .hero-bg-fade { position: absolute; inset: 0; background: linear-gradient(to right, var(--surface) 35%, rgba(251,249,246,0.55) 65%, transparent); }
.hero-image .hero-content { position: relative; z-index: 1; padding: clamp(64px, 8vw, 112px) var(--gutter); max-width: 960px; }

/* ── SECTION DIVIDERS ────────────────────────────────────────── */
.hr-gold { border: none; border-top: 1px solid rgba(126,87,6,0.35); margin: 0; }

/* ── SERVICE ROWS (services.html, venture-partner.html) ──────── */
.service-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.service-row:last-of-type { border-bottom: none; }

.service-label  { font-size: 10px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); padding-top: 6px; }
.service-number { font-family: var(--serif); font-style: italic; font-size: 48px; font-weight: 300; color: var(--gold); opacity: 0.2; line-height: 1; margin-bottom: 8px; }
.service-title  { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 300; line-height: 1.15; color: var(--ink); margin-bottom: 20px; }
.service-title em { font-style: italic; }
.service-body   { font-size: 14px; line-height: 1.85; color: var(--mid); margin-bottom: 28px; max-width: 560px; }

.service-items { list-style: none; margin-bottom: 36px; }
.service-items li { font-size: 13px; color: var(--mid); padding: 10px 0; border-top: 1px solid var(--rule); display: flex; align-items: baseline; gap: 12px; }
.service-items li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 6px; }

/* ── INDEX — SERVICE CARDS ───────────────────────────────────── */
.services { background: var(--surface-low); padding: var(--section) 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(126,87,6,0.35);
}

.service-card {
  padding: clamp(40px, 5vw, 64px);
  background: var(--surface);
  border-right: 1px solid var(--rule);
  transition: background 0.4s;
  position: relative;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--surface-low); }

.service-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 38px;
  color: var(--gold);
  margin-bottom: 32px;
  display: block;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.service-card .service-title { font-size: 22px; margin-bottom: 20px; }
.service-card .service-body  { font-size: 14px; line-height: 1.8; color: var(--mid); margin-bottom: 32px; }

.service-line { height: 1px; width: 44px; background: var(--gold); transition: width 0.45s ease; }
.service-card:hover .service-line { width: 100%; }

/* ── MANDATES (index.html) ───────────────────────────────────── */
.mandates { background: var(--surface); padding: var(--section) var(--gutter); }
.mandates-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 4fr 1fr 7fr; gap: 0; align-items: start; }
.mandates-title { font-size: clamp(30px, 3.5vw, 44px); font-style: italic; margin-bottom: 12px; }
.mandates-sub   { margin-bottom: 56px; }

.mandate-item { padding: 40px 0; border-top: 1px solid var(--rule); }
.mandate-item:last-child { border-bottom: 1px solid var(--rule); }
.mandate-name { font-family: var(--serif); font-size: 20px; font-weight: 300; margin-bottom: 12px; color: var(--ink); }
.mandate-desc { font-size: 13px; line-height: 1.75; color: var(--mid); }

.mandates-img-wrap { aspect-ratio: 4/5; overflow: hidden; }
.mandates-img-wrap img { width: 95%; height: 95%; object-fit: cover; }

/* ── PROFILE (index.html) ────────────────────────────────────── */
.profile { background: var(--surface-high); padding: var(--section) var(--gutter); padding-bottom: calc(var(--section) + 48px); overflow: hidden; }
.profile-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.profile-img-wrap img { width: 100%; max-width: 420px; margin: 0 auto; filter: grayscale(1); }
.profile-name  { font-size: clamp(36px, 4vw, 54px); margin-bottom: 44px; }
.profile-body  { font-size: 15px; line-height: 1.85; color: var(--mid); margin-bottom: 26px; }
.profile-actions { display: flex; gap: 16px; }

/* ── DIVIDER BANNER (index.html) ─────────────────────────────── */
.divider { height: 560px; position: relative; overflow: hidden; }
.divider img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.45); }
.divider-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.divider-headline { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(28px, 4.5vw, 58px); line-height: 1.4; color: var(--surface); max-width: 800px; }

/* ── CO-INVEST (index.html) ──────────────────────────────────── */
.co-invest { background: var(--surface-low); padding: var(--section) var(--gutter); border-top: 1px solid rgba(126,87,6,0.35); }
.co-invest-inner { max-width: 1200px; margin: 0 auto; }
.co-invest-heading { font-size: clamp(28px, 5vw, 44px); font-style: italic; line-height: 1.15; margin-bottom: 16px; }
.co-invest-intro   { font-size: 14px; line-height: 1.85; color: var(--mid); margin-bottom: 40px; }
.co-invest-notice  { font-size: 11px; line-height: 1.75; color: var(--light); opacity: 0.6; padding-top: 28px; border-top: 1px solid var(--rule); }

.co-invest-pillar { padding: 36px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 40px 1fr; gap: 28px; align-items: start; }
.co-invest-pillar:last-child { border-bottom: 1px solid var(--rule); }
.co-invest-pillar-num { font-family: var(--serif); font-style: italic; font-size: 28px; font-weight: 300; color: var(--gold); line-height: 1; padding-top: 4px; }
.co-invest-pillar-title { font-family: var(--serif); font-size: 20px; font-weight: 300; margin-bottom: 10px; color: var(--ink); }
.co-invest-pillar-desc  { font-size: 13px; line-height: 1.75; color: var(--mid); }
.co-invest-tag { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }

/* ── TOOL CALLOUT (services.html) ────────────────────────────── */
.tool-callout { background: var(--surface-mid); padding: var(--section) var(--gutter); border-top: 1px solid rgba(126,87,6,0.35); }
.tool-callout-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }

/* ── SECTION IMAGE BANNER ────────────────────────────────────── */
.section-image { width: 100%; height: 280px; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background: var(--surface); padding: 56px var(--gutter) 40px; border-top: 1px solid var(--rule); }
.footer-logo { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 32px; }

.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 32px; }
.footer-links a { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); opacity: 0.38; transition: color 0.2s, opacity 0.2s; }
.footer-links a:hover { color: var(--gold); opacity: 1; }

.footer-tagline { margin-bottom: 24px; color: var(--gold); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

.footer-legal { font-size: 11px; font-weight: 300; line-height: 1.7; color: var(--ink); opacity: 0.28; max-width: 1024px; }
.footer-legal + .footer-legal { margin-top: 12px; }

/* ── TWO PATHS HEADLINE ──────────────────────────────────────── */
.paths-headline {
  font-size: clamp(32px, 4vw, 48px);
}

/* ── VENTURE CALLOUT LAYOUT ──────────────────────────────────── */
.venture-callout-inner {
  grid-template-columns: 1fr auto;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mandates-inner { grid-template-columns: 1fr; }
  .mandates-spacer { display: none; }
  .mandates-img-wrap { aspect-ratio: 16/9; margin-top: 48px; }

  .profile-inner { grid-template-columns: 1fr; }
  .profile-img-wrap { order: 1; }
  .profile-content  { order: 2; }

  .co-invest-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .service-card:last-child { border-bottom: none; }

  .service-row { grid-template-columns: 1fr; gap: 24px; }

  .tool-callout-inner { grid-template-columns: 1fr; }

  .two-paths-grid { grid-template-columns: 1fr !important; }
  .invest-grid    { grid-template-columns: 1fr !important; }
  .criteria-grid  { grid-template-columns: 1fr !important; }

  .paths-headline { font-size: clamp(28px, 8vw, 40px) !important; }

  .two-paths-grid > div { min-height: 360px; }

  .venture-callout-inner { grid-template-columns: 1fr; }

  .footer { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }

  .hero-actions { flex-wrap: wrap; gap: 20px; }
  .hero-rule { display: none; }
}

@media (max-width: 640px) {
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: block; }
}
