/* ============================================================
   pages/about.css — 集團簡介｜關於金莉韓(slug: about)
   主題 tokens + BEM 命名空間 about-*;拱形用 border-radius;斷點 1280/1024/768/640。
   ============================================================ */
:root {
  --ab-pad: clamp(1rem, 3vw, 3rem);
  --ab-maxw: 1200px;
  --ab-arch: 50% 50% 0 0 / 44% 44% 0 0;
  --ab-fs-hero: calc(
    var(--fs-heading-scale) * clamp(1rem, calc(0.515rem + 2.071vw), 3rem)
  ); /* 16→48 */
  --ab-fs-brand: calc(
    var(--fs-heading-scale) * clamp(0.875rem, calc(0.602rem + 1.165vw), 2rem)
  ); /* 14→32 */
  --ab-fs-tag: calc(
    var(--fs-heading-scale) * clamp(0.813rem, calc(0.646rem + 0.712vw), 1.5rem)
  ); /* 13→24 */
  --ab-fs-sub: calc(
    var(--fs-heading-scale) * clamp(0.813rem, calc(0.706rem + 0.453vw), 1.25rem)
  ); /* 13→20 */
  --ab-fs-body: calc(
    var(--fs-body-scale) * clamp(0.75rem, calc(0.718rem + 0.138vw), 0.883rem)
  ); /* 12→14 */
  --ab-fs-sec: calc(
    var(--fs-heading-scale) * clamp(0.813rem, calc(0.646rem + 0.712vw), 1.5rem)
  ); /* 13→24 */
  --ab-fs-pcard: calc(
    var(--fs-heading-scale) * clamp(0.813rem, calc(0.72rem + 0.394vw), 1.192rem)
  ); /* 13→19 */
  --ab-fs-ptext: calc(
    var(--fs-body-scale) * clamp(0.75rem, calc(0.739rem + 0.047vw), 0.795rem)
  ); /* 12→12.7 */
  --ab-fs-stext: calc(
    var(--fs-body-scale) * clamp(0.75rem, calc(0.689rem + 0.259vw), 1rem)
  ); /* 12→16 */
  --ab-fs-mtitle: calc(
    var(--fs-heading-scale) * clamp(0.813rem, calc(0.524rem + 1.23vw), 2rem)
  ); /* 13→32 */
  --ab-fs-mtext: calc(
    var(--fs-body-scale) * clamp(0.75rem, calc(0.629rem + 0.518vw), 1.25rem)
  ); /* 12→20 */
  --ab-fs-btnlg: calc(
    var(--fs-body-scale) * clamp(0.813rem, calc(0.706rem + 0.453vw), 1.25rem)
  ); /* 13→20 */
  --ab-bullet-light: #d8d5d0;
  --ab-warm: #5f5950;
}

/* 按鈕 */
.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.9em;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--ab-fs-btnlg);
  line-height: 1.2;
  border: 2px solid transparent;
  white-space: nowrap;
  transition:
    background var(--ease-base),
    color var(--ease-base);
}
.about-btn--primary {
  background: var(--color-brand);
  color: #fff;
}
.about-btn--primary:hover {
  background: var(--color-brand-hover);
}
.about-btn--outline-dark {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.about-btn--outline-dark:hover {
  background: var(--color-brand);
  color: #fff;
}
.about-btn--outline-light {
  border-color: #fff;
  color: #fff;
}
.about-btn--outline-light:hover {
  background: #fff;
  color: var(--color-dark);
}

/* ── HERO ── */
.about-hero {
  position: relative;
  min-height: clamp(150px, 24vw, 365px);
  display: grid;
  place-items: center;
  overflow: hidden;
  /* 背景圖寫在 background：底色 + 食物照(cover 縮放、非固定) */
  background: var(--color-dark) url("../../images/about/hero.webp") center /
    cover no-repeat;
}
.about-hero__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: var(--ab-fs-hero);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  padding: 0 var(--ab-pad);
  text-align: center;
}

/* ── INTRO(grid-areas)── */
.about-intro {
  background: var(--color-surface);
  color: var(--color-text);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--ab-pad);
  margin: 0 auto;
  display: grid;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 1.25rem;
  align-items: center;
  grid-template-columns: minmax(0, 380px) minmax(0, 528px);
  grid-template-areas: "img head" "img group" "img exp" "img act";
  justify-content: center;
}
.about-intro__image {
  grid-area: img;
}
.about-intro__image img {
  width: 100%;
  border-radius: var(--ab-arch);
}
.about-intro__heading {
  grid-area: head;
}
.about-intro__group {
  grid-area: group;
}
.about-intro__exp {
  grid-area: exp;
}
.about-intro__actions {
  grid-area: act;
}
.about-intro__brand {
  color: var(--color-heading);
  font-size: var(--ab-fs-brand);
  font-weight: 500;
}
.about-intro__tagline {
  color: var(--color-text);
  font-size: var(--ab-fs-tag);
}
.about-intro__subtitle {
  color: var(--color-heading);
  font-size: var(--ab-fs-sub);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.about-intro__text {
  color: #000;
  font-size: var(--ab-fs-body);
}
.about-intro__text + .about-intro__text {
  margin-top: 0.9rem;
}
.about-intro__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.about-intro__list li {
  position: relative;
  padding-left: 1.15em;
  font-size: var(--ab-fs-body);
  color: #000;
}
.about-intro__list li::before {
  content: "•";
  position: absolute;
  left: 0.15em;
  color: var(--color-brand);
}

/* ── PHILOSOPHY(深色 3 卡)── */
.about-philosophy {
  background: var(--color-dark) url("../../images/about/bg-dark.webp") center /
    cover;
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--ab-pad);
}
.about-philosophy__title {
  text-align: center;
  font-size: var(--ab-fs-sec);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.about-philosophy__cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--ab-maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.about-card {
  display: flex;
  flex-direction: column;
}
.about-card__img {
  width: 100%;
  aspect-ratio: 313 / 224;
  object-fit: cover;
}
.about-card__body {
  padding-top: 1rem;
}
.about-card__title {
  font-size: var(--ab-fs-pcard);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.about-card__text {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-card__text li {
  position: relative;
  padding-left: 1.15em;
  font-size: var(--ab-fs-ptext);
  color: #fff;
}
.about-card__text li::before {
  content: "•";
  position: absolute;
  left: 0.15em;
  color: var(--ab-bullet-light);
}

/* ── HISTORY(淺色 3 卡 + CTA)── */
.about-history {
  background: var(--color-surface);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--ab-pad);
}
.about-history__title {
  text-align: center;
  color: var(--color-heading);
  font-size: var(--ab-fs-sec);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.about-history__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--ab-maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}
.about-step {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 21px rgba(0, 0, 0, 0.25);
}
.about-step__img {
  width: 100%;
  aspect-ratio: 370 / 280;
  object-fit: cover;
}
.about-step__body {
  background: #fff;
  padding: 1.5rem;
  flex: 1;
}
.about-step__title {
  color: var(--color-heading);
  font-size: var(--ab-fs-sub);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.about-step__text {
  font-size: var(--ab-fs-stext);
  color: var(--ab-warm);
}
.about-step__text + .about-step__text {
  margin-top: 0.75rem;
}
.about-history__actions {
  text-align: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ── MODEL(深色 3 拱形卡 + 紅 divider + CTA)── */
.about-model {
  background: var(--color-dark) url("../../images/about/bg-dark.webp") center /
    cover;
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--ab-pad);
}
.about-model__title {
  text-align: center;
  font-size: var(--ab-fs-sec);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.about-model__cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--ab-maxw);
  display: flex;
  gap: clamp(1.5rem, 5rem, 4vw);
  justify-items: center;
  justify-content: center;
  align-items: start;
}
.about-mcard {
  display: grid;
  grid-template-areas: "img" "title" "meta" "text";
  justify-items: center;
  text-align: center;
  max-width: 300px;
  row-gap: 0.25rem;
}
.about-mcard__img {
  grid-area: img;
  width: clamp(220px, 20vw, 297px);
  border-radius: var(--ab-arch);
}
.about-mcard__title {
  grid-area: title;
  font-size: var(--ab-fs-mtitle);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 1rem;
}
.about-mcard__divider {
  grid-area: meta;
  display: block;
  width: 100%;
  max-width: 297px;
  height: clamp(16px, 2.1vw, 34px);
  /* 裝飾紅條:中間紅、兩邊漸透明 */
  background: linear-gradient(
    to right,
    transparent,
    var(--color-brand) 50%,
    transparent
  );
  margin: 0.5rem 0;
}
.about-mcard__text {
  grid-area: text;
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-mcard__text li {
  position: relative;
  padding-left: 1.15em;
  font-size: var(--ab-fs-mtext);
  color: #fff;
  text-align: left;
}
.about-mcard__text li::before {
  content: "•";
  position: absolute;
  left: 0.15em;
  color: var(--ab-bullet-light);
}
.about-model__actions {
  text-align: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================================ RWD ============================================================ */
@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "head" "group" "exp" "act";
    justify-items: start;
    max-width: 640px;
  }
  .about-intro__image {
    justify-self: center;
  }
  .about-intro__image img {
    width: clamp(240px, 60vw, 320px);
  }
  .about-philosophy__cards,
  .about-history__grid,
  .about-model__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about-hero {
    min-height: 150px;
    background-image: url("../../images/about/hero-m.webp");
  }
  .about-hero__title {
    font-weight: 600;
  }
  .about-intro {
    padding: 1.9rem 2.9rem;
    grid-template-columns: 112px 1fr;
    grid-template-areas: "img head" "group group" "exp exp" "act act";
    column-gap: 1rem;
    row-gap: 1rem;
  }
  .about-intro__image img {
    width: 112px;
  }
  .about-intro__brand {
    font-size: 1rem;
  }
  .about-intro__tagline {
    font-size: 0.8125rem;
  }
  .about-intro__subtitle {
    font-size: 1rem;
  }
  .about-intro__actions {
    justify-self: center;
  }

  .about-philosophy,
  .about-history,
  .about-model {
    padding: 1.8rem var(--ab-pad);
  }
  .about-philosophy__cards,
  .about-history__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 240px;
    margin: 0 auto;
  }
  .about-philosophy__title,
  .about-history__title,
  .about-model__title {
    font-weight: 600;
    margin-bottom: 1rem;
  }
  .about-card__title {
    text-align: center;
    font-weight: 600;
  }
  .about-card__img {
    aspect-ratio: 240 / 172;
  }
  .about-history__grid {
    max-width: 290px;
  }
  .about-step__img {
    aspect-ratio: 290 / 157;
  }
  .about-step__title {
    font-weight: 600;
  }

  .about-model__cards {
    flex-direction: column;
    gap: 2.25rem;
    max-width: 303px;
  }

  .about-mcard {
    grid-template-columns: 112px 1fr;
    grid-template-areas: "img title" "img meta" "img text";
    column-gap: 1rem;
    justify-items: start;
    text-align: left;
    max-width: none;
    align-content: start;
  }
  .about-mcard__img {
    width: 112px;
  }
  .about-mcard__title {
    font-weight: 600;
    margin-top: 0;
    text-align: center;
    width: 100%;
  }
  .about-mcard__divider {
    min-height: 16px;
    min-width: 182px;
  }

  .about-btn {
    font-weight: 600;
  }
}
