/* Meridian Capital & Portfolio Partners — site stylesheet */

:root {
  --ink: #14202b;        /* near-black navy — text */
  --ink-soft: #3d4c5c;   /* secondary text */
  --paper: #faf9f6;      /* warm off-white background */
  --paper-2: #f1efe9;    /* section alternate */
  --line: #d9d5cb;       /* hairlines */
  --accent: #1d5c53;     /* deep sea green — links, rules, marks */
  --accent-ink: #16453e;
  --max: 1080px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--max); margin: 0 auto;
}
.nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav .logo svg { display: block; }
.nav nav { display: flex; gap: 28px; align-items: center; }
.nav nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 14.5px; letter-spacing: 0.01em; font-weight: 500;
}
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--accent-ink); }
.nav nav a.cta {
  color: var(--paper); background: var(--accent);
  padding: 8px 18px; border-radius: 3px; font-weight: 600;
}
.nav nav a.cta:hover { background: var(--accent-ink); color: var(--paper); }
.nav .menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; font-size: 15px; cursor: pointer; color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
.kicker {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }
a { color: var(--accent-ink); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 84px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero .wrap { position: relative; max-width: 880px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; max-width: 680px; }
.hero .meridian-mark {
  position: absolute; right: -140px; top: -80px; opacity: 0.07; pointer-events: none;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 26px; border-radius: 3px;
}
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.primary:hover { background: var(--accent-ink); }
.btn.ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 30px 28px;
}
section.alt .card { background: var(--paper); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card .rule { width: 34px; height: 3px; background: var(--accent); margin-bottom: 18px; }

/* ---------- Stat band ---------- */
.stat-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.stat .num { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--accent-ink); }
.stat .label { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Track record tiles ---------- */
.tile { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); padding: 34px 32px; margin-bottom: 26px; }
.tile .tag { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.tile h3 { font-size: 1.35rem; margin-bottom: 18px; }
.tile dl { display: grid; grid-template-columns: 120px 1fr; row-gap: 10px; column-gap: 18px; font-size: 15.5px; }
.tile dt { font-weight: 600; color: var(--ink); }
.tile dd { color: var(--ink-soft); }

/* ---------- Team ---------- */
.bio { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.bio .photo {
  width: 100%; aspect-ratio: 4/5; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 13.5px; text-align: center; padding: 12px;
}
.bio .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.bio h3 { font-size: 1.6rem; }
.bio .role { color: var(--accent-ink); font-weight: 600; margin: 6px 0 18px; }
.bio p { margin-bottom: 14px; color: var(--ink-soft); font-size: 16px; }
.cred-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cred { font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; color: var(--ink-soft); background: var(--paper); }

/* ---------- Insights ---------- */
.post-list { display: grid; gap: 26px; }
.post {
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  padding: 30px 32px; text-decoration: none; color: var(--ink); display: block;
}
.post:hover { border-color: var(--accent); }
.post .meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.post h3 { margin-bottom: 10px; }
.post p { color: var(--ink-soft); font-size: 15.5px; }
.article { max-width: 720px; margin: 0 auto; }
.article .meta { font-size: 14px; color: var(--ink-soft); margin: 16px 0 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article h2 { margin: 40px 0 16px; font-size: 1.45rem; }
.article p { margin-bottom: 18px; color: #2a3743; }
.article ul { margin: 0 0 18px 22px; color: #2a3743; }
.article li { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-block h3 { margin-bottom: 10px; }
.contact-block p { color: var(--ink-soft); margin-bottom: 8px; }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
form input, form textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink); color: #b9c2cb; padding: 52px 0 36px; margin-top: 0;
  font-size: 14.5px;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer.site h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
footer.site a { color: #b9c2cb; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site .legal {
  border-top: 1px solid #2c3a47; padding-top: 22px; font-size: 13px; color: #8894a0;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
footer.site .wordmark { color: #fff; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 10px; }
footer.site .disclaimer { font-size: 12.5px; color: #8894a0; margin-top: 14px; max-width: 640px; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .contact-grid, .stat-band .wrap { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio .photo { max-width: 300px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start; }
  .nav nav.open { display: flex; }
  .nav .menu-btn { display: block; }
  section { padding: 52px 0; }
  .hero { padding: 60px 0 52px; }
}
