/* ============================================================
   home.css — ทุกอย่างที่ใช้เฉพาะหน้าแรก (รวมจาก hero+features+highlights+products เดิม)
   ไฟล์นี้ลบทิ้งได้ทั้งไฟล์โดยไม่กระทบหน้าอื่น
   ============================================================ */

/* ============================================================
   Section Hero — พื้นหลังภาพแล็บ + ไล่สีมิ้นต์
   ============================================================ */

.hero {
  position: relative;
  min-height: 900px;
  padding-top: calc(var(--header-h) + 18px);
  padding-bottom: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/hero-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ไล่สีทับด้านล่างให้กลืนกับ Section ถัดไป */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
background: linear-gradient(180deg, rgb(246 251 250 / 0%) 0%, rgb(238 248 246 / 0%) 32%, rgb(198 227 222 / 57%) 74%, var(--c-mint-300) 100%);
}

/* ---------- หัวข้อ Hero ---------- */
.hero__head { text-align: center; }

.hero__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 6px;
  /* max-width: 320px; */
  max-width: 700px;
}

.hero__rule::before,
.hero__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 174, 158, .5));
}

.hero__rule::after { transform: scaleX(-1); }

.hero__quote {
  display: flex;
  align-items: center;
}

.hero__quote img {
  /* width: 28px;
  height: 28px; */
  width: 35px;
  height: 35px;
}

/* ---------- ย่อหน้าแนะนำ ---------- */
.hero__lead {
  margin: 20px auto 0;
  /* max-width: 760px; */
  /* font-size: 18px; */
  font-size: 20px;
  /* max-width: 800px; */
  line-height: 1.85;
  color: var(--c-text);
  text-align: center;
}

.hero__lead br { display: inline; }

/* ---------- Tagline ---------- */
.hero__tagline {
  /* margin: 30px auto 0; */
  padding-bottom: 10px;
  text-align: center;
  font-family: var(--f-latin);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-title);
  letter-spacing: .2px;
}

.hero__tagline em {
  font-style: normal;
  color: var(--c-teal-500);
}

.text-innovation-forlife {
  background: -webkit-linear-gradient(135deg, #5edc31, #1084d9);
  background: linear-gradient(135deg, #5edc31, #1084d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- แถบการ์ด 4 ใบใน Hero ---------- */
.hero__cards { margin-top: 46px; }

/* ============================================================
   การ์ดจุดเด่น 4 ใบ (อยู่ในโซน Hero)
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  padding: 66px 22px 34px;
  border-radius: var(--r-md);
  text-align: center;
  background: linear-gradient(360deg, rgba(236, 252, 249, 0.62) 0%, rgba(219, 240, 236, .78) 34%, rgba(252, 254, 254, .95) 56%, rgba(255, 255, 255, .97) 100%);
  border: 1px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--sh-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
}

/* ---------- วงกลมไอคอน ---------- */
.feature__icon {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #81CFC2;
  background: linear-gradient(0deg, rgba(129, 207, 194, 1) 18%, rgba(91, 220, 35, 1) 100%);
  box-shadow: 0 8px 20px rgba(31, 74, 68, .10);
}

.feature__icon svg {
  width: 30px;
  height: 30px;
  color: var(--c-teal-500);
}

.feature__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* ---------- ข้อความ ---------- */
.feature__title {
  font-family: var(--f-latin);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-title);
}

.feature__line {
  display: block;
  width: 34px;
  height: 2.5px;
  margin: 16px auto;
  border-radius: 2px;
  background: var(--c-teal-400);
}

.feature__text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--c-text);
}

/* ============================================================
   แถบสีเขียวมิ้นต์ 4 หัวข้อ (คร่อมรอยต่อ Hero)
   ============================================================ */

.highlights {
  position: relative;
  z-index: 2;
  margin-top: -80px;
  padding-bottom: 90px;
}

.highlights__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 32px 34px;
  border-radius: var(--r-lg);
  background: var(--c-teal-400);
  background: linear-gradient(132deg, rgba(129, 207, 194, 1) 0%, rgba(108, 194, 202, 1) 40%, rgba(11, 131, 241, 1) 81%);
  box-shadow: 0 18px 40px rgba(80, 174, 158, .28);
}

.highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--c-white);
}

.highlight__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  /* border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75); */
}

.highlight__icon svg {
  width: 22px;
  height: 22px;
  color: var(--c-white);
}

.highlight__icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: .7;
}

.highlight__title {
  font-family: var(--f-latin);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-white);
}

.highlight__text {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .92);
}

/* ============================================================
   Section Motto ENZEA
   ============================================================ */

.motto-company {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, var(--c-mint-100) 0%, var(--c-mint-200) 100%);
}

.motto__eyebrow {
  margin: 30px 0 6px;
  font-size: 16px;
  color: var(--c-title);
  font-weight: 600;
  line-height: 1.4;
}

.motto__word {
  font-family: var(--f-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
}

.motto__word span { color: var(--c-teal-700); }
.motto__word span:nth-child(2) { color: var(--c-teal-600); }
.motto__word span:nth-child(3) { color: var(--c-teal-500); }
.motto__word span:nth-child(4) { color: var(--c-teal-400); }

.motto__lead {
  margin: 16px auto 0;
  max-width: 800px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
}

.motto__cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 50px;
}

.motto-company .section-footer {
  margin-top: 34px;
  text-align: center;
}

.motto__col {
  padding: 0 20px;
  text-align: center;
  border-left: 1px solid #d1d9d8;
}

.motto__col:first-child { border-left: 0; }

.motto__col-letter {
  display: block;
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--c-teal-400);
  line-height: 1;
}

/* สีของตัวอักษรแต่ละคอลัมน์ ปรับแยกทีละตัวได้ที่นี่ */
.motto__col:nth-child(1) .motto__col-letter { color: #16873f; } /* E — เขียวอมฟ้า */
.motto__col:nth-child(2) .motto__col-letter { color: #1a9f73; } /* N — เขียวสด */
.motto__col:nth-child(3) .motto__col-letter { color: #13b18e; } /* Z — ฟ้าสด */
.motto__col:nth-child(4) .motto__col-letter { color: #2a8bd2; } /* E — ฟ้าอมเขียว (cyan) */
.motto__col:nth-child(5) .motto__col-letter { color: #0b88f5; } /* A — เขียวมะนาว (fallback ของ gradient) */

.motto__col-phrase {
  font-family: var(--f-latin);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-title);
}

.motto__col-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text);
}

/* ============================================================
   Section ผลิตภัณฑ์ของเรา
   ============================================================ */

.leaf-divider {
  display: flex;
  justify-content: center;
}

.leaf-divider img {
  width: 50px;
  height: auto;
}

.products {
  padding: 60px 0 130px;
  background: linear-gradient(180deg,
      var(--c-mint-300) 0%,
      var(--c-mint-100) 14%,
      var(--c-mint-100) 52%,
      var(--c-mint-300) 100%);
}

.products__list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* ---------- การ์ดสินค้า ---------- */
.product-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  align-items: center;
  /* gap: 48px; */
  padding: 1rem 1rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--c-card) 100%);
  box-shadow: var(--sh-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  gap: 3rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-card-hover);
}

.product-card__name {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: .3px;
  color: var(--c-title);
}

.product-card__sub {
  margin-top: 4px;
  font-family: var(--f-latin);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-title);
}

.product-card__desc {
  margin-top: 22px;
  max-width: 505px;
  font-size: 16px;
  color: var(--c-text);
}

.product-card__cta { margin-top: 30px; }

.product-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
}


.product-card__body {
  padding: 0 2rem;
}

.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 37, .52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #ffffff 0%, var(--c-card) 100%);
  box-shadow: 0 30px 70px rgba(13, 31, 37, .28);
}

.product-modal__media-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(129, 207, 194, .12);
}

.product-modal__media {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

.product-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-teal-600);
  font-weight: 700;
}

.product-modal__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 300;
  color: var(--c-title);
}

.product-modal__text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
}

.product-modal__list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.9;
}

.product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 74, 68, .08);
  color: var(--c-title);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.product-modal__trigger {
  border: 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .product-modal__dialog {
    grid-template-columns: 1fr;
    padding: 20px 18px 18px;
  }

  .product-modal__media {
    max-height: 260px;
  }
}

/* สลับฝั่งภาพ (การ์ดใบคู่) — ปิดไว้ตาม design ปัจจุบัน แต่พร้อมใช้งาน */
.product-card--reverse .product-card__body { order: 2; }
.product-card--reverse .product-card__media { order: 1; }
