/* ==========================================================================
   New Ways of Working — Components
   One block per section. Shared layout comes from utilities.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icon helper (sprite.svg references)
   -------------------------------------------------------------------------- */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: var(--icon-color, var(--c-blue-dark));
  background: var(--c-bg-soft);
}

.icon-circle .icon { width: 1.6rem; height: 1.6rem; }

.icon-circle[data-color="blue"]   { --icon-color: var(--c-blue-dark); }
.icon-circle[data-color="purple"] { --icon-color: var(--c-purple); }
.icon-circle[data-color="red"]    { --icon-color: var(--c-red); }
.icon-circle[data-color="pink"]   { --icon-color: var(--c-logo-pink); }

.section--dark .icon-circle { background: var(--c-ink); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: var(--c-purple);
  color: var(--c-white);
}

.btn--primary:hover { box-shadow: var(--shadow-card-hover); }

.btn--ghost {
  border-color: var(--c-blue-text);
  color: var(--c-blue-text);
  background: transparent;
}

.btn--on-dark {
  background: var(--c-white);
  color: var(--c-black);
}

.btn .icon { width: 1.1rem; height: 1.1rem; }

/* --------------------------------------------------------------------------
   Tag (pill) — color via data attribute, mapped once here
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--tag-color, var(--c-blue-text));
  border: 1.5px solid var(--tag-color, var(--c-blue-text));
  background: transparent;
}

.tag[data-color="blue"]   { --tag-color: var(--c-blue-text); }
.tag[data-color="purple"] { --tag-color: var(--c-purple-text); }
.tag[data-color="red"]    { --tag-color: var(--c-red-text); }
.tag[data-color="pink"]   { --tag-color: var(--c-pink-text); }
.tag[data-color="ink"]    { --tag-color: var(--c-text-soft); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.tag-list li { margin: 0; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.05;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.nav__brand:hover { text-decoration: none; }

.nav__brand img { width: 40px; height: 40px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
  margin-left: auto;
  padding: 0;
}

.nav__links li { margin: 0; }

.nav__links a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--c-blue-text); text-decoration: none; }

/* The CTA button keeps its white label in every state */
.nav__links a.btn--primary,
.nav__links a.btn--primary:hover,
.nav__links a.btn--primary[aria-current="page"] { color: var(--c-white); }

.nav__cta { margin-left: 0.2rem; }

.nav__cta .btn { padding: 0.6rem 1.2rem; font-size: 0.92rem; }

.nav__lang {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text-soft);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-small);
  padding: 0.35rem 0.6rem;
}

.nav__lang:hover { color: var(--c-blue-dark); text-decoration: none; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  margin-left: auto;
}

.nav__toggle .icon { width: 1.7rem; height: 1.7rem; }

@media (max-width: 1080px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-2);
    display: none;
  }

  .nav__links.is-open { display: flex; }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 0.8rem 0.5rem;
    font-size: 1.05rem;
  }

  .nav__cta { margin: 0.5rem 0 0; }

  /* breathing room between the CTA button and the language selector */
  .nav__links li:has(.nav__lang) { margin-top: 0.9rem; }
  .nav__lang { display: inline-block; padding: 0.5rem 0.9rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-6) var(--space-5);
}

.hero__title {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-3);
}

.hero__lead {
  font-size: 1.25rem;
  color: var(--c-text-soft);
  max-width: 46rem;
  margin-bottom: var(--space-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   Pillars (home: 3 pillars)
   -------------------------------------------------------------------------- */
.pillar {
  position: relative; /* anchor for the stretched link */
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}

.pillar h3 { color: var(--c-text); }

.pillar__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar__link .icon { width: 1rem; height: 1rem; }

/* Stretched link (v8 trick): the whole card is clickable */
.pillar__link::after,
.offer-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* --------------------------------------------------------------------------
   Step flow (4-phase engagement)
   -------------------------------------------------------------------------- */
.step-flow__grid { counter-reset: step; }

.step {
  counter-increment: step;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  position: relative;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--c-purple); /* fallback when background-clip unsupported */
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

.step h3 { color: var(--c-text); margin-bottom: 0.4rem; }

.step p { color: var(--c-text-soft); font-size: 0.98rem; }

.section--dark .step { background: var(--c-ink); }
.section--dark .step h3 { color: var(--c-text-on-dark); }
.section--dark .step p { color: var(--c-text-soft-on-dark); }

/* --------------------------------------------------------------------------
   Offer cards
   -------------------------------------------------------------------------- */
.offer-card {
  position: relative; /* anchor for the stretched link */
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.offer-card h3 { color: var(--c-text); }

.offer-card p { color: var(--c-text-soft); font-size: 0.98rem; }

.offer-card__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.offer-card__link .icon { width: 1rem; height: 1rem; }

/* --------------------------------------------------------------------------
   Conviction grid (approach: 7 convictions; home subset)
   -------------------------------------------------------------------------- */
.conviction {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.conviction h3 {
  color: var(--c-text);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.conviction p { color: var(--c-text-soft); font-size: 0.96rem; }

.section--dark .conviction h3 { color: var(--c-text-on-dark); }
.section--dark .conviction p { color: var(--c-text-soft-on-dark); }

/* --------------------------------------------------------------------------
   Mission band (black, big statement)
   -------------------------------------------------------------------------- */
.mission-band {
  text-align: center;
}

.mission-band blockquote {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--c-white);
  max-width: 56rem;
  margin-inline: auto;
}

.mission-band cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--c-text-soft-on-dark);
}

/* --------------------------------------------------------------------------
   Client logos (grayscale, color on hover; same treatment as IS v8)
   -------------------------------------------------------------------------- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.client-logos li { margin: 0; }

.client-logos__img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.5);
  opacity: 0.65;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.client-logos__img:hover {
  filter: none;
  opacity: 1;
}

.section--dark .client-logos__img {
  filter: grayscale(100%) brightness(1.5);
  mix-blend-mode: color-dodge;
  opacity: 0.5;
}

.section--dark .client-logos__img:hover {
  opacity: 1;
  filter: brightness(1.2);
}

/* --------------------------------------------------------------------------
   Case cards (references)
   -------------------------------------------------------------------------- */
.case-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}

/* Bare variant: case-card text styles without the card chrome (used in .case-row) */
.case-card--bare {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.case-card__sector {
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple-text);
}

.case-card h3 { color: var(--c-text); }

.case-card h4 {
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue-text);
  margin-bottom: 0.3rem;
}

.case-card ul {
  list-style: none;
  padding: 0;
}

.case-card ul li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.96rem;
  color: var(--c-text-soft);
}

.case-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--grad-hero);
}

/* --------------------------------------------------------------------------
   Case rows (references page: full-width, image alternating left/right)
   -------------------------------------------------------------------------- */
.case-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-4);
  border-top: 1px solid var(--c-border);
}

/* even rows mirror the column widths so all pictures share the same size */
.case-row:nth-child(even) { grid-template-columns: 7fr 5fr; }

.case-row:first-child { border-top: none; }

.case-row__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.case-row__img img {
  width: 100%;
  height: 100%;
  object-position: bottom;
  object-fit: cover;
  aspect-ratio: 3 / 4; /* vertical visuals from the offer decks */
}

.case-row:nth-child(even) .case-row__img { order: 2; }

.case-row__body { display: flex; flex-direction: column; gap: var(--space-2); }

@media (max-width: 760px) {
  .case-row,
  .case-row:nth-child(even) { grid-template-columns: 1fr; }
  .case-row:nth-child(even) .case-row__img { order: 0; }
}

/* --------------------------------------------------------------------------
   Photos (hero split layout + section inserts)
   -------------------------------------------------------------------------- */
.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-4);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo--tall img { aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 16 / 9; }
.photo--banner img { aspect-ratio: 3 / 1; }
.photo--square img { aspect-ratio: 1 / 1; }

.photo figcaption {
  font-size: var(--fs-small);
  color: var(--c-text-soft);
  padding: 0.6rem 1rem;
  background: var(--c-white);
}

/* Full-width insert band between sections */
.insert-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   Detail sections (workshop/program anchored blocks)
   -------------------------------------------------------------------------- */
.detail {
  padding-block: var(--space-5);
  border-top: 1px solid var(--c-border);
}

.detail:first-of-type { border-top: none; }

.detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.detail__header h2 { margin: 0; }

.detail__intro {
  max-width: 50rem;
  color: var(--c-text-soft);
  margin-bottom: var(--space-3);
}

.detail__cols { margin-top: var(--space-3); }

.detail__box {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--c-bg-soft);
}

.detail__box h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-purple-text);
  margin-bottom: var(--space-2);
}

.detail__box ul {
  list-style: none;
  padding: 0;
}

.detail__box ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.detail__box ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--grad-hero);
}

/* --------------------------------------------------------------------------
   Phase cards (approach: objectives / activities / deliverables)
   -------------------------------------------------------------------------- */
.phase {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--c-white);
  border-top: 5px solid var(--phase-color, var(--c-blue-dark));
  box-shadow: var(--shadow-card);
}

.phase[data-color="blue"]   { --phase-color: var(--c-blue-text); }
.phase[data-color="purple"] { --phase-color: var(--c-purple-text); }
.phase[data-color="pink"]   { --phase-color: var(--c-pink-text); }
.phase[data-color="red"]    { --phase-color: var(--c-red-text); }

.phase__label {
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phase-color, var(--c-blue-text));
}

.phase h3 { color: var(--c-text); margin: 0.3rem 0 0.6rem; }

.phase p { font-size: 0.96rem; color: var(--c-text-soft); }

/* --------------------------------------------------------------------------
   Stats (honest credentials)
   -------------------------------------------------------------------------- */
.stat { text-align: center; }

.stat__number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--c-purple); /* fallback when background-clip unsupported */
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  margin-inline: auto;
}

.stat__label {
  font-size: var(--fs-small);
  color: var(--c-text-soft);
  margin-top: 0.3rem;
}

.section--dark .stat__label { color: var(--c-text-soft-on-dark); }

/* --------------------------------------------------------------------------
   Quote block
   -------------------------------------------------------------------------- */
.quote {
  border-left: 4px solid var(--c-purple);
  padding: var(--space-2) var(--space-3);
  background: var(--c-bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote cite {
  display: block;
  margin-top: var(--space-1);
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--grad-full);
  color: var(--c-white);
  text-align: center;
  padding-block: var(--space-5);
}

.cta-band h2 { color: var(--c-white); margin-bottom: var(--space-2); }

.cta-band p {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Timeline (about page)
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  padding: 0;
  border-left: 2px solid var(--c-border);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-3) var(--space-3);
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.46rem;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--grad-hero);
}

.timeline__period {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-purple-text);
}

.timeline h3 { color: var(--c-text); font-size: 1.1rem; margin: 0.2rem 0; }

.timeline p { color: var(--c-text-soft); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Portrait (about page)
   -------------------------------------------------------------------------- */
.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

/* --------------------------------------------------------------------------
   Forms (contact)
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--space-2);
  align-content: start; /* keep fields compact when the neighbor column is taller */
}

.form__field { display: grid; gap: 0.35rem; }

.form__field label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-small);
}

.form__field input,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-small);
  background: var(--c-white);
  color: var(--c-text);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: 2px solid var(--c-blue);
  outline-offset: 1px;
  border-color: var(--c-blue);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Contact info block
   -------------------------------------------------------------------------- */
.contact-info {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.contact-info__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-black);
  color: var(--c-text-soft-on-dark);
  padding-block: var(--space-5) var(--space-3);
  font-size: 0.95rem;
}

.footer a { color: var(--c-text-on-dark); }

.footer h4 {
  color: var(--c-white);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand img { width: 56px; height: 56px; margin-bottom: var(--space-2); }

.footer__brand p { max-width: 26rem; }

.footer ul { list-style: none; padding: 0; }

.footer ul li { margin-bottom: 0.5rem; }

.footer__legal {
  border-top: 1px solid var(--c-ink);
  padding-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--fs-small);
}
