/* =========================================================
   LIMBEST – About Us page styles
   ========================================================= */

.c-red { color: var(--red); }
.c-blue { color: var(--blue); }

/* =========================================================
   Hero (background image + separate staff PNG, header overlaps it)
   ========================================================= */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(520px, 46vw, 680px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden;
  color: var(--white);
  background: var(--navy) url("../images/about-hero-bg.jpg") center / cover no-repeat;
}
/* Dark overlay – adjust the opacity values (.68 / .5 / .22) to match the mockup */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(10, 20, 35, .68) 0%, rgba(10, 20, 35, .5) 45%, rgba(10, 20, 35, .22) 100%);
}
.about-hero__inner { position: relative; z-index: 2; width: 100%; }
.about-hero__content { max-width: 560px; }
.about-hero__label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.6;
  text-transform: uppercase;
}
.about-hero__rule { display: block; width: 48px; height: 2px; margin: 10px 0 26px; background: var(--red); }
.about-hero h1 { color: var(--white); }
.about-hero__text { max-width: 360px; margin-top: 16px; }

/* Staff: width controls the size (smaller = head moves down, away from the header);
   right: 0 puts the person against the right edge like the mockup */
.about-hero__staff {
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: 0;
  width: min(42vw, 600px);
  max-width: none;
  height: auto;
}

/* =========================================================
   Shared bits for the content sections
   ========================================================= */
.about-section { padding: var(--space-normal) 0; }
.about-section--last { padding-bottom: var(--space-main); }

.about-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--slate);
}
.about-title {
  margin: 12px 0 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Image on the left (3:4); the text column is as tall as the photo:
   label at the top, numbers / list pinned to the bottom (like the mockup) */
.about-split {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 56px;
  align-items: stretch;
}
.about-split__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-split__text { display: flex; flex-direction: column; }
.about-split__text .lead,
.exp-intro__text .lead { font-size: 19px; line-height: 1.65; }
.about-split__text .lead + .lead { margin-top: 20px; }

/* =========================================================
   Who We Are – numbers
   ========================================================= */
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: auto;
  padding-top: 28px;
}
.about-stats__no { font-size: 52px; font-weight: 800; line-height: 1.1; color: var(--red); }
.about-stats__caption { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* =========================================================
   Our Experience
   ========================================================= */
.exp-intro {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: 48px;
  align-items: center;
}
.exp-intro__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.exp-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.exp-col__no { display: block; font-size: 52px; font-weight: 800; line-height: 1; color: var(--body); }
.exp-col__rule { display: block; width: 44px; height: 2px; margin: 12px 0 18px; background: var(--red); }
.exp-col h3 { margin-bottom: 12px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--slate); }
.exp-col ul { padding-left: 16px; list-style: disc; font-size: 14px; line-height: 1.7; color: var(--body); }

/* =========================================================
   What We Stand For
   ========================================================= */
.stand-list { display: grid; gap: 22px; margin-top: auto; padding-top: 28px; }
.stand-list li { display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; align-items: center; }
.stand-list__no { font-size: 52px; font-weight: 800; line-height: 1; color: var(--red); }
.stand-list h3 { font-size: 14px; font-weight: 700; line-height: 1.4; text-transform: uppercase; color: var(--blue); }
.stand-list p { margin-top: 2px; font-size: 13px; line-height: 1.55; }

/* =========================================================
   Responsive – Tablet (900px)
   ========================================================= */
@media (max-width: 900px) {
  /* Hero: text first, person standing at the bottom (same as the Home page) */
  .about-hero {
    display: block;
    height: auto;
    padding-top: calc(var(--header-h) + 48px);
    --staff-w: min(80vw, 520px);
  }
  .about-hero::before { background: rgba(10, 20, 35, .6); }
  .about-hero__staff {
    position: relative;
    right: auto;
    display: block;
    width: var(--staff-w);
    margin: calc(var(--staff-w) * -0.3) auto 0;
  }

  /* Image above text */
  .about-split,
  .exp-intro { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .about-split__img,
  .exp-intro__img { width: 100%; max-width: 520px; margin: 0 auto; }
  .exp-intro__img { order: -1; }
  .about-split__text .lead,
  .exp-intro__text .lead { font-size: 17px; }

  /* Four columns → two columns */
  .exp-cols { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; margin-top: 40px; }
}

/* =========================================================
   Responsive – Mobile (600px)
   ========================================================= */
@media (max-width: 600px) {
  .about-hero {
    padding-top: calc(var(--header-h) + 32px);
    --staff-w: min(100vw, 520px);
  }

  .about-section { padding: 44px 0; }
  .about-section--last { padding-bottom: 60px; }

  .about-split__text .lead,
  .exp-intro__text .lead { font-size: 15px; }

  .about-stats { gap: 20px 32px; }
  .about-stats__no { font-size: 40px; }

  .exp-col__no { font-size: 40px; }
  .exp-col h3 { font-size: 15px; }
  .exp-col ul { font-size: 13px; }

  .stand-list li { grid-template-columns: 60px 1fr; }
  .stand-list__no { font-size: 38px; }
}

/* =========================================================
   Swiss grid – desktop (≥901px)
   ========================================================= */
@media (min-width: 901px) {

  /* Hero: 文字占第 1–6 栏,说明文字占其中 4 栏 */
  .about-hero__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .about-hero__content { grid-column: 1 / 7; max-width: none; }
  .about-hero__text {
    max-width: calc((100% - 5 * var(--gutter)) / 6 * 4 + 3 * var(--gutter));
  }

  /* Who We Are / What We Stand For: 图片 1–6 栏,文字 7–12 栏 */
  .about-split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gutter);
  }
  .about-split__img  { grid-column: 1 / 7; }
  .about-split__text { grid-column: 7 / 13; }

  /* 20+ 和 10,000+ 各占 3 栏(第 7 栏和第 10 栏开始) */
  .about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 24px;
  }

  /* 01 / 02 / 03:数字占 1 栏,文字占 5 栏 */
  .stand-list li {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .stand-list__no { grid-column: 1; }
  .stand-list li > div { grid-column: 2 / 7; }

  /* Our Experience: 文字 1–6 栏,第 7 栏留白,图片 8–12 栏 */
  .exp-intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .exp-intro__text { grid-column: 1 / 7; }
  .exp-intro__img  { grid-column: 8 / 13; }
}

/* Desktop: keep the staff inside the content area (same rule as the Home page) */
@media (min-width: 901px) {
  .about-hero__staff {
    right: max(var(--pad), calc((100vw - var(--max)) / 2 - 35px));
  }
}