/* Capital Strategy Consulting — design system
   Palette: navy-950 #0b1220, navy-900 #0f172a, orange-500 #f5871f, orange-600 #d9700f,
   slate-600 #475569, slate-500 #64748b, bg-alt #f5f7fb, border #e2e8f0
   Type: display "Space Grotesk", body "Inter"
   Signature: architectural blueprint grid + capitol-mark motif (ties to the existing logo) */

:root {
  --navy-950: #0b1220;
  --navy-900: #0f172a;
  --navy-800: #16213a;
  --orange-500: #f5871f;
  --orange-600: #d9700f;
  --orange-100: #fef1e2;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --bg-alt: #f5f7fb;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--navy-950);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--slate-600); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { color: var(--slate-600); padding-left: 1.25em; }
li { margin-bottom: .4em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange-500); display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--orange-500); color: var(--white); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy-900); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy-950); flex-shrink: 0; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--orange-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo .mark svg { width: 20px; height: 20px; }
.logo small { display: block; font-weight: 700; font-size: .6rem; letter-spacing: .14em; color: var(--slate-500); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 600; color: var(--slate-600); }
.nav-links a:hover { color: var(--navy-950); }
.nav-links a.active { color: var(--orange-600); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { font-weight: 700; font-size: .92rem; color: var(--navy-900); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 4px 0; }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; transform: translateX(100%); transition: transform .2s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: .85rem; }
  .phone-link { display: none; }
}

/* Hero / dark sections with blueprint grid signature */
.section-dark {
  background: var(--navy-950);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark p { color: #cbd5e1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* Breadcrumb */
.breadcrumb { font-size: .82rem; color: var(--slate-500); font-weight: 600; padding: 20px 0 0; }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb span.sep { margin: 0 6px; color: var(--slate-300); }

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-border-t { border-top: 1px solid var(--border); }
.lede { font-size: 1.15rem; color: var(--slate-600); max-width: 62ch; }

/* Grid cards (flexbox-based for broad rendering support) */
.grid { display: flex; flex-wrap: wrap; gap: 24px; }
.grid-2 > * { flex: 1 1 calc(50% - 12px); min-width: 260px; }
.grid-3 > * { flex: 1 1 calc(33.333% - 16px); min-width: 260px; }
.grid-4 > * { flex: 1 1 calc(25% - 18px); min-width: 220px; }
@media (max-width: 880px) { .grid-2 > *, .grid-3 > *, .grid-4 > * { flex: 1 1 100%; } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card-flat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.icon-box { width: 44px; height: 44px; border-radius: 11px; background: var(--orange-100); color: var(--orange-600); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon-box svg { width: 22px; height: 22px; }

.service-card { display: block; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(15,23,42,.25); }
.service-card, .service-card:hover { transition: transform .15s ease, box-shadow .15s ease; }
.service-card h3 { margin-bottom: 8px; }
.service-card .arrow { color: var(--orange-600); font-weight: 700; font-size: .88rem; margin-top: 14px; display: inline-block; }

/* Process steps */
.step { display: flex; gap: 20px; }
.step-num { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--orange-500); flex-shrink: 0; width: 48px; }

/* Pills / stat chips */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-size: .84rem; font-weight: 600; color: var(--slate-600); background: var(--white); }

/* Tables (pricing/engagements) */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--navy-900); font-weight: 500; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; color: var(--orange-600); font-weight: 700; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--border); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--navy-950); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--orange-500); font-size: 1.3rem; font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 12px; }

/* Article / blog content */
.prose { max-width: 74ch; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.1rem; }
.prose p, .prose ul, .prose ol { color: var(--slate-600); font-size: 1.02rem; }
.prose a { color: var(--orange-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .84rem; color: var(--slate-500); font-weight: 600; margin-bottom: 18px; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin: 24px 0 8px; border: 1px solid var(--border); }
.prose header > p:first-child { color: var(--orange-600); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 10px; }
.prose header h1 { margin-bottom: 12px; }
.prose header > p:nth-of-type(2) { font-size: 1.12rem; color: var(--slate-600); }
.prose header > div { font-size: .84rem; color: var(--slate-500); font-weight: 600; margin: 14px 0 22px; }
.prose header figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.prose header figure img { width: 100%; }
.prose section { margin-top: 2.2em; }
.prose section > div { margin-top: 1.4em; }
.cta-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px !important; }
.prose section a.btn { margin-top: 12px; }

.blog-card-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: center; justify-content: center; }
.blog-card-img svg { width: 40%; opacity: .9; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.blog-card .blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat { color: var(--orange-600); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.08rem; }
.blog-card p { flex: 1; font-size: .92rem; }
.blog-card .read { font-weight: 700; font-size: .85rem; color: var(--navy-950); margin-top: 8px; }

/* Testimonial / trust */
.quote-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote-card p.quote { color: var(--navy-900); font-size: 1.02rem; font-style: italic; }
.quote-attrib { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .86rem; color: var(--slate-500); font-weight: 600; }
.quote-attrib .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: "Space Grotesk", sans-serif; }

/* Contact form */
.form-grid { display: grid; gap: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy-900); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .96rem; color: var(--navy-900); background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--orange-500); outline-offset: 1px; border-color: var(--orange-500); }
.form-field.hp { position: absolute; left: -9999px; top: -9999px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-family: "Inter", sans-serif; font-weight: 700; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .82rem; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange-500); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.hero-badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badge { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); border-radius: 12px; padding: 14px 18px; font-size: .84rem; font-weight: 600; max-width: 240px; }
.hero-badge .cat { color: var(--orange-500); font-weight: 700; font-size: .72rem; text-transform: uppercase; display: block; margin-bottom: 4px; }
