/* ==========================================================================
   home.css — หน้าแรกเท่านั้น
   ========================================================================== */

/* [2] Hero: กล่องมุมโค้งพื้นรูปมืด (แถบเมนูลอยทับด้านบน) ---------------- */
.hero { padding: 12px 12px 0; }
.hero__box {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 34rem + 14vw, 780px);
  padding: calc(var(--header-h) + 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius-lg);
}
/* รูปสูงกว่ากรอบ 45% เพื่อตัดตัวหนังสือ PMS ที่อยู่ขอบล่างของรูปออก (ทุกขนาดจอ) */
.hero__bg { position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 145%; object-fit: cover; object-position: center top; }
.hero__box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 14 34 / 0.82) 0%, rgb(8 14 34 / 0.5) 42%, rgb(8 14 34 / 0.05) 75%),
    linear-gradient(0deg, rgb(8 14 34 / 0.5) 0%, transparent 35%);
}

.hero__content { max-width: 640px; }
.hero__title { margin-bottom: 1.25rem; font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem); font-weight: 500; line-height: 1.12; }
.hero__lead { max-width: 480px; font-size: 1rem; text-shadow: 0 1px 2px rgb(0 0 0 / 0.7), 0 0 18px rgb(0 0 0 / 0.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }


/* ป้ายลอยบนรูป (hotspot) */
.hotspot { position: absolute; display: flex; align-items: flex-start; gap: 0.5rem; color: var(--white); text-decoration: none; }
.hotspot__dot { position: relative; flex-shrink: 0; width: 26px; height: 26px; margin-top: -10px; background: var(--brand); border: 3px solid rgb(255 255 255 / 0.8); border-radius: 50%; }
.hotspot__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 2px; margin: -1px 0 0 -4px; background: var(--white); }
.hotspot__label { display: flex; flex-direction: column; padding: 0.55rem 0.9rem; background: rgb(255 255 255 / 0.16); border: 1px solid rgb(255 255 255 / 0.25); border-radius: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hotspot__label strong { font-size: 0.9375rem; font-weight: 600; color: var(--white); }
.hotspot__label span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; color: rgb(255 255 255 / 0.85); }
.hotspot__label .icon { width: 0.85rem; height: 0.85rem; transition: transform .2s var(--ease); }
.hotspot:hover .hotspot__label { background: rgb(255 255 255 / 0.26); }
.hotspot:hover .hotspot__label .icon { transform: translateX(3px); }
.hero__hotspot { left: 48%; top: 52%; }

/* จุดเด่น 3 ข้อ ------------------------------------------------------------ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  background: var(--gray-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.feature-strip li { display: flex; align-items: center; gap: 1rem; }
.feature-strip__title { margin-bottom: 0.15rem; font-size: 1rem; font-weight: 600; }
.feature-strip p { font-size: 0.8125rem; line-height: 1.55; color: var(--gray-500); }

/* การ์ดโปรโมต 2 ใบ --------------------------------------------------------- */
.promo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.promo-card { position: relative; display: grid; min-height: clamp(320px, 22rem + 4vw, 420px); overflow: hidden; color: inherit; text-decoration: none; border-radius: var(--radius); }
.promo-card__media { position: relative; overflow: hidden; }
.promo-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.promo-card:hover .promo-card__media img { transform: scale(1.05); }
.promo-card__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.promo-card__title { display: block; margin-bottom: 1.25rem; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 500; line-height: 1.3; }
/* แบบน้ำเงิน: แผงสีซ้าย + รูปขวา */
.promo-card--brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--brand); }
.promo-card--brand .promo-card__media { order: 2; }
.promo-card--brand .promo-card__body { --color-accent: var(--tint-2); color: var(--white); }
.promo-card--brand .round-arrow { color: var(--brand); background: var(--white); }
/* แบบขาว: รูปบน + ข้อความล่าง */
.promo-card--white { grid-template-rows: minmax(0, 1.2fr) auto; background: var(--white); border: 1px solid var(--color-border); }
.promo-card--white .promo-card__media { margin: 1rem 1rem 0; border-radius: 12px; }
.promo-card--white .promo-card__body { padding-top: 1.25rem; }
.promo-card--white .promo-card__title { color: var(--black); }

/* [4] สินค้าและบริการ (การ์ดหมวดอยู่ใน product.css) ------------------------- */
.featured { margin-top: 2.5rem; }
.featured__title { margin-bottom: 1.25rem; font-size: 1.25rem; }

/* [5] แบนเนอร์แบ่งครึ่ง: รูปซ้าย + แผงน้ำเงินขวา ----------------------------- */
.split-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(380px, 24rem + 6vw, 500px); overflow: hidden; border-radius: var(--radius); }
.split-banner__media { position: relative; min-height: 300px; }
.split-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-banner__hotspot { right: 12%; bottom: 18%; }
.split-banner__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(1.75rem, 1rem + 4vw, 4rem); background: var(--brand); }
.split-banner__body h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.3; }
.split-banner__body p { max-width: 460px; font-size: 0.9375rem; }
.split-banner__body .btn { margin-top: 1.25rem; }

/* ผลงานล่าสุด: หัวข้อ + เส้นลูกศรวาดมือ ----------------------------------- */
.works-head { display: flex; align-items: flex-end; gap: 1.5rem; }
.works-head__swirl { flex-shrink: 0; width: 110px; height: 40px; margin-bottom: 0.4rem; color: var(--brand); }

/* [3] ชวนติดต่อ: แผงสีฟ้าอ่อน + ปุ่มช่องทางติดต่อ ------------------------------ */
.quick { padding-bottom: var(--section-y); }
.quick--spaced { padding-top: var(--section-y); }
.quick__panel { text-align: center; }
.quick__panel h2 { max-width: 640px; margin-inline: auto; }
.quick__panel > p { max-width: 620px; margin-inline: auto; font-size: 0.9375rem; }
.quick__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.75rem; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 991px) {
  .feature-strip, .promo__grid, .split-banner { grid-template-columns: 1fr; }
  .hero__hotspot { display: none; }
}
@media (max-width: 767px) {
  .hero__box { min-height: 0; padding-top: calc(var(--header-h) + 4rem); }
}
@media (max-width: 575px) {
  .hero { padding: 8px 8px 0; }
  .hero__box { border-radius: var(--radius); }
  .hero__actions .btn { flex: 1 1 100%; }
  .split-banner, .promo-card { border-radius: var(--radius); }
  .promo-card--brand { grid-template-columns: 1fr; grid-template-rows: 240px auto; }
  .promo-card--brand .promo-card__media { order: 0; }
  .works-head__swirl { display: none; }
  .quick__actions .btn { width: 100%; }
}
@media (max-width: 375px) {
  .hero__title { font-size: 2.125rem; }
}
