/* ============================================================
   EJCKONSULT — Clean corporate trust
   Brand palette lives in these variables. To apply your real
   brand colours, edit the four --brand-* values below.
   ============================================================ */
:root {
  --brand-navy:   #16244C;  /* primary / headings — harmonised with logo blue */
  --brand-blue:   #4A66C9;  /* accent / buttons / links — matched to logo */
  --brand-blue-d: #3A52A8;  /* hover */
  --brand-ink:    #1F2937;  /* body text */

  --muted:   #5B6B7F;
  --line:    #E3E9F0;
  --bg:      #FFFFFF;
  --surface: #F5F8FC;
  --surface-2: #EEF3FA;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,37,69,.06), 0 12px 32px rgba(11,37,69,.08);
  --shadow-sm: 0 1px 2px rgba(11,37,69,.06), 0 4px 14px rgba(11,37,69,.06);
  --container: 1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--brand-ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3, h4 { color: var(--brand-navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-d); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand-navy); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; border-radius: 4px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand-blue); color: #fff; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-blue-d); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--brand-navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--brand-navy); }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand-blue); margin: 0 0 .6rem; }
.accent { color: var(--brand-blue); }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: baseline; font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; color: var(--brand-navy); }
.brand-mark { color: var(--brand-blue); }
.brand-name { color: var(--brand-navy); }
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--brand-navy); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--brand-blue); }
.nav-links .btn { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-navy); border-radius: 2px; transition: .2s; }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 12px 8px; color: var(--brand-navy); font-weight: 500; border-radius: 8px; }
.mobile-nav a:hover { background: var(--surface); }
.mobile-nav .btn { color: #fff; margin-top: 6px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--surface) 0%, #fff 70%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 88px 24px 64px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; margin: 0 0 1.2rem; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-trust { font-weight: 600; color: var(--brand-navy); letter-spacing: .02em; }

.hero-panel { background: var(--brand-navy); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .96rem; }
.panel-row:last-of-type { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: #34D399; }
.dot.live { background: #38BDF8; box-shadow: 0 0 0 0 rgba(56,189,248,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,189,248,.5);} 70% { box-shadow: 0 0 0 10px rgba(56,189,248,0);} 100%{box-shadow:0 0 0 0 rgba(56,189,248,0);} }
.panel-meter { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; margin: 18px 0 8px; overflow: hidden; }
.panel-meter span { display: block; height: 100%; width: 86%; background: linear-gradient(90deg,#38BDF8,#34D399); border-radius: 99px; }
.panel-caption { font-size: .78rem; color: rgba(255,255,255,.5); margin: 0; text-align: right; }

.trust-bar { border-top: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding: 22px 24px; }
.trust-inner span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 86px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: .8rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 54ch; margin: 0 auto 2.6rem; }
.center.section-sub { margin-left: auto; margin-right: auto; }

/* ── Service cards ───────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9D8EC; }
.card-icon { font-size: 1.7rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--brand-ink); font-size: .94rem; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); }
.card-feature { border-color: #BFD3F2; box-shadow: 0 1px 2px rgba(11,37,69,.06), 0 16px 40px rgba(37,99,235,.12); }
.card-feature .card-icon { background: var(--brand-blue); }

/* ── About ───────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 28px; }
.stat strong { display: block; color: var(--brand-navy); font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: .86rem; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.about-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--brand-ink); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--brand-blue); color: #fff; border-radius: 50%; font-size: .72rem; display: grid; place-items: center; }

/* ── Approach steps ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 1rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step-no { font-size: 1.5rem; font-weight: 800; color: var(--brand-blue); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ── Contact ─────────────────────────────────────────── */
.section-contact { background: var(--brand-navy); color: #fff; }
.section-contact .section-title, .section-contact .eyebrow { color: #fff; }
.section-contact .eyebrow { color: #7FB2FF; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy p { color: rgba(255,255,255,.75); }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list span { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: #7FB2FF; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--brand-navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--brand-ink); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #fff; }
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note { font-size: .9rem; margin: 12px 0 0; min-height: 1.2em; }
.form-note.ok { color: #047857; }
.form-note.err { color: #B91C1C; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: #07182E; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-size: 1.3rem; }
.footer-brand .brand-name { color: #fff; }
.footer-tag { margin-top: 12px; font-size: .92rem; color: rgba(255,255,255,.55); max-width: 28ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); padding: 5px 0; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-loc { color: rgba(255,255,255,.55); font-size: .94rem; margin: 5px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-bottom p { margin: 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav[data-open="true"] { display: flex; }
  .hero-grid { padding-top: 56px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
