/* RaiseWise Capital
   Layout: a single 1200px column on a cool off-white page, with sections that alternate
   between off-white and white bands, hairline rules, and one deep-navy closing band.
   All values come from the original homepage design. */

:root {
  --navy: #1C2A48;        /* headings, primary buttons, dark band */
  --bronze: #8C5E22;      /* the one accent: eyebrows, card tops, step rules */
  --page: #F7F8FA;        /* page background */
  --surface: #FFFFFF;     /* white bands and cards */
  --rule: #DCE0E8;        /* hairlines */
  --rule-strong: #C3C9D6; /* outline button border */
  --body: #4A5468;        /* running text */
  --muted: #636B7E;       /* small print */
  --nav: #3C4560;         /* nav links */
  --on-navy: #B9C1D4;     /* text on the dark band */
  --on-navy-rule: rgba(255, 255, 255, 0.14);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step-h1: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem);   /* 76px at desktop */
  --step-h2: clamp(2rem, 1.35rem + 2.2vw, 2.875rem);    /* 46px */
  --step-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem);  /* 22px */
  --step-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);/* 20px */

  --gutter: clamp(20px, 5vw, 24px);
  --section: clamp(64px, 5vw + 40px, 92px);
  --radius: 2px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body, .page-root {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze);
}
.h1 {
  font-size: var(--step-h1); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em;
  max-width: 1040px;
}
.h2 {
  font-size: var(--step-h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
}
.lede { font-size: var(--step-lede); line-height: 1.6; color: var(--body); max-width: 720px; }
.body { color: var(--body); }
.small { font-size: 15px; color: var(--muted); }

.text-link {
  font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--bronze); padding-bottom: 2px;
}
.text-link:hover { color: var(--bronze); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  font: 500 17px/1.2 var(--font); text-decoration: none; text-align: center;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #283a62; }
.btn-outline { border-color: var(--rule-strong); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); font-weight: 600; min-height: 60px; padding: 0 34px; font-size: 18px; }
.btn-light:hover { background: #E9ECF2; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- header ---------- */

.site-header {
  background: var(--page);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
}
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--nav); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--bronze); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  min-height: 44px; padding: 0 14px; font: 500 15px var(--font); color: var(--navy); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: transform .2s ease;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.is-open .menu-icon { background: transparent; }
.is-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { min-height: 72px; flex-wrap: wrap; }
  .brand img { height: 28px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: 20px;
  }
  .is-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--bronze); }
  .site-nav .btn { margin-top: 20px; min-height: 52px; }
}

/* ---------- sections ---------- */

.band { padding-block: var(--section); }
.band-white { background: var(--surface); border-block: 1px solid var(--rule); }
.band + .band-white, .band-white + .band { border-top: 0; }
.band-white + .band-white { border-top: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 60px; flex-wrap: wrap; }
.section-head > p { max-width: 470px; color: var(--body); }

/* hero */
.hero { padding-block: clamp(64px, 6vw + 30px, 96px) clamp(56px, 5vw + 20px, 84px); }
.hero .h1 { margin-top: 24px; }
.hero .lede { margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
.hero .small { margin-top: 20px; }

.page-hero { padding-block: clamp(56px, 5vw + 30px, 88px) clamp(40px, 4vw + 16px, 64px); }
.page-hero .h1 { margin-top: 20px; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem); }
.page-hero .lede { margin-top: 24px; }

/* stats */
.stats { background: var(--surface); border-block: 1px solid var(--rule); padding-block: 42px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 56px; }
.stat-num { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--body); }

/* split: heading column + list column */
.split { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px 96px; }
.split > * { min-width: 0; }
.split .body { margin-top: 24px; font-size: 18px; line-height: 1.65; }

.rule-list { display: flex; flex-direction: column; }
.rule-list > div { padding-block: 24px; border-top: 1px solid var(--rule); }
.rule-list > div:last-child { border-bottom: 1px solid var(--rule); }
.rule-list h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.rule-list p { margin-top: 8px; color: var(--body); }

/* service cards */
.card-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule); border-top: 3px solid var(--bronze); border-radius: var(--radius);
  padding: 34px;
}
.card h3 { font-size: var(--step-h3); font-weight: 600; line-height: 1.25; }
.card p { margin-top: 12px; font-size: 16px; color: var(--body); }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); }
.card li { padding-left: 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--bronze); }
.note {
  margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--rule);
  max-width: 900px; font-size: 16px; color: var(--muted);
}
.more { margin-top: 32px; }

/* steps */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 52px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 2px solid var(--bronze); }
.step-num { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--bronze); }
.step h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); font-weight: 600; line-height: 1.2; }
.step p { color: var(--body); line-height: 1.65; }

/* about */
.about { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px 80px; align-items: start; }
.about > * { min-width: 0; }
.portrait { width: 100%; aspect-ratio: 340 / 420; object-fit: cover; object-position: center 16%; border-radius: var(--radius); }
.about .rule-list { margin-top: 30px; }
.about .rule-list > div { padding-block: 22px; }
.about .rule-list h3 { font-size: 19px; }
.about .rule-list p { margin-top: 6px; }
.about-bio { margin-top: 26px; max-width: 780px; color: var(--body); line-height: 1.7; }
.about-bio + .about-bio { margin-top: 16px; }
.about .btn { margin-top: 30px; }

.facts { margin-top: 24px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--navy); }

/* companies */
.logos { padding-block: 68px; }
.logo-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 64px; }
.logo-row span { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em; }

/* blog cards */
.post-list { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-list.is-stacked { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 820px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--rule); }
.is-stacked .post-card { padding-block: 32px; }
.is-stacked .post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.post-card h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--bronze); }
.post-card p { color: var(--body); }
.post-card .text-link { align-self: flex-start; margin-top: 4px; font-size: 15px; }
.empty { margin-top: 32px; color: var(--muted); }

/* closing CTA band */
.cta { background: var(--navy); color: #fff; padding-block: clamp(64px, 5vw + 30px, 84px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px 80px; flex-wrap: wrap; }
.cta-copy { max-width: 700px; min-width: 0; }
.cta h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.cta p { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--on-navy); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-actions .small { color: var(--on-navy); }
.cta-actions .small a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); overflow-wrap: anywhere; }

/* footer */
.site-footer { background: var(--navy); color: var(--on-navy); border-top: 1px solid var(--on-navy-rule); font-size: 15px; }
.footer-inner { padding-block: 44px 40px; display: flex; justify-content: space-between; gap: 40px 60px; flex-wrap: wrap; }
.footer-brand img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 4px; font-size: 14px; }
.footer-brand img + p { margin-top: 18px; }
.footer-cols { display: flex; gap: 32px 72px; flex-wrap: wrap; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.footer-base {
  padding-block: 20px 40px; border-top: 1px solid var(--on-navy-rule);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.panel h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); font-weight: 700; letter-spacing: -0.01em; }
.panel > p { margin-top: 10px; color: var(--body); }
.calendly-box { position: relative; margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 8px; }
/* The fallback sits behind the widget and is covered once Calendly's iframe paints.
   If the script is blocked, it is what the visitor sees instead of an empty box. */
.calendly-fallback {
  position: absolute; inset: 8px 0 0 0; z-index: 0;
  display: grid; place-content: center; align-content: center;
  margin: 0; padding: 24px; text-align: center; max-width: 34ch; margin-inline: auto;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}
.calendly-inline-widget { position: relative; z-index: 1; min-width: 280px; height: 720px; }
.email-line {
  margin-top: 20px; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--page); border: 1px solid var(--rule); border-radius: var(--radius);
}
.email-line code { font: 600 16px var(--font); color: var(--navy); overflow-wrap: anywhere; min-width: 0; }
.copy-btn {
  margin-left: auto; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  font: 500 14px var(--font); color: var(--navy); padding: 6px 12px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--navy); }
.panel .btn { margin-top: 20px; width: 100%; }
.checklist { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--body); font-size: 16px; }
.checklist li { padding-left: 20px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--bronze); }
.panel-sub { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.panel-sub h3 { font-size: 17px; font-weight: 600; }

.contact-jump { margin-top: 32px; }
.panel { scroll-margin-top: 96px; }
@media (min-width: 1081px) { .contact-jump { display: none; } }

/* single post */
.post { padding-block: clamp(48px, 5vw + 20px, 80px) var(--section); }
.post-inner { max-width: 720px; margin-inline: auto; }
.back { font-size: 15px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--navy); }
.post-header { margin-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.post-header h1 { margin-top: 16px; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.post-lede { margin-top: 20px; font-size: var(--step-lede); color: var(--body); }
.post-header .post-meta { margin-top: 20px; }

.prose { margin-top: 36px; font-size: 18px; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; font-weight: 600; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--navy); text-decoration-color: var(--bronze); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--bronze); }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--bronze); color: var(--navy); font-size: 1.1em; }
.prose img { border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2em; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); padding: 16px; font-size: 15px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 14px 8px 0; text-align: left; }

.post-end { margin-top: 56px; padding: clamp(24px, 3vw, 34px); background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--bronze); border-radius: var(--radius); }
.post-end h2 { font-size: 1.375rem; font-weight: 600; }
.post-end p { margin-top: 8px; color: var(--body); }
.post-end .btn { margin-top: 20px; }

/* 404 */
.not-found { min-height: 50vh; }
.not-found .btn-row { margin-top: 32px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .card-grid, .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > div:first-child { max-width: 640px; }
  .about { grid-template-columns: 280px minmax(0, 1fr); gap: 40px 48px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body, .page-root { font-size: 16px; }
  .stats-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { gap: 28px; }
  .card-grid, .post-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card { padding: 26px 24px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 340px; }
  .hero .btn-row .btn { flex: 1 1 220px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .prose { font-size: 17px; }
  .calendly-inline-widget { height: 1000px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
