/* EligenIQ — operations consulting. Precise, uncluttered, navy + blue.
   Brand hex values were sampled directly from the client's logo PNG:
   navy #001E57, blue #006BA2. Everything else is a neutral derived from navy. */

:root {
  /* Brand (sampled from logo) */
  --navy: #001E57;
  --blue: #006BA2;

  /* Derived */
  --navy-deep: #00153F;      /* hover/pressed for navy */
  --blue-deep: #005685;      /* link hover on white */
  --blue-tint: #E8F2F8;      /* featured surfaces */
  --text: #2B3A5A;
  --muted: #566480;
  --surface: #F4F7FB;
  --border: #D9E1EC;
  --white: #FFFFFF;
  --error: #B42318;
  --success: #067647;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --radius: 8px;
  --radius-sm: 6px;
  --container: 1120px;
  --header-h: 72px;
}

*, *::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: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--navy); margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
a:hover { color: var(--blue-deep); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }

.skip-link {
  position: absolute; left: var(--s-4); top: -64px; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px var(--s-5); min-height: 48px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 10px var(--s-4); font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav-links { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: var(--header-h); }
.section { padding: var(--s-9) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: var(--s-3);
}
.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head p { margin-top: var(--s-4); color: var(--muted); font-size: 18px; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-9) 0 var(--s-8); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-8); align-items: center; }
.hero h1 { margin-bottom: var(--s-5); }
.hero-lede { font-size: 20px; line-height: 1.55; color: var(--text); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.hero-actions .btn-primary { min-height: 52px; padding: 16px var(--s-6); }
.hero-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: var(--s-7) var(--s-6); display: flex; align-items: center; justify-content: center;
}
.hero-panel img { width: 100%; max-width: 380px; }

/* ---------- Conditions ("Growing. Changing...") ---------- */
.conditions { padding: var(--s-8) 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.conditions h2 { margin-bottom: var(--s-6); max-width: 680px; }
.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.cond { border-top: 2px solid var(--navy); padding-top: var(--s-4); }
.cond-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--s-2); }
.cond p { color: var(--navy); font-size: 17px; line-height: 1.45; font-weight: 500; }
.cond-close { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.cond-close p { font-size: 18px; color: var(--text); max-width: 640px; }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3);
}
.card-num { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--blue); font-variant-numeric: tabular-nums; }
.card p { color: var(--muted); font-size: 15px; }

.also-offered { margin-top: var(--s-6); color: var(--muted); font-size: 15px; max-width: 720px; }
.also-offered strong { color: var(--navy); font-weight: 600; }

/* ---------- Approach ---------- */
.approach-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: center; margin-bottom: var(--s-8); }
.approach-top .section-head { margin-bottom: 0; }
.motif-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); align-items: center;
}
.motif-panel img { width: 100%; max-width: 300px; }
.motif-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); width: 100%; max-width: 300px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 500; }
.motif-key span:nth-child(1) { text-align: left; }
.motif-key span:nth-child(3) { text-align: right; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); counter-reset: step; position: relative; }
.step { position: relative; padding-top: var(--s-7); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 32px; height: 32px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm); font-variant-numeric: tabular-nums;
}
.step::after { /* connector, echoing the line between the three shapes in the logo */
  content: ""; position: absolute; top: 15px; left: 40px; right: -8px; height: 2px; background: var(--border);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.approach-note { margin-top: var(--s-7); font-size: 18px; color: var(--navy); font-weight: 500; max-width: 640px; }

/* ---------- Industries ---------- */
.industry-feature {
  background: var(--blue-tint); border: 1px solid #C9DFEC; border-radius: 12px;
  padding: var(--s-7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); margin-bottom: var(--s-5);
}
.industry-feature h3 { font-size: 24px; margin-bottom: var(--s-3); }
.industry-feature p { color: var(--text); }
.industry-feature .eyebrow { margin-bottom: var(--s-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); align-content: start; }
.checklist li { position: relative; padding-left: var(--s-6); color: var(--navy); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border: 2px solid var(--blue); border-radius: 4px;
  background: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2 4 7.5 8.5 2.5' fill='none' stroke='%23006BA2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; }
.contact-copy p { margin-top: var(--s-4); color: var(--muted); font-size: 18px; }
.next-steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: ns; }
.next-steps li { position: relative; padding-left: var(--s-7); color: var(--text); font-size: 16px; counter-increment: ns; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: -2px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--navy); color: var(--navy); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
}
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: var(--s-6); }
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: var(--s-2); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy);
  padding: 12px var(--s-4); background: var(--white);
  border: 1px solid #B8C4D6; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 144px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #7A869C; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 107, 162, .2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field-row .field { margin-bottom: var(--s-5); }
.form-status { display: none; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-size: 15px; margin-bottom: var(--s-4); border: 1px solid; }
.form-status.is-error:not([hidden]) { display: block; color: var(--error); background: #FEF3F2; border-color: #FDA29B; }
.form-note { margin-top: var(--s-4); font-size: 13px; color: var(--muted); }
.form-card .btn-primary { width: 100%; min-height: 52px; }

.footer-copy a { margin-left: var(--s-3); }
.proof { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid #C9DFEC; color: var(--navy); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--s-7) 0; background: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.footer-brand img { height: 24px; width: auto; }
.footer-tag { font-size: 14px; color: var(--muted); margin-top: var(--s-2); }
.footer-copy { font-size: 14px; color: var(--muted); }

/* ---------- Thank-you ---------- */
.thanks { padding: var(--s-9) 0; min-height: calc(100vh - var(--header-h) - 160px); }
.thanks-inner { max-width: 640px; }
.thanks h1 { margin-bottom: var(--s-5); font-size: clamp(32px, 4.4vw, 44px); }
.thanks p { font-size: 18px; color: var(--text); margin-bottom: var(--s-4); }
.thanks .btn { margin-top: var(--s-5); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-6); }
  .step:nth-child(3)::after { display: none; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); }
}
@media (max-width: 880px) {
  .section { padding: var(--s-8) 0; }
  .hero { padding: var(--s-8) 0 var(--s-7); }
  .hero-grid, .approach-top, .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-panel { order: -1; padding: var(--s-5); }
  .hero-panel img { max-width: 280px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-feature { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 var(--s-4); }
  .card-grid, .cond-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 var(--s-5) var(--s-7); }
  .step::after { top: 36px; bottom: 4px; left: 15px; right: auto; width: 2px; height: auto; }
  .step:nth-child(3)::after { display: block; }
  .step:last-child::after { display: none; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: var(--s-5); }
  .brand img { height: 24px; }
}

/* ---------- Legal / policy pages ---------- */
.policy { padding: var(--s-8) 0 var(--s-9); }
.policy-inner { max-width: 720px; }
.policy h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: var(--s-3); }
.policy .updated { color: var(--muted); font-size: 14px; margin-bottom: var(--s-6); }
.policy h2 { font-size: 22px; margin: var(--s-6) 0 var(--s-3); }
.policy p { margin-bottom: var(--s-4); }
