/* บริษัท โซลาร์ทีเอช จำกัด — หน้าตาเว็บ
   แนว: องค์กรพลังงานพรีเมียม พื้นครีม · น้ำเงินกรมท่า 60% · ครีม 30% · ทองแดงจากโลโก้ 10% · เขียวโลโก้เป็นแถบจุดเด่น
   กฎ: ทุกส่วนต้องยังสวยเมื่อข้อความสั้นมาก/ยาวมาก และไม่ล้นจอที่ 360px · ห้าม backdrop-filter/transform/filter บนหัวเว็บ */

:root {
  --accent: #c8642a;          /* ทองแดง — ปุ่มหลัก (site.config.js brand.color ทับได้) */
  --accent-2: #e8a548;        /* ส้มทองจากพื้นโลโก้ */
  --navy: #0e2a47;
  --navy-2: #0a1f36;
  --green: #1d4d33;
  --ink: #13202e;
  --muted: #566577;
  --paper: #f8f5ef;
  --paper-2: #f1ebe0;
  --card: #ffffff;
  --line: #e6dfd2;
  --radius: 16px;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(56px, 8vw, 104px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 8px 24px -12px rgba(14, 42, 71, .18);
  --shadow-up: 0 2px 4px rgba(14, 42, 71, .08), 0 18px 36px -14px rgba(14, 42, 71, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.75; -webkit-text-size-adjust: 100%; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; word-break: keep-all; overflow-wrap: break-word; }
p { margin: 0 0 .9em; }
.nw { white-space: nowrap; }
p:last-child { margin-bottom: 0; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
svg.ic-solid { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec-dark { background: var(--navy); color: #eef2f7; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* หัวข้อของแต่ละส่วน — เส้นทองแดงสั้นนำหน้า */
.rule { display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 16px; }
.sec-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.sec-head .rule { margin-inline: auto; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--navy); }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.sec-head.on-dark h2 { color: #fff; }
.sec-head.on-dark p { color: #b9c6d6; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16.5px/1.45 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  background: var(--navy); color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-copper { background: linear-gradient(180deg, #d4733a, var(--accent)); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-glass { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-line { background: #06c755; color: #fff; }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-block { width: 100%; }
.btn svg { width: 22px; height: 22px; }

/* ---------- แถบข้อมูลบน + หัวเว็บ ---------- */
.topbar { background: var(--navy-2); color: #d5deea; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; padding-block: 7px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar svg { width: 16px; height: 16px; color: var(--accent-2); }
.topbar a:hover { color: #fff; }

.hdr { position: sticky; top: 0; z-index: 50; background: #fffdf9; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.hdr.is-stuck { box-shadow: 0 6px 24px -14px rgba(14, 42, 71, .35); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo img { height: 52px; width: auto; border-radius: 8px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.logo-txt b { font-size: 17px; color: var(--navy); white-space: nowrap; }
.logo-txt small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

.menu { display: flex; align-items: center; gap: 2px; }
.menu > a:not(.btn):not(.menu-phone) {
  position: relative; padding: 10px 9px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--navy); white-space: nowrap;
}
.menu > a:not(.btn):not(.menu-phone)::after {
  content: ''; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease);
}
.menu > a:hover::after, .menu > a[aria-current="page"]::after { transform: scaleX(1); }
.menu > a[aria-current="page"] { color: var(--accent); }
.menu-cta { margin-left: 10px; min-height: 46px; padding: 10px 22px; font-size: 15.5px; white-space: nowrap; }
.menu-phone { display: none; }
.nav-toggle { display: none; }

/* เมนูย่อยตามผังเว็บ (ผลิตภัณฑ์ / บริการติดตั้ง / แคมเปญ) */
.mi { position: relative; display: flex; align-items: center; }
.mi > a:not(.btn) {
  position: relative; padding: 10px 2px 10px 9px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--navy); white-space: nowrap;
}
.mi > a::after {
  content: ''; position: absolute; left: 9px; right: 2px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease);
}
.mi:hover > a::after, .mi > a[aria-current="page"]::after { transform: scaleX(1); }
.mi > a[aria-current="page"] { color: var(--accent); }
.sub-tg {
  display: grid; place-items: center; width: 22px; height: 32px; padding: 0; margin-right: 4px;
  border: 0; background: none; color: var(--navy); cursor: pointer;
}
.sub-tg svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; min-width: 270px;
  display: flex; flex-direction: column; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(14, 42, 71, .4);
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sub a { padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.sub a:hover, .sub a:focus-visible { background: var(--paper); color: var(--accent); }
@media (min-width: 1200px) {
  .mi:hover .sub, .mi:focus-within .sub, .mi.open .sub { visibility: visible; opacity: 1; transform: none; }
  .mi:hover .sub-tg svg, .mi.open .sub-tg svg { transform: rotate(180deg); }
}
/* เมนู 6 รายการตามผังเว็บ (รอบแก้ 1) — จอคอมซ่อนคำโปรยใต้ชื่อบริษัท ให้เมนูอยู่บรรทัดเดียว */
@media (min-width: 1200px) {
  .hdr-in { gap: 16px; }
  .logo-txt small { display: none; }
  .logo-txt b { font-size: 16px; }
}

@media (max-width: 1199px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; position: relative; z-index: 61;
  }
  .nav-toggle svg { width: 24px; height: 24px; grid-area: 1 / 1; }
  .nav-toggle svg:last-child, body.nav-open .nav-toggle svg:first-child { display: none; }
  body.nav-open .nav-toggle svg:last-child { display: block; }
  /* เมนูมือถือเต็มจอ — หัวเว็บไม่มี transform/filter จึงครอบได้ทั้งจอ */
  .menu {
    position: fixed; inset: 0; z-index: 60; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 2px;
    padding: 90px 28px 40px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu { visibility: visible; opacity: 1; }
  .menu { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; }
  .menu > a:not(.btn):not(.menu-phone) { font-size: 22px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .mi { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .mi > a:not(.btn) { flex: 1; font-size: 22px; padding: 14px 4px; }
  .mi > a::after { display: none; }
  .sub-tg { width: 48px; height: 48px; margin: 0; border-radius: 12px; }
  .sub-tg svg { width: 22px; height: 22px; }
  .mi.open .sub-tg svg { transform: rotate(180deg); }
  .sub {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 14px; border: 0; border-radius: 0; box-shadow: none; background: none;
    display: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .sub::before { display: none; }
  .mi.open .sub { display: flex; }
  .sub a { font-size: 17px; padding: 10px 8px; white-space: normal; border-left: 2px solid var(--line); border-radius: 0; }
  .menu > a:not(.btn)::after { display: none; }
  .menu-cta { margin: 24px 0 0; min-height: 54px; font-size: 17px; }
  .menu-phone { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 600; color: var(--navy); text-decoration: none; }
  .logo img { height: 44px; }
}
@media (max-width: 560px) {
  .topbar .wrap { justify-content: center; gap: 4px 16px; font-size: 14px; }
  .hide-sm { display: none !important; }
  .logo-txt small { display: none; }
  .logo-txt b { font-size: 15px; white-space: normal; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-copy { max-width: 700px; }
.hero-title { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.42; color: var(--navy); letter-spacing: -.01em; }
.hero-sub { font-size: clamp(16.5px, 1.6vw, 19.5px); color: #33445a; margin: 18px 0 0; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 700; font-size: 20px; color: var(--navy); text-decoration: none; }
.hero-phone svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--navy); color: #fff; }

/* จอใหญ่: รูปเต็มกว้าง ข้อความวางบนฝั่งซ้ายที่ไล่สีครีมอ่อนๆ */
@media (min-width: 900px) {
  .hero-slide { min-height: clamp(540px, 74vh, 760px); }
  .hero-pic { position: absolute; inset: 0; }
  .hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 245, 239, .97) 0%, rgba(248, 245, 239, .9) 34%, rgba(248, 245, 239, .35) 56%, rgba(248, 245, 239, 0) 72%); }
  .hero-body { position: relative; display: flex; align-items: center; min-height: inherit; padding-block: 72px 110px; }
}
/* มือถือ: ข้อความวางทับบนภาพสไลด์เหมือนจอคอม (แก้ด่วน-1081) ไล่สีครีมจากล่างขึ้นบน ภาพส่วนบนเห็นชัด */
@media (max-width: 899px) {
  .hero { background: var(--paper); }
  .hero-slide { min-height: min(92vh, 760px); }
  .hero-pic { position: absolute; inset: 0; }
  .hero-pic img { object-position: 72% 50%; }
  .hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(248, 245, 239, .96) 0%, rgba(248, 245, 239, .9) 40%, rgba(248, 245, 239, .35) 57%, rgba(248, 245, 239, 0) 68%); }
  .hero-body { position: relative; display: flex; align-items: flex-end; min-height: inherit; padding-block: 140px 92px; }
  .hero-title { font-size: clamp(27px, 7.4vw, 40px); line-height: 1.42; }
  .hero-sub { margin-top: 12px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { flex: 1 1 200px; }
}
.hero-nav { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; align-items: center; gap: 14px; z-index: 3; pointer-events: none; }
.hero-nav > * { pointer-events: auto; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(14, 42, 71, .2); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.hero-arrow[data-step="-1"] svg { transform: scaleX(-1); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 44px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(14, 42, 71, .25); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button[aria-current="true"] { width: 56px; background: var(--accent); }
@media (max-width: 899px) {
  .hero-nav { bottom: 24px; }
}

/* ---------- จุดเด่น ---------- */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .feat-grid { grid-template-columns: repeat(min(var(--cols), 4), 1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(var(--cols), 1fr); gap: 20px; } }
.feat-item { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 22px; box-shadow: var(--shadow); }
.feat-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fbeee3; color: var(--accent); margin-bottom: 14px; }
.feat-ic svg { width: 26px; height: 26px; }
.feat-no { position: absolute; top: 18px; right: 20px; font-weight: 700; font-size: 15px; color: #c9bfae; letter-spacing: .04em; }
.feat-item h3 { font-size: 18.5px; color: var(--navy); }
.feat-item p { color: var(--muted); font-size: 15.5px; margin-top: 6px; line-height: 1.65; }
/* การ์ดแคมเปญมีโปสเตอร์ (รอบแก้ 4) — โปสเตอร์ทั้งภาพไม่ครอป ปุ่มอ่านโปรโมชันชิดล่าง */
.feat-grid:has(.feat-promo) { grid-template-columns: 1fr; }
@media (min-width: 600px) { .feat-grid:has(.feat-promo) { grid-template-columns: repeat(min(var(--cols), 3), 1fr); } }
.feat-promo { display: flex; flex-direction: column; padding: 14px 14px 18px; }
.feat-pic { display: block; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: #efe8dc; }
.feat-pic img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.feat-pic:hover img { transform: scale(1.03); }
.feat-promo .feat-no { top: 26px; right: 26px; z-index: 1; color: #fff; background: rgba(14, 42, 71, .72); border-radius: 999px; padding: 2px 10px; }
.feat-promo .feat-txt { padding-inline: 6px; }
.feat-promo .card-more { margin-left: 6px; }

/* แถบความน่าเชื่อถือใต้แบนเนอร์ — สีเขียวจากโลโก้ */
.feat-trust { padding: 0; background: var(--green); position: relative; z-index: 2; }
.feat-trust .wrap { padding-block: 0; }
.feat-trust .feat-grid { gap: 0; }
.feat-trust .feat-item { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 22px 16px; display: flex; align-items: center; gap: 14px; color: #fff; }
.feat-trust .feat-item + .feat-item { border-left: 1px solid rgba(255, 255, 255, .16); }
.feat-trust .feat-ic { margin: 0; width: 46px; height: 46px; background: rgba(255, 255, 255, .1); color: var(--accent-2); flex: none; }
.feat-trust .feat-no { display: none; }
.feat-trust h3 { color: #fff; font-size: 16.5px; font-weight: 600; }
.feat-trust .feat-item p { color: #c8dacd; font-size: 14.5px; margin: 2px 0 0; }
@media (max-width: 767px) {
  .feat-trust .feat-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 12px; }
  .feat-trust .feat-item:nth-child(odd) { border-left: 0; }
  .feat-trust .feat-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}

/* ---------- บริการ ---------- */
.svc-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.svc-more { margin-top: 32px; text-align: center; }
.svc-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card-pic { background: var(--paper-2); }
.card-pic img { width: 100%; height: 100%; object-fit: contain; }
.card-pic-ic { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), #163d63); color: var(--accent-2); }
.card-pic-ic svg { width: 64px; height: 64px; stroke-width: 1.2; }
.card-body { padding: 18px 18px 22px; flex: 1; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fbeee3; color: var(--accent); }
.chip { font-size: 14px; font-weight: 600; color: var(--green); background: #e5efe8; border-radius: 999px; padding: 2px 10px; }
.svc-card h3 { font-size: 18.5px; color: var(--navy); }
.svc-card p { color: var(--muted); font-size: 15.5px; margin-top: 6px; line-height: 1.65; }
.card-price { font-weight: 700; color: var(--accent); margin-top: 10px; }
.card-sold { color: #a33; font-weight: 600; margin-top: 10px; }
.card-body { display: flex; flex-direction: column; }
.card-more { margin-top: auto; padding-top: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 600; color: var(--accent); text-decoration: none; }
.card-more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card-more:hover svg { transform: translateX(3px); }
@media (max-width: 479px) {
  .card-body { padding: 14px 12px 16px; }
  .svc-card h3 { font-size: 16px; }
  .svc-card p { font-size: 14.5px; }
  .card-ic { display: none; }
}
.svc-list { display: grid; gap: 14px; }
.svc-list .svc-card { flex-direction: row; }
.svc-list .card-pic { width: 34%; flex: none; }

/* ---------- เกี่ยวกับเรา ---------- */
.about-sec { background: var(--paper-2); }
.about-sec + .about-cont { padding-top: 0; }
.about-sec:has(+ .about-cont) { padding-bottom: clamp(36px, 5vw, 56px); }
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 6fr; }
  .about.pic-right .about-pic { order: 2; }
}
.about-pic { position: relative; margin: 0; max-height: 640px; }
.about-pic img { width: 100%; height: 100%; border-radius: 22px; object-fit: contain; }
@media (min-width: 900px) { .about-pic { max-width: 440px; justify-self: center; } }
/* ภาพประกอบซ้อนใต้ภาพบทความ (แก้ด่วน-1110) */
.about-media { display: grid; gap: clamp(18px, 2.4vw, 28px); align-content: center; }
.about-media .about-pic { width: 100%; max-width: none; order: 0 !important; }
.about-pic2 { margin: 0; }
.about-pic2 img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .about.pic-right .about-media { order: 2; } .about.has-stack { align-items: start; } }
.about-badge { position: absolute; right: -14px; bottom: 28px; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-up); }
.about-badge svg { width: 34px; height: 34px; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); margin-bottom: 18px; }
.prose { color: #33445a; }
.about-text .btn { margin-top: 24px; }

/* ---------- ผลงาน ---------- */
/* กริดเรียงซ้ายไปขวาตามลำดับในหลังบ้าน (รอบแก้ 4: ผลงาน 8 ระบบต้องอ่านตามลำดับ) · รูปไม่ครอป สูงตามสัดส่วนจริง */
.gal { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 560px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gal { grid-template-columns: repeat(var(--cols), 1fr); gap: 22px 18px; } }
.gal-item { margin: 0; }
.gal-item a { display: block; border-radius: 14px; overflow: hidden; background: #163d63; }
.gal-item img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { padding: 10px 2px 2px; line-height: 1.55; }
.gal-item figcaption b { display: block; color: #fff; font-size: 16px; }
.gal-item figcaption span { display: block; color: #a9b8ca; font-size: 14.5px; margin-top: 2px; }

/* ---------- รีวิว ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.quote { margin: 0; background: var(--card); border-radius: var(--radius); padding: 28px 24px 22px; box-shadow: var(--shadow); position: relative; }
.quote-mark { font-size: 64px; line-height: .6; color: var(--accent); font-weight: 700; display: block; height: 28px; }
.quote p { color: #33445a; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption span span { display: block; font-size: 14.5px; color: var(--muted); }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-sec { background: var(--paper); }
.faq-wrap { max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; color: var(--navy); cursor: pointer; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fbeee3; color: var(--accent); flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq-a { padding: 0 20px 20px; margin: 0; color: #3d4e63; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.cta-dark { background: linear-gradient(120deg, var(--navy-2), var(--navy) 60%, #173f66); color: #fff; }
.cta-soft { background: #fbeee3; color: var(--navy); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; position: relative; }
.cta-in h2 { font-size: clamp(24px, 3.2vw, 36px); max-width: 24ch; }
.cta-sun { position: absolute; right: -40px; top: -90px; color: rgba(232, 165, 72, .14); }
.cta-sun svg { width: 280px; height: 280px; stroke-width: .7; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; text-decoration: none; }
.cta-phone svg { color: var(--accent-2); width: 24px; height: 24px; }

/* ---------- ติดต่อ ---------- */
.contact-sec { background: radial-gradient(1200px 500px at 85% 0%, #163d63 0%, transparent 60%), var(--navy); }
.contact { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 6fr; gap: 56px; } }
.contact-note { color: #cfd9e5; margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list small { display: block; font-size: 14px; color: #9fb0c5; line-height: 1.5; }
.contact-list a, .contact-list li > span > span { color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--accent-2); flex: none; }
.ci-line { color: #06c755; }
/* แก้ด่วน-1076: ช่องทางติดต่อ 2 คอลัมน์บนจอกว้าง (ที่อยู่ + ลิงก์ติดตามข่าวสาร เต็มแถว) */
@media (min-width: 1100px) {
  .contact-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 20px; row-gap: 18px; }
  .contact-list .ci-mail { order: 1; } /* อีเมลยาว → คอลัมน์ขวาที่กว้างกว่า แถวเดียวกับ Facebook */
  .contact-list .ci-wide { order: 2; }
  .contact-list .ci-wide { grid-column: 1 / -1; }
}
.ci-news { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 14px; }
.ci-news small { color: #cfd9e5; }
.contact-list .news-link { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.hours-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.hours-box > b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #fff; }
.hours-box svg { color: var(--accent-2); }
.hours { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: #cfd9e5; }
.hours .closed { color: #f2a7a7; }
.contact-info .btn { margin: 0 10px 10px 0; }
.lead { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(20px, 3.4vw, 34px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); display: grid; gap: 14px; }
.lead h3 { font-size: 24px; color: var(--navy); }
.lead-note { color: var(--muted); margin: -8px 0 4px; font-size: 15.5px; }
.f2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .f2 { grid-template-columns: 1fr 1fr; } }
.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.lead input, .lead textarea, .lead select {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); background: #faf8f4;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
.lead textarea { min-height: 120px; resize: vertical; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: none; border-color: var(--accent); background: #fff; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { margin: 0; font-size: 15px; min-height: 1.5em; }
.msg.ok { color: #1d7a43; }
.msg.bad { color: #b3261e; }
.map-wrap { margin-top: 28px; }
.map { width: 100%; height: 340px; border: 0; border-radius: 16px; }

/* ---------- ข้อความอิสระ ---------- */
.rich { max-width: 760px; margin: 0 auto; }
.rich-wide { max-width: none; }
.rich h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin-bottom: 16px; }
.rich .prose p + p { margin-top: 14px; }
.rich .prose strong, .about-text .prose strong { color: var(--navy); font-weight: 700; }
/* ลิงก์ในบทความ: ขยายพื้นที่กดบนมือถือให้ถึง 44px โดยไม่ดันระยะบรรทัด (padding ของแท็กในบรรทัดไม่กินที่) */
.rich .prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding-block: 8px; }

/* ---------- ภาพปกที่ลูกค้าออกแบบมาพร้อมตัวหนังสือ: โชว์เต็มภาพตามสัดส่วนจริง ไม่ครอป ---------- */
.pic-banner { background: var(--navy); }
.pic-banner picture { display: block; }
.pic-banner img { display: block; width: 100%; height: auto; }
.pic-banner-in { background: none; padding-top: clamp(40px, 6vw, 72px); }
.pic-banner-in img { border-radius: var(--radius, 14px); box-shadow: var(--shadow); }
.pic-grid { display: grid; gap: 18px; align-items: center; }
@media (min-width: 768px) { .pic-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.pic-grid figure { margin: 0; }
.pic-grid img { width: 100%; height: 100%; object-fit: contain; }
.pic-banner + .page-head { background: var(--navy); padding-block: 26px 30px; }
.pic-banner + .page-head h1 { font-size: clamp(26px, 3.4vw, 40px); }

/* ---------- หัวหน้าของหน้ารอง ---------- */
.page-head {
  position: relative; color: #fff; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  background: linear-gradient(90deg, rgba(10, 31, 54, .94) 0%, rgba(14, 42, 71, .82) 55%, rgba(14, 42, 71, .55) 100%),
    url('/img/solarth-industrial-rooftop.webp') center 55% / cover no-repeat;
}
.page-head h1 { font-size: clamp(30px, 4.4vw, 52px); }
.page-head p { color: #d5deea; max-width: 60ch; margin-top: 12px; font-size: 17.5px; }
.crumbs { display: flex; gap: 8px; font-size: 14.5px; color: #b9c6d6; margin-bottom: 12px; }
.crumbs a { text-decoration: none; color: var(--accent-2); }
.page-head + .feat:not(.feat-trust) { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-2); color: #b9c6d6; padding: 64px 0 96px; font-size: 15.5px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1.3fr 1.5fr; } }
.foot-brand b { display: block; color: #fff; font-size: 18px; margin: 14px 0 8px; }
.foot-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 6px; }
.foot-logo img { height: 64px; width: auto; }
.foot-h { color: #fff; font-size: 16.5px; margin-bottom: 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { color: var(--accent-2); margin-top: 4px; width: 18px; height: 18px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.foot-bottom small { font-size: 14px; }
.lead option { line-height: 1.5; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; text-align: center; }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } }

/* ปุ่มลอยมือถือ: ไลน์ + โทร */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line); }
.float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; font-weight: 600; text-decoration: none; color: #fff; }
.fl-line { background: #06c755; }
.fl-call { background: var(--navy); }
@media (min-width: 900px) { .float-contact { display: none; } }

/* พื้นที่กดบนมือถืออย่างน้อย 44px — ลิงก์ข้อความเล็ก (เบอร์ ไลน์ อีเมล เมนูท้ายเว็บ) */
.topbar a, .hero-phone, .cta-phone, .contact-list a, .foot-links a, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.topbar .wrap { padding-block: 0; }
.topbar span { min-height: 44px; }
@media (max-width: 560px) { .topbar span { display: none; } }
.foot-links { gap: 0; }
.hero-dots button { position: relative; height: 44px; background: transparent !important; }
.hero-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 6px; border-radius: 6px; background: rgba(14, 42, 71, .25); transition: background .3s; }
.hero-dots button[aria-current="true"]::before { background: var(--accent); }

/* รูปขนาดเต็ม */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(6, 18, 32, .88); }
dialog.light img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
dialog.light button { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; cursor: pointer; }

/* เนื้อหาปรากฏตอนเลื่อนถึง — เฉพาะเมื่อ JS พร้อม */
.js-rv .rv { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js-rv .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* บทความ (ใช้เมื่อเปิดของเสริมบล็อก) */
.a-wrap { max-width: 780px; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-lead { font-size: 19px; color: #33445a; }
.a-body h2 { font-size: 26px; color: var(--navy); margin: 1.4em 0 .5em; }
.a-body h3 { font-size: 21px; margin: 1.2em 0 .4em; }
.a-fig, .a-cover { margin: 24px 0; }
.a-fig img, .a-cover img { border-radius: 14px; }
.a-toc { background: var(--paper-2); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
.a-cta { background: #fbeee3; border-radius: 16px; padding: 22px; margin: 28px 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card .card-body h2 { font-size: 19px; }
