/* ==========================================================================
   Risk Capital Partners — Core Stylesheet
   Brand system derived from the RCPS mark: ink navy + specialty teal.
   Family resemblance to Edge Management (shared bones), own personality.
   ========================================================================== */

:root {
  /* ---- Brand palette (locked to the logo) ---- */
  --ink:        #1D384B;   /* logo dark half — primary */
  --ink-deep:   #142838;   /* darker navy for depth/footer */
  --teal:       #3F8B94;   /* logo teal — accent */
  --teal-deep:  #2E6B73;   /* hover/active */
  --teal-pale:  #C3E3E3;   /* light fills, tints */
  --teal-wash:  #B5D2D2;   /* darker section tint, same blue-green family */

  /* ---- Neutrals ---- */
  --paper:      #D8E8E8;   /* light green/blue page ground (was off-white) */
  --white:      #FFFFFF;
  --body:       #4A5A68;   /* body text on light */
  --muted:      #7C8A96;   /* secondary text */
  --line:       #DDE4E9;   /* hairline borders */
  --line-soft:  #EAEEF1;

  /* ---- Type ---- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Scale / rhythm ---- */
  --wrap: 1200px;
  --gap: 24px;
  --section-y: 112px;
  --radius: 4px;      /* restrained, institutional */
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(20,40,56,.04), 0 2px 8px rgba(20,40,56,.05);
  --shadow-md: 0 6px 24px rgba(20,40,56,.09);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--teal); font-weight: 500; }

h1.display { font-size: clamp(2.6rem, 5.4vw, 4.3rem); }
h2.display { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--teal);
  display: inline-block;
}
.lede { font-size: 1.18rem; line-height: 1.6; color: var(--body); }

/* ---- Layout ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--teal-wash); }
.section--ink { background: var(--ink); color: #C8D4DD; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .display { color: #fff; }
.section--ink .eyebrow { color: var(--teal-pale); }
.section--ink .eyebrow::before { background: var(--teal-pale); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: 15px 28px; border-radius: var(--radius);
  transition: all .25s var(--ease); cursor: pointer; border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.section--ink .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--ink .btn--ghost:hover { border-color: var(--teal-pale); color: var(--teal-pale); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,241,.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.nav__logo img { height: 42px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  font-size: .92rem; font-weight: 500; color: var(--ink);
  padding: 12px 16px; border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--teal-deep); }
.nav__link .chev { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav__item:hover .chev { transform: rotate(180deg); }

/* Dropdown */
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 10px; opacity: 0; visibility: hidden; transition: all .2s var(--ease);
}
.nav__item:hover .nav__drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__drop a {
  display: block; padding: 11px 14px; border-radius: var(--radius);
  transition: background .18s var(--ease);
}
.nav__drop a:hover { background: var(--teal-wash); }
.nav__drop .dt { font-size: .92rem; font-weight: 600; color: var(--ink); display:block; }
.nav__drop .dd { font-size: .8rem; color: var(--muted); display:block; margin-top:1px; }
.nav__cta { margin-left: 10px; }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* Mobile nav */
@media (max-width: 1024px) {
  .nav__menu {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: 16px 24px 32px; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 78px); overflow-y: auto;
    transform: translateY(-120%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__link { padding: 15px 8px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius:0; }
  .nav__drop {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; min-width: 0; padding: 0 0 8px 8px;
    display: none;
  }
  .nav__item.expand .nav__drop { display: block; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle { display: block; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-deep); color: #9DB0BE; padding: 76px 0 34px; font-size: .92rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer__brand img { height: 40px; margin-bottom: 20px; }
.footer__brand p { color: #8195A4; max-width: 300px; line-height: 1.65; }
.footer__col h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: #9DB0BE; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--teal-pale); }
.footer__offices { display: flex; flex-wrap: wrap; gap: 40px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer__office strong { color: #fff; display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; font-weight: 600; }
.footer__office span { color: #8195A4; font-size: .88rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.footer__bottom .fam { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom .fam a:hover { color: var(--teal-pale); }
.footer__legal { color: #6E828F; font-size: .82rem; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reusable content components
   ========================================================================== */
/* Slant motif — the signature nod to the parallelogram logo */
.slant-rule { height: 3px; width: 54px; background: var(--teal); transform: skewX(-20deg); }

/* Section heading block */
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

/* Cards grid */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-pale); }
.card__num { font-family: var(--serif); font-size: 1.5rem; color: var(--teal); font-weight: 600; margin-bottom: 14px; display:block; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; color: var(--body); }
.card__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--teal-deep); }
.card__link .arw { transition: transform .25s var(--ease); }
.card:hover .card__link .arw { transform: translateX(4px); }

/* Stat blocks */
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem,4vw,3.4rem); font-weight: 600; color: var(--teal); line-height: 1; letter-spacing: -.02em; }
.section--ink .stat__num { color: var(--teal-pale); }
.stat__label { margin-top: 12px; font-size: .96rem; color: var(--body); }
.section--ink .stat__label { color: #A9BAC6; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 2px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color:#fff; padding: 10px 18px; border-radius: var(--radius); z-index: 200; }
.skip:focus { left: 12px; }
