/* ============================================================
   Black Capital Management — site stylesheet
   Palette: deep navy / warm gold / soft cream
   ============================================================ */

:root {
  --navy: #12263f;
  --navy-deep: #0b1a2e;
  --navy-soft: #1c3a5e;
  --gold: #b9924f;
  --gold-soft: #d3b47c;
  --ink: #23303f;
  --slate: #55647a;
  --line: #e4e0d7;
  --cream: #f8f6f1;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--navy); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }

/* The firm's logo artwork; -light variant is the reversed version for dark backgrounds */
.brand-logo {
  width: 218px;
  height: auto;
  flex: none;
}

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

.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--gold); }

.site-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--navy); color: var(--white); }

.btn-outline {
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
}
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.nav-login { margin-left: 0.25rem; padding: 0.55rem 1.2rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero (home) ---------- */

.hero {
  /* Grayscale Wall St photo, multiply-blended with navy for a duotone look */
  background:
    linear-gradient(100deg, rgba(9, 20, 38, 0.88) 0%, rgba(11, 26, 46, 0.6) 45%, rgba(13, 28, 50, 0.25) 100%),
    url("../images/hero-wallst.jpg") center 55% / cover no-repeat #2e517d;
  background-blend-mode: normal, multiply;
  color: var(--white);
  padding: 8rem 0 7.5rem;
}

.hero .kicker {
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  max-width: 17ch;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 56ch;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
}

.hero .btn { margin-right: 0.9rem; margin-bottom: 0.75rem; }

/* ---------- Page-title band (subpages) ---------- */

.page-head {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%);
  color: var(--white);
  padding: 4.25rem 0 3.75rem;
}

.page-head .kicker {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
}

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section.tinted { background: var(--cream); }

.section-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 26ch;
}

.section .lede {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.35rem; }
.prose p:last-child { margin-bottom: 0; }

/* Pull-quote used on content pages */
.pull {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--navy);
  max-width: 60ch;
}

/* ---------- Card grid (home) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18, 38, 63, 0.1);
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.98rem;
  color: var(--slate);
  flex: 1;
  margin-bottom: 1.25rem;
}

.card .more {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.card:hover .more { color: var(--navy); }

/* ---------- Stats band ---------- */

.stats {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--gold-soft);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat span {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Team (about) ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.person {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.25rem 2rem;
}

/* Fallback badge when no headshot is available; sized to match .portrait */
.person .initials {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.35rem;
}

/* Headshot: square crop weighted toward the top so the face stays centred */
.person .portrait {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  margin-bottom: 1.35rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(18, 38, 63, 0.14);
}

.person h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
}

.person .role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0.3rem 0 1rem;
}

.person p { color: var(--slate); font-size: 0.98rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  text-align: center;
}

.contact-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
}

.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.contact-card p { color: var(--slate); font-size: 0.98rem; margin-bottom: 1rem; }
.contact-card .btn { padding: 0.55rem 1.3rem; font-size: 0.88rem; }

/* ---------- CTA band ---------- */

.cta {
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(185, 146, 79, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

/* ---------- Prev / next pager on content pages ---------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  font-size: 0.95rem;
}
.pager a { font-weight: 600; }
.pager .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.2rem;
}
.pager .next { text-align: right; margin-left: auto; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer .brand { margin-bottom: 1.25rem; }

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--gold-soft); }

.footer-legal {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal p { margin-bottom: 0.6rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem 0; font-size: 1rem; }
  .brand-logo { width: 178px; }
  .nav-login { margin: 0.75rem 0 0; }
  .nav-toggle { display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4.5rem 0 4rem; }
  .section { padding: 3.5rem 0; }
}
