/* ==========================================================================
   home.css — ดีไซน์หน้าแรกใหม่ (Premium Redesign)
   • คงโทนแบรนด์แดงเดิม (#e80002 / #b10501 / #960701) ให้ดูพรีเมียมขึ้น
   • เนื้อหา/ข้อมูลเดิมครบทุกอย่าง
   • ใช้ร่วมกับ unitegallery / slick / layerslider ได้ (ไม่แตะ JS เดิม)
   • ทุกคลาสขึ้นต้นด้วย .hm- เพื่อไม่ให้กระทบหน้าอื่น
   ========================================================================== */

:root {
  --hm-red: #e80002;
  --hm-red-2: #b10501;
  --hm-red-3: #960701;
  --hm-grad: linear-gradient(120deg, #e80002 0%, #960701 100%);
  --hm-grad-soft: linear-gradient(120deg, #fff5f5 0%, #fdeeee 100%);
  --hm-ink: #1f2328;
  --hm-ink-soft: #5b6168;
  --hm-line: rgba(17, 17, 17, .08);
  --hm-bg-alt: #faf7f6;
  --hm-shadow: 0 22px 45px -28px rgba(31, 12, 12, .45);
  --hm-shadow-sm: 0 10px 24px -16px rgba(31, 12, 12, .40);
  --hm-radius: 18px;
}

/* ---------- จังหวะ section ---------- */
.hm-section { padding: 64px 0; position: relative; }
.hm-section.hm-alt { background: var(--hm-bg-alt); }
.hm-container { max-width: 1200px; }
@media (max-width: 991px) { .hm-section { padding: 42px 0; } }

/* ---------- หัวข้อ (eyebrow + title) ---------- */
.hm-head { margin-bottom: 36px; }
.hm-head-center { text-align: center; }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .4px;
  color: var(--hm-red); margin-bottom: 12px;
}
.hm-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--hm-grad); border-radius: 2px; }
.hm-head-center .hm-eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--hm-grad); border-radius: 2px; }
.hm-title {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 34px; line-height: 1.3; font-weight: 700; color: var(--hm-ink); margin: 0;
}
.hm-title-bar { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--hm-grad); margin: 16px auto 0; }
.hm-head:not(.hm-head-center) .hm-title-bar { margin-left: 0; }
@media (max-width: 991px) { .hm-title { font-size: 25px; } .hm-head { margin-bottom: 26px; } }

/* ---------- HERO ---------- */
.hm-hero-section { padding-top: 34px; }
.hm-hero-media {
  border-radius: var(--hm-radius); overflow: hidden;
  box-shadow: var(--hm-shadow); background: #f3f0ef; line-height: 0;
}
.hm-hero-card {
  background: #fff;
  /*border: 1px solid var(--hm-line);*/
  border-radius: var(--hm-radius);
  /*padding: 30px 28px;*/
  /*box-shadow: var(--hm-shadow-sm);*/
}
.hm-hero-title {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 29px; line-height: 1.35; font-weight: 700; color: #bc0002; margin: 6px 0 12px;
}
.hm-hero-desc {
  font-family: 'Noto Sans Thai', sans-serif;
  color: var(--hm-ink-soft) !important; line-height: 1.85 !important; margin: 0 0 18px !important;
}
.hm-trust { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.hm-trust li {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; font-weight: 600; color: var(--hm-ink);
  background: var(--hm-grad-soft); border: 1px solid rgba(232, 0, 2, .12);
  padding: 7px 13px; border-radius: 40px;
}
.hm-trust li i { color: var(--hm-red); }
.hm-hero-cta .row { margin-left: -6px; margin-right: -6px; }
.hm-hero-cta [class*="col-"] { padding-left: 6px; padding-right: 6px; }
/* ปุ่มติดต่อใน hero — ให้น่าสนใจขึ้น */
.hm-hero-cta .btn {
  position: relative; overflow: hidden;
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  border: 0 !important; border-radius: 50px !important;
  font-weight: 700 !important; font-size: 17px !important; padding: 13px 16px !important;
  color: #fff !important; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hm-hero-cta .btn i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 15px;
}
.hm-hero-cta .btn-primary { background: linear-gradient(135deg, #ff3133, #a60002) !important; }
.hm-hero-cta .btn-success { background: linear-gradient(135deg, #08c95f, #04a04c) !important; }
.hm-hero-cta .btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.hm-hero-cta .btn:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -12px rgba(0, 0, 0, .55); filter: brightness(1.06); color: #fff !important; }
.hm-hero-cta .btn:hover::after { left: 135%; }
.hm-hero-cta .btn:active { transform: translateY(-1px); }
.hm-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.hm-hero-info { min-width: 0; }
.hm-hero-aside { min-width: 0; }
.hm-hero-aside .hm-gallery { grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.hm-hero-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hm-line); }
@media (max-width: 991px) { .hm-hero-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- CENTER STRIP (slick slide-center) ---------- */
.hm-strip-section { padding-bottom: 56px; }
.slide-center { margin-top: 6px; }

/* ---------- หมวดบริการ 8 รายการ (tags) ---------- */
.hm-cats { margin: 0 -10px; }
.hm-cats > [class*="col"] { padding: 10px; }
.hm-cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px;
  text-align: center; height: 100%; min-height: 150px;
  background: #fff; border: 1px solid var(--hm-line); border-radius: 16px;
  padding: 26px 14px; text-decoration: none; box-shadow: var(--hm-shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}
.hm-cat-ico {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--hm-grad-soft); color: var(--hm-red); font-size: 25px;
  border: 1px solid rgba(232, 0, 2, .12); transition: all .28s ease;
}
.hm-cat-text {
  font-family: 'Noto Sans Thai', sans-serif; font-size: 16px; font-weight: 600;
  color: var(--hm-ink); line-height: 1.5;
}
.hm-cat-card:hover { transform: translateY(-6px); box-shadow: var(--hm-shadow); background: var(--hm-grad); }
.hm-cat-card:hover .hm-cat-ico { background: rgba(255, 255, 255, .18); color: #fff; border-color: transparent; }
.hm-cat-card:hover .hm-cat-text { color: #fff; }

/* ---------- สโลแกน (callout) ---------- */
.hm-callout-section { padding: 8px 0 70px; }
.hm-callout {
  position: relative; overflow: hidden;
  background: var(--hm-grad); border-radius: 22px;
  padding: 48px 40px; text-align: center; color: #fff; box-shadow: var(--hm-shadow);
}
.hm-callout::before, .hm-callout::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hm-callout::before { width: 240px; height: 240px; top: -90px; right: -60px; }
.hm-callout::after { width: 180px; height: 180px; bottom: -80px; left: -40px; }
.hm-callout-q { font-size: 28px; opacity: .55; margin-bottom: 6px; display: block; }
.hm-callout-text {
  position: relative; font-family: 'Noto Sans Thai', sans-serif;
  font-size: 27px; line-height: 1.55; font-weight: 700; margin: 0 !important; color: #fff !important;
}
@media (max-width: 991px) { .hm-callout { padding: 34px 22px; } .hm-callout-text { font-size: 20px; } }

/* ---------- บล็อกเนื้อหาหมวดสินค้า (section 2-6) ---------- */
.hm-gallery-wrap { max-width: 100%; margin: 0 auto; }
.hm-prose { max-width: 100%; margin: 28px auto 0; }
.hm-prose-card {
  background: #fff; border: 1px solid var(--hm-line); border-left: 4px solid var(--hm-red);
  border-radius: 14px; padding: 24px 28px; box-shadow: var(--hm-shadow-sm);
}
.hm-prose-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--hm-red); margin-bottom: 13px;
}
.hm-prose-card p {
  font-family: 'Noto Sans Thai', sans-serif !important;
  color: #52585f !important; font-size: 16px; line-height: 2 !important;
  text-align: justify; margin: 0 0 12px !important;
}
.hm-prose-card p:last-child { margin-bottom: 0 !important; }
@media (max-width: 991px) { .hm-prose-card { padding: 18px 17px; } .hm-prose-card p { font-size: 15px; text-align: left; } }

/* ---------- การ์ดรายละเอียดบริการ (service card — เลย์เอาต์ 2 ฝั่ง) ---------- */
.hm-service {
  max-width: 100%; margin: 28px auto 0;
  background: #fff; border: 1px solid var(--hm-line); border-radius: 18px;
  box-shadow: var(--hm-shadow-sm); overflow: hidden;
  display: flex; align-items: stretch;
}
.hm-service-side {
  flex: 0 0 300px; background: var(--hm-grad); color: #fff;
  padding: 30px 26px; display: flex; flex-direction: column; gap: 16px;
}
.hm-service-ico {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .18); font-size: 23px;
}
.hm-service-title { font-family: 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: 21px; line-height: 1.5; color: #fff; }
.hm-service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.hm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Noto Sans Thai', sans-serif; font-size: 13.5px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3);
  padding: 6px 13px; border-radius: 40px;
}
.hm-chip i { font-size: 10px; color: #fff; opacity: .85; }
.hm-service-body { flex: 1; min-width: 0; padding: 30px 34px; column-width: 330px; column-gap: 46px; column-rule: 1px solid var(--hm-line); }
.hm-service-body p {
  font-family: 'Noto Sans Thai', sans-serif !important;
  color: #52585f !important; font-size: 16px; line-height: 2 !important;
  text-align: left; margin: 0 0 14px !important;
}
.hm-service-body p:last-child { margin-bottom: 0 !important; }
@media (max-width: 991px) {
  .hm-service { flex-direction: column; }
  .hm-service-side { flex: none; padding: 24px 22px; gap: 14px; }
  .hm-service-title { font-size: 18px; }
  .hm-service-tags { margin-top: 4px; }
  .hm-service-body { padding: 22px 20px; }
  .hm-service-body p { font-size: 15px; text-align: left; }
}

/* ---------- หน้าติดต่อ (contact) ---------- */
.hm-contact-hero { position: relative; background-size: cover; background-position: center; padding: 66px 16px; text-align: center; color: #fff; overflow: hidden; }
.hm-contact-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(150, 7, 1, .88), rgba(18, 4, 4, .74)); }
.hm-contact-hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hm-contact-bc { font-size: 14px; opacity: .9; margin-bottom: 10px; }
.hm-contact-bc a { color: #fff; text-decoration: underline; }
.hm-contact-hero h1 { font-family: 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: 40px; color: #fff; margin: 4px 0 10px; }
.hm-contact-hero p { font-size: 17px; opacity: .95; margin: 0; line-height: 1.7; color: #fff; }
.hm-contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: start; }
.hm-contact-single { max-width: 640px; margin: 0 auto; }
.hm-contact-intro { max-width: 840px; margin: 0 auto 50px !important; text-align: center; color: #5b6168 !important; line-height: 1.95 !important; font-size: 16px; }
.hm-contact-modern { max-width: 960px; margin: 0 auto; }
.hm-contact-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 18px; margin-bottom: 26px; }
.hm-contact-ch { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 30px 18px; background: #fff; border: 1px solid var(--hm-line); border-radius: 18px; box-shadow: var(--hm-shadow-sm); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.hm-contact-ch:hover { transform: translateY(-5px); box-shadow: var(--hm-shadow); }
.hm-contact-ch-ico { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; background: var(--hm-grad); margin-bottom: 8px; }
.hm-contact-ch.line .hm-contact-ch-ico { background: #06c755; }
.hm-contact-ch-lbl { font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; font-weight: 600; color: var(--hm-ink-soft); }
.hm-contact-ch-val { font-family: 'Noto Sans Thai', sans-serif; font-size: 21px; font-weight: 700; color: var(--hm-ink); word-break: break-word; }
.hm-contact-ch.line .hm-contact-ch-val { color: #05a247; }
.hm-contact-ch-sub { font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; color: #a0a0a0; }
.hm-contact-modern .hm-contact-qr { max-width: 440px; margin: 0 auto; }
@media (max-width: 767px) { .hm-contact-channels { gap: 14px; } }
.hm-contact-card { background: #fff; border: 1px solid var(--hm-line); border-radius: 16px; box-shadow: var(--hm-shadow-sm); padding: 8px 24px; margin-bottom: 18px; }
.hm-contact-list { list-style: none; padding: 0; margin: 0; }
.hm-contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hm-line); }
.hm-contact-list li:last-child { border-bottom: 0; }
.hm-contact-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; background: var(--hm-grad); }
.hm-contact-ico.line { background: #06c755; }
.hm-contact-list .lbl { display: block; font-size: 13px; color: var(--hm-ink-soft); margin-bottom: 1px; }
.hm-contact-list .val { font-weight: 700; font-size: 17px; color: var(--hm-ink); text-decoration: none; }
.hm-contact-list a.val:hover { color: var(--hm-red); }
.hm-contact-qr { display: flex; gap: 14px; flex-wrap: wrap; }
.hm-contact-qr a { flex: 1; min-width: 130px; text-align: center; background: #fff; border: 1px solid var(--hm-line); border-radius: 14px; padding: 14px; box-shadow: var(--hm-shadow-sm); text-decoration: none; transition: transform .2s ease; }
.hm-contact-qr a:hover { transform: translateY(-3px); }
.hm-contact-qr img { width: 100%; max-width: 160px; border-radius: 8px; }
.hm-contact-qr span { display: block; margin-top: 10px; font-weight: 600; color: var(--hm-red-3); font-size: 14px; }
.hm-contact-form-card { background: #fff; border: 1px solid var(--hm-line); border-radius: 18px; box-shadow: var(--hm-shadow); padding: 30px; }
.hm-contact-form-card h3 { font-family: 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: 22px; color: var(--hm-ink); margin: 0 0 4px; }
.hm-contact-form-card .sub { color: var(--hm-ink-soft); margin: 0 0 20px; font-size: 15px; }
.hm-field { margin-bottom: 15px; }
.hm-field label { display: block; font-weight: 600; font-size: 14px; color: var(--hm-ink); margin-bottom: 6px; }
.hm-field input, .hm-field textarea { width: 100%; font-family: 'Noto Sans Thai', sans-serif; font-size: 16px; color: var(--hm-ink); background: #faf9f9; border: 1px solid rgba(17, 17, 17, .12); border-radius: 12px; padding: 12px 15px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.hm-field input:focus, .hm-field textarea:focus { outline: 0; border-color: var(--hm-red); box-shadow: 0 0 0 3px rgba(232, 0, 2, .12); background: #fff; }
.hm-field textarea { resize: vertical; min-height: 110px; }
.hm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--hm-grad-soft); border: 1px solid rgba(232, 0, 2, .14); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.hm-captcha .q { font-family: 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: 18px; color: var(--hm-red-3); white-space: nowrap; }
.hm-captcha input { width: 84px; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid rgba(17, 17, 17, .15); font-size: 16px; font-weight: 700; font-family: 'Noto Sans Thai', sans-serif; }
.hm-captcha .hint { font-size: 13px; color: #8a6d3b; }
.hm-submit { width: 100%; border: 0; cursor: pointer; font-family: 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: 18px; color: #fff; background: var(--hm-grad); border-radius: 50px; padding: 15px; box-shadow: 0 12px 26px -10px rgba(232, 0, 2, .6); transition: transform .2s ease, filter .2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.hm-submit:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
@media (max-width: 991px) { .hm-contact-grid { grid-template-columns: 1fr; gap: 24px; } .hm-contact-hero h1 { font-size: 28px; } .hm-contact-hero { padding: 48px 16px; } .hm-contact-form-card { padding: 24px 20px; } }
@media (max-width: 575px) { .hm-field-row { grid-template-columns: 1fr; gap: 0; } }


/* ---------- แถบบนสุด (top bar) ---------- */
.hm-topbar { width: 100%; background: linear-gradient(120deg, #e80002 0%, #960701 100%); color: #fff; }
.hm-topbar-inner { max-width: 1240px; margin: 0 auto; padding: 11px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hm-topbar-brand { font-family: 'Noto Sans Thai', sans-serif; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.hm-topbar-contacts { display: flex; gap: 9px; flex-wrap: wrap; }
.hm-topbar-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 40px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-family: 'Noto Sans Thai', sans-serif; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.hm-topbar-btn i { font-size: 14px; }
.hm-topbar-btn:hover { background: #fff; color: #c40300; transform: translateY(-1px); }
.hm-topbar-btn.line:hover { color: #06a84a; }
@media (max-width: 767px) { .hm-topbar-inner { flex-direction: column; padding: 12px 16px; gap: 10px; } .hm-topbar-brand { font-size: 18px; text-align: center; } }
