/* ============================================================
   Causevest FCZ — Institutional / Trust theme
   Plain CSS, no build step.
   ============================================================ */

:root {
  --navy:        #0B1F3A;
  --navy-800:    #10294B;
  --slate:       #1E3A5F;
  --slate-600:   #33517A;
  --gold:        #C9A96A;
  --gold-600:    #B4924E;
  --teal:        #2E7D6B;
  --teal-600:    #256456;
  --bg:          #FFFFFF;
  --bg-tint:     #F4F6F9;
  --bg-soft:     #F7F8FA;
  --ink:         #12181F;
  --ink-soft:    #40505F;
  --ink-muted:   #6B7A8A;
  --line:        #E2E6EC;
  --line-strong: #CDD5DF;
  --white:       #FFFFFF;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .05);
  --shadow-md: 0 6px 24px rgba(11, 31, 58, .08), 0 2px 6px rgba(11, 31, 58, .05);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, .14);

  --space-section: clamp(3.5rem, 7vw, 6.5rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--slate); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-600); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); background: var(--bg-soft); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(145deg, var(--navy), var(--slate));
  color: var(--gold); font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.wordmark-text { letter-spacing: -0.01em; }
.wordmark-suffix { color: var(--gold-600); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--navy); text-decoration: none; }

/* Animated gold underline indicator for the current section */
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.active:not(.btn) { color: var(--navy); font-weight: 600; }
.site-nav a.active:not(.btn)::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .site-nav a:not(.btn)::after { transition: none; }
}
.btn-nav {
  padding: .6rem 1.3rem; font-size: .95rem; font-weight: 700; color: var(--navy);
  box-shadow: 0 0 0 0 rgba(201, 169, 106, .7);
  animation: nav-cta-pulse 2.4s ease-out infinite;
}
.btn-nav:hover {
  color: var(--navy); background: var(--gold-600);
  transform: translateY(-1px) scale(1.03); animation: none;
  box-shadow: 0 6px 18px rgba(201, 169, 106, .5);
}
@keyframes nav-cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 169, 106, .65); }
  70%  { box-shadow: 0 0 0 12px rgba(201, 169, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 106, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-nav { animation: none; }
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; margin-right: -8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: var(--space-section); }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 760px; margin-bottom: 2.75rem; }
.section-head h2 { margin-bottom: .35rem; }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; margin-top: .75rem; }
.section-actions { margin-top: 2.25rem; }

.eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--teal-600); margin: 0 0 .75rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(201,169,106,.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(46,125,107,.28), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 55%, var(--slate) 100%);
}
.hero-inner { padding-block: clamp(4rem, 10vw, 8rem); max-width: 880px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,.85); max-width: 42ch; margin-bottom: 1.25rem; }
.hero-tagline { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold); font-style: italic; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   The Challenge
   ============================================================ */
.section-challenge { background: var(--bg-soft); }
.challenge-list {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem;
}
.challenge-list li {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; font-weight: 500; font-size: 1.05rem; box-shadow: var(--shadow-sm);
}
.challenge-list .x {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #FCEBEA; color: #C0392B; font-weight: 700; font-size: 1.1rem;
}
.challenge-answer { font-size: 1.35rem; font-family: var(--font-serif); color: var(--navy); }
.challenge-answer strong { color: #C0392B; }
.challenge-solution { max-width: 68ch; color: var(--ink-soft); font-size: 1.1rem; }

/* ============================================================
   Cards
   ============================================================ */
.card-grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card.industry { border-top: 3px solid var(--gold); }

/* ============================================================
   Pills (Who we work with)
   ============================================================ */
.pill-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.pill-grid li {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .7rem 1.4rem; font-weight: 500; color: var(--navy); box-shadow: var(--shadow-sm);
}

/* ============================================================
   Services (detail)
   ============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm); border-top: 3px solid var(--slate);
}
.service > p:first-of-type { color: var(--ink-soft); }
.service-label {
  font-family: var(--font-sans); font-weight: 600; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-600); margin: 1.25rem 0 .6rem;
}
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.service ul li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: .98rem; }
.service ul li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}
.service-deliverable {
  margin: 1.5rem 0 0; padding: 1rem 1.15rem; background: var(--bg-tint);
  border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .96rem;
}
.service-deliverable span {
  display: block; font-weight: 600; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy); margin-bottom: .25rem;
}

/* ============================================================
   Why Financial Resilience
   ============================================================ */
.section-why { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%); }
.why-narrative p { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; }
.pull-quote {
  margin: 2.5rem 0; padding: 2rem 2.25rem; border-left: 4px solid var(--gold);
  background: var(--navy); color: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4;
  box-shadow: var(--shadow-md);
}
.why-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
.why-col h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.why-col p { color: var(--ink-soft); }

.check-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700;
  width: 1.3rem; height: 1.3rem;
}

/* ============================================================
   Process
   ============================================================ */
.process-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: step;
}
.process-steps li {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.35rem; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--navy), var(--slate));
  color: var(--gold); font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem;
}
.process-steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.process-steps p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ============================================================
   Why Us (feature row)
   ============================================================ */
.feature-row { gap: 1.5rem; }
.feature { text-align: left; }
.feature h3 {
  font-size: 1.05rem; padding-bottom: .6rem; margin-bottom: .6rem;
  border-bottom: 2px solid var(--gold);
}
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.about-main p { color: var(--ink-soft); font-size: 1.08rem; }
.mission { margin-top: 2rem; padding: 1.75rem; background: var(--bg-tint); border-radius: var(--radius); border-left: 4px solid var(--teal); }
.mission h3 { margin-bottom: .35rem; }
.mission p { margin: 0; }

.about-principles {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-md);
}
.about-principles h3 { color: #fff; margin-bottom: 1.5rem; text-align: center; }
.principle-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem;
}
.principle-chips li {
  background: rgba(255,255,255,.08); border: 1px solid rgba(201,169,106,.35);
  color: var(--gold); border-radius: 999px; padding: .5rem 1.1rem; font-size: .92rem;
  font-weight: 500; text-align: center;
}
/* Force Innovation onto its own centred line -> inverted-triangle layout */
.principle-chips .chip-break {
  flex-basis: 100%; height: 0; padding: 0; margin: 0; background: none; border: 0;
}

/* ============================================================
   Contact
   ============================================================ */
.section-contact { background: var(--bg-tint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-intro p { color: var(--ink-soft); font-size: 1.05rem; }
.whats-included { margin: 1.75rem 0; padding: 1.5rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.whats-included h3 { margin-bottom: .75rem; }
.contact-direct { font-size: 1rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .4rem; }
.field .req { color: #C0392B; }
.field .opt { color: var(--ink-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,125,107,.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }

.form-note { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; margin: 0 0 1rem; }
.form-note.error { background: #FCEBEA; color: #A5281B; border: 1px solid #F1B7B0; }
.form-note.success { background: #E8F5F1; color: #1E5C4E; border: 1px solid #B7DED2; }
.form-hint { text-align: center; color: var(--ink-muted); font-size: .85rem; margin: .85rem 0 0; }

/* ============================================================
   Final CTA band
   ============================================================ */
.cta-band {
  color: #fff; text-align: center;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(201,169,106,.25), transparent 60%),
    linear-gradient(160deg, var(--slate) 0%, var(--navy) 100%);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin: 0 auto 2rem; color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.wordmark-footer { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; max-width: 32ch; margin-bottom: 1rem; }
.footer-email { color: var(--gold); font-weight: 500; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; }
.footer-bottom p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .why-columns { grid-template-columns: 1fr; gap: 1.75rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .btn-nav { margin-top: 1rem; border-bottom: 0 !important; }
  .wordmark-suffix { }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .pull-quote { padding: 1.5rem; }
  .hero-cta .btn { width: 100%; }
}
