/* Home page — Figma node 2008:5123 (Draft 4 / 01 หน้าแรก). Comments give the Figma node id. */

/* ---------- Hero (2008:5182) ---------- */
.hero { position: relative; overflow: hidden; min-height: 660px; padding: 120px 0 160px; background: var(--white); }
.hero__bg-soft {                                   /* 2008:5183 */
  position: absolute; top: 0; left: calc(50% - 316.8px); width: 576px; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 45%, #000 80%, transparent 100%);
}
.hero__bg-soft img { opacity: .4; filter: blur(6px); }
.hero__photo {                                     /* 2008:5186 */
  position: absolute; top: 0; right: 0; width: 835.2px; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%), linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 46%);
          mask-image: linear-gradient(to top, transparent 0%, #000 22%), linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 46%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
.hero__content { position: relative; z-index: 1; }
.hero h1 { font-size: var(--fs-page-h1); line-height: var(--lh-page-h1); letter-spacing: -0.5px; color: var(--green-600); }
.hero__content > p { margin-top: 19.2px; max-width: 640px; font-size: 18px; line-height: 30.6px; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24.4px; }

/* ---------- Stats strip (2008:6644) — overlaps hero by 101px ---------- */
.stats { position: relative; z-index: 2; margin-top: -101px;   /* Figma places this strip at x=108, 12px left of the 120 grid */
  display: flex; flex-direction: column; gap: 18px; }
.stats__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  display: flex; align-items: center; gap: 18px; padding: 26px 24px;
  background: var(--white); border-radius: var(--r-20); box-shadow: 0 14px 40px rgba(21, 37, 28, .10);
}
.stat-card img { flex: none; }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 36px; line-height: 39.6px; color: var(--green-700); }
.stat-card span { display: block; font-size: 15px; line-height: 22.5px; color: var(--ink); }
.stats__pills {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 14px 28px; border-radius: var(--r-pill); background: var(--surface-5);
}
.stats__pills li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 21.2px; color: var(--green-700); }

/* ---------- Main block (2008:5203) ---------- */
.home-main {
  position: relative; margin-top: 19px; padding-top: 48px;
  background: radial-gradient(1931px 2575px at 100% 60%, rgba(255, 122, 26, .09) 0%, rgba(255, 122, 26, 0) 45%);
}

/* Rate card + table (2008:5391) */
.rate { display: flex; align-items: center; gap: 48px; padding-block: 20px; }
.rate__intro { flex: 0 0 414px; display: flex; flex-direction: column; align-items: flex-start; }
.rate__title { margin-top: 9.2px; font-size: 42px; line-height: 50.4px; color: var(--green-600); }
.rate__title--ink { color: var(--ink); }
.rate__lead { margin-top: 9.9px; font-size: 16px; line-height: 28px; color: var(--text); }
.rate__intro .btn { margin-top: 16px; }
.rate__table-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rate__scroll {
  overflow-x: auto; background: var(--white); border: 1px solid var(--border-table-outer); border-radius: var(--r-20);
  box-shadow: 0 16px 60px -10px rgba(11, 74, 46, .20), 0 1px 3px rgba(21, 37, 28, .10);
}
.rate-table { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; }
.rate-table col:first-child, .rate-table thead th:first-child { width: 192.6px; }
.rate-table thead th {
  position: relative; padding: 18px 12px 19px; background: var(--green-600); color: var(--white); text-align: center; vertical-align: top;
}
.rate-table thead th.is-high { background: var(--orange-500); }
.rate-table thead th.rate-table__corner { background: var(--surface-1); }
.rate-table__tier { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 700; line-height: 26px; }
.rate-table__days { display: block; margin-top: 1px; font-size: 14px; font-weight: 500; line-height: 21.2px; opacity: .9; }
.rate-table__badge {
  position: absolute; top: 8px; right: 10px; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--white); color: var(--orange-500); font-size: 11px; font-weight: 700; line-height: 16.6px;
}
.rate-table tbody th, .rate-table tbody td { height: 60px; border-top: 1px solid var(--border-table); font-size: 15px; line-height: 22.7px; }
.rate-table tbody th { padding: 18px 22px 18px; background: var(--surface-1); color: var(--green-600); font-weight: 700; text-align: left; }
.rate-table tbody td { padding: 18px 12px 18px 12px; border-left: 1px solid var(--border-table); color: var(--ink); font-weight: 600; text-align: center; }
.rate-table tbody td.is-high { background: var(--orange-50); }
.rate__note { font-size: 13px; line-height: 22.1px; color: var(--text-muted); }

/* Section heading (centered) */
.section-head { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.section-head h2 { font-size: 42px; line-height: 50.4px; color: var(--green-900); }
.section-head p { max-width: 640px; font-size: 16px; line-height: 28px; color: var(--text); }

/* Services (2008:5454) */
.services { padding-inline: 0; background: var(--green-50b); }
.services__deco-l { top: -100px; left: 0; width: 440px; height: 900px; }
.services__deco-r { top: -100px; right: 0; width: 440px; height: 900px; }
.services .wrap { display: flex; flex-direction: column; gap: 36px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--white);
  border-radius: var(--r-20); box-shadow: var(--shadow-card-md); transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(21, 37, 28, .16); }
.service-card__img { position: relative; height: 160px; overflow: hidden; }
.service-card__body { display: flex; align-items: center; gap: 16px; padding: 16px 20px 18px; min-height: 90px; }
.service-card__body img { flex: none; }
.service-card__body b { font-family: var(--font-heading); font-size: 18px; line-height: 25.2px; color: var(--green-700); }

/* Safety (2008:6242) */
.safety .wrap { padding-inline: 0; }
.safety__card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px;
  padding: 28px 32px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-24);
  box-shadow: 0 18px 44px rgba(21, 37, 28, .12);
}
.safety__deco { right: 0; bottom: 0; width: 742.7px; height: 374px; }
.safety__text { position: relative; flex: 0 0 442.4px; display: flex; flex-direction: column; align-items: flex-start; }
.safety__text h2 { margin-top: 10px; font-size: 30px; line-height: 38px; color: var(--ink); }
.safety__text p { margin-top: 10px; font-size: 16px; line-height: 28px; color: var(--text); }
.check-pills { display: flex; flex-wrap: wrap; gap: 8px 7.7px; margin-top: 12px; }
.check-pills li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--surface-footer); font-size: 13px; font-weight: 600; line-height: 19.6px; color: var(--ink);
}
.height-chart { position: relative; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); height: 318px; }
.height-chart__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.height-chart__col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 0; text-align: center; }
.height-chart__col + .height-chart__col { border-left: 1px solid var(--border); }
.height-chart__col b { font-family: var(--font-heading); font-size: 19px; line-height: 24.7px; color: var(--ink); }
.height-chart__col.is-max b { color: var(--orange-500); }
.height-chart__col span { font-size: 14px; line-height: 21.2px; color: var(--text-muted); }
.height-chart__col img { position: absolute; left: 50%; width: 77.6px; height: 61px; transform: translateX(-50%); }

/* Numbers (2008:6510) */
.numbers { background: var(--orange-50b); }
.numbers__deco { right: 0; bottom: 0; width: 560px; height: 300px; }
.numbers__inner { display: flex; align-items: center; justify-content: center; gap: 48px; }
.numbers__img { position: relative; flex: 0 0 552px; height: 380px; overflow: hidden; border-radius: var(--r-24); box-shadow: 0 20px 44px rgba(122, 74, 40, .14); }
.numbers__text { flex: 0 1 552px; display: flex; flex-direction: column; gap: 18px; }
.numbers__title { display: flex; align-items: center; gap: 12px; }
.numbers__title h2 { font-size: 32px; line-height: 40px; color: var(--green-900); }
.numbers__text > p { font-size: 16px; line-height: 28px; color: var(--text); }
.number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13.6px 14px; }
.number-card {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 19px 20px;
  background: var(--white); border-left: 4px solid var(--orange-500); border-radius: var(--r-14);
  box-shadow: 0 10px 24px rgba(122, 74, 40, .08);
}
.number-card strong { font-family: var(--font-heading); font-size: 36px; line-height: 39.6px; color: var(--green-600); }
.number-card strong em { font-style: normal; color: var(--orange-500); }
.number-card span { font-size: 14px; line-height: 21.2px; color: var(--text); }

/* Why us + clients (2008:6565) */
.why {
  display: flex; flex-direction: column; gap: 56px; padding-bottom: 48px;
  background:
    radial-gradient(1536px 2052px at 0% 0%, rgba(10, 138, 62, .07) 0%, rgba(10, 138, 62, 0) 40%),
    radial-gradient(1536px 2052px at 100% 100%, rgba(255, 122, 26, .07) 0%, rgba(255, 122, 26, 0) 40%),
    var(--white);
}
.why .wrap { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.section-head--why { gap: 10.4px; }
.section-head--why h2 { color: var(--ink); }
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 996px; }
.why-card {
  display: flex; align-items: center; gap: 16px; width: 320px; padding: 18px 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-20); box-shadow: var(--shadow-soft);
}
.why-card img { flex: none; }
.why-card div { display: flex; flex-direction: column; gap: 0.3px; }
.why-card b { font-family: var(--font-heading); font-size: 18px; line-height: 23px; color: var(--green-700); }
.why-card span { font-size: 15px; line-height: 24px; color: var(--text); }
.clients {
  width: calc(100% - 48px); max-width: 1152px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 26px 28px 30px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-24); box-shadow: 0 14px 34px rgba(21, 37, 28, .06);
}
.clients h2 { font-size: 30px; line-height: 36px; color: var(--green-900); text-align: center; }
.clients__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 17.9px; }
.clients__logos li { display: flex; align-items: center; justify-content: center; width: 140.9px; height: 64px; }
.clients__logos img { width: auto; max-width: 100%; max-height: 60px; object-fit: contain; }

/* ---------- Zone rate cards (2008:6718) ---------- */
.zones { background: var(--green-50b); }
.zones__deco { top: -262px; right: -42px; width: 230px; height: 820px; }  /* Frame 1 is 1443 wide → deco sits 42px past 1440 */
.zones__inner { display: flex; align-items: center; gap: 36px; }
.zones__intro { flex: 0 0 334.8px; }
.zones__intro .rate__title { margin-top: 9.2px; }
.zone-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.zone-card {
  position: relative; overflow: hidden; height: 354px; background: var(--white);
  border: 1px solid var(--border-card); border-radius: var(--r-20); box-shadow: 0 14px 32px rgba(21, 37, 28, .12);
}
.zone-card.is-high { border: 2px solid var(--orange-500); box-shadow: 0 20px 44px rgba(255, 122, 26, .18); }
.zone-card__head { position: relative; height: 98px; padding: 16px 20px 30px; background: var(--green-600); color: var(--white); }
.zone-card.is-high .zone-card__head { background: var(--orange-500); }
.zone-card__head span { display: block; font-size: 14px; font-weight: 600; line-height: 21.2px; opacity: .9; }
.zone-card__head strong { display: block; font-family: var(--font-heading); font-size: 24px; line-height: 31.2px; }
.zone-card__badge {
  position: absolute; top: 14px; right: 13.3px; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--white); color: var(--orange-500); font-style: normal; font-size: 13px; font-weight: 700; line-height: 19.6px;
}
.zone-card__mark {
  position: absolute; top: 81px; left: 20px; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--white); box-shadow: 0 6px 14px rgba(21, 37, 28, .14);
  font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 20.8px; color: var(--green-600);
}
.zone-card.is-high .zone-card__mark { color: var(--orange-500); }
.zone-card__body { display: flex; flex-direction: column; gap: 10px; padding: 31px 20px 20px; }
.zone-card__body > img { width: 100%; height: 28px; }
.zone-card dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.zone-card dl div { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border-table); font-size: 14px; line-height: 21.2px; }
.zone-card dt { color: var(--text); }
.zone-card dd { margin: 0; font-weight: 700; color: var(--green-600); }
.zone-card.is-high dd { color: var(--orange-500); }
.zone-card__btn {
  display: block; padding: 11px; border: 1px solid var(--green-600); border-radius: var(--r-12); text-align: center;
  font-size: 14px; font-weight: 700; line-height: 21.2px; color: var(--green-600); transition: background-color .15s;
}
.zone-card__btn:hover { background: var(--green-50b); }
.zone-card.is-high .zone-card__btn { border: 0; background: var(--orange-500); color: var(--white); }

/* ---------- Works (2008:6866) ---------- */
.works { margin-top: 10px; padding-bottom: 24px; }
.works .wrap { padding-inline: 0; }
.works__box {
  display: grid; grid-template-columns: 270.6px 1fr 347.9px; gap: 18px; padding: 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-24); box-shadow: 0 18px 44px rgba(21, 37, 28, .12);
}
.works__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 7.3px 8px; }
.works__intro h2 { font-size: 28px; line-height: 33.6px; color: var(--green-900); }
.works__btn { padding: 11px 20px; font-size: 15px; line-height: 22.7px; }
.works__btn img { width: 16px; height: 16px; }
.works__main { position: relative; height: 340px; overflow: hidden; border-radius: var(--r-20); }
.works__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 74, 46, 0) 40%, rgba(11, 74, 46, .88) 100%); }
.works__main figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--white); font-size: 15px; line-height: 24px; }
.works__tag { padding: 6px 14px; border-radius: var(--r-pill); background: var(--green-600); font-size: 14px; font-weight: 700; line-height: 21.2px; }
.works__list { display: flex; flex-direction: column; gap: 12px; }
.works__item { position: relative; height: 105.3px; overflow: hidden; border-radius: var(--r-14); }
.works__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(11, 74, 46, .85), rgba(11, 74, 46, .15)); }
.works__item figcaption { position: absolute; z-index: 1; left: 14px; bottom: 10px; display: flex; flex-direction: column; gap: 3px; color: var(--white); }
.works__item b { font-size: 15px; line-height: 22.7px; }
.works__item span { font-size: 13px; line-height: 19.6px; }

/* ---------- FAQ (2008:6907) ---------- */
.faq { margin-top: 10px; padding-top: 24px; }
.faq .wrap { display: flex; flex-direction: column; gap: 20px; }
.faq__title { font-size: 34px; line-height: 40.8px; color: var(--ink); }
.faq__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.faq__card {
  display: flex; flex-direction: column; padding: 6px 22px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-20); box-shadow: 0 10px 26px rgba(21, 37, 28, .10);
}
.faq__card:first-child { padding-top: 14px; }
.faq-item { padding: 14px 4px 14px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 20.8px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: url("../assets/icons/icon-28x28-a0e3066941.svg") center / 28px no-repeat;
}
.faq-item p { margin-top: 8px; font-size: 15px; line-height: 25.5px; color: var(--text); }
.faq-item p:empty { display: none; }
.faq-item[open] { margin: 0 -12px 8px; padding: 14px 16px 15px; border-bottom: 0; border-radius: var(--r-14); background: var(--green-50b); }
.faq-item[open] summary::after { background-image: url("../assets/icons/icon-28x28-9230021c36.svg"); }

/* ---------- CTA (2008:6962) ---------- */
.home-cta { margin-top: 10px; padding-bottom: 5px; }   /* footer overlaps the section by 30px in Figma */
.home-cta .wrap { padding-inline: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .safety .wrap, .works .wrap, .home-cta .wrap { padding-inline: var(--container-pad); }
  .hero__content { padding-inline: var(--container-pad); }
  /* too narrow to put the text beside the 835px photo: photo becomes a faint backdrop (same as mobile) */
  .hero__bg-soft { display: none; }
  .hero__photo { width: 100%; opacity: .18; }
}
/* Between 1241px and ~1920px the text column is narrowed (so it wraps) to stop at the photo's left edge.
   Photo is 835.2px wide, right-aligned; content starts at max(24px, (100vw - 1200px) / 2). Caps at the original 640px. */
@media (min-width: 1241px) {
  .hero h1, .hero__content > p { max-width: min(640px, calc(100vw - 835.2px - max(24px, (100vw - 1200px) / 2) - 32px)); }
}
@media (min-width: 1241px) and (max-width: 1813px) {
  .hero__content > p .br-d { display: none; }   /* column is narrower than 640px: let the text wrap naturally */
}
@media (max-width: 1100px) {
  .stats__cards { grid-template-columns: repeat(2, 1fr); }
  .rate, .zones__inner, .numbers__inner { flex-direction: column; align-items: stretch; }
  .rate__intro, .zones__intro { flex-basis: auto; }
  .numbers__img { flex-basis: auto; height: 320px; }
  .numbers__text { flex-basis: auto; }
  .safety__card { flex-direction: column; align-items: stretch; }
  .safety__text { flex-basis: auto; }
  .works__box { grid-template-columns: 1fr 1fr; }
  .works__intro { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 64px 0 140px; }
  .hero__photo { width: 100%; opacity: .18; }
  .hero__bg-soft, .services__deco-l, .services__deco-r { display: none; }
  .hero h1 { font-size: 44px; line-height: 1.14; }
  .hero__content > p { font-size: 16px; line-height: 1.7; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .zone-grid { grid-template-columns: 1fr; max-width: 360px; }
  .faq__cols { grid-template-columns: 1fr; }
  .section-head h2, .rate__title { font-size: 32px; line-height: 1.2; }
}
@media (max-width: 600px) {
  .stats__cards, .service-grid, .number-grid, .works__box { grid-template-columns: 1fr; }
  .stats__pills { border-radius: var(--r-20); padding: 16px 20px; }
  .height-chart { min-width: 560px; }
  .safety__card { overflow-x: auto; padding: 24px 20px; }
  .why-card { width: 100%; }
}

/* Figma "Frame 1" (2008:6717) is 1443px wide, so the works box and CTA box are 1203px, overhanging the grid by 3px */
@media (min-width: 1241px) {
  .works__box, .home-cta .cta-band__box { margin-right: -3px; }
  .stats { left: -12px; }   /* Figma places this strip at x=108, 12px left of the 120 grid */
}

/* review H-04: service card description + detail link */
.service-card__desc { padding: 0 20px; font-size: 14.5px; line-height: 24px; color: var(--text); }
.service-card__more { display: block; padding: 6px 20px 18px; font-size: 14px; font-weight: 700; color: var(--green-600); }
.service-card__more::after { content: ' →'; }
