/* ===========================================================
   HERO พรีเมียม — ปุ๋ยอินทรีย์ตราพญานาคพ่นน้ำ
   ดาร์กซีนีมาติก + กระจกฝ้า + สไลด์รูปแปลงจริง
   =========================================================== */

:root {
  --hero-dark:   #0b191e;
  --hero-dark-2: #061014;
  --lime:        #8fd633;
  --lime-hover:  #7cc124;
  --lime-glow:   rgba(143, 214, 51, .4);
}

/* ---------- ฟอนต์ ---------- */
.font-display { font-family: "Kanit", "Noto Sans Thai", sans-serif; }
.font-accent  { font-family: "Noto Serif Thai", "Kanit", serif; }

/* ---------- โครง hero ---------- */
.hero-premium {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--hero-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- ชั้นรูปพื้นหลัง ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 42%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease-in-out;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 16s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to   { transform: scale(1.16) translate3d(-1.2%, -1.2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; transform: scale(1.04); }
  .hero-slide { transition: opacity .4s linear; }
}

/* ม่านไล่เฉดหลายชั้น ให้ตัวอักษรอ่านออกและได้ฟีลหนัง */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(143,214,51,.05) 0%, rgba(11,25,30,.30) 45%, rgba(6,14,18,.86) 85%, rgba(3,8,10,.96) 100%),
    linear-gradient(to bottom, rgba(5,12,15,.86) 0%, transparent 22%, transparent 62%, rgba(4,10,12,.96) 100%),
    linear-gradient(to right, rgba(5,12,15,.80) 0%, rgba(5,12,15,.25) 42%, transparent 66%, rgba(5,12,15,.55) 100%);
}
/* เส้นเรืองแสงบาง ๆ ขอบล่าง */
.hero-edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
  background: linear-gradient(to right, transparent, rgba(143,214,51,.5), transparent);
}

/* ---------- กระจกฝ้า ---------- */
.glass-nav {
  background: rgba(8,18,22,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.glass-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.glass-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(143,214,51,.35);
  transform: translateY(-2px);
}
.glass-btn {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .2s ease;
}
.glass-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }

/* ---------- แถบเมนู ---------- */
.hero-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.hero-nav {
  max-width: 1440px; margin: 0 auto; padding: 0 20px;
  min-height: 72px; display: flex; align-items: center; gap: 14px;
}
.hero-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.hero-brand-mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.hero-brand-mark img { width: 38px; height: 38px; object-fit: contain; }
.hero-brand-mark::after {
  content: ""; position: absolute; right: -1px; top: 1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 2px rgba(11,25,30,.85);
  animation: pulseDot 2.6s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.45; transform:scale(.82);} }
.hero-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.hero-brand-txt b {
  font-family: "Kanit", sans-serif; font-weight: 700; font-size: 1.12rem;
  letter-spacing: .01em; color: #fff;
}
.hero-brand-txt span {
  font-size: .62rem; font-weight: 500; letter-spacing: .2em;
  color: rgba(255,255,255,.55); text-transform: uppercase; margin-top: 2px;
}

.hero-links { display: none; align-items: center; gap: 4px; }
.hero-links a {
  position: relative; padding: 8px 13px; text-decoration: none;
  font-size: .87rem; font-weight: 500; color: rgba(255,255,255,.82);
  transition: color .25s ease;
}
.hero-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease; border-radius: 2px;
}
.hero-links a:hover { color: #fff; }
.hero-links a:hover::after, .hero-links a[aria-current="page"]::after { transform: scaleX(1); }
.hero-links a[aria-current="page"] { color: var(--lime); }

.hero-nav-cta {
  display: none; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
}
.hero-nav-cta:hover { border-color: var(--lime); color: var(--lime); }

.hero-burger {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}
.hero-drawer {
  display: none;
  background: rgba(8,18,22,.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 20px 22px;
}
.hero-drawer.open { display: block; }
.hero-drawer a {
  display: block; padding: 13px 4px; text-decoration: none;
  color: rgba(255,255,255,.9); font-weight: 500; font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero-drawer a[aria-current="page"] { color: var(--lime); }
.hero-drawer .drawer-cta { display: flex; gap: 9px; margin-top: 16px; }
.hero-drawer .drawer-cta a { flex: 1; text-align: center; border: 0; border-radius: 999px; padding: 13px 8px; font-weight: 700; }

@media (min-width: 1024px) {
  .hero-nav { padding: 0 32px; min-height: 84px; }
  .hero-links, .hero-nav-cta { display: flex; }
  .hero-burger { display: none; }
}

/* เมนูเปลี่ยนเป็นโหมดสว่างเมื่อเลื่อนพ้น hero */
.hero-header.solid .glass-nav {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line, #dbe6de);
  box-shadow: 0 2px 18px rgba(34,55,42,.09);
}
.hero-header.solid .hero-brand-txt b { color: #22372a; }
.hero-header.solid .hero-brand-txt span { color: #6b7a71; }
.hero-header.solid .hero-brand-mark { background: transparent; border-color: transparent; box-shadow: none; }
.hero-header.solid .hero-links a { color: #2f4a37; }
.hero-header.solid .hero-links a:hover { color: #0b191e; }
.hero-header.solid .hero-links a[aria-current="page"] { color: #cf7723; }
.hero-header.solid .hero-links a::after { background: #4a7355; }
.hero-header.solid .hero-burger { background: #fff; border-color: #dbe6de; color: #2f4a37; }
.hero-header.solid .glass-btn { background: rgba(47,74,55,.06); border-color: rgba(47,74,55,.25); color: #2f4a37; }
.hero-header.solid .glass-btn:hover { border-color: #4a7355; color: #0b191e; }

/* ---------- เนื้อหา hero ---------- */
.hero-body {
  position: relative; z-index: 3;
  flex: 1; display: flex; align-items: center;
  max-width: 1440px; width: 100%; margin: 0 auto;
  padding: 112px 20px 24px;
}
.hero-grid { display: grid; gap: 34px; width: 100%; grid-template-columns: 1fr; align-items: center; }

.hero-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-tag i { display: block; width: 34px; height: 2px; background: var(--lime); border-radius: 2px; flex: none; }
.hero-tag span {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  color: var(--lime); text-transform: uppercase;
}

.hero-h1 { margin: 0 0 18px; }
.hero-h1 .l1 {
  display: block;
  font-family: "Kanit", sans-serif; font-weight: 800;
  font-size: clamp(2.1rem, 8.2vw, 4.3rem);
  line-height: 1.06; letter-spacing: -.015em; color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.62);
}
.hero-h1 .l2 {
  display: block; margin-top: .1em;
  font-family: "Noto Serif Thai", serif; font-weight: 400;
  font-size: clamp(2rem, 7.4vw, 3.9rem);
  line-height: 1.14; color: var(--lime);
  text-shadow: 0 0 26px rgba(143,214,51,.34), 0 3px 18px rgba(0,0,0,.5);
}

.hero-lede {
  font-size: clamp(1rem, 2.4vw, 1.16rem);
  color: rgba(255,255,255,.84); max-width: 46ch;
  line-height: 1.72; margin: 0 0 28px;
}
.hero-lede strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lime {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--lime); color: #0b191e;
  font-weight: 700; font-size: .95rem;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 26px rgba(143,214,51,.32);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 0; cursor: pointer;
}
.btn-lime:hover { background: var(--lime-hover); transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 34px rgba(143,214,51,.46); }
.btn-glass {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; cursor: pointer;
}
.btn-glass .play-ring {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
}

/* ---------- การ์ดสถิติ ---------- */
.hero-stats { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.stat-card { padding: 16px 16px 18px; }
.stat-card .ico {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 10px;
  background: rgba(143,214,51,.15); color: var(--lime);
  display: grid; place-items: center;
}
.stat-card b {
  display: block; font-family: "Kanit", sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.1; color: #fff;
}
.stat-card span {
  display: block; margin-top: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em;
  color: var(--lime); text-transform: uppercase;
}
.stat-card em { display: block; font-style: normal; font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 5px; }

@media (min-width: 1024px) {
  .hero-body { padding: 128px 32px 32px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-stats { grid-template-columns: 1fr; max-width: 310px; margin-left: auto; }
  .stat-card { padding: 20px; }
}

/* ---------- แถบล่าง ---------- */
.hero-foot {
  position: relative; z-index: 3;
  max-width: 1440px; width: 100%; margin: 0 auto;
  padding: 0 20px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.hero-ctrls { display: flex; gap: 9px; }
.ctrl-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.scroll-hint {
  display: none; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: rgba(255,255,255,.6);
}
.scroll-mouse {
  width: 26px; height: 42px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.32);
  display: flex; justify-content: center; padding-top: 7px;
  transition: border-color .3s ease;
}
.scroll-hint:hover .scroll-mouse { border-color: var(--lime); }
.scroll-dot { width: 4px; height: 8px; border-radius: 3px; background: var(--lime); animation: scrollBob 2.4s ease-in-out infinite; }
@keyframes scrollBob { 0%,100%{ transform: translateY(0); opacity:1 } 50%{ transform: translateY(10px); opacity:.35 } }
.scroll-hint span { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hero-sys { font-size: .64rem; font-weight: 500; letter-spacing: .16em; color: rgba(255,255,255,.38); text-transform: uppercase; text-align: right; }

@media (min-width: 860px) { .scroll-hint { display: flex; } }
@media (min-width: 1024px) { .hero-foot { padding: 0 32px 28px; } }

/* บนมือถือ เว้นที่ให้แถบติดต่อลอยล่าง */
@media (max-width: 899px) { .hero-foot { padding-bottom: 84px; } }

/* ---------- โมดัลวิดีโอ ---------- */
.vmodal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 16px;
}
.vmodal.open { display: flex; }
.vmodal-box {
  width: 100%; max-width: 420px;
  background: var(--hero-dark); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.7);
}
.vmodal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.vmodal-head h3 { margin: 0; font-family: "Kanit", sans-serif; font-size: .96rem; font-weight: 600; color: #fff; }
.vmodal-close {
  width: 34px; height: 34px; border-radius: 50%; flex: none; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; display: grid; place-items: center;
}
.vmodal-close:hover { background: rgba(255,255,255,.18); }
.vmodal video { display: block; width: 100%; max-height: 70vh; background: #000; }

/* ---------- แถบโลโก้รับรองใต้ hero ---------- */
.trust-strip { background: #08151a; border-bottom: 1px solid rgba(255,255,255,.07); padding: 18px 0; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; }
.trust-item { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); font-size: .84rem; }
.trust-item b { color: #fff; font-weight: 600; }
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex: none; }
.trust-strip a { color: var(--lime); text-decoration: none; font-size: .84rem; font-weight: 600; }
.trust-strip a:hover { text-decoration: underline; }

/* กันเมนูลอยบังเนื้อหาตอนกดลิงก์ข้ามส่วนในหน้าแรก */
#main, .trust-strip, .section[id] { scroll-margin-top: 92px; }

/* โหลดฟอนต์ไม่ทันให้ใช้ระบบไปก่อน ไม่ให้ข้อความกระโดด */
.hero-h1 .l1, .hero-h1 .l2, .hero-brand-txt b, .stat-card b { font-synthesis-weight: none; }
