/* ABM Management Consultancies — v2
   Red / White / Black — editorial corporate */

:root {
  /* Light palette (also default when no theme stamped) */
  --white: #FFFFFF;
  --surface: #FAFAFA;
  --surface-2: #F3F3F3;
  --surface-3: #EAEAEA;
  --ink: #0E0E0E;
  --ink-2: #1E1E1E;
  --ink-soft: #383838;
  --ink-mute: #6E6E6E;
  --ink-faint: #9A9A9A;
  --rule: #E4E4E4;
  --rule-soft: #EEEEEE;
  --red: #B01E24;
  --red-hover: #8B1520;
  --red-tint: #FBF0F1;

  /* Fixed dark bands — do NOT flip with theme.
     Used for statband / approach / footer so light-on-dark text stays legible in both modes. */
  --band-dark: #0E0E0E;
  --band-dark-panel: #1A1A1A;
  --band-dark-ink: #FFFFFF;
  --band-dark-soft: #D5D5D5;
  --band-dark-mute: #B0B0B0;
  --band-dark-faint: #7A7A7A;
  --band-dark-rule: #2A2A2A;

  /* Type */
  --serif: "Playfair Display", "Times New Roman", Times, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 66ch;
  --shell: 1240px;
  --shell-wide: 1400px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white: #0B0B0B;
    --surface: #121212;
    --surface-2: #191919;
    --surface-3: #242424;
    --ink: #F2F2F2;
    --ink-2: #EAEAEA;
    --ink-soft: #C8C8C8;
    --ink-mute: #8A8A8A;
    --ink-faint: #666666;
    --rule: #2A2A2A;
    --rule-soft: #1E1E1E;
    --red: #E14049;
    --red-hover: #F45864;
    --red-tint: #1A0F10;
  }
}

:root[data-theme="dark"] {
  --white: #0B0B0B;
  --surface: #121212;
  --surface-2: #191919;
  --surface-3: #242424;
  --ink: #F2F2F2;
  --ink-2: #EAEAEA;
  --ink-soft: #C8C8C8;
  --ink-mute: #8A8A8A;
  --ink-faint: #666666;
  --rule: #2A2A2A;
  --rule-soft: #1E1E1E;
  --red: #E14049;
  --red-hover: #F45864;
  --red-tint: #1A0F10;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}
a:hover { color: var(--red-hover); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

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

/* Layout shells */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.shell-wide { max-width: var(--shell-wide); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  color: var(--red);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 26px;
  line-height: 1;
}
.brand:hover { color: var(--red-hover); }
.brand__mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--red);
}
.brand__word {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 1px solid var(--rule);
  padding-left: 12px;
  align-self: center;
}

.nav { display: flex; gap: clamp(14px, 2.4vw, 28px); align-items: center; }
.nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid transparent;
  padding: 6px 0;
  cursor: pointer;
}
.nav a:hover { color: var(--red-hover); border-bottom-color: var(--red); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* ============ Section rhythm ============ */
main { padding-bottom: clamp(64px, 8vw, 120px); }
.stack > * + * { margin-top: 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: var(--red);
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: clamp(56px, 8vw, 96px) 0; }
.rule--red { border-top-color: var(--red); width: 48px; margin: 20px 0 24px; }

/* ============ Typography ============ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.display .em-red { color: var(--red); font-style: normal; }
.display .em-italic { font-style: italic; font-weight: 500; color: var(--ink-soft); }

h2.section-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; font-family: var(--sans); letter-spacing: 0; }

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
  font-weight: 400;
}
p {
  max-width: var(--measure);
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}
p.body-ink { color: var(--ink); font-weight: 500; }
strong { color: var(--ink); font-weight: 600; }
.text-red { color: var(--red); }

/* ============ HERO ============ */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

.hero-copy .hero-tag {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 28px;
  max-width: 44ch;
  line-height: 1.6;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  overflow: hidden;
  border-radius: 2px;
}
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.hero-media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
}
.hero-media__stamp {
  position: absolute; left: 20px; bottom: 20px;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 1;
  display: flex; align-items: center; gap: 10px;
}
.hero-media__stamp::before {
  content: ""; width: 6px; height: 6px; background: var(--red);
  display: inline-block; border-radius: 999px;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red);
  padding: 8px 14px;
  border: 1px solid var(--red);
  background: var(--red-tint);
  border-radius: 999px;
  margin-bottom: 32px;
  font-weight: 500;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--red); display: inline-block; }

.hero__cta {
  display: inline-flex; gap: 16px; margin-top: 40px; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn::after { content: "→"; font-size: 15px; letter-spacing: 0; margin-left: 2px; }

/* ============ Stat band ============ */
.statband {
  background: var(--band-dark);
  color: var(--band-dark-ink);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 4px solid var(--red);
}
.statband__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: baseline;
}
@media (max-width: 780px) { .statband__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat__num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 4vw, 56px);
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--band-dark-soft);
  margin-top: 12px;
}

/* ============ Two-column intro ============ */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.two-col .col-title { position: sticky; top: 100px; }
.two-col p + p { margin-top: 14px; }

/* ============ Business Domains grid (image cards) ============ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 960px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .domain-grid { grid-template-columns: 1fr; } }

.domain {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.domain:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -18px rgba(176, 30, 36, 0.35); }
.domain__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.domain__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.domain:hover .domain__media img { transform: scale(1.04); }
.domain__num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono);
  color: #fff;
  background: rgba(176, 30, 36, 0.94);
  padding: 4px 10px;
  font-size: 11px; letter-spacing: 0.18em; font-weight: 500;
  z-index: 1;
}
.domain__body { padding: 22px 24px 26px; }
.domain__body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.domain__body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============ Strengths / list ============ */
.strengths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
@media (max-width: 780px) { .strengths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .strengths { grid-template-columns: 1fr; } }
.strength {
  padding: 28px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.strength:nth-child(3n) { border-right: none; }
.strength:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 780px) {
  .strength { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .strength:nth-child(3n) { border-right: 1px solid var(--rule); }
  .strength:nth-child(2n) { border-right: none; }
  .strength:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .strength:nth-last-child(-n+2) { border-bottom: none; }
}
.strength__num {
  font-family: var(--mono);
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 12px;
  display: inline-block;
}
.strength h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.strength p { font-size: 14.5px; }

/* ============ Mission / Vision cards ============ */
.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 780px) { .mv { grid-template-columns: 1fr; } }
.mv__card {
  padding: 40px;
  border: 1px solid var(--rule);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.mv__card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
}
.mv__card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.mv__card p { font-size: 15.5px; color: var(--ink-soft); }

/* ============ Sectors we serve ============ */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}
@media (max-width: 760px) { .sectors { grid-template-columns: 1fr; } }
.sector {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 12px;
  font-weight: 500;
}
.sector::before {
  content: "◆";
  color: var(--red);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}
.sector:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 761px) {
  .sector:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
}

/* ============ Regions ============ */
.regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 780px) { .regions { grid-template-columns: 1fr; } }
.region {
  padding: 32px 28px;
  border: 1px solid var(--rule);
  background: var(--white);
}
.region h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--red);
  margin-bottom: 8px;
}
.region .region__cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.region p { font-size: 14.5px; }

/* ============ Banner image ============ */
.banner-img {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.banner-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,14,14,.65), rgba(14,14,14,.15));
}
.banner-img__caption {
  position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 44px);
  color: #fff; max-width: 46ch;
}
.banner-img__caption h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.banner-img__caption p { color: #E8E8E8; font-size: 15px; margin-top: 12px; max-width: 46ch; }

/* ============ Approach ============ */
.approach {
  background: var(--band-dark);
  color: var(--band-dark-ink);
  padding: clamp(48px, 6vw, 80px);
  border-top: 4px solid var(--red);
  text-align: center;
  position: relative;
}
.approach .eyebrow { color: var(--red); }
.approach .eyebrow::before { background: var(--red); }
.approach h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--band-dark-ink);
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.approach h2 .em-red { color: var(--red); }
.approach p {
  margin: 24px auto 0;
  max-width: 52ch;
  color: var(--band-dark-soft);
  font-size: 15.5px;
}

/* ============ Services detailed list (services page) ============ */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 800px) { .service-detail { grid-template-columns: 1fr; gap: 20px; } }
.service-detail:first-of-type { border-top: 1px solid var(--rule); }
.service-detail__num {
  font-family: var(--serif);
  font-size: 68px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.service-detail__num-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  margin-top: 10px;
  text-transform: uppercase;
  display: block;
}
.service-detail__body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.service-detail__body .service-media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  margin: 20px 0 22px;
  background: var(--surface-2);
}
.service-detail__body .service-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.service-detail__body p + p { margin-top: 12px; }
.service-detail__body p em { font-style: normal; color: var(--red); font-weight: 500; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
}
.contact-cell:last-child { border-right: none; }
@media (max-width: 900px) {
  .contact-cell:nth-child(2n) { border-right: none; }
  .contact-cell:nth-child(1), .contact-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .contact-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .contact-cell:last-child { border-bottom: none; }
}
.contact-cell .contact-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.contact-cell .contact-value {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
  word-break: break-word;
}
.contact-cell a.contact-value:hover { color: var(--red); }

/* ============ Footer ============ */
.site-footer {
  background: var(--band-dark);
  color: var(--band-dark-mute);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  border-top: 4px solid var(--red);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 780px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--band-dark-ink);
  margin: 0 0 18px;
}
.site-footer p, .site-footer a { color: var(--band-dark-mute); font-size: 14px; line-height: 1.7; }
.site-footer a { border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--red); border-bottom-color: var(--red); }
.site-footer__brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 28px;
  color: var(--red);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: block;
}
.site-footer__word {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--band-dark-ink);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer__bar {
  padding-top: 24px;
  border-top: 1px solid var(--band-dark-rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--band-dark-faint);
  text-transform: uppercase;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__list li { color: var(--band-dark-mute); font-size: 14px; }

/* ============ A11y ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .domain:hover { transform: none; }
  .domain:hover .domain__media img { transform: none; }
}
