/* EmaJen Financial Solutions — site styles */
:root {
  --navy: #2c3d6c;
  --navy-deep: #1c2849;
  --navy-ink: #141d36;
  --gold: #c9a24a;
  --gold-soft: #f4ead3;
  --sky: #e9eef8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #1f2433;
  --muted: #5b6275;
  --line: #e2e5ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 29, 54, 0.08);
  --max: 1160px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Lato", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--white); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy-deep); color: #dfe5f3; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy-ink); }
.btn--gold:hover { background: #d8b45f; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 40, 73, .97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #b9c3dd; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #dfe5f3; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: .9rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav .btn { margin-left: 10px; padding: 10px 18px; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 8px 20px 20px;
    display: none; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; border-radius: 999px; border-bottom: 0; }
}

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  background: var(--navy-deep);
}
.hero video, .hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,29,54,.92) 0%, rgba(28,40,73,.7) 45%, rgba(28,40,73,.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { font-size: 1.2rem; color: #dfe5f3; max-width: 580px; }
.hero .btn-row { margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: #b9c3dd; }

.page-hero { background: var(--navy-deep); color: #dfe5f3; padding: 84px 0 72px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,74,.28), transparent 70%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); max-width: 780px; }
.page-hero p { max-width: 680px; font-size: 1.12rem; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.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: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pain-list li {
  display: flex; gap: 14px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-weight: 700; color: var(--navy-ink);
}
.pain-list li::before {
  content: "✕"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fbe9e7; color: #b3422f;
  display: grid; place-items: center; font-size: .8rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* Service cards */
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card .more { margin-top: auto; font-family: var(--head); font-weight: 700; font-size: .9rem; text-decoration: none; }
.service-card .more::after { content: " →"; }

.service-detail { scroll-margin-top: 96px; }
.service-detail + .service-detail { margin-top: 96px; }
.service-detail ul { padding-left: 1.2em; color: var(--muted); }

/* Bio */
.bio { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.bio img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }
.bio .role { font-family: var(--head); font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.creds span { background: var(--sky); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; gap: 28px; } .bio img { max-width: 320px; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; align-items: center; }
.partners img { width: 100%; height: 64px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }
@media (max-width: 960px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* Steps timeline */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.2rem;
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper);
}
.step .card { padding: 24px 26px; }
.step .tag { font-family: var(--head); font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

.mini-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.mini-steps div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.mini-steps b { display: block; font-family: var(--head); color: var(--gold); font-size: .8rem; letter-spacing: .1em; }
.mini-steps span { font-family: var(--head); font-weight: 700; color: var(--navy-ink); }
@media (max-width: 960px) { .mini-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mini-steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #dfe5f3; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } .cta-band .btn-row { justify-content: flex-start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; }
.contact-list b { display: block; font-family: var(--head); color: var(--navy-ink); }
.contact-list a { text-decoration: none; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 24px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: .88rem; color: var(--navy-ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cdd2dd; border-radius: 10px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; gap: 10px; }
.ghl-form { min-height: 1000px; margin: 8px -12px 0; }
.ghl-form iframe { min-height: 1000px; display: block; }
.form-alt { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }
.check, .field label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-family: var(--body); font-weight: 400; color: var(--ink); margin: 0; }
.check input, .field .check input { margin: 4px 0 0; padding: 0; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.span-2 { grid-column: span 2; }
@media (max-width: 640px) { .span-2 { grid-column: auto; } }
.consent { font-size: .82rem; color: var(--muted); }
.form-status { font-weight: 700; padding: 12px 16px; border-radius: 10px; display: none; }
.form-status.is-ok { display: block; background: #e7f4ec; color: #1d6b3c; }
.form-status.is-err { display: block; background: #fbe9e7; color: #a13a2a; }
.req { color: #b3422f; }

/* Careers */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 2px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.photo-pair img:last-child { margin-top: 40px; }

/* Footer */
.site-footer { background: var(--navy-ink); color: #aab3c9; font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 64px 20px 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 48px 20px 32px; } .footer-top > div:first-child, .footer-top > div:last-child { grid-column: 1 / -1; } }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #dfe5f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { margin-bottom: 14px; }
.disclosures { border-top: 1px solid rgba(255,255,255,.08); padding: 32px 20px; font-size: .8rem; line-height: 1.6; color: #8f99b3; }
.disclosures p { margin-bottom: .8em; }
.disclosures .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.disclosures .links strong { color: #dfe5f3; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 20px; font-size: .8rem; color: #7b86a3; }

/* Reveal animation */
.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; }
  html { scroll-behavior: auto; }
}
