/* ==========================================================================
   EC Operations — site styles
   Brand: Deep Navy #17324D · Charcoal #2B2F33 · Warm White #F8F9F7
          Slate Blue #4F6D8A · Dark Charcoal #222222
   Type:  IBM Plex Sans (400 body · 500 nav/buttons · 600 subheads · 700 heads)
   Mobile-first. Desktop rules live in the media queries at the bottom.
   ========================================================================== */

:root {
  /* Color */
  --navy: #17324D;
  --navy-dark: #0F2438;
  --charcoal: #2B2F33;
  --dark-charcoal: #222222;
  --warm-white: #F8F9F7;
  --slate: #4F6D8A;
  --white: #FFFFFF;
  --tint: #ECEFF1;         /* header + hero band */
  --tint-warm: #F1F2EF;    /* "Why EC Operations" band */
  --hairline: rgba(23, 50, 77, 0.12);
  --hairline-strong: rgba(23, 50, 77, 0.18);
  --on-navy: rgba(248, 249, 247, 0.86);
  --on-navy-muted: rgba(248, 249, 247, 0.62);

  /* Spacing */
  --gutter: 20px;
  --container: 1160px;
  --section-y: clamp(64px, 9vw, 116px);
  --header-h: 70px;

  /* Type */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-h1: clamp(36px, 6.4vw, 62px);
  --fs-h2: clamp(28px, 4vw, 42px);
  --fs-h2-lg: clamp(28px, 4.4vw, 46px);
  --fs-lead: clamp(17px, 1.9vw, 19px);
  --fs-body: 16px;
  --fs-eyebrow: 12px;

  /* Shape */
  --radius: 4px;
  --radius-card: 6px;
  --shadow-card: 0 1px 2px rgba(23, 50, 77, 0.05);
  --shadow-feature: 0 8px 24px rgba(23, 50, 77, 0.14);
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--slate); }
::selection { background: var(--navy); color: var(--warm-white); }

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--warm-white);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; position: fixed; color: var(--warm-white); }

/* --- Buttons & links ----------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  padding: 17px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.btn-primary { background: var(--navy); border-color: var(--navy); color: var(--warm-white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--warm-white); }
.btn-inverse { background: var(--warm-white); border-color: var(--warm-white); color: var(--navy); margin-top: 32px; }
.btn-inverse:hover { background: var(--white); color: var(--navy); }
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.link-underline {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid rgba(23, 50, 77, 0.35);
  padding-bottom: 3px;
}
.link-underline:hover { color: var(--slate); border-bottom-color: var(--slate); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tint);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo img { height: 28px; width: auto; }
.logo-rule { display: block; width: 1px; height: 22px; background: rgba(23, 50, 77, 0.28); }
.logo-word {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--navy);
  white-space: nowrap;
}

.nav-desktop { display: none; align-items: center; gap: 34px; }
.nav-desktop a { font-size: 15px; font-weight: 500; color: var(--charcoal); }
.nav-desktop a.btn-primary { color: var(--warm-white); }
.nav-mobile a.btn-primary { color: var(--warm-white); }
.nav-desktop a:not(.btn) { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-desktop a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--slate); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(23, 50, 77, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--navy); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: var(--tint);
  border-top: 1px solid rgba(23, 50, 77, 0.10);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) {
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 16px 0;
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
}
.nav-mobile .btn { margin-top: 20px; }

/* --- Sections ------------------------------------------------------------ */

.section { padding: var(--section-y) 0; border-bottom: 1px solid rgba(23, 50, 77, 0.08); }
.section-light { background: var(--warm-white); }
.section-tint { background: var(--tint-warm); }
.section-navy { background: var(--navy); color: var(--warm-white); border-bottom: 0; }
.section-center { text-align: center; padding: clamp(72px, 10vw, 124px) 0; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--on-navy-muted); margin-bottom: 22px; }

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 15ch;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}
.h2-narrow { max-width: 18ch; }
.h2-tight { max-width: 14ch; }
.h2-wide { max-width: 22ch; }
.h2-center { font-size: var(--fs-h2-lg); color: var(--warm-white); max-width: 20ch; margin: 0 auto; }
.h2-cta { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; color: var(--warm-white); max-width: 16ch; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--charcoal);
  max-width: 54ch;
  text-wrap: pretty;
}
.lead-light { color: var(--on-navy); max-width: 48ch; margin-top: 24px; }
.lead-center { margin: 26px auto 0; max-width: 60ch; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }

.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-body { padding-top: 6px; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid rgba(23, 50, 77, 0.14);
  border-top: 3px solid var(--navy);
}
.hero-rules {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(23, 50, 77, 0.10) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero-mark {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  height: min(88vh, 680px);
  width: auto;
  max-width: none;
  opacity: 0.08;
  pointer-events: none;
}
.hero-inner { position: relative; padding-top: clamp(72px, 11vw, 132px); padding-bottom: clamp(64px, 9vw, 112px); }
.hero .eyebrow { margin-bottom: 24px; }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero-services {
  margin-top: clamp(48px, 7vw, 76px);
  padding-top: 22px;
  border-top: 1px solid rgba(23, 50, 77, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}
.hero-services span { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--slate); }

/* --- Problem list -------------------------------------------------------- */

.rule-list { list-style: none; padding: 0; margin-top: 32px; }
.rule-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(23, 50, 77, 0.14);
  font-size: 15px;
  color: var(--charcoal);
}

/* --- Solution cards ------------------------------------------------------ */

.cards {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--slate);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3.4vw, 38px);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 18px; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.card-headline { margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--charcoal); }
.card-copy { margin-top: 16px; font-size: var(--fs-body); line-height: 1.65; color: var(--charcoal); text-wrap: pretty; }

.card-feature {
  background: var(--navy);
  border-color: var(--navy);
  border-top-color: var(--slate);
  box-shadow: var(--shadow-feature);
  padding: clamp(30px, 3.6vw, 42px);
}
.card-feature h3, .card-feature .card-headline { color: var(--warm-white); }
.card-feature .card-label { color: rgba(248, 249, 247, 0.68); }
.card-feature .card-copy { color: rgba(248, 249, 247, 0.88); }

/* --- Why ----------------------------------------------------------------- */

.pullquote {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 2px solid var(--slate);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  max-width: 40ch;
}

/* --- How it works -------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.steps li { border-top: 1px solid var(--hairline-strong); padding-top: 24px; }
.step-num { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--slate); }
.steps h3 { margin-top: 16px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.steps p { margin-top: 12px; font-size: var(--fs-body); line-height: 1.65; color: var(--charcoal); text-wrap: pretty; }

/* --- Consultation form --------------------------------------------------- */

.form-panel {
  background: var(--warm-white);
  border-radius: var(--radius-card);
  padding: clamp(26px, 3.4vw, 40px);
  color: var(--charcoal);
}
.form-panel h3 { font-size: 20px; font-weight: 700; color: var(--navy); }
.form-intro { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--charcoal); }

.field-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { margin-top: 18px; }
.field label,
.radio-set legend {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding: 0;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark-charcoal);
  background: var(--white);
  border: 1px solid rgba(23, 50, 77, 0.24);
  border-radius: var(--radius);
  padding: 13px 14px;
  min-height: 48px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--slate); outline-offset: 1px; }

.radio-set { margin: 22px 0 0; padding: 0; border: 0; }
.radio-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.radio-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--charcoal);
  min-height: 44px;
  cursor: pointer;
}
.radio-row input { width: 18px; height: 18px; accent-color: var(--navy); }

#form-submit { margin-top: 26px; min-height: 52px; }
.form-consent { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--slate); }
.form-consent a { color: var(--navy); border-bottom: 1px solid rgba(23, 50, 77, 0.3); }
.form-consent a:hover { color: var(--slate); border-bottom-color: var(--slate); }
.form-error { margin-top: 14px; font-size: 14px; line-height: 1.55; color: #9B2C2C; }
.form-error[hidden] { display: none; }
.form-success { min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 22px; }
.form-success p { margin-top: 14px; font-size: 16px; line-height: 1.65; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--dark-charcoal); color: rgba(248, 249, 247, 0.72); }
.footer-grid {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(28px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.logo-footer { height: auto; }
.logo-footer img { height: 26px; }
.logo-footer .logo-rule { background: rgba(248, 249, 247, 0.28); height: 20px; }
.logo-footer .logo-word { font-size: 13px; color: var(--warm-white); }
.footer-mission { margin-top: 20px; font-size: 15px; line-height: 1.6; max-width: 34ch; }

.footer-nav { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-nav a { font-size: 15px; color: rgba(248, 249, 247, 0.78); }
.footer-nav a:hover { color: var(--warm-white); }
.footer-cta {
  font-weight: 500;
  color: var(--warm-white) !important;
  border-bottom: 1px solid rgba(248, 249, 247, 0.4);
  padding-bottom: 2px;
}

.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-contact-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 249, 247, 0.5);
  margin-bottom: 2px;
}
.footer-contact a { font-size: 15px; color: rgba(248, 249, 247, 0.78); }
.footer-contact a:hover { color: var(--warm-white); }

.footer-bottom {
  padding-top: 22px;
  padding-bottom: clamp(36px, 4vw, 48px);
  border-top: 1px solid rgba(248, 249, 247, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: flex-start;
}
.footer-bottom p { font-size: 13px; color: rgba(248, 249, 247, 0.55); }
.footer-legal { margin-left: auto; }
.footer-legal a { font-size: 13px; color: rgba(248, 249, 247, 0.72); border-bottom: 1px solid rgba(248, 249, 247, 0.28); padding-bottom: 1px; }
.footer-legal a:hover { color: var(--warm-white); border-bottom-color: var(--warm-white); }

/* --- Legal pages --------------------------------------------------------- */

.legal-hero {
  background: var(--tint);
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid rgba(23, 50, 77, 0.14);
  padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 6vw, 60px);
}
.legal-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 20ch;
}
.legal-date { margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--slate); }

.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-intro { font-size: var(--fs-lead); line-height: 1.68; color: var(--charcoal); text-wrap: pretty; }
.legal h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  max-width: none;
}
.legal p { margin-top: 16px; font-size: var(--fs-body); line-height: 1.7; color: var(--charcoal); text-wrap: pretty; }
.legal ul { margin-top: 16px; padding-left: 0; list-style: none; }
.legal ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--charcoal);
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--slate);
}
.legal-emphasis { font-weight: 600; color: var(--navy) !important; }
.legal-contact {
  margin-top: 20px;
  padding: 22px 24px;
  background: var(--tint-warm);
  border-left: 2px solid var(--slate);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-contact p { margin-top: 4px; }
.legal-contact p:first-child { margin-top: 0; }
.legal-contact-name { font-weight: 600; color: var(--navy) !important; }
.legal-contact a { border-bottom: 1px solid rgba(23, 50, 77, 0.3); padding-bottom: 1px; }
.legal-contact a:hover { border-bottom-color: var(--slate); }

/* --- Breakpoints --------------------------------------------------------- */

@media (min-width: 700px) {
  .split { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
