/* ==========================================================================
   INDUSTRY PAGES (/who-we-help/<industry>/)
   One template for the 7 industries, built by _source/build/industry_page.py.
   Sections in page order:
   1. Hero (shared .photo-hero)          5. FAQ (shared .faq component)
   2. The situation (3 challenge cards)  6. Numbers + call to action
   3. What we can build (4 pieces)       7. Other industries
   4. How we work (shared .process)      8. Closing CTA (shared .closing-cta)
   ========================================================================== */

/* Shared heading size (same as Who We Help) */
.ind-h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}

.ind-section {
  padding-block: var(--space-section);
}

.ind-lead {
  font-size: var(--text-20);
  line-height: var(--leading-relaxed);
}

/* Small "01 / CHALLENGE" labels inside cards */
.ind-tag {
  color: var(--blue-500);
  font-size: var(--text-14);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  line-height: var(--leading-relaxed);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   1. HERO — shared .photo-hero (components.css) with two adjustments:
   longer headlines get a smaller size, and the daylight photos get a
   darker veil at the bottom so the text stays readable.
   -------------------------------------------------------------------------- */
.ind-hero .photo-hero__title {
  max-width: 1000px;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
}

.ind-hero .photo-hero__overlay {
  background: linear-gradient(to top, rgb(17 22 39 / 0.92) 0%, rgb(17 22 39 / 0.62) 55%, rgb(17 22 39 / 0.5) 100%);
}

/* Phones: which part of the wide photo stays in view (Mike, 7-oct-2026).
   0% = left edge of the photo, 100% = right edge. */
@media (max-width: 767px) {
  /* Healthcare: the doctor, and part of the woman he is talking to */
  .ind-hero .photo-hero__image[src*="healthcare-life-sciences"] {
    object-position: 68% 50%;
  }

  /* Finance & Real Estate: the man at the desk */
  .ind-hero .photo-hero__image[src*="accounting-finance-real-estate"] {
    object-position: 18% 50%;
  }
}

.ind-hero__back {
  color: inherit;
  text-decoration: none;
}

.ind-hero__back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   2. THE SITUATION
   -------------------------------------------------------------------------- */
.ind-situation {
  background: var(--white);
}

/* Heading on the left, paragraph on the right (same split as Who We Help) */
.ind-head {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 32px;
  align-items: end;
  margin-bottom: 56px;
}

.ind-head > :first-child { grid-column: 1 / 7; }
.ind-head > :last-child  { grid-column: 7 / -1; }

.ind-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ind-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--gray-100);
}

.ind-card__title {
  font-size: var(--text-24);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}

.ind-card__text {
  color: var(--color-text-strong);
  font-size: var(--text-16);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   3. WHAT WE CAN BUILD
   -------------------------------------------------------------------------- */
.ind-work {
  background: var(--gray-100);
}

.ind-work__layout {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 48px;
  align-items: start;
}

.ind-work__layout > :first-child { grid-column: 1 / 6; }
.ind-work__layout > :last-child  { grid-column: 7 / -1; }

/* Heading, lead and photo stay in view while the list scrolls */
.ind-work__aside {
  position: sticky;
  top: 110px;
}

.ind-work__aside .ind-h2 {
  margin-bottom: 21px;
}

.ind-work__image {
  width: 100%;
  margin-top: 36px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
}

.ind-work__list {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ind-work__item {
  padding: 32px 36px 22px;
  border-radius: var(--radius-card);
  background: var(--white);
}

.ind-work__title {
  margin: 10px 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-compact);
}

.ind-work__text {
  color: var(--color-text-strong);
  font-size: var(--text-16);
  line-height: var(--leading-relaxed);
}

.ind-work__item .link-arrow {
  margin-top: 8px;
  padding-left: 0;
  color: var(--blue-500);
}

/* --------------------------------------------------------------------------
   6. NUMBERS + CALL TO ACTION
   -------------------------------------------------------------------------- */
.ind-band {
  background: var(--blue-900);
  color: var(--white);
}

.ind-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ind-stat {
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
}

.ind-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-stat);
  font-weight: var(--weight-regular);
  line-height: var(--leading-none);
}

.ind-stat__suffix {
  color: var(--gold-500);
  font-size: 0.57em;
}

.ind-stat__label {
  margin-top: 14px;
  color: var(--blue-100);
  font-size: var(--text-14);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  line-height: var(--leading-cozy);
  text-transform: uppercase;
}

.ind-band__cta {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 32px;
  align-items: center;
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

.ind-band__cta > :first-child { grid-column: 1 / 8; }
.ind-band__cta > :last-child  { grid-column: 9 / -1; }

/* Small laptops: one more column for the button so it doesn't poke out of the page */
@media (min-width: 992px) and (max-width: 1199px) {
  .ind-band__cta > :first-child { grid-column: 1 / 7; }
  .ind-band__cta > :last-child  { grid-column: 8 / -1; }
}

.ind-band__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-compact);
  text-wrap: balance;
}

.ind-band__text {
  margin-top: 16px;
  font-size: var(--text-18);
  line-height: var(--leading-relaxed);
}

.ind-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ind-band__phone {
  padding: 6px 4px;
  color: var(--white);
  font-size: var(--text-16);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.ind-band__phone:hover {
  color: var(--gold-500);
}

/* --------------------------------------------------------------------------
   4. HOW WE WORK ("Follow the Trail")
   Same section as the homepage: see PROCESS STACK in components.css.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   5. FAQ — uses the shared .faq component
   -------------------------------------------------------------------------- */
.ind-faq {
  background: var(--gray-100);
}

.ind-faq__grid,
.ind-others__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 40px;
  align-items: start;
}

.ind-faq__grid > :first-child,
.ind-others__grid > :first-child { grid-column: 1 / 5; }

.ind-faq__grid > :last-child,
.ind-others__grid > :last-child  { grid-column: 5 / -1; }

.ind-faq .ind-h2,
.ind-others .ind-h2 {
  font-size: var(--text-2xl);
}

/* --------------------------------------------------------------------------
   7. OTHER INDUSTRIES
   -------------------------------------------------------------------------- */
.ind-others {
  background: var(--white);
}

.ind-others .link-arrow {
  margin-top: 14px;
  padding-left: 0;
  color: var(--blue-500);
}

.ind-others__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gray-300);
}

.ind-others__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--gray-300);
  color: var(--color-text);
  font-size: var(--text-18);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-cozy);
  text-decoration: none;
}

.ind-others__link .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: auto;
}

.ind-others__link:hover {
  color: var(--blue-500);
}

.ind-others__num {
  flex-shrink: 0;
  color: var(--blue-500);
}

/* --------------------------------------------------------------------------
   8. CLOSING CTA
   Shared by every page: see .closing-cta in components.css.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .ind-head > :first-child,
  .ind-head > :last-child,
  .ind-work__layout > :first-child,
  .ind-work__layout > :last-child,
  .ind-band__cta > :first-child,
  .ind-band__cta > :last-child,
  .ind-faq__grid > :first-child,
  .ind-faq__grid > :last-child,
  .ind-others__grid > :first-child,
  .ind-others__grid > :last-child {
    grid-column: 1 / -1;
  }

  .ind-work__aside {
    position: static;
  }

  .ind-head {
    margin-bottom: 40px;
  }

  .ind-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

@media (max-width: 767px) {
  .ind-cards {
    grid-template-columns: 1fr;
  }

  .ind-card,
  .ind-work__item {
    padding: 28px;
  }

  .ind-work__item {
    padding-bottom: 18px;
  }

  .ind-band__actions .btn {
    white-space: normal;
    text-align: center;
  }

  .ind-others__link {
    font-size: var(--text-16);
  }
}
