/* Eid ElSaadawy — site styles.
   Everything here was previously either duplicated inline across 25 export files
   or driven by JS `style-hover` bindings resolved at runtime by React. */

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

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: Arimo, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* Neutral ink, not a brand accent — WORK blue flashed the wrong brand's
   color on LEARN/CARE/BUILD themed pages. */
:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
  border-radius: 2px;
}

/* anchored sections land clear of the sticky header + brand bar */
section[id] { scroll-margin-top: 140px; }

.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;
}

/* ---- shared layout primitives ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 32px); }

.section { padding-block: clamp(44px, 5.5vw, 72px); border-top: 1px solid #ececec; }
.section--flush { border-top: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: Arimo; font-weight: 700; font-size: 11.5px;
  letter-spacing: 2.4px; color: #6b7280; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: #111; display: block; }

.h2 {
  font-family: Montserrat; font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1;
  letter-spacing: -0.9px; margin: 0;
}

/* ---- hover states: formerly `style-hover="{{ ... }}"` bindings ---- */
.nav-link { transition: opacity .25s ease; }
.nav-link:hover { opacity: .55; }

.quote-btn {
  border: 1px solid #111; padding: 10px 18px; border-radius: 5px;
  font-family: Montserrat; font-weight: 600; font-size: 13px;
  letter-spacing: .4px; text-decoration: none; color: #111;
  transition: background .25s ease, color .25s ease;
}
.quote-btn:hover { background: #111; color: #fff; }

.btn-dark {
  font-family: Montserrat; font-weight: 600; font-size: 15px;
  text-decoration: none; color: #fff; background: #111;
  border: 1px solid #111; padding: 15px 28px; border-radius: 5px;
  transition: opacity .25s ease, transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease;
}
.btn-dark:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.16); }

.btn-ghost {
  font-family: Montserrat; font-weight: 600; font-size: 14px;
  text-decoration: none; color: #111; border: 1px solid #d8d5d0;
  padding: 10px 18px; border-radius: 5px; white-space: nowrap;
  transition: opacity .25s ease;
}
.btn-ghost:hover { opacity: .6; }

.link-underline {
  font-family: Montserrat; font-weight: 600; font-size: 14.5px;
  text-decoration: none; color: #111; border-bottom: 2px solid #111;
  padding-bottom: 3px; transition: opacity .25s ease;
}
.link-underline:hover { opacity: .6; }

.foot-link { text-decoration: none; color: rgba(255,255,255,.82); transition: color .25s ease; }
.foot-link:hover { color: #fff; }

/* ---- the four brand squares ---- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px,2vw,28px); }
@media (max-width: 1000px) { .brands { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px)  { .brands { grid-template-columns: 1fr; } }

.brand-card {
  position: relative; display: block; aspect-ratio: 1/1;
  overflow: hidden; text-decoration: none;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.brand-card:hover { transform: translateY(-8px); }
.brand-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: .32;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.brand-card:hover img { transform: scale(1.055); }
.brand-card .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%); }
.brand-card .body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px,2.2vw,30px); }
.brand-card .kicker { font-family: Montserrat; font-weight: 600; font-size: clamp(11px,.95vw,13px); letter-spacing: 2.4px; color: rgba(255,255,255,.92); text-transform: uppercase; }
.brand-card .name { font-family: Montserrat; font-weight: 700; font-size: clamp(28px,2.6vw,38px); letter-spacing: -1px; line-height: 1; color: #fff; margin-top: 4px; text-transform: uppercase; }
.brand-card .rule { width: 34px; height: 2px; background: #fff; display: block; margin: 16px 0 12px; }
.brand-card .line { font-family: Arimo; font-size: clamp(13px,1.05vw,15px); line-height: 1.45; color: rgba(255,255,255,.95); }

/* ---- card grids ---- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e6e4e0; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* placeholder tile — stands in until the client supplies the slot image */
.ph {
  background-color: #efedea;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0, rgba(0,0,0,.035) 1px, transparent 1px, transparent 10px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Courier New', monospace; font-size: 10.5px; color: #8a857f;
  text-align: center; padding: 0 14px;
}

.card { display: flex; flex-direction: column; text-decoration: none; color: #111; transition: opacity .25s ease; }
.card:hover { opacity: .86; }
.card .media { height: clamp(190px,19vw,240px); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.card:hover .media img { transform: scale(1.055); }

.tag {
  font-family: Montserrat; font-weight: 600; font-size: 10.5px;
  letter-spacing: 1px; padding: 4px 9px; border-radius: 4px;
}

.article-card { border: 1px solid #ececec; overflow: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
.article-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(0,0,0,.10); }

/* bordered project cards (Projects listing / related) */
.project-card {
  display: flex; flex-direction: column; text-decoration: none; color: #111;
  border: 1px solid #ececec; border-radius: 8px; overflow: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(0,0,0,.10); }
.project-card img { transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.project-card:hover img { transform: scale(1.055); }

/* client / partner logo tiles */
.client-tile {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e7e4df; border-radius: 6px;
  padding: 12px 22px; min-width: 152px; height: 76px; text-align: center;
}
.client-tile--logo { filter: grayscale(1); opacity: .68; transition: filter .35s ease, opacity .35s ease; }
.client-tile--logo:hover { filter: none; opacity: 1; }

/* accent company cards (Who We Are / Our Companies) */
.company-card { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
.company-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0,0,0,.16); }
.company-card img { transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.company-card:hover img { transform: scale(1.055); }

/* how-we-work stepper */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .steps { grid-template-columns: 1fr; } .steps > div { border-left: 0 !important; padding-left: 0 !important; } }

/* form fields (Contact / Request a Quote) */
.field {
  font-family: Arimo; font-size: 14px; color: #111; background: #fff;
  border: 1px solid #e2ded7; border-radius: 6px; padding: 13px; outline: none;
  width: 100%;
}
.field:focus { border-color: #b9b3a9; }
.field-label {
  display: flex; flex-direction: column; gap: 7px;
  font-family: Arimo; font-weight: 700; font-size: 11px;
  letter-spacing: 1px; color: #6b7280;
}
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-2col { grid-template-columns: 1fr; } }

/* brand sub-navigation — persistent second-level nav on company pages */
.brand-subnav {
  position: sticky; top: 74px; z-index: 45;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand-subnav-link {
  font-family: Arimo; font-weight: 500; font-size: 13.5px;
  text-decoration: none; color: #444; white-space: nowrap;
  padding: 15px 12px 13px; border-bottom: 2px solid transparent;
  transition: color .2s ease;
}
.brand-subnav-link:hover { color: #111; }
.brand-subnav-link--active { color: #111; font-weight: 700; }
.brand-subnav div::-webkit-scrollbar { display: none; }
@media (max-width: 560px) {
  .brand-subnav-link { padding-inline: 9px; font-size: 13px; }
}

/* horizontally scrolling chip rail (LEARN catalog section nav) —
   native scrollbars look heavy under a sticky bar; the right-edge fade
   is the "more sections" affordance instead */
.chip-rail {
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-block: 13px; padding-right: 64px;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent);
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip-rail .chip { flex-shrink: 0; white-space: nowrap; }

/* once scrolled, fade both edges so it reads "more in both directions" */
.chip-rail--scrolled {
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}

/* the rail's left / right scroll buttons */
.rail-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid #e2ded7; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rail-arrow:hover { border-color: #b9b3a9; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.rail-arrow--left  { left: 4px; }
.rail-arrow--right { right: 4px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* filter chips (Knowledge categories) */
.chip {
  font-family: Montserrat; font-weight: 600; font-size: 12.5px;
  text-decoration: none; color: #3a3a3a; background: #fff;
  border: 1px solid #e2ded7; padding: 8px 16px; border-radius: 99px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: #b9b3a9; }
.chip--active { background: #111; border-color: #111; color: #fff; }

/* featured article split (Knowledge) */
.featured-article { grid-template-columns: 1.2fr 1fr; transition: opacity .25s ease; }
.featured-article:hover { opacity: .88; }
@media (max-width: 900px) { .featured-article { grid-template-columns: 1fr !important; } }

/* long-form article column */
.prose { font-family: Arimo, Arial, sans-serif; }
.prose p { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.8; color: #333; margin: 0 0 22px; }
.prose h2 {
  font-family: Montserrat; font-weight: 700; font-size: clamp(21px, 2vw, 26px);
  letter-spacing: -0.6px; line-height: 1.2; margin: 44px 0 16px;
}
.prose blockquote { margin: 40px 0; padding: 0 0 0 26px; border-left: 3px solid #111; }
.prose blockquote p {
  font-family: Montserrat; font-weight: 600; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3; letter-spacing: -0.5px; color: #111; margin: 0;
}
.prose img { max-width: 100%; border-radius: 8px; display: block; margin: 36px 0 12px; }
.prose figcaption, .prose .caption { font-size: 13px; color: #6b7280; margin: 12px 0 36px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 22px; }
.prose li { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.8; color: #333; margin-bottom: 8px; }

/* brand landing grids */
.brand-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px,5vw,64px); align-items: center; }
.brand-cta-grid  { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: clamp(36px,5vw,56px); align-items: center; }
@media (max-width: 900px) {
  .brand-hero-grid, .brand-cta-grid { grid-template-columns: 1fr; }
  .brand-cta-grid > div:last-child { justify-self: stretch !important; max-width: none !important; }
}

/* ---- footer ---- */
.site-footer { background: #0a0a09; color: #fff; padding-top: clamp(32px,3.6vw,44px); padding-bottom: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 26px; padding-bottom: clamp(22px,2.6vw,28px); border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }
.foot-head { font-family: Arimo; font-weight: 700; font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,.5); margin: 0 0 11px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-family: Arimo; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .brand-card, .brand-card img, .card .media img, .article-card, .btn-dark { transition: none !important; }
  .brand-card:hover, .article-card:hover, .btn-dark:hover { transform: none !important; }
}
