/* =========================================================
   LIMBEST – Industries page styles
   ========================================================= */

.c-red { color: var(--red); }
.c-blue { color: var(--blue); }

/* =========================================================
   Hero (background photo + separate staff PNG, header overlaps it)
   Desktop: the worker overlaps the bottom edge of the hero
   (so overflow stays visible). Tablet / mobile: see media queries.
   ========================================================= */
.ind-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(500px, 42vw, 620px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  color: var(--white);
  background: var(--navy) url("../images/industries-hero-bg.jpg") center / cover no-repeat;
}
/* Dark overlay – adjust the opacity values (.62 / .38 / .1) to match the mockup */
.ind-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(10, 20, 35, .62) 0%, rgba(10, 20, 35, .38) 50%, rgba(10, 20, 35, .1) 100%);
}
.ind-hero__inner { position: relative; z-index: 2; width: 100%; }
.ind-hero__content { max-width: 620px; }
.ind-hero__label {
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.6;
  text-transform: uppercase;
}
.ind-hero__rule { display: block; width: 48px; height: 2px; margin: 10px 0 24px; background: var(--red); }
.ind-hero h1 { color: var(--white); text-transform: uppercase; }
.ind-hero__text { max-width: 520px; margin-top: 18px; }
.ind-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* Staff: width = size; bottom: -66px = how far the worker hangs below the hero;
   right: 0 = against the right edge */
.ind-hero__staff {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -66px;
  width: min(40vw, 580px);
  max-width: none;
  height: auto;
}

/* =========================================================
   Shared bits
   ========================================================= */
.ind-section { padding: var(--space-normal) 0; }
.ind-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--slate);
}
.ind-title { margin-top: 12px; line-height: 1.2; text-transform: uppercase; }

/* =========================================================
   Industries We Serve
   ========================================================= */
.ind-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-compact);
  align-items: start;
}
.ind-intro__desc { padding-top: 34px; max-width: 520px; font-size: 19px; line-height: 1.55; }

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px var(--gap);
  margin-top: 48px;
}
.ind-card {
  display: block;
  background: var(--white);
  border-bottom: 6px solid var(--red);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ind-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20, 36, 58, .12); }
.ind-card img { width: 100%; aspect-ratio: 1000 / 530; object-fit: cover; }
.ind-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}
.ind-card h3 { font-size: 18px; line-height: 1.3; color: var(--blue); }
.ind-card__arrow { flex: none; width: 30px; height: 30px; color: var(--blue); transition: transform .2s ease; }
.ind-card:hover .ind-card__arrow { transform: translateX(3px); }

/* =========================================================
   Why Choose LIMBEST
   ========================================================= */
.ind-why { padding: var(--space-normal) 0 var(--space-main); }
.ind-why__head { max-width: 920px; margin: 0 auto; text-align: center; }
.ind-why__head .lead { margin-top: 20px; font-size: 19px; line-height: 1.6; }

.ind-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
  margin-top: 56px;
}
.ind-feature { display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; align-items: center; }
.ind-feature img { width: 96px; height: 96px; object-fit: contain; }
.ind-feature h3 { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--blue); }
.ind-feature p { max-width: 320px; margin-top: 6px; font-size: 15px; line-height: 1.6; }

/* =========================================================
   Responsive – Tablet (900px)
   ========================================================= */
@media (max-width: 900px) {
  /* Hero: text first, then the worker standing at the bottom.
     overflow is hidden here, and the negative bottom margin
     crops the rounded bottom edge of the PNG. */
  .ind-hero {
    display: block;
    height: auto;
    overflow: hidden;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 0;
    --staff-w: min(70vw, 460px);
  }
  .ind-hero::before { background: rgba(10, 20, 35, .55); }
  .ind-hero__staff {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: var(--staff-w);
    margin: 12px auto -40px;
  }

  .ind-intro { grid-template-columns: 1fr; gap: 20px; }
  .ind-intro__desc { padding-top: 0; font-size: 17px; }

  .ind-grid { grid-template-columns: repeat(2, 1fr); gap: 36px var(--gap); }

  /* Why: icon centred above the text, two columns */
  .ind-why__head .lead { font-size: 17px; }
  .ind-features { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; margin-top: 44px; }
  .ind-feature {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 14px;
    text-align: center;
  }
  .ind-feature img { width: 80px; height: 80px; }
  .ind-feature h3 { font-size: 21px; }
  .ind-feature p { margin-left: auto; margin-right: auto; }
}

/* =========================================================
   Responsive – Mobile (600px)
   ========================================================= */
@media (max-width: 600px) {
  .ind-hero {
    padding-top: calc(var(--header-h) + 32px);
    --staff-w: min(84vw, 400px);
  }
  .ind-hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ind-hero__actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .ind-section { padding: 44px 0; }
  .ind-intro__desc,
  .ind-why__head .lead { font-size: 15px; }

  .ind-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }

  .ind-why { padding: 44px 0 60px; }
  .ind-features { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .ind-feature img { width: 72px; height: 72px; }
  .ind-feature h3 { font-size: 19px; }
  .ind-feature p { max-width: 280px; font-size: 14px; }
}

/* =========================================================
   Swiss grid – desktop (≥901px)
   ========================================================= */
@media (min-width: 901px) {

  /* Hero: content spans columns 1–7; the intro text spans 6 of those */
  .ind-hero__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .ind-hero__content { grid-column: 1 / 8; max-width: none; }
  .ind-hero__text {
    max-width: calc((100% - 6 * var(--gutter)) / 7 * 6 + 5 * var(--gutter));
  }

  /* Industries We Serve: title = columns 1–6, description = columns 7–12 */
  .ind-intro { column-gap: var(--gutter); }
  .ind-intro__desc { max-width: none; }

  /* Why Choose LIMBEST: left-aligned header on the same two-column split
     (label + title on columns 1–6, lead text on columns 7–12) */
  .ind-why__head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    max-width: none;
    margin: 0;
    text-align: left;
  }
  .ind-why__head > .ind-label { grid-column: 1 / 7; grid-row: 1; }
  .ind-why__head > .ind-title { grid-column: 1 / 7; grid-row: 2; }
  .ind-why__head > .lead {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 0;
    padding-top: 34px;
  }

  /* Features: two blocks of 6 columns each (start at column 1 and column 7) */
  .ind-features {
    column-gap: var(--gutter);
    row-gap: 56px;
  }
}
/* Swiss grid: smaller icons on desktop so the text starts on a column line */
@media (min-width: 901px) {
  .ind-feature {
    /* icon column = 72px, gap = 24px (gutter) */
    grid-template-columns: 72px 1fr;
    column-gap: var(--gutter);
  }
  .ind-feature img {
    width: 72px;
    height: 72px;
  }
}

/* Desktop: keep the staff inside the content area (same rule as the Home page) */
@media (min-width: 901px) {
  .ind-hero__staff {
    right: max(var(--pad), calc((100vw - var(--max)) / 2 - 35px));
  }
}