/* ============================================================
   109 Capital Partners — Modernized Site
   Bold & impact-driven design system
   ============================================================ */

:root {
  --forest: #0A2540;      /* deep navy (brand blue) */
  --forest-2: #123a5e;
  --moss: #2c5f8f;        /* steel blue */
  --sage: #7fa7c4;
  --accent: #2f7fc7;      /* bright blue accent */
  --accent-2: #5fa1dc;    /* light sky accent */
  --sand: #f6f9fc;        /* clean cool white bg */
  --sand-2: #e9f0f8;      /* light blue-tint section */
  --ink: #1a201d;
  --muted: #5c6b62;
  --white: #ffffff;
  --shadow: 0 20px 50px -20px rgba(10, 37, 64, 0.45);
  --radius: 18px;
  --maxw: 1180px;
  --serif: "Fraunces", 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);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(47,127,199,.7); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(10,37,64,.96);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 8px 30px -15px rgba(0,0,0,.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand .logo-img { height: 46px; width: auto; display: block; transition: height .3s ease; }
.site-footer .brand .logo-img { height: 48px; }
.site-header.scrolled .brand .logo-img { height: 40px; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.15rem;
  box-shadow: 0 6px 18px -6px rgba(47,127,199,.6);
}
.brand .name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.brand .name small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.menu a { color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; transition: color .2s; position: relative; }
.menu a:hover, .menu a.active { color: var(--white); }
.menu a.active::after { content:""; position:absolute; left:0; right:0; bottom:-7px; height:2px; background: var(--accent); border-radius: 2px; }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; }
.menu-toggle span { display:block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(6,20,36,.92) 0%, rgba(10,37,64,.78) 45%, rgba(20,60,100,.55) 100%),
    radial-gradient(1200px 600px at 80% 10%, rgba(47,127,199,.18), transparent 60%),
    var(--forest);
  overflow: hidden;
}
.hero::after {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(1000px 700px at 70% 30%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 90px; }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent-2); font-style: italic; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 46px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--accent-2); line-height: 1; }
.hero-stats .stat .lbl { font-size: .82rem; letter-spacing: .06em; color: rgba(255,255,255,.7); margin-top: 6px; text-transform: uppercase; }

/* page hero (interior) */
.page-hero {
  color: var(--white); padding: 190px 0 90px;
  background:
    linear-gradient(120deg, rgba(6,20,36,.95), rgba(20,60,100,.72)),
    radial-gradient(900px 500px at 85% -10%, rgba(47,127,199,.22), transparent 60%),
    var(--forest);
  position: relative; overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 620px; font-size: 1.1rem; }

/* ---------------- Sections ---------------- */
section { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; color: var(--forest); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.bg-forest { background: var(--forest); color: var(--white); }
.bg-forest .section-head h2 { color: var(--white); }
.bg-forest .section-head p { color: rgba(255,255,255,.72); }
.bg-sand2 { background: var(--sand-2); }

/* ---------------- Cards / grid ---------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 14px 40px -28px rgba(10,37,64,.55);
  border: 1px solid rgba(10,37,64,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--forest), var(--moss)); color: var(--accent-2);
}
.card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--forest); }
.card p { color: var(--muted); font-size: .98rem; }
.card .ico svg { width: 27px; height: 27px; display: block; }
.card .num-tag { position:absolute; top: 20px; right: 26px; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); opacity: .28; font-weight: 700; }

.bg-forest .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.bg-forest .card h3 { color: var(--white); }
.bg-forest .card p { color: rgba(255,255,255,.7); }
.bg-forest .card .ico { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* split content */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split .visual {
  border-radius: var(--radius); min-height: 420px;
  background:
    linear-gradient(140deg, rgba(10,37,64,.15), rgba(47,127,199,.12)),
    linear-gradient(135deg, var(--moss), var(--forest));
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.split .visual .badge {
  position: absolute; bottom: 26px; left: 26px; right: 26px;
  background: rgba(255,255,255,.94); border-radius: 14px; padding: 20px 22px;
  backdrop-filter: blur(6px);
}
.split .visual .badge strong { font-family: var(--serif); color: var(--forest); font-size: 1.05rem; }
.split .visual .badge span { display:block; color: var(--muted); font-size: .9rem; }
.prose p { margin-bottom: 18px; color: var(--ink); }
.prose p.big { font-size: 1.15rem; }

/* pill list */
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pill {
  background: var(--white); border: 1px solid rgba(10,37,64,.12); color: var(--forest);
  padding: 10px 18px; border-radius: 999px; font-size: .92rem; font-weight: 500;
}
.bg-forest .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--white); }

/* focus list rows */
.focus-row { display:flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid rgba(10,37,64,.1); align-items: flex-start; }
.focus-row:last-child { border-bottom: none; }
.focus-row .n { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); min-width: 46px; }
.focus-row h3 { font-size: 1.35rem; color: var(--forest); margin-bottom: 6px; }
.focus-row p { color: var(--muted); }

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 400px at 15% 20%, rgba(47,127,199,.22), transparent 60%),
    var(--forest);
  color: var(--white); border-radius: 26px; padding: 64px 54px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 30px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.info-block { margin-bottom: 30px; }
.info-block .k { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.info-block .v { font-size: 1.08rem; color: var(--ink); }
.info-block a.v:hover { color: var(--moss); }

.contact { background: var(--white); padding: 38px; border-radius: var(--radius); box-shadow: var(--shadow); }
.email-panel h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--forest); margin-bottom: 12px; }
.email-panel > p { color: var(--muted); margin-bottom: 24px; }
.email-actions { display: flex; flex-direction: column; gap: 14px; }
.email-actions .btn { justify-content: center; width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 20px; }
.form-note a { color: var(--accent); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
.site-footer { background: #06182b; color: rgba(255,255,255,.7); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { margin-bottom: 18px; }
.site-footer p.blurb { max-width: 320px; font-size: .95rem; }
.footer-col h4 { color: var(--white); font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; padding: 6px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .85rem; flex-wrap: wrap; gap: 14px; }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.footer-bottom .socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

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

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu { display: none; }
  .menu-toggle { display: block; }
  .menu.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,37,64,.98); padding: 24px 28px; gap: 18px; align-items: flex-start;
  }
  .nav-cta { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 26px; }
  section { padding: 66px 0; }
}
