/* -------------------------------------------------------------------------- */
/* Modular engagements — services index intro note                            */
/* Full-bleed white section (body is #050505). Content constrained inside.    */
/* Detail-page notes (.chl-modular-note) are separate and unchanged below.    */
/* -------------------------------------------------------------------------- */

.chl-modular {
  --chl-mod-ink: #1c1c1c;
  --chl-mod-ink-soft: rgba(28, 28, 28, 0.68);
  --chl-mod-line: rgba(28, 28, 28, 0.1);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  box-sizing: border-box;
}

/* Match services list container width/padding */
.chl-modular__shell {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--chl-mod-line);
  border-bottom: 1px solid var(--chl-mod-line);
  box-sizing: border-box;
}

.chl-modular__inner {
  max-width: 40rem; /* ~640px — within 560–720 target */
  margin: 0 auto;
  padding: clamp(1.35rem, 2.5vw, 1.85rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

.chl-modular__eyebrow {
  margin: 0 0 0.65rem;
  color: rgba(28, 28, 28, 0.42);
  font-family: Archivo, Lato, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.chl-modular__title {
  margin: 0 0 0.85rem;
  max-width: 28rem;
  color: var(--chl-mod-ink);
  font-family: Lato, sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-transform: none; /* override Webflow h2 capitalize */
}

.chl-modular__body {
  margin: 0 0 0.95rem;
  max-width: 38rem;
  color: var(--chl-mod-ink-soft);
  font-family: Archivo, Lato, sans-serif;
  font-size: clamp(0.92rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
}

.chl-modular__emphasis {
  margin: 0;
  max-width: 34rem;
  padding-top: 0;
  border-top: 0;
  color: rgba(28, 28, 28, 0.55);
  font-family: Archivo, Lato, sans-serif;
  font-size: clamp(0.88rem, 0.95vw, 0.95rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* Services Quick Start — Assessment only (not a service row / not AI block)  */
/* White section padding creates breathing room (body is black).              */
/* -------------------------------------------------------------------------- */

.chl-quick-start {
  --chl-qs-ink: #1c1c1c;
  --chl-qs-ink-soft: rgba(28, 28, 28, 0.76);
  --chl-qs-line: rgba(28, 28, 28, 0.1);
  --chl-qs-mist: #fbfaf7;
  width: 100%;
  margin: 0;
  /* Space above strip (modular → QS) and below strip (QS → Portfolio) */
  padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(2.5rem, 5.5vw, 5rem);
  background: #fff;
  box-sizing: border-box;
}

/* Soft end to modular note when Quick Start follows */
body.chl-services .chl-modular:has(+ .chl-quick-start) .chl-modular__shell {
  border-bottom-color: transparent;
}

.chl-quick-start__shell {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.45rem, 2.6vw, 1.9rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.35rem 2.75rem;
  align-items: start;
  background: var(--chl-qs-mist);
  border-top: 1px solid var(--chl-qs-line);
  border-bottom: 1px solid var(--chl-qs-line);
  box-sizing: border-box;
}

.chl-quick-start__lead,
.chl-quick-start__copy {
  min-width: 0;
}

.chl-quick-start__lead {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.chl-quick-start__eyebrow {
  margin: 0;
  color: rgba(28, 28, 28, 0.5) !important;
  font-family: Archivo, Lato, sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  -webkit-text-fill-color: rgba(28, 28, 28, 0.5);
}

.chl-quick-start__eyebrow::after {
  content: ":";
  margin-left: 0.05em;
}

.chl-quick-start__title {
  margin: 0;
  color: var(--chl-qs-ink) !important;
  font-family: Lato, sans-serif;
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-transform: none;
  -webkit-text-fill-color: var(--chl-qs-ink);
}

.chl-quick-start__body {
  margin: 0 0 0.55rem;
  max-width: 34rem;
  color: var(--chl-qs-ink) !important;
  font-family: Archivo, Lato, sans-serif;
  font-size: clamp(0.94rem, 1.02vw, 1.02rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.62;
  -webkit-text-fill-color: var(--chl-qs-ink);
}

.chl-quick-start__support {
  margin: 0 0 1.05rem;
  max-width: 32rem;
  color: var(--chl-qs-ink-soft) !important;
  font-family: Archivo, Lato, sans-serif;
  font-size: clamp(0.86rem, 0.94vw, 0.94rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  -webkit-text-fill-color: var(--chl-qs-ink-soft);
}

/* Editorial action — aligned with copy, not a floating pill */
.chl-quick-start__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  margin: 0;
  padding: 0.15rem 0 0.2rem;
  color: #111 !important;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.28);
  border-radius: 0;
  font-family: Archivo, Lato, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-decoration: none !important;
  text-transform: uppercase;
  -webkit-text-fill-color: #111;
  box-sizing: border-box;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    -webkit-text-fill-color 0.2s ease;
}

.chl-quick-start__cta span {
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chl-quick-start__cta:hover,
.chl-quick-start__cta:focus-visible {
  color: #000 !important;
  border-bottom-color: #111;
  -webkit-text-fill-color: #000;
}

.chl-quick-start__cta:hover span,
.chl-quick-start__cta:focus-visible span {
  opacity: 1;
  transform: translateX(3px);
}

@media screen and (max-width: 767px) {
  .chl-quick-start {
    /* ~32–44px above, ~40–56px below */
    padding: clamp(2rem, 8vw, 2.75rem) 0 clamp(2.5rem, 10vw, 3.5rem);
  }

  .chl-quick-start__shell {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.35rem 24px 1.45rem;
  }

  .chl-quick-start__title {
    font-size: 1.3rem;
  }

  .chl-quick-start__body {
    font-size: 0.95rem;
  }

  .chl-quick-start__support {
    margin-bottom: 0.95rem;
    font-size: 0.88rem;
  }
}

@media screen and (min-width: 768px) {
  .chl-quick-start {
    /* ~48–72px above, ~64–88px below */
    padding-top: clamp(3rem, 5vw, 4.5rem);
    padding-bottom: clamp(4rem, 6vw, 5.5rem);
  }

  .chl-quick-start__shell {
    padding-top: clamp(1.6rem, 2.4vw, 2.05rem);
    padding-bottom: clamp(1.6rem, 2.4vw, 2.05rem);
  }
}

/* Desktop: more air under SERVICES title; tight gap before first service row */
@media screen and (min-width: 768px) {
  /* SERVICES → modular note (~+32–56px vs prior 1.75rem tighten) */
  body.chl-services .page-title-wrapper > .space-4rem {
    min-height: clamp(3.75rem, 5vw, 5rem);
  }

  body.chl-services .chl-modular {
    padding-bottom: 0;
  }

  body.chl-services .chl-modular__inner {
    max-width: 42rem; /* ~672px */
    padding: 1.75rem 0 2rem;
  }

  /* Restore tighter spacing above Portfolio Oversight */
  body.chl-services .chl-services-menu {
    padding-top: 0;
  }
}

/* Drop first service-row top border — shell already provides the post-note divider */
body.chl-services .chl-svc-list > .chl-svc-row:first-child {
  border-top: none;
}

/*
 * Services index desktop nav — hover/current was light-grey/white on light bar
 * (var(--light-grey) / var(--white)), which made SERVICES/CONTACT disappear.
 * Keep links dark/visible in every interaction state. Mobile open menu uses
 * a dark overlay + white type, so leave that alone.
 */
@media screen and (min-width: 992px) {
  body.chl-services .navbar .nav-link,
  body.chl-services .navbar .nav-link:link,
  body.chl-services .navbar .nav-link:visited,
  body.chl-services .navbar .nav-link:hover,
  body.chl-services .navbar .nav-link:focus,
  body.chl-services .navbar .nav-link:focus-visible,
  body.chl-services .navbar .nav-link:active,
  body.chl-services .navbar .nav-link.w--current,
  body.chl-services .navbar .nav-link.w--current:hover,
  body.chl-services .navbar .nav-link.move-down,
  body.chl-services .navbar .nav-link.move-down:hover,
  body.chl-services .navbar .nav-link.move-down.hide-on-tab,
  body.chl-services .navbar .nav-link.move-down.hide-on-tab:hover,
  body.chl-services .navbar .nav-link.move-down.hide-on-tab.w--current,
  body.chl-services .navbar .nav-link.move-down.hide-on-tab.w--current:hover {
    color: #111 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #111 !important;
  }
}

/* Detail-page quiet note — sits above bottom CTA */
.chl-modular-note {
  --chl-mod-ink: #1c1c1c;
  --chl-mod-ink-soft: rgba(28, 28, 28, 0.72);
  --chl-mod-line: rgba(28, 28, 28, 0.12);
  --chl-mod-ivory: #faf7f2;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  background: #fff;
  border-top: 1px solid var(--chl-mod-line);
  box-sizing: border-box;
}

.chl-modular-note__panel {
  max-width: 40rem;
  padding: 1.15rem 0 0;
  box-sizing: border-box;
}

.chl-modular-note__label {
  display: block;
  margin: 0 0 0.55rem;
  color: rgba(28, 28, 28, 0.42);
  font-family: Archivo, Lato, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chl-modular-note__text {
  margin: 0;
  color: var(--chl-mod-ink-soft);
  font-family: Archivo, Lato, sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
}

/* Mobile — preserve approved quiet editorial look */
@media screen and (max-width: 767px) {
  .chl-modular__shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .chl-modular__inner {
    max-width: none;
    margin: 0;
    padding: 1.1rem 0 1.35rem;
  }

  .chl-modular__title {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    line-height: 1.3;
  }

  .chl-modular__body {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }

  .chl-modular__emphasis {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .chl-modular-note {
    padding-top: 1.35rem;
    padding-bottom: 2rem;
  }

  .chl-modular-note__text {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}
