/* CFO Sources — design system matched to the firm's real brand identity:
   teal/navy + amber accent (from their logo mark), Dosis headings (open Google Font),
   black pill buttons. Layout/code original; no vendor template assets reused. */
@import url('https://fonts.googleapis.com/css?family=Dosis:400,500,600,700,800&display=swap');

:root {
  --teal-900: #0d3346;
  --teal-800: #124a63;
  --teal-700: #17607e;
  --teal-500: #2891b3;
  --teal-300: #6bc0da;
  --amber-500: #f2a71b;
  --amber-600: #d98f0c;
  --ink: #16232c;
  --ink-soft: #55636d;
  --paper: #ffffff;
  --paper-alt: #f4f7f8;
  --line: #e2e8ea;
  --radius: 12px;
  --shadow: 0 16px 34px -20px rgba(13, 51, 70, 0.4);
  --display: "Dosis", var(--sans);
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal-900); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); color: var(--teal-900); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--teal-700); }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-600); font-weight: 700; margin: 0 0 0.7em;
}

/* Topbar */
.topbar { background: var(--amber-500); color: #2a1c00; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 22px; padding: 7px 24px; font-size: 0.82rem; font-weight: 600; }
.topbar-inner a { color: #2a1c00; text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; display: block; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.94rem; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { border-color: var(--amber-500); color: var(--teal-900); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--teal-900); display: block; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; border: 2px solid transparent; letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--amber-500); color: #241800; }
.btn-primary:hover { background: var(--amber-600); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { border-color: #fff; color: #fff; margin-left: 10px; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--teal-900); }
.site-nav a.btn-header { background: var(--ink); color: #fff; padding: 10px 22px; }
.site-nav a.btn-header:hover { background: var(--teal-900); }

/* Hero */
.hero { background: linear-gradient(155deg, var(--teal-900) 0%, var(--teal-700) 62%, var(--teal-500) 100%); color: #fff; position: relative; overflow: hidden; }
.hero-skyline { position: absolute; inset: auto 0 0 0; height: 42%; opacity: 0.9; }
.hero-skyline svg { position: absolute; bottom: -1px; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 420px at 92% 4%, rgba(242,167,27,0.4), transparent 68%);
}
.hero-inner { position: relative; padding: 88px 24px 150px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--amber-500); }
.hero h1 { color: #fff; }
.hero-sub { color: #d7ecf4; font-size: 1.08rem; max-width: 560px; }
.hero-cta { margin-top: 28px; }

.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.4);
}
.hero-card h3 { color: var(--teal-900); margin-bottom: 4px; }
.hero-card p { font-size: 0.88rem; margin-bottom: 16px; }
.hero-field { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; font-size: 0.92rem; font-family: var(--sans); }
.hero-card .btn-primary { width: 100%; text-align: center; margin-top: 4px; }

/* Quick-link row */
.quicklinks { background: var(--paper-alt); border-bottom: 1px solid var(--line); position: relative; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quicklink {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 18px 12px; color: #fff; font-weight: 700; font-size: 0.86rem; text-decoration: none;
  background: var(--teal-800); border-right: 1px solid rgba(255,255,255,0.12);
}
.quicklink:last-child { border-right: none; }
.quicklink:hover { background: var(--teal-700); }
.quicklink svg { width: 18px; height: 18px; flex: none; }

/* Credibility strip */
.credibility-strip { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.credibility-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 22px 24px; }
.credibility-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: 0.86rem; font-weight: 700; color: var(--teal-900);
}
.credibility-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); }

/* Stat strip */
.stat-strip { background: var(--paper); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 24px 0; text-align: center; }
.stat-num { display: block; font-family: var(--display); font-size: 2.7rem; color: var(--teal-900); font-weight: 800; }
.stat-label { display: block; color: var(--ink-soft); font-size: 0.88rem; margin-top: 4px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }
.section-sub { max-width: 660px; font-size: 1.06rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.card-grid { display: grid; gap: 22px; margin: 36px 0; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: left; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; font-size: 0.95rem; }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.process-num {
  font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--paper-alt);
  -webkit-text-stroke: 2px var(--amber-500); display: block; margin-bottom: 6px; line-height: 1;
}
.process-step h3 { margin-bottom: 0.3em; }
.process-step p { font-size: 0.95rem; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: 0.9rem; color: var(--teal-900);
}

.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.team-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.avatar {
  width: 64px; height: 64px; margin: 0 0 14px; border-radius: 10px;
  background: var(--teal-800); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.3rem; font-weight: 800;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.team-title { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

.contact-line { margin-bottom: 1.4em; }
.contact-card { background: var(--teal-900); color: #fff; padding: 34px; border-radius: var(--radius); }
.contact-card h3 { color: #fff; }
.contact-card p { color: #cfe6ef; }
.contact-card .btn-ghost { border-color: #fff; color: #fff; margin-left: 0; margin-top: 10px; display: block; width: fit-content; }
.contact-card .btn-ghost:hover { background: #fff; color: var(--teal-900); }

.cta-band { background: var(--ink); color: #fff; }
.cta-inner { padding: 60px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin: 0; max-width: 560px; }

/* Footer */
.site-footer { background: var(--teal-900); color: #b9d6e0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 60px 24px 32px; align-items: start; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { color: #8fb3c1; margin-top: 10px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col p, .footer-col a { color: #b9d6e0; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--amber-500); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 24px; font-size: 0.82rem; color: #7ba1b0; }

@media (max-width: 880px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-3, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
  .quicklink { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 62px 0 0 0; background: var(--paper); flex-direction: column;
    align-items: flex-start; padding: 24px; gap: 20px; transform: translateY(-110%);
    transition: transform .2s ease; border-top: 1px solid var(--line);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .process-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .quicklinks-grid { grid-template-columns: 1fr; }
}
