/* ============================================================
   Echo Point Capital — rebuilt static site (vertical scroll)
   Colors sampled from live-site screenshots:
     navy   #112d4e  (verified from pixels)
     white  #ffffff
   ESTIMATED (not verified — original CSS unavailable):
     gold   #c8a55a  (approximated from the gold logo)
     fonts: hero title requested "Reckless" (commercial, cannot embed) —
            falls back to Fraunces (free placeholder); other headings use
            Source Serif 4; body uses Inter. All font choices are approximations.
   ============================================================ */

:root {
  --navy: #112d4e;
  --navy-deep: #0c2340;
  --white: #ffffff;
  --off-white: #f5f5f4;
  --gold: #c8a55a;            /* ESTIMATED */
  --text-on-dark: rgba(255, 255, 255, 0.93);
  --text-muted-dark: rgba(255, 255, 255, 0.74);
  --text-body-light: #3a4a60;
  --font-hero: 'Reckless', 'Fraunces', Georgia, serif;             /* Reckless-ready; Fraunces = placeholder */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;  /* APPROXIMATION */
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;            /* APPROXIMATION */
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-body-light);
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }

img { display: block; max-width: 100%; }

section { scroll-margin-top: var(--nav-h); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.9rem;
}
/* Enlarged "Our Criteria" eyebrow per request */
.eyebrow-lg { font-size: 1.15rem; letter-spacing: 0.18em; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(12, 26, 46, 0.55), rgba(12, 26, 46, 0));
  transition: background 0.3s ease;
}
.nav.scrolled { background: rgba(12, 35, 64, 0.96); box-shadow: 0 2px 18px rgba(0,0,0,0.18); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  color: var(--text-on-dark);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  margin-right: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
/* Overlay removed so the photo displays with no darkening/filter. */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-title {
  position: absolute; z-index: 2;
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  left: clamp(1.25rem, 5vw, 4rem);
  right: clamp(1.25rem, 5vw, 4rem);
  font-family: var(--font-hero);
  color: var(--white);
  font-size: clamp(3.4rem, 12vw, 10rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  text-align: right;                 /* right-justified per request */
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);  /* keeps text legible without an image overlay */
}

/* ---------------- Mission ---------------- */
.mission { background: var(--navy); padding: clamp(4rem, 10vh, 7.5rem) 0; }
.mission-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
/* Enlarged per request */
.mission-headline { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.pillar { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 1.5rem; }
.pillar h3 { color: var(--gold); font-size: 1.35rem; margin-bottom: 0.8rem; }
.pillar p { color: var(--text-muted-dark); font-size: 0.96rem; }

/* ---------------- Legacy quote ---------------- */
.legacy { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.legacy-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.legacy-overlay { position: absolute; inset: 0; background: rgba(17, 45, 78, 0.58); }
.legacy-content {
  position: relative; z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 6rem) clamp(1.25rem, 5vw, 3rem);
}
.legacy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 2rem;
}
.legacy-headline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------- Criteria ---------------- */
.criteria { background: var(--off-white); padding: clamp(4rem, 10vh, 7.5rem) 0; }
.criteria-head h2 { color: var(--navy-deep); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.4rem; }
.criteria-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 30px rgba(17, 45, 78, 0.07);
}
/* Icon + title on the same row per request */
.card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.card-icon { width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.card h3 { font-size: 1.4rem; color: var(--navy-deep); }
.card ul { list-style: none; }
.card li {
  font-size: 0.93rem;
  padding-left: 1.1rem; position: relative;
  margin-bottom: 0.75rem; line-height: 1.55;
}
.card li strong { color: var(--navy-deep); }
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* ---------------- Team ---------------- */
.team { background: var(--navy); padding: clamp(4rem, 10vh, 7.5rem) 0; }
.team-inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.team-photo img {
  width: 100%; max-width: 360px; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.team-bio h2 { color: var(--white); font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.1rem; }
.team-bio > p { color: var(--text-muted-dark); font-size: 0.98rem; margin-bottom: 1.3rem; max-width: 36rem; }
.linkedin-link { display: inline-flex; color: var(--gold); transition: opacity 0.2s ease; }
.linkedin-link:hover { opacity: 0.75; }

/* ---------------- Reveal animation ---------------- */
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------------- Mobile ---------------- */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .criteria-cards { grid-template-columns: 1fr; }
  .team-inner { grid-template-columns: 1fr; }
  .team-photo { max-width: 360px; }

  .nav { background: linear-gradient(to bottom, rgba(12, 26, 46, 0.92), rgba(12, 26, 46, 0.75)); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 220px; }
  .nav-links a { padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}
