/* ============================================================
   เมทัลโฮม สตีล (อุดรธานี) — Main stylesheet
   ============================================================ */

:root {
  --teal:      #0f5f57;
  --teal-400:  #178a7c;
  --teal-300:  #22a391;
  --teal-600:  #0c5049;
  --teal-700:  #0a453f;
  --teal-800:  #083a35;
  --teal-900:  #062c28;
  --mint:      #e6f2ef;
  --mint-2:    #f2f8f6;
  --sky:       #eaf3f6;
  --ink:       #0f2a2e;
  --text:      #3a4a4e;
  --muted:     #6c7b7f;
  --line:      #dde8e6;
  --white:     #fff;
  --red:       #e0392f;
  --green:     #1f9d4c;
  --line-green:#06c755;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 3px 12px rgba(8, 44, 40, .08);
  --shadow:    0 10px 30px rgba(8, 44, 40, .12);
  --header-h:  84px;
  --font:      'Kanit', 'Prompt', 'Sukhumvit Set', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { word-break: keep-all; overflow-wrap: anywhere; font-family: var(--font); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, transform .2s, box-shadow .2s; }
a:hover { color: var(--teal-300); }
img { max-width: 100%; height: auto; display: block; }
strong, b { font-weight: 600; }
.container { max-width: 1240px; padding-left: 20px; padding-right: 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--teal); color: #fff; padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

section { position: relative; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.bg-mint { background: var(--mint-2); }

/* ---------- Buttons ---------- */
.btn-main, .btn-ghost, .btn-line, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1;
  padding: 14px 30px; border-radius: 50px; border: 2px solid transparent; cursor: pointer;
  white-space: nowrap;
}
.btn-main { background: linear-gradient(135deg, var(--teal-400), var(--teal-700)); color: #fff; box-shadow: 0 6px 18px rgba(15, 95, 87, .28); }
.btn-main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 95, 87, .36); }
.btn-main i { font-size: .85em; transition: transform .2s; }
.btn-main:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--teal-700); border-color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-700); color: #fff; }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { color: #fff; filter: brightness(1.05); }
.link-more { font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.link-more i { font-size: .8em; transition: transform .2s; }
.link-more:hover i { transform: translateX(4px); }

/* ---------- Section titles ---------- */
.sec-title { margin-bottom: 28px; }
.sec-heading {
  font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-style: italic; color: var(--teal-800);
  display: block; margin: 0; letter-spacing: -.01em;
}
.sec-heading > .sec-bar { margin-right: 12px; vertical-align: -3px; }
.sec-heading--xl { font-size: clamp(32px, 3.6vw, 44px); display: block; }
.sec-heading small { font-size: 18px; font-style: normal; font-weight: 400; color: var(--text); margin-left: 12px; letter-spacing: 0; }
.sec-bar { display: inline-block; flex: none; width: 7px; height: .95em; background: var(--teal); transform: skewX(-16deg); border-radius: 1px; }
.sec-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--teal-400); margin-top: 6px; }
.sec-heading--xl + p, .sec-label + .sec-heading--xl { margin-top: 4px; }
.sec-title--inline { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 16px; }
.sec-title--inline .sec-label { margin: 0; }
.sec-sub { margin: 8px 0 0 19px; color: var(--text); font-size: 17px; }
.sec-title--light .sec-heading { color: #fff; }
.sec-title--light .sec-bar { background: #fff; }
.sec-title--light .sec-label, .sec-title--light .sec-sub { color: rgba(255,255,255,.85); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.logo-mark { width: 104px; height: 30px; fill: var(--teal); margin-bottom: 4px; }
.logo-mark .lm2 { fill: var(--teal-400); }
.logo-en { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: #10232a; }
.logo-th { font-weight: 600; font-size: 13.5px; margin-top: 3px; color: #10232a; white-space: nowrap; }
.logo--light .logo-mark, .logo--light .logo-mark .lm2 { fill: #fff; }
.logo--light .logo-mark .lm2 { fill: #bfe3dc; }
.logo--light .logo-en, .logo--light .logo-th { color: #fff; }
.logo-img { max-height: 64px; width: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; padding-right: 20px; }
.header-logo {
  flex: none; height: 100%; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 0 58px 0 34px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { list-style: none; margin: 0; padding: 5px 8px; display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: 0 6px 24px rgba(6,44,40,.12); }
.site-header.is-stuck .main-nav > ul { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 9px 17px;
  color: var(--ink); font-weight: 400; font-size: 15.5px; z-index: 0;
}
.main-nav > ul > li > a i { font-size: 10px; opacity: .7; }
.main-nav > ul > li > a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px;
  background: var(--teal); transform: skewX(-12deg) scaleX(.6); opacity: 0; transition: .25s;
}
.main-nav > ul > li > a:hover { color: var(--teal); }
.main-nav > ul > li > a.active { color: #fff; }
.main-nav > ul > li > a.active::before { opacity: 1; transform: skewX(-12deg) scaleX(1); box-shadow: 0 6px 16px rgba(15,95,87,.3); }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 270px; transform: translate(-50%, 8px);
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transition: .2s;
  border-top: 3px solid var(--teal);
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 14.5px; font-weight: 400; }
.sub-menu a i { width: 20px; text-align: center; color: var(--teal); }
.sub-menu a:hover { background: var(--mint); color: var(--teal-700); }


.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--teal); padding: 12px; cursor: pointer; flex: none; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; }

.site-header.is-stuck { position: fixed; height: 70px; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(8,44,40,.1); animation: slideDown .35s ease; }
.site-header.is-stuck .header-logo { box-shadow: none; }
.site-header.is-stuck .logo-mark { width: 84px; height: 24px; }
.site-header.is-stuck .logo-en { font-size: 15px; }
.site-header.is-stuck .logo-th { font-size: 12px; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 1101; background: #fff;
  transform: translateX(105%); transition: transform .3s ease; display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.mobile-nav-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(6,44,40,.5); opacity: 0; visibility: hidden; transition: .3s; }
.mobile-nav.open + .mobile-nav-backdrop { opacity: 1; visibility: visible; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mobile-nav-head .logo-mark { width: 80px; height: 24px; }
.mobile-nav-head .logo-en { font-size: 14px; }
.mobile-nav-head .logo-th { font-size: 12px; }
.mobile-nav-close { border: 0; background: var(--mint); color: var(--teal); width: 42px; height: 42px; border-radius: 10px; font-size: 20px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px; }
.mobile-nav li > a, .m-sub-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 10px; border: 0; background: none;
  font-family: var(--font); font-size: 16px; color: var(--ink); font-weight: 400; text-align: left;
}
.mobile-nav li > a i, .m-sub-toggle > i:first-child { width: 22px; color: var(--teal); text-align: center; }
.mobile-nav li > a.active, .m-sub-toggle.active { background: var(--mint); color: var(--teal-700); font-weight: 500; }
.m-sub-toggle .caret { margin-left: auto; font-size: 12px; color: var(--muted); transition: transform .2s; }
.m-sub.open .caret { transform: rotate(180deg); }
.m-sub-list { display: none; padding: 2px 0 8px 48px; }
.m-sub.open .m-sub-list { display: block; }
.m-sub-list a { display: block; padding: 7px 0; color: var(--text); font-size: 15px; }
.mobile-nav-cta { margin-top: auto; padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero {
  position: relative; overflow: hidden; min-height: 680px;
  background: linear-gradient(180deg, #dfeef3 0%, #f4f9fa 55%, #fff 100%);
  padding: calc(var(--header-h) + 34px) 0 36px;
}
.hh-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 16%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 16%, #000 34%);
}
.hh-content { position: relative; z-index: 2; }
.hh-label { display: block; font-size: 13px; letter-spacing: .34em; color: var(--teal-400); font-weight: 500; margin-bottom: 10px; }
.hh-title { font-size: clamp(38px, 5vw, 64px); font-weight: 800; color: var(--teal-900); margin: 0 0 6px; letter-spacing: -.01em; }
.hh-subtitle { max-width: 640px; font-size: clamp(22px, 2.8vw, 36px); line-height: 1.22; color: var(--teal-900); margin-bottom: 18px; font-weight: 400; }
.hh-subtitle > span { display: block; word-break: keep-all; }
.hh-subtitle em { white-space: nowrap; }
.hh-subtitle .l1 { font-weight: 800; font-size: 1.18em; }
.hh-subtitle em { font-style: normal; color: var(--teal-300); font-weight: 800; }
.hh-desc { max-width: 560px; font-size: 17px; color: #334449; font-weight: 300; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 34px; }
.hh-features { list-style: none; padding: 16px 22px; margin: 0; display: inline-grid; grid-template-columns: repeat(4, auto); gap: 18px 30px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px); border-radius: 14px; box-shadow: var(--shadow-sm); }
.hh-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.35; color: var(--ink); font-weight: 400; }
.hh-features i { font-size: 28px; color: var(--teal); width: 34px; text-align: center; }

/* Slanted quote (hero right-bottom) */
.ph-quote {
  position: absolute; right: 0; bottom: 0; z-index: 3; width: 340px; height: 210px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700) 70%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 20px 34px 20px 90px; color: #fff;
}
.ph-quote span { word-break: keep-all; font-size: 25px; font-weight: 600; font-style: italic; line-height: 1.3; transform: rotate(-12deg); text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.15); }
.ph-quote svg { width: 130px; height: 16px; margin-top: 14px; transform: rotate(-10deg); fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.hh-quote { width: 360px; height: 230px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #dcecf1 0, #dcecf1 var(--header-h), var(--teal-700) var(--header-h));
  min-height: 460px;
}
.ph-media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background-size: cover; background-position: center; }
.ph-panel {
  position: absolute; left: 0; top: var(--header-h); bottom: 0; width: 72%;
  background: linear-gradient(90deg, rgba(8,58,53,.97) 0%, rgba(10,69,63,.94) 48%, rgba(12,80,73,.55) 78%, rgba(12,80,73,0) 100%);
}
.ph-panel::after { content: ""; position: absolute; top: 0; bottom: 0; right: 28%; width: 38%; background: linear-gradient(90deg, rgb(10,62,57) 0 60%, #fff0 100%); }
.ph-content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 30px); padding-bottom: 40px; }
.ph-label { display: block; font-size: 12.5px; letter-spacing: .38em; color: #83d6c7; font-weight: 500; margin-bottom: 4px; }
.ph-title { font-size: clamp(40px, 5.4vw, 70px); font-weight: 800; font-style: italic; color: #fff; margin: 0; letter-spacing: -.01em; line-height: 1.12; }
.ph-subtitle { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; font-style: italic; margin: 2px 0 10px; color: #fff; }
.ph-desc { max-width: 590px; font-size: 17px; opacity: .95; margin-bottom: 18px; }
.ph-lead-quote { font-size: 22px; font-style: italic; font-weight: 500; line-height: 1.45; max-width: 520px; }
.ph-features { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.ph-features li { display: flex; align-items: center; gap: 12px; }
.ph-features i { font-size: 30px; width: 36px; text-align: center; }
.ph-features strong { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.ph-features small { display: block; font-size: 12.5px; opacity: .85; line-height: 1.3; }
.page-hero--compact { min-height: 330px; }
.page-hero--compact .ph-title { font-size: clamp(30px, 3.6vw, 46px); }
.page-hero--compact .ph-panel { width: 82%; }

/* Breadcrumb */
.crumbs { padding: 14px 0; font-size: 13.5px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crumbs li { display: flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; margin: 0 9px; color: #9fb0b3; }
.crumbs a { color: var(--ink); font-weight: 500; }
.crumbs a:hover { color: var(--teal); }
.crumbs .fa-house { color: var(--teal-700); margin-right: 4px; }

/* ============================================================
   HOME SECTIONS
   ============================================================ */
/* แบนเนอร์หน้าแรก (ภาพแชร์ og:image) — แสดงเต็มภาพ ไม่ครอป */
.home-banner { padding: 40px 0 0; }
.hb-link { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.hb-link img { display: block; width: 100%; height: auto; }
.hb-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10,63,58,.16); }
@media (max-width: 767px) { .home-banner { padding-top: 24px; } .hb-link { border-radius: 12px; } }
.home-products { padding: 50px 0 40px; }
.hp-grid { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: center; }
.hp-intro p { margin: 10px 0 22px; font-size: 15.5px; word-break: keep-all; }
.hp-intro .sec-heading--xl { white-space: nowrap; font-size: clamp(30px, 3.2vw, 42px); }
.hp-intro .btn-main { padding: 13px 26px; }
.hp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini-product { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; color: var(--ink); }
.mini-product:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.mp-img { aspect-ratio: 16/9; overflow: hidden; background: var(--mint-2); }
.mp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mini-product:hover .mp-img img { transform: scale(1.06); }
.mp-body { position: relative; padding: 12px 40px 14px 14px; }
.mp-body strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.mp-body small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.mp-go { position: absolute; right: 12px; bottom: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-700); color: #fff; font-size: 11px; display: grid; place-items: center; }

.home-services {
  display: grid; grid-template-columns: 34% 1fr 22%; min-height: 330px; margin: 30px 0;
  background: linear-gradient(90deg, #fff 0, #f3f8f7 100%);
}
.hs-left { position: relative; background-size: cover; background-position: center; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); display: flex; align-items: center; padding-left: 7%; }
.hs-left::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,44,40,.35), rgba(6,44,40,.05)); }
.hs-left::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(15,95,87,.9)); clip-path: polygon(62% 0, 100% 0, 50% 100%, 12% 100%); }
.slant-quote { word-break: keep-all; position: relative; z-index: 2; color: #fff; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; font-style: italic; line-height: 1.35; transform: rotate(-10deg); text-shadow: 0 3px 16px rgba(0,0,0,.35); }
.hs-center { padding: 26px 18px 26px 10px; }
.hs-head { display: flex; flex-direction: column; margin-bottom: 14px; }
.hs-head .sec-label { margin: 0 0 2px; }
.hs-head .sec-heading--xl { font-size: clamp(28px, 2.8vw, 38px); }
.hs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hs-tile { background: #fff; border-radius: 10px; padding: 14px 10px 12px; text-align: center; box-shadow: var(--shadow-sm); color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.hs-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.hs-tile i { font-size: 28px; color: var(--teal-800); margin-bottom: 8px; }
.hs-tile strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.hs-tile small { font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.hs-right { position: relative; background-size: cover; background-position: center top; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: flex-end; }
.hs-call { position: relative; margin: 0 0 18px auto; width: 88%; background: linear-gradient(135deg, rgba(10,69,63,.94), rgba(6,44,40,.96)); color: #fff; padding: 12px 16px; border-radius: 14px 0 0 14px; }
.hs-call:hover { color: #fff; }
.hs-call-brand .logo-mark { width: 60px; height: 18px; }
.hs-call-brand .logo-en { font-size: 12px; }
.hs-call-brand .logo-th { font-size: 10.5px; }
.hs-call-brand .logo { align-items: flex-start; margin-bottom: 8px; }
.hs-call-row { display: flex; align-items: center; gap: 10px; }
.hs-call-row > i { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--teal-700); display: grid; place-items: center; }
.hs-call-row small { display: block; font-size: 12px; opacity: .85; line-height: 1.1; }
.hs-call-row strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.15; }

.home-projects { padding: 40px 0; background: linear-gradient(180deg, #f6faf9, #fff); }
.hpr-grid { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: center; }
.hpr-carousel { position: relative; min-width: 0; }
.car-nav { position: absolute; right: 0; top: -58px; display: flex; gap: 10px; }
.car-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal-800); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.car-nav .car-next { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }
.car-nav button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.car-track::-webkit-scrollbar { display: none; }
.hpr-card { position: relative; scroll-snap-align: start; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.hpr-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hpr-card:hover img { transform: scale(1.06); }
.hpr-card span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(8,58,53,.95), rgba(10,69,63,.88)); color: #fff; text-align: center; padding: 8px 6px; font-size: 14px; font-weight: 500; }

.home-about { padding: 44px 0 50px; overflow: hidden; }
.ha-grid { display: grid; grid-template-columns: 1fr 1.05fr 250px; gap: 30px; align-items: center; }
.ha-text h3 { font-size: 17px; font-weight: 600; margin: 12px 0 6px; color: var(--ink); }
.ha-text p { font-size: 15.5px; margin-bottom: 22px; }
.ha-media { align-self: stretch; min-height: 280px; background-size: cover; background-position: center; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.ha-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ha-stats li { display: flex; align-items: center; gap: 16px; }
.ha-stats i { width: 58px; height: 58px; border-radius: 12px; background: var(--mint); color: var(--teal-700); display: grid; place-items: center; font-size: 24px; flex: none; }
.ha-stats strong { display: block; font-size: 28px; font-weight: 700; color: var(--teal-900); line-height: 1.05; }
.ha-stats small { display: block; font-size: 14px; color: var(--text); }

.quick-quote { position: relative; padding: 30px 0; color: #fff; background: linear-gradient(90deg, rgba(8,58,53,.96) 0%, rgba(10,69,63,.86) 45%, rgba(8,58,53,.92) 100%), var(--qq-bg) center/cover; }
.qq-inner { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.qq-title h2 { color: #fff; font-style: italic; font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.qq-title p { margin: 0; font-size: 18px; font-style: italic; font-weight: 500; display: inline-block; background: rgba(255,255,255,.12); padding: 0 10px; border-radius: 4px; }
.qq-form { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 10px; align-items: center; }
.qq-field { position: relative; margin: 0; }
.qq-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8aa3a2; font-size: 14px; }
.qq-field input { width: 100%; height: 50px; border: 0; border-radius: 6px; padding: 0 14px 0 38px; font-family: var(--font); font-size: 15px; color: var(--ink); }
.qq-submit { height: 52px; padding: 0 34px; border-radius: 50px; border: 2px solid #fff; background: linear-gradient(135deg, var(--teal-400), var(--teal-800)); color: #fff; font-family: var(--font); font-size: 17px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.qq-submit:hover { filter: brightness(1.1); }
.qq-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; opacity: .8; }
.qq-note a { color: #bdebe2; text-decoration: underline; }
.qq-form .form-alert { grid-column: 1 / -1; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.cat-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 6px 0 30px; }
.cat-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 86px;
  padding: 10px 6px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px; line-height: 1.25; box-shadow: var(--shadow-sm); }
.cat-tab i { font-size: 24px; color: var(--teal-700); }
.cat-tab:hover { border-color: var(--teal-300); color: var(--teal-700); transform: translateY(-2px); }
.cat-tab.active { background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); color: #fff; border-color: transparent; }
.cat-tab.active i { color: #fff; }
.cat-tabs-row { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }
.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font-family: var(--font); font-size: 15px; }
.search-box button { width: 50px; height: 46px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filter-card { background: var(--mint-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 20px; position: sticky; top: 90px; }
.filter-card h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--teal-900); margin: 0 0 14px; }
.filter-group { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.filter-group summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "\f077"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; color: var(--muted); transition: transform .2s; }
.filter-group:not([open]) summary::after { transform: rotate(180deg); }
.f-check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; cursor: pointer; color: var(--text); }
.f-check input { width: 16px; height: 16px; accent-color: var(--teal); }
.f-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.f-check input:checked ~ .f-swatch { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal); }
.f-select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-family: var(--font); font-size: 14px; background: #fff; margin-bottom: 8px; }
.filter-card .btn-main, .filter-card .btn-outline { width: 100%; padding: 11px; font-size: 15px; border-radius: 8px; margin-top: 8px; }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.shop-toolbar .sec-title { margin: 0; }
.shop-toolbar .sec-heading { font-size: clamp(24px, 2.6vw, 32px); }
.shop-meta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.shop-meta select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-family: var(--font); font-size: 14px; color: var(--ink); background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; display: flex; flex-direction: column; transition: .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-img { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--mint-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 30px; color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.pc-badge i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.pc-badge--hot { background: var(--red); }
.pc-badge--hot i { background: #ffcf3f; color: var(--red); }
.pc-badge--best { background: var(--green); }
.pc-badge--best i { background: #ffd43b; color: var(--green); }
.pc-badge--new { background: #2aa44a; }
.pc-badge--new i { background: #e3ffb3; color: #2aa44a; }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pc-title { font-size: 17px; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.pc-title a { color: var(--ink); }
.pc-title a:hover { color: var(--teal); }
.pc-sub { font-size: 14.5px; color: var(--text); margin: 0 0 6px; }
.pc-spec { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.pc-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 30px; background: linear-gradient(135deg, var(--teal-400), var(--teal-700)); color: #fff; font-size: 14.5px; font-weight: 500; }
.pc-btn:hover { color: #fff; filter: brightness(1.08); }
.pc-btn i { font-size: 12px; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); font-weight: 500; background: #fff; }
.pager a:hover { border-color: var(--teal); color: var(--teal); }
.pager .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.empty-state { text-align: center; padding: 50px 20px; background: var(--mint-2); border-radius: 12px; color: var(--muted); }
.empty-state i { font-size: 42px; color: var(--teal-300); margin-bottom: 12px; }

.bestseller-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.bestseller-head .kicker { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; font-style: italic; color: var(--teal-800); margin-bottom: 2px; }
.bestseller-head .kicker::before { content: ""; width: 22px; height: 6px; background: var(--teal); transform: skewX(-20deg); }
.bestseller-head h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; font-style: italic; color: var(--teal-900); margin: 0; padding-left: 14px; border-left: 3px solid var(--teal-800); }
.bestseller-head p { margin: 2px 0 0 17px; }

/* Factory CTA */
.factory-cta { padding: 20px 0 10px; }
.fcta-inner { position: relative; display: grid; grid-template-columns: 22% auto 1fr auto; gap: 26px; align-items: center; min-height: 118px; overflow: hidden;
  background: linear-gradient(100deg, var(--teal-800), var(--teal-600) 60%, var(--teal-700)); color: #fff; border-radius: 4px; padding-right: 26px; }
.fcta-img { align-self: stretch; background-size: cover; background-position: center; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.fcta-title { line-height: 1.2; font-style: italic; }
.fcta-title strong { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.fcta-title span { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; }
.fcta-title b { font-weight: 800; font-size: 1.25em; }
.fcta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.fcta-list i { margin-right: 8px; font-size: 12px; }
.fcta-btn { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--teal-800); padding: 14px 22px; border-radius: 12px; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); padding-left: 34px; padding-right: 34px; }
.fcta-btn > i:first-child { font-size: 30px; }
.fcta-btn strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.fcta-btn small { display: block; font-size: 12.5px; color: var(--muted); }
.fcta-btn:hover { color: var(--teal); transform: translateX(3px); }

/* Why strip */
.why-strip { padding: 30px 0 40px; overflow: hidden; }
.why-strip-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: center; }
.why-strip .sec-title { margin-bottom: 18px; }
.why-strip .sec-heading { font-size: clamp(22px, 2.4vw, 28px); }
.why-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.why-card { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 14px 12px; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; }
.why-card i { font-size: 26px; color: var(--teal-800); width: 32px; text-align: center; flex: none; }
.why-card strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.why-card small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.why-strip-media { position: relative; align-self: stretch; min-height: 170px; background-size: cover; background-position: center; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: flex-end; padding: 16px; }
.why-strip-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,58,53,.2), rgba(8,58,53,.75)); }
.why-strip-media .slant-quote { font-size: 21px; text-align: center; }

/* Product detail */
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.pd-gallery .pd-main { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--mint-2); }
.pd-gallery .pd-main img { display: block; width: 100%; height: auto; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumbs a { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; }
.pd-more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,58,53,.62); color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .5px; transition: background .2s; }
.pd-more:hover span { background: rgba(8,58,53,.78); }
.pd-thumbs a:hover { border-color: var(--teal-300); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--teal); background: var(--mint); padding: 4px 12px; border-radius: 30px; margin-bottom: 10px; }
.pd-info h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; font-style: italic; color: var(--teal-900); margin-bottom: 4px; }
.pd-info .pd-sub { font-size: 20px; color: var(--ink); font-weight: 500; margin-bottom: 14px; }
.pd-info .pd-short { font-size: 16px; }
.pd-specs { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.pd-specs li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; background: var(--mint-2); border-radius: 8px; font-size: 15px; }
.pd-specs i { color: var(--teal); margin-top: 4px; }
.pd-colors { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 20px; }
.pd-colors span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.pd-colors i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.pd-price { font-size: 15px; margin-bottom: 18px; }
.pd-price strong { font-size: 26px; color: var(--teal-700); font-weight: 700; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-actions--no-line .cta-call { grid-column: 1 / -1; }
.pd-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.content-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; padding: 30px; }
.content-card > h2 { font-size: 24px; font-style: italic; font-weight: 800; color: var(--teal-800); display: flex; gap: 12px; align-items: center; }

/* Rich text */
.rich-text { font-size: 16.5px; line-height: 1.85; color: #33444a; }
.rich-text h2 { font-size: 24px; font-weight: 700; color: var(--teal-900); margin: 1.6em 0 .6em; padding-left: 14px; border-left: 4px solid var(--teal); }
.rich-text h3 { font-size: 20px; font-weight: 600; color: var(--teal-800); margin: 1.4em 0 .5em; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.rich-text li { margin-bottom: .4em; }
.rich-text ul li::marker { color: var(--teal); }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }
.rich-text img { border-radius: 10px; margin: 1em 0; }
.rich-text strong { color: var(--ink); }
.rich-text > :first-child { margin-top: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.service-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; color: var(--text); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.sv-img { aspect-ratio: 16/8.5; overflow: hidden; }
.sv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .sv-img img { transform: scale(1.05); }
.sv-body { padding: 12px 14px 16px; position: relative; }
.sv-head { display: flex; gap: 10px; align-items: flex-start; padding-right: 34px; }
.sv-num { font-size: 22px; font-weight: 700; color: var(--teal-800); line-height: 1.1; }
.sv-head h3 { font-size: 16.5px; font-weight: 700; color: var(--teal-900); margin: 2px 0 0; line-height: 1.3; }
.sv-go { position: absolute; right: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-800); color: #fff; font-size: 11px; display: grid; place-items: center; }
.sv-body p { font-size: 13.5px; margin: 6px 0 0; line-height: 1.5; color: var(--muted); }

.process-band { padding: 26px 0 34px; color: #fff; overflow: hidden;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 120px, transparent 120px 260px), linear-gradient(100deg, var(--teal-800), var(--teal-600) 50%, var(--teal-800)); }
.process-band .sec-heading { font-size: clamp(24px, 2.6vw, 32px); }
.process-band .sec-title { margin-bottom: 16px; }
.process-band .sec-sub { margin-left: 0; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; counter-reset: step; }
.process-steps li { position: relative; background: #fff; color: var(--ink); border-radius: 8px; padding: 16px 8px 12px; text-align: center; counter-increment: step; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.process-steps li:not(:last-child)::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 18px; }
.process-steps i { font-size: 30px; color: var(--teal-800); margin-bottom: 8px; }
.process-steps strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.process-steps strong::before { content: counter(step) ". "; }
.process-steps small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }

.why-band { display: grid; grid-template-columns: 30% 1fr 24%; align-items: center; min-height: 220px; background: linear-gradient(90deg, #f6faf9, #eef5f4); overflow: hidden; }
.wb-media { align-self: stretch; background-size: cover; background-position: center; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.wb-center { padding: 26px 10px; }
.wb-center .sec-title { margin-bottom: 14px; }
.wb-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wb-card { background: #fff; border-radius: 8px; padding: 16px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.wb-card i { font-size: 30px; color: var(--teal-800); margin-bottom: 6px; }
.wb-card strong { display: block; font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.wb-card small { display: block; font-size: 12px; color: var(--muted); }
.wb-quote { text-align: center; padding: 20px; position: relative; }
.wb-quote span { display: inline-block; font-size: clamp(20px, 2vw, 26px); font-weight: 600; font-style: italic; color: var(--teal-900); line-height: 1.35; transform: rotate(-9deg); }
.wb-quote svg { width: 110px; height: 14px; fill: none; stroke: var(--teal-900); stroke-width: 2.5; stroke-linecap: round; transform: rotate(-9deg); margin-top: 8px; }

.care-cta { background: linear-gradient(100deg, var(--teal-800), var(--teal-600) 55%, var(--teal-800)); color: #fff; padding: 20px 0; }
.care-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.care-title { display: flex; align-items: center; gap: 18px; }
.care-title > i { font-size: 40px; }
.care-title h2 { color: #fff; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; font-style: italic; margin: 0; }
.care-title p { margin: 0; font-size: 16px; opacity: .9; }
.care-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.care-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px; border-radius: 8px; background: #fff; color: var(--teal-800); font-weight: 600; }
.care-btn:hover { transform: translateY(-2px); color: var(--teal); }
.care-btn--quote { min-width: 190px; justify-content: center; font-size: 16px; }
.care-btn--phone > i { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-700); color: #fff; display: grid; place-items: center; }
.care-btn--phone strong { display: block; font-size: 18px; line-height: 1.1; }
.care-btn--phone small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.care-btn--line > i { font-size: 30px; color: var(--line-green); }
.care-btn--line strong { font-size: 17px; }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.side-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; padding: 22px; margin-bottom: 20px; }
.side-card h3 { font-size: 18px; font-weight: 700; color: var(--teal-900); display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.side-card--teal { background: linear-gradient(145deg, var(--teal-600), var(--teal-900)); color: #fff; border: 0; }
.side-card--teal h3 { color: #fff; }
.side-card--teal p { opacity: .9; font-size: 15px; }
.side-card--teal .btn-main { background: #fff; color: var(--teal-800); width: 100%; }
.side-card--teal .btn-line { width: 100%; margin-top: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px dashed var(--line); }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--ink); font-size: 15px; }
.side-list a i { color: var(--teal); width: 18px; text-align: center; }
.side-list a:hover, .side-list a.active { color: var(--teal); }
.side-list a.active { font-weight: 600; }
.side-post { display: flex; gap: 12px; padding: 10px 0; color: var(--ink); }
.side-post + .side-post { border-top: 1px dashed var(--line); }
.side-post img { width: 78px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; }
.side-post strong { font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-post small { color: var(--muted); font-size: 12.5px; }
.detail-cover { border-radius: 14px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.detail-cover img { display: block; width: 100%; height: auto; }
.mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-gallery a { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; display: block; }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mini-gallery a:hover img { transform: scale(1.06); }

/* ============================================================
   GALLERY / PROJECTS
   ============================================================ */
.stats-bar { position: relative; z-index: 4; margin-top: -74px; }
.stats-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); max-width: 78%; clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); }
.stats-bar-item { display: flex; align-items: center; gap: 14px; padding: 16px 22px; }
.stats-bar-item + .stats-bar-item { border-left: 1px solid var(--line); }
.stats-bar-item i { font-size: 34px; color: var(--teal-800); }
.stats-bar-item strong { display: block; font-size: 24px; font-weight: 700; color: var(--teal-900); line-height: 1.1; }
.stats-bar-item small { display: block; font-size: 13px; color: var(--text); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.filter-pills a { padding: 9px 20px; border-radius: 4px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14.5px; box-shadow: var(--shadow-sm); min-width: 92px; text-align: center; }
.filter-pills a:hover { border-color: var(--teal); color: var(--teal); }
.filter-pills a.active { background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); color: #fff; border-color: transparent; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prj-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.prj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .prj-img img { transform: scale(1.05); }
.prj-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.prj-icon { font-size: 24px; color: var(--teal-800); width: 30px; text-align: center; flex: none; }
.prj-text { flex: 1; min-width: 0; }
.prj-text h3 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.3; }
.prj-text h3 a { color: var(--ink); }
.prj-text small { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.prj-text small i { color: var(--teal-800); font-size: 11px; }
.prj-go { width: 26px; height: 26px; border-radius: 50%; background: var(--teal-800); color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.prj-go:hover { background: var(--teal-300); color: #fff; }

.reviews-band { display: grid; grid-template-columns: 44% 1fr; align-items: center; background: linear-gradient(90deg, #eef5f4, #f7fbfa); overflow: hidden; min-height: 190px; }
.rb-media { position: relative; align-self: stretch; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: flex-end; }
.rb-panel { position: relative; width: 78%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 20px 40px 20px 70px; color: #fff;
  background: linear-gradient(120deg, rgba(10,69,63,.95), rgba(6,44,40,.97)); clip-path: polygon(14% 0, 100% 0, 88% 100%, 0 100%); }
.rb-panel h2 { color: #fff; font-style: italic; font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 8px; }
.rb-panel p { font-style: italic; font-size: 17px; line-height: 1.5; margin: 0; }
.rb-list { padding: 18px 24px; min-width: 0; }
.rb-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rb-track::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; background: #fff; border-radius: 8px; padding: 14px 16px; box-shadow: var(--shadow-sm); text-align: center; }
.review-card .fa-quote-left { color: var(--teal-800); font-size: 22px; display: block; text-align: left; }
.review-card p { font-size: 14px; margin: 2px 0 6px; color: var(--text); }
.review-stars { color: #f5a623; font-size: 13px; letter-spacing: 2px; }
.review-card strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.review-card small { color: var(--muted); font-size: 12.5px; }
.rb-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.rb-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #b6c8c6; padding: 0; cursor: pointer; }
.rb-dots button.active { background: var(--teal-800); width: 22px; border-radius: 6px; }

.gi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gi-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.gi-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gi-grid a:hover img { transform: scale(1.05); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-list li span:first-child { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.info-list li span:first-child i { color: var(--teal); width: 16px; }
.info-list li span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.prevnext a { flex: 1; max-width: 48%; display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.prevnext a:hover { border-color: var(--teal); }
.prevnext small { color: var(--muted); font-size: 12.5px; }
.prevnext .next { text-align: right; margin-left: auto; }

/* ============================================================
   ABOUT
   ============================================================ */
.story-grid { display: grid; grid-template-columns: 1fr 1fr 230px; gap: 28px; align-items: center; }
.story-text p { font-size: 15.5px; line-height: 1.8; }
.story-media { align-self: stretch; min-height: 280px; background-size: cover; background-position: center; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.stat-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stat-stack li { display: flex; align-items: center; gap: 14px; }
.stat-stack i { width: 54px; height: 54px; border-radius: 12px; background: var(--mint); color: var(--teal-700); display: grid; place-items: center; font-size: 22px; flex: none; }
.stat-stack strong { display: block; font-size: 24px; font-weight: 700; color: var(--teal-900); line-height: 1.1; }
.stat-stack small { display: block; font-size: 13.5px; }
.vision-band { display: grid; grid-template-columns: 32% 1fr; min-height: 230px; background: linear-gradient(90deg, #f3f8f7, #eaf3f2); overflow: hidden; }
.vb-media { background-size: cover; background-position: center; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.vb-body { padding: 26px 30px 26px 10px; }
.vb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vb-card { background: #fff; border-radius: 8px; padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.vb-card i { font-size: 30px; color: var(--teal-800); margin-bottom: 6px; }
.vb-card h3 { font-size: 17px; font-weight: 700; color: var(--teal-900); margin-bottom: 6px; }
.vb-card p { font-size: 14px; margin: 0; line-height: 1.55; }
.timeline { position: relative; list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: var(--teal); border-radius: 2px; }
.timeline li { position: relative; text-align: center; padding: 34px 8px 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 5px solid var(--teal); box-shadow: 0 0 0 4px #fff; }
.timeline strong { display: block; font-size: 22px; font-weight: 700; color: var(--teal-900); line-height: 1.2; }
.timeline span { display: block; font-size: 14px; color: var(--text); line-height: 1.45; }
.factory-grid { display: grid; grid-template-columns: 300px 1.3fr 1fr; gap: 14px; align-items: stretch; }
.factory-grid .ft { align-self: center; padding-right: 10px; }
.factory-grid .ft p { font-size: 15px; line-height: 1.75; }
.f-img { border-radius: 6px; background-size: cover; background-position: center; min-height: 120px; }
.f-img--main { min-height: 280px; clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
.f-col { display: grid; gap: 10px; }
.cert-band { display: grid; grid-template-columns: 1fr 1fr 34%; gap: 20px; align-items: center; }
.cert-logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 18px; text-align: center; }
.cert-item + .cert-item { border-left: 1px solid var(--line); }
.cert-item img { max-height: 64px; width: auto; }
.cert-item > i { font-size: 44px; color: var(--teal-800); }
.cert-item strong { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.cert-item small { font-size: 12px; color: var(--muted); max-width: 140px; line-height: 1.3; }
.thanks-panel { position: relative; align-self: stretch; min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 20px 20px 20px 60px; color: #fff; text-align: center;
  background: linear-gradient(120deg, rgba(10,69,63,.92), rgba(6,44,40,.9)), var(--thanks-bg) center/cover; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.thanks-panel span { font-size: clamp(18px, 1.8vw, 23px); font-weight: 600; font-style: italic; transform: rotate(-6deg); line-height: 1.45; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 34px; align-items: start; }
.c-list { display: grid; gap: 10px; margin-top: 18px; }
.c-item { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--mint-2); border-radius: 8px; color: var(--ink); }
a.c-item:hover { background: var(--mint); color: var(--ink); }
.c-ic { width: 50px; height: 50px; border-radius: 10px; background: linear-gradient(135deg, var(--teal-400), var(--teal-800)); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.c-ic .fa-line { font-size: 26px; }
.c-tx { flex: 1; min-width: 0; }
.c-tx strong { display: block; font-size: 19px; font-weight: 600; color: var(--teal-900); line-height: 1.25; word-break: break-word; }
.c-tx small { display: block; font-size: 13.5px; color: var(--text); }
.c-map-btn { flex: none; padding: 7px 14px; border: 1.5px solid var(--teal-800); border-radius: 8px; color: var(--teal-800); font-size: 14px; font-weight: 500; }
.c-map-btn:hover { background: var(--teal-800); color: #fff; }
.qr-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; margin-top: 22px; }
.qr-box { text-align: center; font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.qr-box .qr-img { width: 132px; height: 132px; margin: 0 auto 8px; padding: 6px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.qr-box .qr-img img, .qr-box .qr-img canvas { width: 100% !important; height: 100% !important; object-fit: contain; }
.form-card { background: var(--mint-2); border-radius: 14px; padding: 26px 28px; border: 1px solid var(--line); }
.form-card .sec-title { margin-bottom: 18px; }
.form-card .sec-sub { margin-left: 19px; font-size: 15.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.f-label { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.f-label .req { color: var(--red); }
.f-input, .f-textarea, .f-selectbox { width: 100%; border: 1px solid #cfdcda; border-radius: 6px; padding: 10px 14px; font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.f-input, .f-selectbox { height: 46px; }
.f-textarea { min-height: 96px; resize: vertical; }
.f-input:focus, .f-textarea:focus, .f-selectbox:focus { outline: none; border-color: var(--teal-300); box-shadow: 0 0 0 3px rgba(34,163,145,.15); }
.f-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.f-file label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; border: 1px solid #cfdcda; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--ink); }
.f-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.f-file small { font-size: 12.5px; color: var(--muted); }
.f-file .file-name { font-size: 13px; color: var(--teal); }
.f-consent { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.f-consent input { width: 18px; height: 18px; accent-color: var(--teal); }
.f-consent a { text-decoration: underline; }
.btn-submit { width: 100%; height: 56px; border: 0; border-radius: 8px; background: linear-gradient(135deg, var(--teal-400), var(--teal-800)); color: #fff; font-family: var(--font); font-size: 19px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; box-shadow: 0 8px 20px rgba(15,95,87,.28); }
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:disabled { opacity: .7; cursor: wait; }
.form-foot { text-align: center; font-size: 13px; color: var(--text); margin: 10px 0 0; }
.form-alert:empty { display: none; }
.alert-ok, .alert-err { padding: 12px 16px; border-radius: 8px; font-size: 15px; margin: 4px 0 0; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: #e4f6ec; color: #17693a; border-left: 4px solid #22a052; }
.alert-err { background: #fdecea; color: #a52a1f; border-left: 4px solid #e0392f; }
.map-band { display: grid; grid-template-columns: calc(max(0px, (100vw - 1240px) / 2) + 360px) 1fr 250px; min-height: 250px; background: #f3f8f7; overflow: hidden; }
.mb-text { padding: 28px 24px 28px max(20px, calc((100vw - 1240px) / 2 + 20px)); align-self: center; }
.mb-text h3 { font-size: 20px; font-weight: 500; margin: 8px 0 4px; }
.mb-text p { font-size: 14.5px; }
.mb-map { position: relative; min-height: 250px; }
.mb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.mb-media { background-size: cover; background-position: center; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }

/* ============================================================
   ARTICLES
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ac-img { aspect-ratio: 16/9; overflow: hidden; display: block; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .ac-img img { transform: scale(1.05); }
.ac-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ac-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ac-meta i { margin-right: 5px; color: var(--teal); }
.ac-body h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.ac-body h3 a { color: var(--ink); }
.ac-body h3 a:hover { color: var(--teal); }
.ac-body p { font-size: 14.5px; color: var(--text); }
.ac-body .link-more { margin-top: auto; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; opacity: .9; }
.article-meta-row i { margin-right: 6px; }
.tag-chip { display: inline-block; padding: 4px 12px; margin: 0 6px 8px 0; border-radius: 30px; background: var(--mint); color: var(--teal-700); font-size: 13.5px; }
.tag-chip:hover { background: var(--teal); color: #fff; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.share-row a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; color: #fff; font-size: 14px; }
.share-fb { background: #1877f2; }
.share-line { background: var(--line-green); }
.share-row a:hover { color: #fff; filter: brightness(1.08); }

/* Policy pages */
.policy { max-width: 900px; margin: 0 auto; }
.policy h2 { font-size: 22px; color: var(--teal-800); margin: 28px 0 10px; }

/* 404 */
.nf-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 800px; margin: 30px auto 0; }
.nf-links a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 10px; text-align: center; color: var(--ink); box-shadow: var(--shadow-sm); }
.nf-links a:hover { border-color: var(--teal); transform: translateY(-3px); }
.nf-links i { font-size: 28px; color: var(--teal); display: block; margin-bottom: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { color: rgba(255,255,255,.88); }
.footer-main { background: linear-gradient(100deg, var(--teal-800), var(--teal-700) 50%, var(--teal-800)); padding: 30px 0 18px; }
.fm-grid { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 30px; }
.fm-logo .logo-mark { width: 124px; height: 36px; }
.fm-logo .logo-en { font-size: 20px; }
.fm-logo .logo-th { font-size: 16px; }
/* โลโก้รูป (อัปโหลดที่ตั้งค่าเว็บไซต์) — ทำเป็นสีขาวทั้งโลโก้ ให้อ่านออกบนพื้นเขียว */
.fm-logo--img { display: inline-flex; align-items: center; max-width: 100%; }
.fm-logo--img .logo-img { max-width: 100%; filter: brightness(0) invert(1); }
.fm-quote { font-size: clamp(18px, 1.8vw, 23px); font-style: italic; font-weight: 500; color: #fff; margin: 0; line-height: 1.45; max-width: 340px; padding-left: 16px; word-break: keep-all; }
.fm-contact, .fm-address { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.25); }
.fm-contact { list-style: none; margin: 0; display: grid; gap: 8px; }
.fm-contact li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.fm-contact li > i { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--teal-800); display: grid; place-items: center; font-size: 12px; flex: none; }
.fm-contact li > i.fa-line { font-size: 15px; }
.fm-contact a, .fm-address a { color: #fff; }
.fm-contact a:hover { color: #9fe3d5; }
.fm-address p { display: flex; gap: 12px; margin: 0 0 12px; font-size: 15px; max-width: 260px; }
.fm-address p i { font-size: 22px; color: #fff; margin-top: 2px; }
.fm-social { display: flex; gap: 10px; padding-left: 34px; }
.soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; font-size: 17px; background: #fff; }
.soc--fb { background: #1877f2; }
.soc--yt { background: #ff0000; }
.soc--tt { background: #111; }
.soc--ln { background: var(--line-green); font-size: 20px; }
.soc:hover { transform: translateY(-3px); }
.fm-links { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1.4fr; gap: 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.fm-links h3 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.fm-links ul { list-style: none; padding: 0; margin: 0; }
.fm-links li { margin-bottom: 5px; }
.fm-links a { color: rgba(255,255,255,.75); font-size: 14px; }
.fm-links a:hover { color: #fff; }
.fm-hours { font-size: 13.5px; margin: 10px 0 0; color: rgba(255,255,255,.75); }
.fm-hours i { margin-right: 6px; }
.fm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-tags a { padding: 3px 10px; border-radius: 30px; border: 1px solid rgba(255,255,255,.2); font-size: 12.5px; }
.fm-tags a:hover { background: rgba(255,255,255,.12); }
.fm-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.65); }
.fm-stats i { margin-right: 6px; }
.fm-stats b { color: #fff; font-weight: 500; margin-left: 4px; }
.footer-bottom { background: #f1f5f5; color: var(--ink); font-size: 13px; padding: 14px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-right: 90px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink); }
.footer-bottom a:hover { color: var(--teal); }

/* Floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fa-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; position: relative; }
.fa-btn span { position: absolute; right: 60px; white-space: nowrap; background: #fff; color: var(--ink); font-size: 13px; padding: 4px 10px; border-radius: 6px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(6px); transition: .2s; pointer-events: none; }
.fa-btn:hover span { opacity: 1; transform: none; }
.fa-btn:hover { color: #fff; transform: translateY(-2px); }
.fa-btn--line { background: var(--line-green); font-size: 27px; }
.fa-btn--call { background: var(--teal); animation: ring 2.4s infinite; }
.fa-btn--top { background: var(--teal-900); font-size: 17px; opacity: 0; visibility: hidden; transition: .25s; }
.fa-btn--top.show { opacity: 1; visibility: visible; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(15,95,87,.5); } 50% { box-shadow: 0 0 0 12px rgba(15,95,87,0); } }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; max-width: 980px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(6,44,40,.28); border-top: 4px solid var(--teal); transform: translateY(140%); transition: transform .4s ease; }
.cookie-banner.show { transform: none; }
.cookie-inner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.cookie-icon { font-size: 30px; color: var(--teal); }
.cookie-inner p { flex: 1; min-width: 260px; margin: 0; font-size: 14px; line-height: 1.6; }
.cookie-inner p a { text-decoration: underline; margin: 0 2px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-btn { font-family: var(--font); font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 30px; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.ck-btn:active { transform: scale(.97); }
.ck-btn:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; }
.ck-solid { background: var(--teal); color: #fff; }
.ck-solid:hover { background: var(--teal-700); }
.ck-outline { background: #fff; color: var(--teal-800); border-color: var(--teal); }
.ck-outline:hover { background: var(--mint); }
.ck-ghost { background: var(--mint); color: var(--teal-800); }
.ck-ghost:hover { background: #d6ebe6; }
/* หน้าต่างตั้งค่า */
.ck-modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; }
.ck-backdrop { position: absolute; inset: 0; background: rgba(4,30,27,.55); opacity: 0; transition: opacity .25s; }
.ck-dialog { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s, opacity .25s; }
.ck-modal.show .ck-backdrop { opacity: 1; }
.ck-modal.show .ck-dialog { transform: none; opacity: 1; }
body.ck-open { overflow: hidden; }
.ck-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; border-bottom: 1px solid #edf2f1; }
.ck-head h2 { font-size: 19px; font-weight: 700; margin: 0; color: var(--teal-900); display: flex; gap: 10px; align-items: center; }
.ck-head h2 i { color: var(--teal); }
.ck-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mint); color: var(--teal-800); cursor: pointer; }
.ck-body { padding: 14px 22px; overflow-y: auto; }
.ck-intro { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.ck-intro a { text-decoration: underline; }
.ck-cat { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #e3eeeb; border-radius: 12px; margin-bottom: 10px; }
.ck-cat-tx strong { display: block; font-size: 15px; color: var(--ink); }
.ck-cat-tx small { display: block; font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.ck-always { flex: none; font-size: 12.5px; font-weight: 600; color: var(--teal-700); background: var(--mint); padding: 5px 10px; border-radius: 20px; }
.ck-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.ck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ck-switch span { position: absolute; inset: 0; border-radius: 30px; background: #cfd9d7; transition: background .2s; pointer-events: none; }
.ck-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.ck-switch input:checked + span { background: var(--teal); }
.ck-switch input:checked + span::after { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 3px solid var(--teal-300); outline-offset: 2px; }
.ck-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid #edf2f1; }
.ck-short { display: none; }
@media (max-width: 575px) { .ck-foot .ck-btn { flex: 1; } }
/* แถบคุกกี้บนมือถือ: ข้อความสั้น ปุ่มปฏิเสธ/ยอมรับเท่ากันแถวเดียว ปุ่มตั้งค่าเป็นลิงก์ด้านล่าง */
@media (max-width: 767px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; border-radius: 14px; border-top-width: 3px; }
  .cookie-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; padding: 14px 14px 10px; }
  .cookie-icon { font-size: 24px; align-self: start; margin-top: 2px; }
  .cookie-inner p { min-width: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
  .cookie-inner .ck-title { display: block; font-size: 15px; color: var(--ink); margin-bottom: 1px; }
  .ck-long { display: none; }
  .ck-short { display: inline; }
  .cookie-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-actions .ck-btn { padding: 10px 8px; font-size: 14px; white-space: nowrap; }
  .cookie-actions .ck-set { grid-column: 1 / -1; order: 3; background: none; padding: 4px 0 2px; font-size: 13px; font-weight: 500; color: var(--teal-700); }
  .cookie-actions .ck-set:hover { background: none; text-decoration: underline; }
}
/* เนื้อหาภายนอกที่ยังไม่ได้รับความยินยอม */
.ext-embed { display: grid; place-items: center; min-height: 220px; padding: 20px; border-radius: 12px; background: linear-gradient(135deg, #eef6f4, #dfeeea); text-align: center; }
.ext-embed--video { aspect-ratio: 16/9; max-width: 760px; margin: 1.2em auto; }
.ext-embed-box i { font-size: 34px; color: var(--teal); margin-bottom: 8px; }
.ext-embed-box strong { display: block; font-size: 16px; color: var(--ink); }
.ext-embed-box small { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.ext-embed-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ext-embed-actions button { font-family: var(--font); font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 30px; cursor: pointer; border: 1.5px solid var(--teal); background: #fff; color: var(--teal-800); }
.ext-embed-actions .ext-allow { background: var(--teal); color: #fff; }
.mb-map .ext-embed { height: 100%; min-height: 320px; border-radius: 0; }

/* Sample content notice */
.sample-notice { background: #fff6d6; color: #6b5200; font-size: 13.5px; text-align: center; padding: 6px 12px; position: relative; z-index: 1001; }

/* Animation */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--d, 0) * 70ms); }
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .main-nav > ul > li > a { padding: 9px 11px; font-size: 15px; }
  .header-logo { padding: 0 50px 0 22px; }
}
@media (max-width: 1199px) {
  :root { --header-h: 76px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner { justify-content: space-between; }
  .header-admin { margin-left: auto; }
  .hp-cards { grid-template-columns: repeat(3, 1fr); }
  .hp-cards .mini-product:nth-child(n+4) { display: none; }
  .home-services { grid-template-columns: 1fr; }
  .hs-left { min-height: 200px; clip-path: none; justify-content: center; padding: 0; }
  .hs-left::after { display: none; }
  .hs-center { padding: 26px 20px; }
  .hs-right { display: none; }
  .ha-grid { grid-template-columns: 1fr 1fr; }
  .ha-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .qq-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid, .project-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .process-steps li::after { display: none; }
  .why-band { grid-template-columns: 1fr; }
  .wb-media { min-height: 180px; clip-path: none; }
  .wb-center { padding: 26px 20px 0; }
  .fcta-inner { grid-template-columns: 1fr auto; padding: 20px 24px; }
  .fcta-img { display: none; }
  .fcta-list { grid-column: 1; grid-row: 2; grid-template-columns: 1fr 1fr; }
  .fcta-btn { grid-row: 1 / 3; grid-column: 2; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .stat-stack { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .factory-grid { grid-template-columns: 1fr 1fr; }
  .factory-grid .ft { grid-column: 1 / -1; }
  .cert-band { grid-template-columns: 1fr; }
  .thanks-panel { clip-path: none; padding: 26px; }
  .map-band { grid-template-columns: 1fr; }
  .mb-text { padding: 26px 20px; }
  .mb-media { display: none; }
  .fm-grid { grid-template-columns: 1fr 1fr; }
  .fm-quote { padding-left: 0; }
  .fm-contact, .fm-address { padding-left: 0; border-left: 0; }
  .fm-social { padding-left: 0; }
  .fm-links { grid-template-columns: 1fr 1fr; }
  .reviews-band { grid-template-columns: 1fr; }
  .rb-panel { width: 100%; clip-path: none; padding: 26px; }
  .stats-bar-inner { max-width: 100%; clip-path: none; }
}
@media (max-width: 991px) {
  .home-hero { min-height: 0; padding-bottom: 220px; }
  .hh-media { width: 100%; top: auto; height: 330px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
  .hh-features { grid-template-columns: repeat(2, auto); }
  .hh-quote { width: 250px; height: 150px; }
  .hh-quote span, .ph-quote span { font-size: 18px; }
  .page-hero { min-height: 0; }
  .ph-media { width: 100%; }
  .ph-panel { width: 100%; background: linear-gradient(90deg, rgba(8,58,53,.96), rgba(10,69,63,.86)); }
  .ph-panel::after { display: none; }
  .ph-quote { display: none; }
  .hp-grid, .hpr-grid { grid-template-columns: 1fr; }
  .hp-intro p { margin: 6px 0 14px; }
  .car-nav { position: static; justify-content: flex-end; margin-bottom: 12px; }
  .car-track { grid-auto-columns: calc((100% - 12px) / 2); }
  .cat-tabs-row { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .filter-card:not(.open) .filter-body { display: none; }
  .filter-card h2 { margin: 0; cursor: pointer; }
  .filter-card h2::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px; margin-left: auto; }
  .filter-card.open h2 { margin-bottom: 14px; }
  .pd-grid, .detail-layout, .contact-grid { grid-template-columns: 1fr; }
  .vision-band { grid-template-columns: 1fr; }
  .vb-media { min-height: 180px; clip-path: none; }
  .vb-body { padding: 26px 20px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; padding-left: 10px; }
  .timeline::before { left: 21px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .timeline li { text-align: left; padding: 0 0 20px 50px; }
  .timeline li::before { left: 0; top: 2px; transform: none; }
  .rb-track { grid-auto-columns: calc((100% - 12px) / 2); }
}
@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .section { padding: 50px 0; }
  .header-logo { padding: 0 42px 0 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%); }
  .header-logo .logo-mark { width: 78px; height: 22px; }
  .header-logo .logo-en { font-size: 13px; }
  .header-logo .logo-th { font-size: 11px; }
  .hh-features { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px; }
  .hs-left .slant-quote { display: none; }
  .hh-actions .btn-main, .hh-actions .btn-ghost { flex: 1; padding: 13px 16px; }
  .hp-cards { grid-template-columns: repeat(2, 1fr); }
  .hp-cards .mini-product:nth-child(n+4) { display: flex; }
  .hp-cards .mini-product:nth-child(n+5) { display: none; }
  .hs-tiles { grid-template-columns: repeat(2, 1fr); }
  .cat-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
  .cat-tab { scroll-snap-align: start; min-height: 78px; font-size: 12.5px; }
  .ha-grid { grid-template-columns: 1fr; }
  .ha-media { min-height: 220px; clip-path: none; border-radius: 10px; }
  .ha-stats { grid-template-columns: 1fr; }
  .qq-form { grid-template-columns: 1fr; }
  .qq-submit { justify-content: center; }
  .car-track { grid-auto-columns: 70%; }
  .product-grid, .product-grid--3, .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-body { padding: 10px 12px 12px; }
  .pc-title { font-size: 15px; }
  .pc-spec { display: none; }
  .pc-btn { height: 34px; font-size: 13px; }
  .pc-badge { font-size: 11.5px; padding: 3px 9px 3px 6px; }
  .sv-head h3 { font-size: 14.5px; }
  .sv-body p { display: none; }
  .prj-text h3 { font-size: 13.5px; }
  .prj-icon { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .wb-cards, .vb-cards { grid-template-columns: repeat(2, 1fr); }
  .fcta-inner { grid-template-columns: 1fr; }
  .fcta-btn { grid-row: auto; grid-column: auto; clip-path: none; justify-content: center; }
  .fcta-list { grid-template-columns: 1fr; }
  .why-strip-grid { grid-template-columns: 1fr; }
  .why-strip-media { min-height: 150px; clip-path: none; border-radius: 10px; }
  .care-actions { width: 100%; }
  .care-btn { flex: 1 1 100%; justify-content: center; }
  .story-grid { grid-template-columns: 1fr; }
  .story-media { clip-path: none; border-radius: 10px; min-height: 220px; }
  .stat-stack { grid-template-columns: 1fr 1fr; }
  .factory-grid { grid-template-columns: 1fr; }
  .f-img--main { clip-path: none; min-height: 220px; }
  .cert-item + .cert-item { border-left: 0; }
  .form-card { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .c-tx strong { font-size: 16px; }
  .c-map-btn { padding: 6px 10px; font-size: 13px; }
  .stats-bar { margin-top: 0; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stats-bar-item { padding: 12px 14px; }
  .stats-bar-item:nth-child(3) { border-left: 0; }
  .stats-bar-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-bar-item i { font-size: 24px; }
  .stats-bar-item strong { font-size: 19px; }
  .article-grid { grid-template-columns: 1fr; }
  .rb-track { grid-auto-columns: 85%; }
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .nf-links { grid-template-columns: repeat(2, 1fr); }
  .fm-grid { grid-template-columns: 1fr; gap: 18px; }
  .fm-links { grid-template-columns: 1fr 1fr; gap: 18px; }
  .fm-links > div:last-child { grid-column: 1 / -1; }
  .footer-bottom .container { padding-right: 20px; padding-bottom: 60px; }
  .content-card { padding: 20px; }
  .prevnext { flex-direction: column; }
  .prevnext a { max-width: 100%; }
  .ph-features { gap: 12px 20px; }
  .ph-features li { flex: 1 1 40%; }
  .ph-features i { font-size: 24px; width: 28px; }
}

/* page-specific tweaks */
.page-gallery .page-hero:not(.page-hero--compact) .ph-content { padding-bottom: 120px; }
.review-card blockquote { margin: 0; }
.review-card figcaption small { display: block; }

/* FAQ (AEO) */
.faq-section { padding: 56px 0; background: linear-gradient(180deg, #fff, var(--mint-2)); }
.faq-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.faq-intro { position: sticky; top: 96px; }
.faq-intro .sec-heading { display: block; font-size: clamp(26px, 2.6vw, 34px); margin-top: 4px; }
.faq-intro .sec-heading .sec-bar { margin-right: 12px; vertical-align: -2px; }
.faq-intro .sec-sub { margin-left: 0; }
.faq-intro .sec-sub { margin: 10px 0 20px; }
.faq-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-cta a { padding: 12px 20px; font-size: 15px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item[open] { border-color: #b9d8d2; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.faq-item summary i { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--teal); display: grid; place-items: center; font-size: 13px; flex: none; transition: transform .25s, background .25s; }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-item summary:hover h3 { color: var(--teal); }
.faq-answer { padding: 0 20px 18px; font-size: 15.5px; color: var(--text); line-height: 1.8; }
.faq-answer p { margin: 0; }
@media (max-width: 991px) {
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-intro { position: static; }
}

/* Article AEO blocks */
.article-summary { background: linear-gradient(135deg, #e9f6f2, #f5fbf9); border: 1px solid #c9e5de; border-left: 5px solid var(--teal); border-radius: 12px; padding: 18px 22px; margin-bottom: 20px; }
.article-summary strong { display: flex; align-items: center; gap: 8px; color: var(--teal-800); font-size: 17px; margin-bottom: 6px; }
.article-summary strong i { color: #e0a800; }
.article-summary p { margin: 0; font-size: 16.5px; line-height: 1.8; color: var(--ink); }
.article-toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; margin-bottom: 20px; }
.article-toc strong { display: flex; align-items: center; gap: 8px; color: var(--teal-800); margin-bottom: 6px; }
.article-toc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.article-toc li::marker { color: var(--teal); }
.article-toc a { color: var(--ink); font-size: 15px; }
.article-toc a:hover { color: var(--teal); }
.article-body h2 { scroll-margin-top: 90px; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 20px; padding: 18px 22px; border-radius: 12px; background: linear-gradient(120deg, var(--teal-700), var(--teal-900)); color: #fff; }
.author-box strong { display: block; font-size: 16px; }
.author-box p { margin: 2px 0 0; font-size: 14px; opacity: .85; }
.author-logo .logo-mark { width: 70px; height: 20px; }
.author-logo .logo-en { font-size: 12px; }
.author-logo .logo-th { font-size: 10.5px; }
.page-hero .article-meta-row { margin-top: 14px; }
@media (max-width: 767px) { .author-box { flex-direction: column; align-items: flex-start; } }

/* ปุ่มแอดมินบนแถบเมนู (แสดงเฉพาะตอนล็อกอินหลังบ้านอยู่) */
.header-admin { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  background: rgba(255,255,255,.9); color: var(--teal-800); font-weight: 500; font-size: 15px; border: 1.5px solid var(--teal-300);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.header-admin:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); transform: translateY(-1px); }
.site-header.is-stuck .header-admin { background: var(--mint); }
.site-header.is-stuck .header-admin:hover { background: var(--teal-700); color: #fff; }
.m-admin { background: var(--mint); color: var(--teal-800) !important; font-weight: 500; }
@media (max-width: 991px) { .header-admin span { display: none; } .header-admin { padding: 10px 12px; } }

/* ===== โหมดแอดมิน: ปุ่มแก้ไขบนโพสต์ + แถบสถานะ ===== */
.product-card, .project-card, .article-card, .service-card-wrap, .mini-product-wrap { position: relative; }
.service-card-wrap, .mini-product-wrap { display: flex; }
.service-card-wrap > .service-card, .mini-product-wrap > .mini-product { flex: 1; }
.admin-edit-chip {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 30px; font-size: 12.5px; font-weight: 500;
  background: rgba(10,69,63,.92); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.admin-edit-chip i { font-size: 11px; }
.admin-edit-chip:hover { background: var(--teal-300); color: #fff; transform: translateY(-1px); }
.admin-edit-btn {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  padding: 9px 20px; border-radius: 30px; font-size: 15px; font-weight: 500;
  background: var(--mint); color: var(--teal-800); border: 1.5px dashed var(--teal-300);
}
.admin-edit-btn:hover { background: var(--teal-700); color: #fff; border-style: solid; border-color: var(--teal-700); }
.pd-info .admin-edit-btn { margin-bottom: 10px; }

.admin-mode-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 890;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 7px 8px 7px 14px; border-radius: 30px;
  background: rgba(8,58,53,.95); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13.5px;
}
.admin-mode-bar.hidden { display: none; }
.amb-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; margin-right: 6px; white-space: nowrap; }
.amb-label i { color: #7fd3c4; }
.admin-mode-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; color: #fff; background: rgba(255,255,255,.12); white-space: nowrap; }
.admin-mode-bar a:hover { background: #fff; color: var(--teal-800); }
.admin-mode-bar a i { font-size: 12px; }
.amb-hide { border: 0; background: none; color: rgba(255,255,255,.6); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.amb-hide:hover { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 767px) {
  .admin-mode-bar { left: 10px; right: 76px; bottom: 10px; font-size: 12.5px; padding: 6px 6px 6px 10px; }
  .admin-mode-bar a span, .amb-label span { display: inline; }
  .admin-edit-chip span { display: none; }
  .admin-edit-chip { padding: 6px 9px; }
}

/* ===== โปรโมชั่น ===== */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promo-card { position: relative; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #edf2f1; display: flex; flex-direction: column; height: 100%; transition: transform .3s, box-shadow .3s; }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pm-img { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--mint); }
.pm-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.promo-card:hover .pm-img img { transform: scale(1.05); }
.pm-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 30px; background: linear-gradient(135deg, #e0242c, #b4161d); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.pm-badge i { font-size: 12px; }
.pm-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.pm-body h3 { font-size: 18px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.pm-body h3 a { color: var(--ink); }
.pm-body h3 a:hover { color: var(--teal); }
.pm-body p { font-size: 14.5px; color: var(--text); margin-bottom: 14px; }
.pm-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); font-size: 15px; }
.pm-go:hover { gap: 12px; color: var(--teal-700); }
.pm-foot small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pm-foot small i { margin-right: 5px; color: var(--teal); }
@media (max-width: 991px) { .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 575px) { .promo-grid { grid-template-columns: 1fr; } }

/* ===== รูปแบบจากตัวแก้ไขข้อความ (Quill) ในเนื้อหา ===== */
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }
.rich-text .ql-direction-rtl { direction: rtl; text-align: inherit; }
.rich-text .ql-direction-rtl.ql-align-right { text-align: left; }
.rich-text .ql-size-small { font-size: .78em; }
.rich-text .ql-size-large { font-size: 1.4em; }
.rich-text .ql-size-huge { font-size: 2.1em; line-height: 1.3; }
.rich-text .ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.rich-text .ql-font-monospace { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; }
.rich-text p.ql-indent-1, .rich-text h2.ql-indent-1, .rich-text h3.ql-indent-1 { padding-left: 2em; }
.rich-text p.ql-indent-2, .rich-text h2.ql-indent-2, .rich-text h3.ql-indent-2 { padding-left: 4em; }
.rich-text p.ql-indent-3 { padding-left: 6em; }
.rich-text p.ql-indent-4 { padding-left: 8em; }
.rich-text li.ql-indent-1 { margin-left: 1.6em; }
.rich-text li.ql-indent-2 { margin-left: 3.2em; }
.rich-text li.ql-indent-3 { margin-left: 4.8em; }
.rich-text li.ql-indent-4 { margin-left: 6.4em; }
.rich-text ul li.ql-indent-1 { list-style-type: circle; }
.rich-text ul li.ql-indent-2 { list-style-type: square; }
.rich-text ol li.ql-indent-1 { list-style-type: lower-alpha; }
.rich-text ol li.ql-indent-2 { list-style-type: lower-roman; }
.rich-text h4 { font-size: 18px; font-weight: 600; color: var(--teal-800); margin: 1.3em 0 .5em; }
.rich-text h5, .rich-text h6 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 1.2em 0 .4em; }
.rich-text blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 4px solid var(--teal); background: var(--mint); border-radius: 0 10px 10px 0; color: #3a4b50; }
.rich-text pre, .rich-text pre.ql-syntax { margin: 1.2em 0; padding: 14px 16px; background: #1f2a2c; color: #e8f1ef; border-radius: 10px; font-family: Menlo, Monaco, Consolas, monospace; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-x: auto; }
.rich-text s { opacity: .75; }
.rich-text sub, .rich-text sup { font-size: .75em; }
.rich-text .ql-video { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 1.2em auto; background: #000; }
.rich-text img { max-width: 100%; height: auto; }

/* ===== ปุ่มติดต่อในหน้าสินค้า ===== */
.cta-btn { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 16px; overflow: hidden; isolation: isolate; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.cta-btn:hover { transform: translateY(-3px); }
.cta-btn:active { transform: translateY(-1px) scale(.985); }
.cta-btn:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 3px; }
.cta-ic { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.cta-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cta-tx strong { font-size: 16px; font-weight: 700; white-space: nowrap; }
.cta-tx small { font-size: 12.5px; opacity: .85; margin-top: 3px; }
.cta-go { margin-left: auto; font-size: 15px; transition: transform .25s; }
.cta-btn:hover .cta-go { transform: translateX(5px); }

/* ขอใบเสนอราคา: ไล่สีเคลื่อนช้า ๆ + แสงวิ่งผ่าน */
.cta-quote { grid-column: 1 / -1; padding: 14px 22px 14px 14px; color: #fff;
  background: linear-gradient(115deg, var(--teal-700), var(--teal-400) 55%, var(--teal-700)); background-size: 220% 100%;
  box-shadow: 0 12px 28px -10px rgba(15,95,87,.6), inset 0 1px 0 rgba(255,255,255,.25); animation: ctaFlow 7s ease-in-out infinite; }
.cta-quote:hover { color: #fff; box-shadow: 0 18px 36px -12px rgba(15,95,87,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.cta-quote .cta-ic { width: 48px; height: 48px; font-size: 20px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.cta-quote:hover .cta-ic { transform: rotate(-8deg) scale(1.08); }
.cta-quote .cta-tx strong { font-size: 18px; }
.cta-quote::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-20deg); animation: ctaShine 4.2s ease-in-out infinite; pointer-events: none; }
@keyframes ctaShine { 0%, 62% { left: -60%; } 100% { left: 135%; } }
@keyframes ctaFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* โทร: วงแหวนกระเพื่อม + ไอคอนสั่นตอนชี้ */
.cta-call { color: var(--teal-800); background: #fff; border: 1.5px solid #d6e9e5; box-shadow: 0 6px 16px -8px rgba(15,95,87,.3); }
.cta-call:hover { color: var(--teal-800); border-color: var(--teal-400); box-shadow: 0 14px 28px -12px rgba(15,95,87,.45); }
.cta-call .cta-ic { background: var(--mint); color: var(--teal-700); }
.cta-call .cta-ic::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--teal-400); animation: ctaPulse 2.4s ease-out infinite; }
.cta-call:hover .cta-ic i { animation: ctaRing .55s ease-in-out 2; }
@keyframes ctaPulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes ctaRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-12deg); } 80% { transform: rotate(8deg); } }

/* LINE */
.cta-line { color: #fff; background: linear-gradient(135deg, #06c755, #04a846); box-shadow: 0 10px 24px -10px rgba(6,199,85,.65); }
.cta-line:hover { color: #fff; box-shadow: 0 16px 32px -12px rgba(6,199,85,.75); }
.cta-line .cta-ic { background: #fff; color: #06c755; font-size: 23px; }
.cta-line:hover .cta-ic { transform: translateY(-2px) scale(1.1) rotate(6deg); }

/* ระลอกตอนกด */
.cta-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ctaRipple .6s ease-out forwards; pointer-events: none; }
.cta-call .cta-ripple { background: rgba(25,163,143,.22); }
@keyframes ctaRipple { to { transform: scale(2.4); opacity: 0; } }

/* คัดลอกเบอร์แล้ว (บนคอม) */
.cta-toast { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) scale(.9); padding: 5px 10px; border-radius: 30px; background: var(--teal-800); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.cta-toast.show { opacity: 1; transform: translateY(-50%) scale(1); }

@media (max-width: 575px) {
  .pd-actions { grid-template-columns: 1fr; }
  .cta-tx strong { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-btn, .cta-btn *, .cta-btn::after, .cta-ic::before { animation: none !important; transition: none !important; }
  .cta-btn:hover { transform: none; }
}

/* ===== หน้านโยบาย ===== */
.policy-meta { display: inline-block; font-size: 13.5px; color: var(--teal-800); background: var(--mint); padding: 5px 12px; border-radius: 20px; }
.policy .table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid #e3eeeb; border-radius: 12px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.policy th { background: var(--mint); color: var(--teal-900); font-weight: 600; text-align: left; padding: 10px 12px; }
.policy td { padding: 10px 12px; border-top: 1px solid #edf2f1; vertical-align: top; }
.policy td code { font-size: 13px; background: #f3f7f6; padding: 1px 6px; border-radius: 5px; color: var(--teal-800); }
.policy h3 { font-size: 17px; margin-top: 1.1em; }
.policy-see { margin-top: 1.6em; font-size: 14px; }
.ck-current { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; margin: 14px 0 6px; border: 1.5px solid #d6e9e5; border-radius: 14px; background: #f7fbfa; scroll-margin-top: 110px; }
.ck-current strong { display: block; font-size: 15px; color: var(--ink); }
.ck-current span { font-size: 14px; }
.ck-state { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 12px; }
.ck-state.on { background: #dff3ea; color: #0f7a5f; }
.ck-state.off { background: #f3e6e6; color: #9b2c2c; }
.float-actions { transition: bottom .35s ease; }
.ck-banner-open .float-actions { bottom: calc(var(--ckb-h, 0px) + 30px); }

/* หน้าติดต่อ: ช่องทางติดต่อ (ซ้าย) + แผนที่ตั้งโรงงาน (ขวา) */
#quote { scroll-margin-top: 100px; }
.map-card { background: #fff; border: 1px solid #e3eeeb; border-radius: 16px; padding: 22px 22px 24px; box-shadow: var(--shadow-sm); }
.map-card-map { position: relative; height: 400px; margin: 16px 0 18px; border-radius: 12px; overflow: hidden; background: var(--mint-2); }
.map-card-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.map-card-map .ext-embed { height: 100%; min-height: 0; border-radius: 12px; }
.map-card-info h3 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.map-card-info p { font-size: 14.5px; color: var(--text); margin-bottom: 16px; }
@media (max-width: 767px) { .map-card { padding: 18px; } .map-card-map { height: 300px; } }
