/* =========================================================
   Freedom Equity stylesheet
   Conservative-institutional system. Mobile-first.
   ========================================================= */

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1F2937;
  background: #FAF8F3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #8C6F3F; }
button { font: inherit; cursor: pointer; }

/* ---- Tokens ---- */
:root {
  --ink: #0F1E36;
  --charcoal: #1F2937;
  --muted: #5F6B7C;
  --border: #D9D2C5;
  --surface: #FAF8F3;
  --surface-alt: #F2EEE5;
  --white: #FFFFFF;
  --gold: #8C6F3F;
  --content-max: 1120px;
  --pad-x: 24px;
  --section-y: 56px;
}
@media (min-width: 768px) {
  :root { --pad-x: 48px; --section-y: 80px; }
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.2;
}
h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--charcoal); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 8px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---- Top nav (navy, matches footer) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: rgba(217, 210, 197, 0.18); }
.nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav__inner { height: 72px; } }
.wordmark {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 150ms ease;
}
.wordmark:hover { opacity: 0.82; color: inherit; }
.wordmark svg { display: block; width: 130px; height: auto; }
@media (min-width: 768px) { .wordmark svg { width: 160px; } }
.nav__links { display: none; }
@media (min-width: 768px) {
  .nav__links {
    display: flex;
    gap: 32px;
    align-items: center;
  }
  .nav__links a {
    font-size: 14px;
    color: #C9D1DA;
    transition: color 150ms ease;
  }
  .nav__links a:hover, .nav__links a.active { color: var(--surface); }
  .nav__links a.active { font-weight: 500; }
}

/* mobile menu toggle */
.menu-toggle {
  background: none;
  border: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--surface);
}
.menu-panel {
  display: none;
  background: var(--ink);
  border-bottom: 1px solid rgba(217, 210, 197, 0.18);
  padding: 16px var(--pad-x) 32px;
}
.menu-panel.open { display: block; }
.menu-panel a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  color: var(--surface);
  border-bottom: 1px solid rgba(217, 210, 197, 0.18);
}
.menu-panel a:last-child { border-bottom: 0; }

/* ---- Layout ---- */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.wrap--narrow { max-width: 920px; }
section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
section.section-alt { background: var(--surface-alt); }
.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1.5px solid var(--ink);
  transition: background 150ms ease, color 150ms ease;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--surface); }
.btn--primary:hover { background: #0a1525; color: var(--surface); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--surface); }
.link-arrow {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}
.link-arrow:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- Section icons (brand kit, 24×24 stroke-based) ---- */
.section-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--ink);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.grid-3 .section-icon,
.asset-block .section-icon { color: var(--gold); }
.principle .section-icon { color: var(--gold); margin-bottom: 14px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
  background-image: url('../images/Stock%202.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
@media (min-width: 768px) { .hero { padding-top: 120px; padding-bottom: 120px; } }

/* Dark overlay so text stays legible over the photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 21, 37, 0.82) 0%,
    rgba(10, 21, 37, 0.60) 55%,
    rgba(10, 21, 37, 0.38) 100%
  );
  z-index: 0;
}
/* Lift content above overlay */
.hero .wrap { position: relative; z-index: 1; }
.hero .bg-mark { z-index: 0; }

/* Text colour overrides for photo hero */
.hero h1 { color: var(--surface); }
.hero__sub { color: #ffffff; }

/* Gold CTA on the dark photo background */
.hero .btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--surface);
}
.hero .btn--primary:hover {
  background: #7a6035;
  border-color: #7a6035;
  color: var(--surface);
}
.hero .link-arrow {
  color: var(--surface);
  border-bottom-color: rgba(250, 248, 243, 0.45);
}
.hero .link-arrow:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- Background brand mark ---- */
.bg-mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  line-height: 0;
}
.bg-mark svg { display: block; width: 100%; height: auto; }
.hero .bg-mark {
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 40vw, 560px);
}
@media (max-width: 767px) { .hero .bg-mark { opacity: 0.04; right: -100px; width: 280px; } }
.closing { position: relative; overflow: hidden; }
.closing .bg-mark {
  right: -60px;
  bottom: -40px;
  width: clamp(200px, 28vw, 380px);
  opacity: 0.08;
  top: auto;
  transform: none;
}
@media (max-width: 767px) { .closing .bg-mark { display: none; } }
.hero__headline { max-width: 880px; }
.hero__sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--surface);
  margin: 24px 0 40px;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 480px) {
  .hero__ctas { flex-direction: row; align-items: center; gap: 24px; }
}

/* ---- Three column grid ---- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.grid-3 h3 { margin-bottom: 12px; }
.grid-3 p { color: var(--charcoal); }

/* ---- Stats strip ---- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat__value {
  font-family: 'Source Serif 4', serif;
  font-size: 30px;
  color: var(--ink);
}
@media (min-width: 768px) { .stat__value { font-size: 36px; } }

/* ---- Principals strip ---- */
.principals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .principals { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
.principal-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.principal-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
  overflow: hidden;
  position: relative;
}
.principal-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.principal-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F2EEE5, #E6E0D2);
  color: var(--ink);
  font-family: 'Source Serif 4', serif;
  font-size: 64px;
  letter-spacing: 0.08em;
}
.principal-card__body { padding: 28px; }
.principal-card__name {
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 4px;
}
.principal-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.principal-card__bio { color: var(--charcoal); margin-bottom: 20px; }

/* ---- Closing block ---- */
.closing {
  text-align: center;
  padding: 80px var(--pad-x);
  background: var(--surface-alt);
}
.closing__inner { max-width: 600px; margin: 0 auto; }

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: #C9D1DA;
  padding: 56px var(--pad-x) 32px;
}
.footer a { color: #C9D1DA; }
.footer a:hover { color: #FAF8F3; }
.footer__cols {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer__cols { grid-template-columns: 1.2fr 1fr 1fr; gap: 56px; }
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 16px;
  opacity: 1;
  transition: opacity 150ms ease;
}
.footer__logo:hover { opacity: 0.82; }
.footer__logo svg { display: block; width: 150px; height: auto; }
.footer h4 {
  color: #FAF8F3;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 15px; }
.footer__disclaimer {
  max-width: var(--content-max);
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(217, 210, 197, 0.2);
  font-size: 12.5px;
  line-height: 1.5;
  color: #8E96A0;
}

/* ---- Who We Are: principles ---- */
.principle {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-bottom: 28px;
}
.principle h3 { color: var(--ink); }
.principle:last-child { margin-bottom: 0; }

/* ---- Lists (philosophy / checklists) ---- */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullet-list li {
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--charcoal);
}
.bullet-list li:last-child { border-bottom: 0; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- Team page bios ---- */
.bio-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
@media (min-width: 768px) {
  .bio-block { grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
}
.bio-photo {
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
  overflow: hidden;
  border: 1px solid var(--border);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bio-photo__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F2EEE5, #E6E0D2);
  color: var(--ink);
  font-family: 'Source Serif 4', serif;
  font-size: 96px;
  letter-spacing: 0.08em;
}
.bio-body h2 { margin-bottom: 6px; }
.bio-body .bio-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.bio-body .bio-contact {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.bio-body .bio-contact a { color: var(--ink); border-bottom: 1px solid var(--border); }
.bio-body p { color: var(--charcoal); margin-bottom: 16px; }

/* ---- Portfolio asset class grid ---- */
.assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .assets-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
}
.asset-block {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.asset-block h3 { margin-bottom: 12px; }
.asset-block p { color: var(--charcoal); }
.asset-block--wide {
  grid-column: 1 / -1;
}

/* ---- Investor form ---- */
.form-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .form-section { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}
.form-grid {
  display: grid;
  gap: 20px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .req { color: var(--gold); }
.field .help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
  width: 100%;
  transition: border-color 150ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  border-width: 1.5px;
}
.field textarea { resize: vertical; min-height: 100px; }
.radio-group, .check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0;
}
.radio-group label, .check-group label {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--charcoal);
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
}
.radio-group input, .check-group input {
  width: 18px; height: 18px; margin: 0;
  accent-color: var(--ink);
}
.form-aside {
  background: var(--surface-alt);
  padding: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
  border-left: 2px solid var(--gold);
}
.form-aside h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.form-success {
  display: none;
  padding: 24px;
  background: var(--surface-alt);
  border-left: 2px solid var(--gold);
  color: var(--charcoal);
  margin-bottom: 24px;
}
.form-success.show { display: block; }

/* ---- Disclosures (legal) ---- */
.legal h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--charcoal); }
.legal ul {
  color: var(--charcoal);
  padding-left: 20px;
}
.legal ul li { margin-bottom: 12px; }
.legal .effective {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 32px;
}

/* ---- Page intro (smaller hero for inner pages) ---- */
.page-intro {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .page-intro { padding-top: 96px; padding-bottom: 72px; } }
.page-intro h1 { margin-bottom: 20px; }
.page-intro .lead { }
.page-intro .bg-mark {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 32vw, 440px);
  opacity: 0.05;
}
@media (max-width: 767px) { .page-intro .bg-mark { opacity: 0.035; right: -80px; width: 220px; } }
.page-intro .wrap { position: relative; z-index: 1; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-4 { margin-bottom: 32px; }

/* =========================================================
   Photo section enhancements
   ========================================================= */

/* Stats strip — Misty Blue Ridge Layers (homepage) */
.section--stats-photo {
  position: relative;
  overflow: hidden;
  background-image: url('../images/maddox-furlong-QG7-77-lGrc-unsplash.jpg');
  background-size: cover;
  background-position: center 65%;
}
.section--stats-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 37, 0.76);
  z-index: 0;
}
.section--stats-photo .wrap { position: relative; z-index: 1; }
.section--stats-photo h2 { color: var(--surface); }
.section--stats-photo .stat__label { color: rgba(201, 209, 218, 0.80); }
.section--stats-photo .stat__value { color: var(--surface); }
.section--stats-photo .stats {
  border-top-color: rgba(217, 210, 197, 0.18);
  border-bottom-color: rgba(217, 210, 197, 0.18);
}

/* Closing CTA — Winding Mountain Road (homepage) */
.closing--road {
  /* Shorthand fully overrides the cream background set by .closing */
  background: url('../images/alex-geerts-QoLVxX-ZABQ-unsplash.jpg') center 40% / cover no-repeat;
}
.closing--road::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 37, 0.82);
  z-index: 1;
}
.closing--road .closing__inner { position: relative; z-index: 2; }
.closing--road .bg-mark { position: absolute; z-index: 1; }
.closing--road h2 { color: #ffffff; }
.closing--road p { color: #ffffff; }
.closing--road .btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}
.closing--road .btn--primary:hover {
  background: #7a6035;
  border-color: #7a6035;
  color: #ffffff;
}

/* Page intro with photo banner (inner pages) */
.page-intro--photo {
  border-bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
}
.page-intro--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 37, 0.72);
  z-index: 0;
}
.page-intro--photo h1 { color: var(--surface); }
.page-intro--photo .eyebrow { color: var(--gold); }
.page-intro--photo .lead { color: rgba(250, 248, 243, 0.90); }

/* Portfolio decorative photo strip */
.photo-strip {
  height: 380px;
  background-image: url('../images/the-iop-bT6TDi4kYnk-unsplash.jpg');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
}
@media (max-width: 767px) { .photo-strip { height: 220px; } }
