/* Quantum Ridge Capital LLC — site styles
   Palette: navy #0B1F33, teal #2BA8A0, gold #C7A15A, cream #F4F7F8 */

:root {
  --navy: #0B1F33;
  --navy-deep: #071522;
  --navy-mid: #163A5A;
  --teal: #2BA8A0;
  --teal-soft: rgba(43, 168, 160, 0.12);
  --gold: #C7A15A;
  --gold-soft: rgba(199, 161, 90, 0.15);
  --cream: #F4F7F8;
  --cream-dark: #E8EEF0;
  --slate: #5A6B7A;
  --slate-muted: #7A8B99;
  --white: #FFFFFF;
  --border: rgba(11, 31, 51, 0.1);
  --border-light: rgba(244, 247, 248, 0.15);
  --shadow: 0 4px 24px rgba(11, 31, 51, 0.08);
  --shadow-lg: 0 12px 48px rgba(11, 31, 51, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Outfit", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100%;
  background: var(--navy); color: var(--cream); padding: 0.75rem 1.25rem;
  z-index: 1000; border-radius: var(--radius); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ——— Layout ——— */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section--navy {
  background: var(--navy);
  color: var(--cream);
}
.section--navy a { color: var(--gold); }
.section--navy a:hover { color: var(--cream); }

.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--muted { background: var(--cream-dark); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section--navy .eyebrow { color: var(--gold); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 3.75rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-bottom: 0.75rem; font-weight: 560; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--slate);
  max-width: 42rem;
  line-height: 1.7;
}
.section--navy .lede { color: rgba(244, 247, 248, 0.78); }

.prose { max-width: 40rem; }
.prose p + p { margin-top: 1.1rem; }
.prose ul { margin: 1rem 0; padding-left: 0; }
.prose li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--slate);
}
.prose li::before {
  content: "";
  position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

.text-muted { color: var(--slate); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 247, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header--dark {
  background: rgba(11, 31, 51, 0.94);
  border-bottom-color: var(--border-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-link img { height: 48px; width: auto; max-width: 180px; display: block; }
.logo-link .logo--light { display: block; }
.logo-link .logo--dark { display: none; }
.site-header--dark .logo-link .logo--light { display: none; }
.site-header--dark .logo-link .logo--dark { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--navy);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--teal);
  background: var(--teal-soft);
}
.site-header--dark .nav__link { color: rgba(244, 247, 248, 0.88); }
.site-header--dark .nav__link:hover,
.site-header--dark .nav__link[aria-current="page"] {
  color: var(--cream);
  background: rgba(43, 168, 160, 0.18);
}

.nav__cta {
  margin-left: 0.5rem;
  background: var(--navy);
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  font-weight: 500;
}
.nav__cta:hover {
  background: var(--navy-mid) !important;
  color: var(--cream) !important;
}
.site-header--dark .nav__cta {
  background: var(--gold);
  color: var(--navy) !important;
}
.site-header--dark .nav__cta:hover {
  background: #d4b36e !important;
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.site-header--dark .nav-toggle { border-color: var(--border-light); }
.site-header--dark .nav-toggle span { background: var(--cream); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--primary:hover { background: #d4b36e; color: var(--navy); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 247, 248, 0.35);
}
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(244, 247, 248, 0.08); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(11, 31, 51, 0.25);
}
.btn--outline:hover { border-color: var(--navy); background: rgba(11, 31, 51, 0.04); color: var(--navy); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(43, 168, 160, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(199, 161, 90, 0.08), transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, #0e2740 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 161, 90, 0.4), transparent);
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: 2.5rem;
  max-width: 44rem;
}

.ridge-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ridge-line__mark {
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.ridge-line__rule {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.notice-bar {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
}
.notice-bar a { color: var(--navy-mid); font-weight: 500; }

/* ——— Cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.65rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  font-size: 1.1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--slate); font-size: 0.975rem; }

.card--navy {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
  box-shadow: none;
}
.card--navy:hover { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
.card--navy p { color: rgba(244, 247, 248, 0.72); }

/* ——— Split ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--top { align-items: start; }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel--accent {
  border-left: 3px solid var(--gold);
}

.callout {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--navy-mid);
}
.callout strong { color: var(--navy); }

.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ——— Team ——— */
.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-avatar img { width: 56px; height: 56px; }
.team-meta {
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 1rem;
}
.team-meta span { display: block; margin-bottom: 0.25rem; }
.credential-note {
  font-size: 0.8rem;
  color: var(--slate-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}

/* ——— Forms ——— */
.form-grid {
  display: grid;
  gap: 1.15rem;
  max-width: 32rem;
}
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 1rem;
  max-width: 32rem;
}
.contact-details {
  margin-top: 2rem;
}
.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
  margin-top: 1.15rem;
}
.contact-details dd { color: var(--navy); }
.contact-details a { text-decoration: none; font-weight: 500; }
.contact-details a:hover { text-decoration: underline; }

/* ——— Disclosure / legal ——— */
.legal {
  font-size: 0.95rem;
  color: var(--slate);
  max-width: 44rem;
}
.legal h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 0.9rem; }
.legal ul {
  margin: 0.85rem 0 0.85rem 0;
}
.legal li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.legal li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 247, 248, 0.72);
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.site-footer a {
  color: rgba(244, 247, 248, 0.85);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  max-width: 22rem;
  font-size: 0.85rem;
}
.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-nav ul { display: grid; gap: 0.45rem; }
.footer-contact p { margin-bottom: 0.4rem; }

.footer-legal {
  border-top: 1px solid rgba(244, 247, 248, 0.1);
  padding-top: 1.75rem;
  display: grid;
  gap: 1rem;
}
.footer-legal p {
  font-size: 0.75rem;
  color: rgba(244, 247, 248, 0.55);
  line-height: 1.55;
  max-width: 56rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.5rem;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ——— Page header (inner) ——— */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 161, 90, 0.35), transparent);
}
.page-hero .lede { color: rgba(244, 247, 248, 0.75); }

/* ——— Flow Fund band ——— */
.flow-band {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.25rem;
}
.flow-band p { color: rgba(244, 247, 248, 0.78); max-width: 36rem; }

/* ——— Framework chips ——— */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.chip {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 161, 90, 0.4);
  color: var(--navy);
  background: var(--gold-soft);
}

/* ——— List features ——— */
.feature-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.feature-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.feature-list__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  min-width: 2rem;
}
.feature-list__item h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.feature-list__item p { color: var(--slate); font-size: 0.975rem; }

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-card { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .site-header--dark .nav { background: var(--navy); border-bottom-color: var(--border-light); }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link { padding: 0.85rem 1rem; }
  .nav__cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.75rem, var(--max)); }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; }
}
