/* Elly Group site styles
   Layout idea: left-aligned, wide navy type on white, ruled lists instead of cards,
   one bold element per page (the claim path on the home page). */
:root {
  color-scheme: light;
  --navy: #191D74;        /* Principal Navy */
  --blue: #454BE8;        /* Charter Blue */
  --sky: #7BD8F9;         /* Perspective Sky */
  --mist: #C1E5FD;        /* Ledger Mist */
  --paper: #FFFFFF;
  --wash: #F3F8FE;        /* pale mist for alternating sections */
  --ink: #14163F;         /* body text, navy-biased */
  --muted: #4E5383;
  --rule: #D5DEF2;
  --font-display: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--sky); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); }
h3 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); max-width: 54ch; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(56px, 9vw, 112px) 0; }
.band-wash { background: var(--wash); }
.band-navy { background: var(--navy); color: #E4EAFF; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a { color: var(--sky); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--mist); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; }
/* Charter Blue is the brand's call-to-action color */
.btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--wash); color: var(--navy); }
.nav a.btn { padding: 10px 18px; border: 2px solid var(--blue); color: #fff; }
.nav a.btn:hover { border-color: var(--navy); }
.band-navy .btn-solid { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.band-navy .btn-solid:hover { background: #fff; border-color: #fff; color: var(--navy); }
.band-navy .btn-line { border-color: #8E96E8; color: #fff; }
.band-navy .btn-line:hover { background: rgba(255,255,255,.08); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.tm { font-size: .32em; vertical-align: top; position: relative; top: .5em; letter-spacing: 0; font-weight: 600; }

/* Claim path: the one bold element */
/* The one place the navy-to-blue brand gradient is used */
.path { background: linear-gradient(150deg, var(--navy) 45%, #2D33A8 100%); color: #DDE4FF; border-radius: 20px; padding: clamp(22px, 3vw, 34px); }
.path-title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 0 4px; letter-spacing: -0.01em; }
.path-sub { font-size: .9375rem; color: #AEB8F2; margin-bottom: 18px; }
.path ol { list-style: none; margin: 0; padding: 0; }
.path li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 16px; padding: 0 0 18px; position: relative; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); margin: 7px 0 0 5px; }
.path li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: -4px; width: 2px; background: #3A40A8; }
.path li:last-child::after { display: none; }
.path li:last-child::before { background: #fff; box-shadow: 0 0 0 4px rgba(123,216,249,.35); }
.path-step { font-weight: 600; color: #fff; }
.path-leak { font-size: .9375rem; color: #C3CBF7; display: block; }

/* Ruled lists (services, signs) */
.rows { border-top: 2px solid var(--navy); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.row p { color: var(--muted); }
.row h3 a { color: var(--navy); text-decoration: none; }
.row h3 a:hover { color: var(--blue); text-decoration: underline; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 64px; align-items: start; }

/* Steps: Audit, Optimize, Monitor is a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--sky); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; line-height: 1; color: var(--sky); }
.steps p { color: #C9D1FA; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; max-width: 60ch; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); transform-origin: center; margin-top: -3px; }

/* Pillars and starting points */
.band-rule { padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--rule); }
.pillars, .starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.pillars .stack, .starts .stack { gap: 10px; }
.pillars .stack { border-top: 3px solid var(--sky); padding-top: 18px; }
.pillars p { color: var(--muted); }
.starts .stack { border-top: 2px solid var(--sky); padding-top: 18px; }
.starts p { color: #C9D1FA; }

.steps-light li { border-top-color: var(--blue); }
.steps-light li::before { color: var(--blue); }
.steps-light p { color: var(--muted); }
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1.5px solid var(--mist); background: var(--wash); color: var(--navy); font-weight: 500; font-size: .9375rem; padding: 8px 14px; border-radius: 999px; }
#experience .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Page intro */
.page-intro { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.page-intro h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); max-width: 18ch; }
.page-intro .stack { gap: 22px; }

/* Service detail */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; padding: clamp(32px, 5vw, 52px) 0; border-top: 1px solid var(--rule); align-items: start; }
.service:first-of-type { border-top: 2px solid var(--navy); }
.service .stack p { color: var(--muted); }
.included { background: var(--wash); border-radius: 16px; padding: 24px 26px; }
.included h4 { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; color: var(--navy); margin: 0 0 14px; }
.included .ticks { gap: 10px; font-size: 1rem; }

.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.qa div { display: flex; flex-direction: column; gap: 8px; }
.qa p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; }
form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { font-weight: 600; font-size: .9375rem; color: var(--navy); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #AEB6DA; border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--mist); border-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.note { font-size: .9375rem; color: var(--muted); }
.phi { border-left: 4px solid var(--blue); background: var(--wash); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .9375rem; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status[data-state="ok"] { color: #0B6B43; }
.form-status[data-state="err"] { color: #A3261C; }
.side { display: flex; flex-direction: column; gap: 28px; }
.side > div { border-top: 2px solid var(--navy); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.side p { color: var(--muted); }
.big-link { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--navy); overflow-wrap: anywhere; }

/* Footer */
.site-foot { background: var(--navy); color: #C9D1FA; padding: 48px 0 36px; font-size: .9375rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-foot a { color: #fff; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; max-width: 36ch; }
.foot-brand img { height: 32px; width: auto; margin-bottom: 6px; align-self: flex-start; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-legal { width: 100%; border-top: 1px solid #3A40A8; padding-top: 20px; color: #AEB8F2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Scorecard checkboxes and legal text */
.checks { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.checks legend { font-weight: 600; font-size: .9375rem; color: var(--navy); padding: 0; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 1rem; color: var(--ink); }
.check input { width: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--blue); }
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 1.5rem; margin-top: 22px; }
.prose p { max-width: 68ch; }

@media (max-width: 860px) {
  #experience .split, .hero-grid, .split, .row, .service, .contact-grid, .qa { grid-template-columns: minmax(0, 1fr); }
  .steps, .pillars, .starts { grid-template-columns: minmax(0, 1fr); }
  .row { gap: 8px; padding: 22px 0; }
}
@media (max-width: 520px) {
  .field-pair, .checks { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 4px 18px; }
  .actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
