/* ============================================================
   โรงงานหลังคาเหล็กทีอาร์ตราหมีกาฬสินธุ์ — TR METAL SHEET
   Main Stylesheet (Blue theme)
   ============================================================ */
:root {
  --blue-50: #eef6fe;
  --blue-100: #dcecfc;
  --blue-200: #b9d9f8;
  --blue-400: #3aa0f5;
  --blue-500: #1a8cf0;
  --blue-600: #0b78e3;
  --blue-700: #0a63c6;
  --blue-800: #0a4fa3;
  --navy-700: #0c3f84;
  --navy-800: #0a3470;
  --navy-900: #072656;
  --navy-950: #041a3e;
  --cyan: #7fd6ff;
  --line: #06c755;
  --line-700: #04a847;
  --white: #fff;
  --text: #102a4c;
  --muted: #5a6b84;
  --border: #dbe6f3;
  --tint: #f1f7fe;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(12, 63, 132, .08);
  --shadow: 0 10px 30px rgba(12, 63, 132, .12);
  --grad: linear-gradient(180deg, #2a9bf7 0%, #0a6fd8 100%);
  --grad-h: linear-gradient(90deg, #0a6fd8 0%, #1a8cf0 100%);
  --font: 'Kanit', 'Sukhumvit Set', 'Noto Sans Thai', system-ui, sans-serif;
  --font-script: 'Mali', 'Kanit', cursive;
  --container: 1280px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--navy-800); }
p { margin: 0 0 1em; }
ul, ol.breadcrumb, ol.process-steps, ol.journey-line { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue-600); color: #fff; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .7em 1.45em; border-radius: 8px; border: 2px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .fa-chevron-right, .btn .fa-arrow-right { transition: transform .2s; font-size: .85em; }
.btn:hover .fa-chevron-right, .btn:hover .fa-arrow-right { transform: translateX(3px); }
.btn-pill { border-radius: 999px; }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-lg { padding: .85em 1.8em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary, .btn-red { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(11, 120, 227, .28); }
.btn-primary:hover, .btn-red:hover { color: #fff; background: var(--blue-700); box-shadow: 0 8px 20px rgba(11, 120, 227, .35); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--blue-700); color: #fff; }
.btn-line { background: var(--line); color: #fff; }
.btn-line:hover { background: var(--line-700); color: #fff; }
.btn-outline { border-color: var(--blue-600); color: var(--blue-700); background: #fff; }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); }
.btn-glass { border-color: rgba(255,255,255,.9); color: #fff; background: rgba(8, 60, 140, .35); backdrop-filter: blur(4px); padding-right: .5em; }
.btn-glass:hover { background: #fff; color: var(--blue-700); }
.circle-arrow {
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-size: .8em; transition: transform .2s;
}
.circle-arrow.light { background: #fff; color: var(--blue-600); }
.btn:hover .circle-arrow, .link-more:hover .circle-arrow { transform: translateX(3px); }
.btn-glass:hover .circle-arrow.light { background: var(--blue-600); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 14px rgba(12, 63, 132, .08); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(12, 63, 132, .16); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); padding-right: 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-800); flex-shrink: 0; min-width: 0; }
.brand:hover { color: var(--navy-800); }
.logo-mark { height: 61px; width: auto; max-width: 260px; object-fit: contain; flex-shrink: 0; }   /* ไม่มีชื่อเว็บข้างโลโก้แล้ว → ให้โลโก้แนวนอนกว้างขึ้นได้ */

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--navy-800); font-weight: 400; font-size: .98rem; white-space: nowrap;
}
.main-nav a:hover { color: var(--blue-600); background: var(--blue-50); }
.main-nav a.active { background: var(--grad); color: #fff; font-weight: 500; box-shadow: 0 4px 12px rgba(11,120,227,.3); }
.mobile-nav-contact { display: none; }

.header-phone {
  position: relative; display: flex; align-items: center; gap: 12px; align-self: stretch;
  padding: 0 30px 0 42px; color: #fff; flex-shrink: 0; isolation: isolate;
}
.header-phone::before {
  content: ''; position: absolute; inset: 0 -200px 0 0; z-index: -1;
  background: var(--grad-h); clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
}
.header-phone:hover { color: #fff; }
.header-phone-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--blue-600);
  display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0;
}
.header-phone-text strong { display: block; font-size: 1.35rem; font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
.header-phone-text em { display: block; font-style: normal; font-size: .8rem; opacity: .9; }

/* ปุ่มแอดมิน (แสดงเฉพาะตอนล็อกอินหลังบ้าน) */
.header-admin {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--navy-800);
  color: var(--navy-800); font-weight: 500; font-size: .92rem; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.header-admin:hover { background: var(--navy-800); color: #fff; transform: translateY(-1px); }
.header-admin i { font-size: 1rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--blue-50); cursor: pointer; padding: 12px 11px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(115deg, #0a5cc0 0%, #1283e8 45%, #5cb6f7 100%);
  min-height: 330px; display: flex; align-items: center;
}
.page-hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -2; }
.page-hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #0b5fc4 0%, #0e6fd6 36%, rgba(18,125,228,.78) 46%, rgba(30,140,235,.18) 62%, rgba(30,140,235,0) 76%),
    radial-gradient(ellipse at 10% 0%, rgba(255,255,255,.22), transparent 55%);
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: -1;
  background: linear-gradient(0deg, rgba(4,40,100,.35), transparent);
}
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; width: 100%; }
.page-hero-content { max-width: 560px; }
.page-hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 700; color: #fff; margin: 0; line-height: 1.08;
  text-shadow: 0 4px 18px rgba(4, 40, 100, .35); letter-spacing: -.01em;
}
.hero-kicker { display: block; font-size: .95rem; font-weight: 500; letter-spacing: .02em; color: var(--cyan); margin-bottom: 8px; text-shadow: none; line-height: 1.4; }
.page-hero-subtitle { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; color: var(--cyan); letter-spacing: .06em; margin: 6px 0 0; line-height: 1.1; }
.page-hero-lead { font-size: 1.12rem; font-weight: 400; margin: 14px 0 0; opacity: .95; }
.page-hero-quote {
  font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin: 18px 0 0; line-height: 1.45; max-width: 420px; opacity: .97;
}
.hero-band {
  display: inline-block; margin: 16px 0 0; padding: 8px 22px; border-radius: 8px;
  background: linear-gradient(90deg, #07306e, #0b4a9c); font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 500;
  box-shadow: 0 6px 18px rgba(4,30,80,.3);
}
.hero-band b { font-weight: 700; margin-left: .35em; }
.hero-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin-top: 22px; }
.hero-features li { display: flex; align-items: center; gap: 10px; font-weight: 400; line-height: 1.3; }
.hero-feature-icon { font-size: 1.5rem; width: 34px; text-align: center; flex-shrink: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-checklist { display: grid; gap: 10px; align-self: center; font-weight: 400; margin-right: auto; margin-left: 4%; background: rgba(6,40,100,.35); backdrop-filter: blur(3px); padding: 16px 22px; border-radius: 14px; }
.hero-checklist li { display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 8px rgba(4,40,100,.4); }
.hero-checklist i { font-size: 1.15rem; color: #fff; }
.hero-script {
  position: absolute; right: 4%; top: 22%; margin: 0; text-align: center;
  font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1.35; color: #fff; text-shadow: 0 3px 14px rgba(4,40,100,.55); transform: rotate(-6deg);
}
.swoosh { display: block; width: 70%; height: 16px; margin: 2px auto 0; color: #fff; opacity: .9; }

/* hero: home */
.hero-home { min-height: 520px; }
.hero-products { min-height: 460px; }      /* สูงกว่าหน้าในทั่วไป (330px) ให้เห็นรูปสินค้าเต็มขึ้น */
.hero-home .page-hero-media { width: 64%; }
.hero-home .page-hero-title { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.hero-home .page-hero-title span { display: inline; }
.hero-checks { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 26px; margin-top: 22px; justify-content: start; }
.hero-checks li { display: flex; align-items: center; gap: 9px; font-weight: 400; }
.hero-checks i { font-size: 1.2rem; color: #fff; background: var(--blue-700); border-radius: 50%; }
.hero-script-inline {
  font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3; margin: 22px 0 0; display: inline-block; opacity: .95;
}
.hero-script-inline .swoosh { margin-left: 0; width: 100%; }
.hero-badge {
  position: absolute; right: 3%; bottom: 12%; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.95); color: var(--navy-800); padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow); line-height: 1.2;
}
.hero-badge > i { font-size: 2rem; color: #fff; background: var(--blue-600); border-radius: 50%; }
.hero-badge strong { display: block; font-size: 1.2rem; }
.hero-badge small { display: block; font-size: .78rem; color: var(--muted); }


/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--tint); border-bottom: 1px solid var(--border); }
.breadcrumb-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 46px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; font-size: .9rem; color: var(--muted); min-width: 0; flex: 1 1 auto; }
.breadcrumb li { max-width: 100%; overflow-wrap: anywhere; }
.breadcrumb li + li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin: 0 10px; font-size: .75rem; color: var(--blue-400); }
.breadcrumb a { color: var(--navy-800); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .fa-house { color: var(--navy-800); margin-right: 4px; }
.breadcrumb li[aria-current] { color: var(--navy-800); font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-tint, .section-alt { background: linear-gradient(180deg, var(--tint), #fff); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head-title { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.section-head-title .section-sub { margin: 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; color: var(--blue-700); margin: 0 0 4px; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin: 0; font-size: 1.02rem; }
.section-sub strong { color: var(--navy-800); }
.lead-text { font-size: 1.08rem; color: var(--muted); }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

.empty-state { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed var(--blue-200); border-radius: var(--radius-lg); }
.empty-state > i { font-size: 2.6rem; color: var(--blue-400); margin-bottom: 12px; }
.empty-state h2 { font-size: 1.35rem; }
.empty-state p { color: var(--muted); }

/* ---------- Feature bar ---------- */
.feature-bar { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.feature-bar-tint { background: var(--tint); }
.feature-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-item { display: flex; align-items: center; gap: 16px; padding: 24px 18px; position: relative; }
.feature-item + .feature-item::before { content: ''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--border); }
.feature-item > i { font-size: 2.3rem; color: var(--blue-600); width: 50px; text-align: center; flex-shrink: 0; }
.feature-item strong { display: block; font-size: 1.12rem; color: var(--navy-800); line-height: 1.25; }
.feature-item span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.35; }

/* ---------- Product card ---------- */
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.product-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 12px 16px 20px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.product-card h3 { font-size: 1.15rem; margin: 0 0 2px; }
.product-card h3 a { color: var(--navy-800); }
.product-card h3 a:hover { color: var(--blue-600); }
.product-card p { color: var(--muted); font-size: .9rem; margin: 0 0 12px; line-height: 1.4; }
.product-card .btn { margin-top: auto; min-width: 70%; }
.product-card.compact .product-card-img { aspect-ratio: 16 / 9; }
.product-card.compact h3 { font-size: 1rem; }
.product-card.compact p { font-size: .82rem; margin: 0; }
.product-card.compact .product-card-body { padding: 8px 10px 14px; }
.color-dots { display: flex; justify-content: center; gap: 7px; margin: 0 0 14px; flex-wrap: wrap; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }

/* ---------- Icon badge ---------- */
.icon-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 1.2rem; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(11,120,227,.3);
}
.icon-badge.lg { width: 60px; height: 60px; font-size: 1.5rem; }
.icon-badge.inline { vertical-align: middle; margin-right: 12px; border: 0; }

/* ---------- Home: services ---------- */
.section-services-home { padding-top: 40px; }
.home-services { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; }
.home-services-intro .section-sub { margin-bottom: 22px; }
.mini-service { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.mini-service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-service-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.mini-service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mini-service:hover .mini-service-img img { transform: scale(1.06); }
.mini-service .icon-badge { position: relative; z-index: 1; margin: -24px 0 0 12px; }
.mini-service h3 { font-size: .98rem; font-weight: 500; margin: 0; padding: 6px 14px 14px; line-height: 1.35; }
.mini-service h3 a { color: var(--navy-800); }

/* ---------- Home: portfolio thumbs ---------- */
.work-thumb { display: block; color: var(--navy-800); }
.work-thumb-wrap { display: block; }
.work-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.work-thumb:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-thumb span { display: block; margin-top: 10px; font-weight: 500; }

/* ---------- Home: about band ---------- */
.about-band {
  position: relative; padding: 54px 0; overflow: hidden;
  background: linear-gradient(100deg, #e6f2fd 0%, #f4f9ff 55%, #dcecfb 100%);
}
.about-band::after { content: ''; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(58,160,245,.18), transparent 70%); }
.about-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about-brand { display: inline-flex; padding: 12px 20px; margin-bottom: 18px; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px -16px rgba(11, 60, 130, .45); border: 1px solid var(--border); }
.about-logo { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.about-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-weight: 500; color: var(--blue-600); letter-spacing: .02em; }
.about-kicker span { width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
.about-band-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; color: var(--navy-800); }
.about-band-text .answer-lead { margin-bottom: 22px; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.about-call { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); font-weight: 600; font-size: 1.1rem; line-height: 1.15; }
.about-call i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .25s; }
.about-call small { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.about-call:hover { color: var(--blue-700); }
.about-call:hover i { transform: rotate(-12deg) scale(1.06); }
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.value-grid li {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px; border-radius: 18px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.value-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.value-grid li:nth-child(even) { transform: translateY(18px); }
.value-grid li:nth-child(even):hover { transform: translateY(14px); }
.value-icon { width: 46px; height: 46px; margin-bottom: 8px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.2rem; box-shadow: 0 8px 18px -8px rgba(11, 95, 196, .6); }
.value-grid strong { font-size: 1.08rem; color: var(--navy-800); }
.value-grid small { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.answer-lead { font-size: 1.04rem; color: var(--text); }

/* ---------- Entity / facts ---------- */
.entity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.info-card h2, .facts-title { font-size: 1.2rem; color: var(--navy-800); }
.facts-title i { color: var(--blue-600); margin-right: 6px; }
.facts-list { margin: 0; display: grid; }
.facts-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--muted); font-size: .92rem; }
.facts-list dd { margin: 0; font-weight: 400; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 20px); }
.faq-head .section-title { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.faq-head .section-sub { margin: 8px 0 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.04rem; font-weight: 500; margin: 0; color: var(--navy-800); }
.faq-item summary i { color: var(--blue-600); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--blue-200); }
.faq-answer { padding: 0 20px 16px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- ปุ่มแก้ไขสำหรับผู้ดูแลระบบ (แสดงเฉพาะตอนล็อกอินหลังบ้าน) ---------- */
.card-media { position: relative; }
.admin-edit-card {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem;
  background: rgba(10, 52, 112, .92); color: #fff; box-shadow: 0 4px 12px rgba(4, 26, 62, .35);
  opacity: .55; transition: opacity .2s, background .2s, transform .2s;
}
.admin-edit-card:hover { opacity: 1; background: var(--blue-600); color: #fff; transform: scale(1.08); }
.product-card:hover .admin-edit-card, .work-card:hover .admin-edit-card,
.article-card:hover .admin-edit-card, .service-card:hover .admin-edit-card,
.mini-service:hover .admin-edit-card, .work-thumb-wrap:hover .admin-edit-card { opacity: 1; }
.mini-service .admin-edit-card, .work-thumb-wrap .admin-edit-card { width: 34px; height: 34px; font-size: .85rem; }

.admin-edit-bar {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0;
  padding: 6px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  background: var(--navy-800); color: #fff; white-space: nowrap;
}
.admin-edit-bar:hover { background: var(--blue-600); color: #fff; }

/* ---------- Article card ---------- */
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.article-meta i { color: var(--blue-600); margin-right: 3px; }
.article-card h3 { font-size: 1.12rem; margin: 0 0 8px; line-height: 1.4; }
.article-card h3 a { color: var(--navy-800); }
.article-card h3 a:hover { color: var(--blue-600); }
.article-card p { color: var(--muted); font-size: .94rem; }
.link-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 500; color: var(--blue-600); align-self: flex-end; }

/* ---------- Products page ---------- */
.layout-sidebar { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: start; }
.sidebar { display: grid; gap: 20px; }
.cat-box { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.cat-box h2 { margin: 0; padding: 16px 20px; font-size: 1.3rem; color: #fff; background: var(--grad-h); }
.cat-list { padding: 8px; }
.cat-list a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: var(--navy-800); font-weight: 400; border-bottom: 1px solid var(--blue-50); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a:hover { background: var(--blue-50); color: var(--blue-700); }
.cat-list a.active { background: var(--grad-h); color: #fff; box-shadow: 0 4px 12px rgba(11,120,227,.25); }
.cat-icon { width: 26px; text-align: center; color: var(--blue-700); font-size: 1.1rem; }
.cat-list a.active .cat-icon { color: #fff; }
.cat-list span { flex: 1; }
.chev { font-size: .7rem; opacity: .5; }
.promo-card { background: linear-gradient(160deg, #1a8cf0, #0a5fc4); color: #fff; border-radius: var(--radius-lg); padding: 24px 18px 18px; text-align: center; box-shadow: var(--shadow); }
.promo-logo { height: 116px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 14px; }
.promo-card ul { text-align: left; display: grid; gap: 8px; margin-bottom: 16px; }
.promo-card li { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .93rem; line-height: 1.4; }
.promo-card li i { margin-top: 3px; }
.promo-box { background: #fff; border-radius: var(--radius); padding: 14px; color: var(--navy-800); }
.promo-box p { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 12px; text-align: left; line-height: 1.3; }
.promo-box p i { font-size: 2rem; color: var(--blue-700); }
.promo-box strong { display: block; font-size: 1.1rem; }
.products-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.products-head .section-title { color: var(--blue-700); }
.search-pill { display: flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); min-width: 260px; }
.search-pill label { flex: 1; }
.search-pill input { width: 100%; border: 0; outline: 0; background: transparent; padding: 8px 14px; font-size: .95rem; }
.search-pill button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; flex-shrink: 0; }
.search-pill.compact { min-width: 220px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { padding: 8px 22px; border-radius: 999px; background: #e3effb; color: var(--navy-800); font-weight: 400; font-size: .95rem; transition: background .2s, color .2s; }
.chip:hover { background: var(--blue-100); color: var(--blue-700); }
.chip.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(11,120,227,.3); }

/* search form (breadcrumb / articles) */
.search-form { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.search-input { position: relative; display: block; }
.search-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input input { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px 8px 38px; min-width: 240px; background: #fff; }
.search-form .btn { padding: .5em 1.2em; border-radius: 999px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, #0a6fd8, #1a8cf0 60%, #0a5fc4); color: #fff; padding: 26px 0; }
.cta-band-inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 20px; align-items: center; }
.cta-band-title { display: flex; align-items: center; gap: 18px; }
.cta-logo { height: 93px; width: auto; max-width: 220px; object-fit: contain; flex-shrink: 0; }
.cta-band h2 { color: #fff; font-size: 1.55rem; margin: 0; }
.cta-band-title p { margin: 0; opacity: .9; }
.cta-item { display: flex; align-items: center; gap: 12px; color: #fff; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.3); line-height: 1.3; }
.cta-item:hover { color: #fff; }
.cta-item strong { display: block; font-size: 1.15rem; }
.cta-icon { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--blue-600); display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.cta-icon.line { color: var(--line); font-size: 1.7rem; }

/* ---------- Services ---------- */
.service-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(12,63,132,.18); }
.service-card-img { display: block; aspect-ratio: 16 / 7; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { position: relative; padding: 14px 22px 22px; }
.service-card-body .icon-badge { position: absolute; left: 18px; top: -30px; }
.service-card h3 { font-size: 1.28rem; margin: 0 0 12px; padding-left: 70px; min-height: 34px; }
.service-card h3 a { color: var(--navy-800); }
.service-card h3 a:hover { color: var(--blue-600); }
.tick-list { display: grid; gap: 6px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .96rem; line-height: 1.45; }
.tick-list i { color: var(--blue-600); margin-top: 4px; }

.process-section { background: #fff; }
.process-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.process-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: s; }
.process-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.process-steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 40px; left: calc(50% + 50px); right: calc(-50% + 50px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 14px);
}
.step-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 0 0 7px var(--blue-50), 0 10px 20px rgba(11,120,227,.3); margin-bottom: 16px; }
.step-num { position: absolute; top: 26px; left: calc(50% - 76px); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-700); color: #fff; font-weight: 600; font-size: .9rem; display: grid; place-items: center; }
.process-steps strong { font-weight: 500; color: var(--navy-800); line-height: 1.35; font-size: 1.02rem; }
.process-steps.small .step-icon { width: 60px; height: 60px; font-size: 1.4rem; }
.process-steps.small .step-num { top: 16px; left: calc(50% - 56px); width: 24px; height: 24px; font-size: .8rem; }
.process-steps.small li:not(:last-child)::after { top: 30px; left: calc(50% + 40px); right: calc(-50% + 40px); }
.process-steps.small strong { font-size: .92rem; }
.process-mini { margin-top: 36px; padding: 26px; border-radius: var(--radius-lg); background: var(--tint); }
.process-mini h2 { font-size: 1.35rem; text-align: center; margin-bottom: 20px; }

.split-cta { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); }
.split-cta-media { position: relative; min-height: 260px; overflow: hidden; }
.split-cta-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-cta-media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,26,62,.9), rgba(7,38,86,.55)); z-index: 1; }
.split-cta-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding: 34px; height: 100%; color: #fff; }
.split-logo { height: 137px; width: auto; max-width: 260px; object-fit: contain; flex-shrink: 0; }
.script-quote { font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.4; margin: 0 0 18px; }
.script-quote.dark { color: var(--navy-800); }
.script-quote .swoosh { margin-left: 0; color: var(--blue-600); }
.why-box { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.why-box h2 { font-size: 1.45rem; color: var(--blue-700); margin-bottom: 18px; }
.why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.why-grid li { text-align: center; padding: 18px 6px; font-weight: 400; line-height: 1.35; font-size: .92rem; color: var(--navy-800); }
.why-grid li + li { border-left: 1px solid var(--border); }
.why-grid i { display: block; font-size: 2.1rem; color: var(--blue-600); margin-bottom: 10px; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--navy-800); font-weight: 400; font-size: .95rem; box-shadow: var(--shadow-sm); }
.filter-tabs a i { color: var(--blue-600); }
.filter-tabs a:hover { border-color: var(--blue-400); color: var(--blue-700); }
.filter-tabs a.active { background: var(--grad); color: #fff; border-color: transparent; }
.filter-tabs a.active i { color: #fff; }

.work-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-card:hover .work-card-img img { transform: scale(1.06); }
.work-label { position: absolute; left: 12px; bottom: 10px; background: var(--grad-h); color: #fff; padding: 3px 12px; border-radius: 6px; font-size: .82rem; font-weight: 400; }
.work-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.work-card h3 { font-size: 1.08rem; margin: 0 0 4px; line-height: 1.35; }
.work-card h3 a { color: var(--navy-800); }
.work-card h3 a:hover { color: var(--blue-600); }
.work-loc { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.work-loc i { color: var(--navy-800); margin-right: 4px; }
.work-card .link-more { font-size: .92rem; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--navy-800); }
.pagination a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }
.pagination .gap { border: 0; background: transparent; }

.stats-strip { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-strip-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { display: flex; align-items: center; gap: 14px; padding: 24px 16px; position: relative; }
.stats-strip .stat + .stat::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--border); }
.stat > i { font-size: 2.3rem; color: var(--blue-600); flex-shrink: 0; }
.stat strong { display: block; font-size: 1.85rem; font-weight: 700; color: var(--blue-700); line-height: 1.05; }
.stat strong small { font-size: 1rem; font-weight: 500; }
.stat span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.3; }

.partner-band { display: grid; grid-template-columns: 45% 1fr; background: linear-gradient(90deg, #eaf4fe, #fff); overflow: hidden; }
.partner-band-media { position: relative; min-height: 250px; }
.partner-band-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 55%, transparent 100%); }
.partner-band-media .script-quote { position: absolute; right: 4%; top: 12%; text-align: center; transform: rotate(-5deg); text-shadow: 0 0 12px #fff, 0 0 4px #fff; }
.partner-band-text { padding: 40px 34px; align-self: center; }
.partner-band-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--blue-700); }
.partner-band-text p { color: var(--muted); }

.testimonials { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; }
.testimonial-track-wrap { position: relative; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.testimonial blockquote p { margin: 10px 0 14px; font-weight: 400; }
.testimonial figcaption { margin-top: auto; }
.testimonial figcaption strong { display: block; color: var(--navy-800); }
.testimonial figcaption small { color: var(--muted); }
.stars { color: #f5b301; font-size: .9rem; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--blue-700); box-shadow: var(--shadow); cursor: pointer; }
.slider-btn.prev { left: -18px; }
.slider-btn.next { right: -18px; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1.25fr .75fr; gap: 34px; align-items: center; }
.about-intro-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.about-intro-text h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); color: var(--blue-700); }
.about-intro-text h2 small { display: block; font-size: 1.12rem; color: var(--navy-800); margin-top: 6px; }
.about-intro-text p:not(.answer-lead) { color: var(--muted); }
.about-intro-quote { position: relative; text-align: center; }
.watermark { width: 100%; max-width: 240px; margin: 0 auto; opacity: .12; filter: grayscale(.2); }
.about-intro-quote .script-quote { color: var(--navy-800); margin-top: -40%; position: relative; font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

.stats-band { background: linear-gradient(100deg, #0a4fa3, #0b78e3 55%, #0a5fc4); color: #fff; }
.stats-band-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-band .stat > i, .stats-band .stat strong { color: #fff; }
.stats-band .stat span { color: rgba(255,255,255,.85); }
.stats-band .stat + .stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.25); }

.journey { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.journey-line { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; padding-top: 10px; }
.journey-line::before { content: ''; position: absolute; top: 19px; left: 10%; right: 10%; height: 3px; background: var(--grad-h); }
.journey-line li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 8px; }
.journey-dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-600); position: relative; z-index: 1; margin-bottom: 10px; }
.journey-line li > i { font-size: 2rem; color: var(--blue-700); }
.journey-line small { color: var(--blue-600); font-weight: 600; }
.journey-line li > span:last-child { font-weight: 400; font-size: .93rem; color: var(--navy-800); line-height: 1.4; }

.values-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.value-card, .cert-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 20px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.value-card > i { font-size: 2.1rem; color: var(--blue-600); margin-bottom: 8px; }
.value-card strong, .cert-card strong { color: var(--navy-800); font-size: 1.05rem; }
.value-card span, .cert-card span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.cert-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #fff; background: var(--grad); margin-bottom: 10px; }
.cert-card .cert-icon { font-size: 2.2rem; color: #fff; }
.cert-card .cert-icon.tis { background: #fff; color: #d81f26; border: 4px solid #d81f26; }

.team-band { display: grid; grid-template-columns: 1.4fr 1fr; background: linear-gradient(100deg, #0a3470, #0b5fc4); color: #fff; overflow: hidden; }
.team-band-media { min-height: 260px; }
.team-band-media img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.team-band-quote { padding: 36px 34px; align-self: center; text-align: center; }
.team-band-quote p { font-size: 1.12rem; font-weight: 400; line-height: 1.6; }
.team-band-quote cite { font-family: var(--font-script); font-style: italic; font-size: 1.1rem; opacity: .9; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.channel-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.channel-head { background: linear-gradient(120deg, #0a4fa3, #0b78e3); color: #fff; padding: 22px 24px; }
.channel-head h2 { color: #fff; font-size: 1.65rem; margin: 0 0 4px; }
.channel-head p { margin: 0; font-weight: 400; line-height: 1.45; }
.channel-list { padding: 10px 24px; }
.channel-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--blue-50); }
.channel-list li:last-child { border-bottom: 0; }
.ch-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.ch-icon.line { background: var(--line); font-size: 1.35rem; }
.channel-list .ch-icon { display: grid; font-size: 1.1rem; color: #fff; }
.channel-list .ch-icon.line { font-size: 1.4rem; }
.channel-list .big { display: block; font-size: 1.22rem; font-weight: 600; color: var(--navy-800); line-height: 1.25; word-break: break-word; }
.channel-list .big:hover { color: var(--blue-600); }
.channel-list strong { display: block; color: var(--navy-800); font-weight: 500; line-height: 1.4; }
.channel-list span { display: block; font-size: .85rem; color: var(--muted); }
.qr-row { display: flex; justify-content: center; gap: 18px; padding: 16px 24px 24px; border-top: 1px solid var(--border); }
.qr-item { text-align: center; }
.qr-item p { margin: 8px 0 0; font-size: .88rem; line-height: 1.35; }
.qr { width: 120px; height: 120px; margin: 0 auto; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--border); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }

.contact-main { display: grid; gap: 26px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card-top { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.form-card-head h2 { font-size: 1.6rem; color: var(--blue-700); margin: 0; }
.form-card-head p { color: var(--muted); margin: 0; }
.quote-box { display: flex; gap: 12px; align-items: center; background: var(--tint); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 12px 16px; max-width: 280px; }
.quote-box > i { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.quote-box strong { display: block; color: var(--navy-800); line-height: 1.3; }
.quote-box span { display: block; font-size: .82rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full { grid-column: 1 / -1; }
.input-icon { position: relative; display: block; }
.input-icon > i { position: absolute; left: 16px; top: 15px; color: var(--navy-800); opacity: .75; pointer-events: none; }
.form-control { width: 100%; border: 1px solid var(--border); background: #f3f7fc; border-radius: 10px; padding: 12px 14px 12px 44px; outline: 0; transition: border-color .2s, background .2s, box-shadow .2s; }
.form-control:focus { border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 4px rgba(58,160,245,.15); }
select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-control.is-invalid { border-color: #e5484d; background: #fff5f5; }
.invalid-msg { color: #d0343a; font-size: .85rem; }
.hp-field { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.form-note i { color: var(--blue-600); }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.alert > i { font-size: 1.3rem; margin-top: 2px; }
.alert-success { background: #e8f8ee; color: #146c3a; border: 1px solid #b7e6c8; }
.alert-error { background: #fdeeee; color: #a42a2e; border: 1px solid #f3c2c4; }

.map-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.map-head h2 { font-size: 1.45rem; margin: 0; }
.map-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--blue-50); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.slogan-band { position: relative; overflow: hidden; background: linear-gradient(100deg, #072656 0%, #0a4fa3 45%, #1a8cf0 100%); color: #fff; }
.slogan-band > img { position: absolute; right: 0; top: 0; height: 100%; width: 60%; object-fit: cover; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.slogan-band-inner { position: relative; display: flex; align-items: center; gap: 34px; padding-top: 30px; padding-bottom: 30px; }
.slogan-logo { height: 127px; width: auto; max-width: 240px; object-fit: contain; flex-shrink: 0; }
.slogan-band .script-quote { margin: 0; }
.slogan-band .script-quote .swoosh { color: #fff; }
.slogan-band .script-quote.right { margin-left: auto; text-align: center; transform: rotate(-4deg); }

/* ---------- Detail pages ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery .gallery-main, .work-detail .gallery-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.product-gallery .gallery-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cat-label { display: inline-block; background: var(--blue-50); color: var(--blue-700); padding: 4px 14px; border-radius: 999px; font-size: .88rem; margin-bottom: 10px; }
.product-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--blue-700); margin-bottom: 4px; }
.product-info .short { font-size: 1.15rem; color: var(--navy-800); font-weight: 400; }
.suitable { background: var(--tint); border-radius: 10px; padding: 10px 14px; }
.suitable i { color: var(--blue-600); }
.color-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.color-row .color-dots { margin: 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.spec-table th { width: 38%; background: var(--tint); color: var(--navy-800); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.detail-split { grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check-list i { color: var(--blue-600); margin-top: 5px; }

.rich-text { font-size: 1.04rem; }
.rich-text h2 { font-size: 1.5rem; color: var(--blue-700); margin: 1.4em 0 .5em; scroll-margin-top: calc(var(--header-h) + 16px); }
.rich-text h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.rich-text ul, .rich-text ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: .35em; }
.rich-text ul li::marker { color: var(--blue-600); }
.rich-text img { border-radius: var(--radius); margin: 1em 0; }
.rich-text a { text-decoration: underline; }

/* rich text จาก 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-indent-1 { padding-left: 3em; } .rich-text .ql-indent-2 { padding-left: 6em; }
.rich-text .ql-indent-3 { padding-left: 9em; } .rich-text .ql-indent-4 { padding-left: 12em; }
.rich-text .ql-indent-5 { padding-left: 15em; } .rich-text .ql-indent-6 { padding-left: 18em; }
.rich-text .ql-indent-7 { padding-left: 21em; } .rich-text .ql-indent-8 { padding-left: 24em; }
.rich-text li.ql-indent-1 { margin-left: 1.5em; padding-left: 0; } .rich-text li.ql-indent-2 { margin-left: 3em; padding-left: 0; }
.rich-text .ql-size-small { font-size: .8em; }
.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', 'Noto Serif Thai', serif; }
.rich-text .ql-font-monospace { font-family: Monaco, Consolas, 'Courier New', monospace; }
.rich-text pre { background: #0f2748; color: #e3eefc; padding: 14px 18px; border-radius: 10px; overflow-x: auto; font-size: .92rem; }
.rich-text iframe.ql-video { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1em 0; }
.rich-text iframe.ql-video.ql-align-center { margin-left: auto; margin-right: auto; }
.rich-text li[data-list="checked"], .rich-text li[data-list="unchecked"] { list-style: none; margin-left: -1.3em; }
.rich-text li[data-list="checked"]::before { content: '\2611'; color: var(--blue-600); margin-right: .45em; }
.rich-text li[data-list="unchecked"]::before { content: '\2610'; color: var(--muted); margin-right: .45em; }
.rich-text blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--blue-400); background: var(--tint); border-radius: 0 10px 10px 0; }
@media (max-width: 760px) { .rich-text [class*="ql-indent-"] { padding-left: 1.5em; } }

.article-layout { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }
.article-body h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy-800); }
.article-cover { margin: 20px 0; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.answer-summary { background: var(--tint); border-left: 4px solid var(--blue-600); border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.answer-summary-title { font-weight: 600; color: var(--navy-800); margin-bottom: 8px; }
.answer-summary-title i { color: #f5b301; }
.answer-summary ul { padding-left: 1.2em; list-style: disc; }
.answer-summary li { margin-bottom: 4px; }
.toc { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin: 0 0 20px; }
.toc-title { font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc a { color: var(--blue-700); }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 30px; padding: 18px; background: var(--tint); border-radius: var(--radius-lg); }
.author-avatar { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 8px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.author-avatar img { width: 100%; height: 100%; object-fit: contain; }
.author-name { font-weight: 600; color: var(--navy-800); margin: 0; }
.author-box p { margin: 0; font-size: .95rem; }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.share-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share-fb { background: #1877f2; }
.share-line { background: var(--line); }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h2, .side-title { font-size: 1.15rem; font-weight: 600; color: var(--navy-800); margin: 0 0 12px; }
.side-cta { background: linear-gradient(160deg, #1a8cf0, #0a5fc4); color: #fff; border: 0; display: grid; gap: 10px; }
.side-cta h2, .side-cta .side-title { color: #fff; margin: 0; }
.side-cta p { margin: 0; }
.side-cta .btn-primary { background: #fff; color: var(--blue-700); }
.side-list { display: grid; gap: 10px; }
.side-list a { display: flex; gap: 12px; align-items: center; color: var(--navy-800); font-weight: 400; line-height: 1.35; font-size: .94rem; }
.side-list a:hover { color: var(--blue-600); }
.side-list img { width: 80px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
/* ---------- กล่องสั่งซื้อ / ขอใบเสนอราคา (หน้าสินค้า) ---------- */
.buy-box {
  position: relative; margin-top: 22px; padding: 18px; border-radius: 20px;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #7fd6ff, #0b78e3 45%, #06c755) border-box;
  border: 2px solid transparent; box-shadow: 0 18px 40px -18px rgba(11, 120, 227, .45);
}
.buy-status { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: .9rem; font-weight: 400; color: var(--muted); }
.buy-status-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #9aa4b5; flex-shrink: 0; }
.buy-status.is-open { color: #0a8f3f; }
.buy-status.is-open .buy-status-dot { background: #16c060; }
.buy-status.is-open .buy-status-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #16c060; animation: buy-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes buy-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.cta-quote {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, #0a4fa3 0%, #0b78e3 55%, #1a8cf0 100%);
  box-shadow: 0 10px 24px -8px rgba(11, 120, 227, .6);
  transition: transform .25s, box-shadow .25s;
}
.cta-quote::before {           /* แสงวิ่งผ่านปุ่มเป็นระยะ */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 48%, transparent 66%);
  transform: translateX(-120%); animation: cta-shine 3.8s ease-in-out infinite 1s;
}
@keyframes cta-shine { 0% { transform: translateX(-120%); } 38%, 100% { transform: translateX(120%); } }
.cta-quote:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(11, 120, 227, .75); }
.cta-quote-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: rgba(255,255,255,.18); flex-shrink: 0; }
.cta-quote-text { flex: 1; line-height: 1.3; }
.cta-quote-text strong { display: block; font-size: 1.28rem; font-weight: 600; }
.cta-quote-text small { display: block; font-size: .84rem; opacity: .88; font-weight: 300; margin-top: 2px; }
.cta-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-700); flex-shrink: 0; transition: transform .25s; }
.cta-quote:hover .cta-go { transform: translateX(5px); }

.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cta-tile {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px;
  background: var(--tint); border: 1px solid var(--border); color: var(--navy-800); line-height: 1.25; min-width: 0;
  transition: transform .2s, border-color .2s, background .2s;
}
.cta-tile:hover { transform: translateY(-2px); border-color: var(--blue-200); background: #fff; color: var(--navy-800); }
.cta-tile small { display: block; font-size: .78rem; color: var(--muted); }
.cta-tile strong { display: block; font-size: 1.02rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-tile-icon { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; flex-shrink: 0; }
.cta-line .cta-tile-icon { background: var(--line); font-size: 1.5rem; }
.cta-line .cta-tile-icon::after {           /* วงกระเพื่อมรอบไอคอน LINE */
  content: ''; position: absolute; inset: -4px; border-radius: 15px; border: 2px solid var(--line); opacity: 0;
  animation: line-ring 2.4s ease-out infinite;
}
@keyframes line-ring { 0% { transform: scale(.9); opacity: .7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.cta-call { padding: 0; }
.cta-call-link { display: flex; align-items: center; gap: 11px; padding: 11px 0 11px 12px; flex: 1; min-width: 0; color: inherit; }
.cta-call-link:hover { color: inherit; }
.cta-call .cta-tile-icon { background: var(--grad); }
.cta-call:hover .cta-tile-icon i { animation: phone-ring .5s ease-in-out 2; }
@keyframes phone-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-12deg); } 80% { transform: rotate(8deg); } }
.cta-copy {
  align-self: stretch; width: 42px; margin-left: auto; border: 0; border-left: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; border-radius: 0 13px 13px 0; flex-shrink: 0; transition: color .2s, background .2s;
}
.cta-copy:hover { color: var(--blue-700); background: var(--blue-50); }
.cta-copy.is-done { color: #0a8f3f; }

.buy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: .86rem; font-weight: 400; color: var(--muted); }
.buy-meta span { display: inline-flex; align-items: center; gap: 6px; }
.buy-meta i { color: var(--blue-600); }
.buy-share {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--navy-800); cursor: pointer; font-size: .85rem; transition: border-color .2s, color .2s;
}
.buy-share:hover { border-color: var(--blue-400); color: var(--blue-700); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 1200; transform: translate(-50%, 20px); opacity: 0;
  padding: 11px 20px; border-radius: 999px; background: #0f2748; color: #fff; font-size: .95rem; box-shadow: 0 10px 30px rgba(4, 26, 62, .35);
  transition: opacity .25s, transform .25s; pointer-events: none; display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: #16c060; }
.toast.is-error i { color: #ff8a8a; }

@media (max-width: 480px) {
  .cta-duo { grid-template-columns: 1fr; }
  .cta-quote-text strong { font-size: 1.12rem; }
  .buy-share { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-quote::before, .cta-line .cta-tile-icon::after, .buy-status.is-open .buy-status-dot::after { animation: none; display: none; }
}

/* หน้าติดต่อ: ไม่มีฟอร์มแล้ว → การ์ดช่องทางติดต่อเต็มความกว้าง */
.contact-layout-single { grid-template-columns: 1fr; }
.contact-layout-single .channel-card { display: grid; grid-template-columns: 300px 1fr 190px; align-items: stretch; }
.contact-layout-single .channel-head { display: flex; flex-direction: column; justify-content: center; }
.contact-layout-single .channel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; padding: 14px 24px; align-content: center; }
.contact-layout-single .channel-list li:nth-last-child(2) { border-bottom: 0; }
.contact-layout-single .qr-row { border-top: 0; border-left: 1px solid var(--border); flex-direction: column; justify-content: center; align-items: center; padding: 18px; }
@media (max-width: 1080px) {
  .contact-layout-single .channel-card { grid-template-columns: 1fr; }
  .contact-layout-single .qr-row { border-left: 0; border-top: 1px solid var(--border); flex-direction: row; }
  .contact-layout-single .channel-list li:nth-last-child(2) { border-bottom: 1px solid var(--blue-50); }
}
@media (max-width: 760px) { .contact-layout-single .channel-list { grid-template-columns: 1fr; } }

/* ---------- ความยินยอมคุกกี้ (PDPA) ---------- */
.cc-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1100; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 20px 50px -12px rgba(4, 26, 62, .35); animation: cc-in .35s ease-out;
}
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
@keyframes cc-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-banner-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #b56a12; background: #fff4e0; }
.cc-banner-text p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.cc-banner-text .cc-title { font-size: 1.05rem; font-weight: 600; color: var(--navy-800); margin-bottom: 2px; }
.cc-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.cc-banner-actions .btn { padding: .6em 1.2em; font-size: .95rem; }
.cc-link { border: 0; background: none; color: var(--blue-700); cursor: pointer; font: inherit; font-weight: 500; padding: 6px 8px; }
.cc-link:hover { text-decoration: underline; }

.cc-modal { position: fixed; inset: 0; z-index: 1150; display: grid; place-items: center; padding: 16px; background: rgba(4, 20, 48, .55); backdrop-filter: blur(3px); }
.cc-modal-box { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.35); overflow: hidden; animation: cc-in .3s ease-out; }
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.cc-modal-head h2 { margin: 0; font-size: 1.2rem; }
.cc-modal-head h2 i { color: var(--blue-600); margin-right: 6px; }
.cc-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--tint); color: var(--navy-800); cursor: pointer; font-size: 1.1rem; }
.cc-close:hover { background: var(--blue-100); }
.cc-modal-body { padding: 16px 22px; overflow-y: auto; }
.cc-intro { font-size: .93rem; color: var(--muted); }
.cc-cat { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-head strong { color: var(--navy-800); font-size: 1.02rem; }
.cc-cat p { margin: 6px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.cc-badge { margin-left: 8px; font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: #e8f8ee; color: #0a8f3f; font-weight: 500; }
.cc-off { color: #a0671a; font-weight: 400; }
.cc-meta { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.cc-meta code { font-size: .78rem; background: var(--tint); padding: 1px 6px; border-radius: 4px; }
.cc-modal-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--tint); }
.cc-modal-foot .btn { padding: .6em 1.2em; font-size: .95rem; }
.cc-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd8e5; transition: background .2s; pointer-events: none; }
.cc-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--blue-600); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.cc-switch.is-locked { cursor: not-allowed; opacity: .75; }
.cc-switch.is-locked input { cursor: not-allowed; }
body.cc-open { overflow: hidden; }
.footer-cookie-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--cyan); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.footer-cookie-btn:hover { color: #fff; }
@media (max-width: 760px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .cc-banner-icon { display: none; }
  .cc-banner-actions { justify-content: stretch; }
  .cc-banner-actions .btn { flex: 1 1 auto; }
  .cc-modal-foot .btn { flex: 1 1 auto; }
}

/* ---------- หน้านโยบาย (ความเป็นส่วนตัว / คุกกี้ / ข้อกำหนด) ---------- */
.policy-wrap { max-width: 900px; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); margin: -4px 0 22px; }
.policy-meta i { color: var(--blue-600); margin-right: 5px; }
.policy-toc { background: var(--tint); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 26px; }
.policy-toc p { margin: 0 0 6px; font-weight: 600; color: var(--navy-800); }
.policy-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 28px; }
.policy-toc li { margin-bottom: 3px; break-inside: avoid; }
.policy-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .92rem; }
.policy-table th, .policy-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.policy-table th { background: var(--tint); color: var(--navy-800); font-weight: 500; }
.policy-table-wrap { overflow-x: auto; }
.policy-note { background: #fff8eb; border: 1px solid #f3d9a4; border-radius: 12px; padding: 12px 16px; font-size: .92rem; }
.status-on { color: #0a8f3f; font-weight: 500; }
.status-off { color: var(--muted); }
@media (max-width: 760px) { .policy-toc ol { columns: 1; } }

/* อัลบั้มภาพสินค้า */
.album-section { padding-top: 10px; }
.album-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.album-item { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--blue-50); aspect-ratio: 4 / 3; }
.album-item[hidden] { display: none; }
.album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-item:hover img, .album-item:focus-visible img { transform: scale(1.06); }
.album-more { text-align: center; margin-top: 22px; }
.lb-count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .95rem; background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: 999px; }
.photo-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; background: rgba(7, 38, 86, .86); color: #fff; font-size: .8rem; font-weight: 400;
}
.photo-badge:hover { background: var(--blue-600); color: #fff; }
@media (max-width: 1080px) { .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }
@media (max-width: 420px)  { .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.work-detail { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.work-detail .gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button.active { border-color: var(--blue-600); }
.gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.info-list { display: grid; gap: 12px; margin-bottom: 18px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list i { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.info-list small { display: block; color: var(--muted); font-size: .82rem; }
.info-list span { font-weight: 400; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(4,20,48,.92); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

.error-page { padding: 80px 0; text-align: center; }
.error-page .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--blue-700); margin: 0; }
.error-page .code span { color: var(--blue-400); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #0a3470, #062048); color: rgba(255,255,255,.88); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; align-items: center; padding-top: 34px; padding-bottom: 26px; }
.footer-grid > * + * { border-left: 1px solid rgba(255,255,255,.14); padding-left: 30px; }
.footer-brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-logo { height: 89px; width: auto; max-width: 300px; object-fit: contain; flex-shrink: 0; }
.footer-logo.logo-auto-white { filter: grayscale(1) brightness(1.7); }   /* โลโก้หลักบนพื้น footer → โทนขาว */
.footer-contact { display: grid; gap: 8px; font-size: .95rem; }
.footer-contact a, .footer-contact span { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); }
.footer-contact a:hover { color: #fff; }
.footer-contact i { width: 18px; margin-top: 5px; color: var(--cyan); }
.footer-social { text-align: center; }
.social-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.25rem; transition: transform .2s; }
.social:hover { transform: translateY(-3px); color: #fff; }
.social-facebook { background: #1877f2; }
.social-line { background: var(--line); font-size: 1.5rem; }
.social-youtube { background: #ff0000; }
.social-tiktok { background: #111; }
.footer-slogan { font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: 1.2rem; color: #fff; margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding-bottom: 16px; font-size: .92rem; }
.footer-menu a { color: rgba(255,255,255,.8); }
.footer-menu a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.15); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--cyan); }
.footer-links a:hover { color: #fff; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(4,26,62,.3); cursor: pointer; transition: transform .2s, opacity .3s; }
.fab-btn:hover { transform: scale(1.08); color: #fff; }
.fab-line { background: var(--line); font-size: 1.7rem; }
.fab-phone { background: var(--grad); }
.fab-top { background: var(--navy-800); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  .main-nav a { padding: 8px 10px; font-size: .93rem; }
  .header-phone { padding: 0 20px 0 36px; }
  .header-phone-text strong { font-size: 1.15rem; }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-services { grid-template-columns: 1fr; }
  .home-services-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
  .home-services-intro .section-sub { margin: 0; flex: 1; }
  .about-band-inner { grid-template-columns: 1fr; gap: 32px; }
  .value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .value-grid li:nth-child(even), .value-grid li:nth-child(even):hover { transform: none; }
  .about-intro { grid-template-columns: 1fr 1.3fr; }
  .about-intro-quote { display: none; }
  .cta-band-inner { grid-template-columns: repeat(3, 1fr); }
  .cta-band-title { grid-column: 1 / -1; }
  .cta-item:first-of-type { border-left: 0; padding-left: 0; }
}

@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; margin-left: 0; }
  .header-inner { padding-right: 24px; gap: 12px; }
  .brand { margin-right: auto; }
  .logo-mark { height: 51px; max-width: 200px; }
  .header-phone { align-self: center; padding: 8px 14px; border-radius: 999px; }
  .header-admin { padding: 8px 12px; }
  .header-admin span { display: none; }
  .header-phone::before { inset: 0; clip-path: none; border-radius: 999px; }
  .header-phone-icon { width: 34px; height: 34px; font-size: .95rem; }
  .header-phone-text em { display: none; }
  .header-phone-text strong { font-size: 1rem; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 120;
    background: #fff; flex-direction: column; justify-content: flex-start; padding: 80px 18px 24px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: -10px 0 30px rgba(4,26,62,.2);
  }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 16px; font-size: 1.05rem; }
  .mobile-nav-contact { display: grid; gap: 10px; margin-top: 20px; }
  .main-nav .mobile-nav-contact a { color: #fff; }
  .main-nav .mobile-nav-contact a:hover { color: #fff; }
  .nav-open .main-nav { transform: none; }
  .nav-open .site-header { z-index: 130; }
  .nav-toggle { position: relative; z-index: 130; }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(4,20,48,.5); z-index: 110; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(3)::before { display: none; }
  .layout-sidebar, .contact-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .faq-wrap, .entity-grid, .testimonials, .journey, .values-layout, .article-layout, .work-detail, .product-detail, .detail-split { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .process-steps li:nth-child(3)::after { display: none; }
  .split-cta, .partner-band, .team-band { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid li:nth-child(4) { border-left: 0; }
  .why-grid li:nth-child(n+4) { border-top: 1px solid var(--border); }
  .stats-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .stats-strip .stat:nth-child(4)::before { display: none; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stat:nth-child(3)::before { display: none; }
  .testimonial-track { grid-auto-columns: calc((100% - 22px) / 2); }
  .hero-script { display: none; }
  .page-hero-media, .hero-home .page-hero-media { width: 70%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; border-left: 0 !important; padding-left: 0 !important; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .header-inner { padding-right: 16px; }
  .header-phone-text { display: none; }
  .header-phone { padding: 6px; }
  .header-admin { display: none; }   /* จอเล็ก: ใช้ปุ่มในเมนูแทน */
  .section { padding: 46px 0; }
  .page-hero { min-height: 0; }
  .page-hero-media, .hero-home .page-hero-media, .hero-contact .page-hero-media { width: 100%; }
  .page-hero::before { background: linear-gradient(180deg, rgba(10,92,192,.55) 0%, rgba(10,92,192,.88) 55%, #0b5fc4 100%); }
  .page-hero-inner { flex-direction: column; align-items: flex-start; padding-top: 70px; padding-bottom: 34px; }
  .hero-home { min-height: 0; }
  .hero-badge { display: none; }
  .hero-checks { grid-template-columns: 1fr; }
  .hero-features { grid-template-columns: 1fr 1fr; gap: 10px; font-size: .92rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card h3 { font-size: 1rem; }
  .product-card .btn { min-width: 0; width: 100%; padding-left: .6em; padding-right: .6em; }
  .dot { width: 14px; height: 14px; }
  .feature-item { padding: 16px 10px; gap: 10px; }
  .feature-item > i { font-size: 1.6rem; width: 34px; }
  .feature-item strong { font-size: .98rem; }
  .feature-item span { font-size: .8rem; }
  .about-band-inner { gap: 24px; }
  .about-logo { height: 52px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .value-grid li { padding: 16px 14px; }
  .value-icon { width: 40px; height: 40px; font-size: 1.05rem; }
  .sidebar { grid-template-columns: 1fr; }
  .promo-card { display: none; }
  .products-head .search-pill { width: 100%; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-item { border-left: 0; padding-left: 0; }
  .cta-logo { height: 68px; max-width: 160px; }
  .service-card h3 { font-size: 1.1rem; }
  .grid-3 .service-card { grid-column: span 2; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li::after { display: none; }
  .step-num { left: calc(50% - 60px); }
  .split-cta-content { flex-direction: column; text-align: center; }
  .split-logo { height: 95px; max-width: 180px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid li { border-left: 0 !important; border-top: 1px solid var(--border); }
  .stats-strip-inner, .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 8px; gap: 10px; }
  .stat::before { display: none !important; }
  .stat > i { font-size: 1.7rem; }
  .stat strong { font-size: 1.4rem; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; width: 100%; }
  .filter-tabs a { white-space: nowrap; }
  .search-pill.compact { width: 100%; }
  .testimonial-track { grid-auto-columns: 86%; }
  .slider-btn { display: none; }
  .about-intro { grid-template-columns: 1fr; }
  .journey-line { grid-auto-flow: row; gap: 18px; }
  .journey-line::before { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .journey-line li { flex-direction: row; text-align: left; padding: 0; gap: 12px; }
  .journey-dot { margin: 0; }
  .journey-line li > i { font-size: 1.4rem; width: 30px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .quote-box { max-width: none; width: 100%; }
  .map-frame { aspect-ratio: 4 / 3; }
  .slogan-band-inner { flex-wrap: wrap; justify-content: center; text-align: center; gap: 16px; }
  .slogan-band .script-quote.right { margin: 0; }
  .slogan-band > img { width: 100%; }
  .facts-list > div { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid > * + * { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .fab { right: 12px; bottom: 12px; }
  .fab-btn { width: 46px; height: 46px; }
  .search-input input { min-width: 0; width: 100%; }
  .breadcrumb-inner .search-form { width: 100%; }
  .admin-edit-bar span { display: none; }            /* จอเล็ก: เหลือเฉพาะไอคอน */
  .admin-edit-bar { padding: 9px 11px; border-radius: 50%; }
  .breadcrumb-inner .search-input { flex: 1; }
}

/* ---------- การ์ด "ถามทีมงาน" ข้าง FAQ ---------- */
.faq-ask {
  position: relative; display: grid; gap: 12px; padding: 18px; border-radius: 20px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #7fd6ff, #0b78e3 45%, #06c755) border-box;
  border: 2px solid transparent; box-shadow: 0 18px 40px -20px rgba(11, 120, 227, .5);
}
.faq-ask-head { display: flex; align-items: center; gap: 12px; }
.faq-ask-avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; }
.faq-ask-logo { width: 36px; height: 36px; object-fit: contain; }
.faq-ask-online { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #16c060; border: 2px solid #fff; }
.faq-ask-online::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: #16c060; animation: buy-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; z-index: -1; }
/* นอกเวลาทำการ: จุดสถานะเป็นสีเทา ไม่กระพริบ */
.faq-ask:not(:has(.buy-status.is-open)) .faq-ask-online { background: #9aa4b5; }
.faq-ask:not(:has(.buy-status.is-open)) .faq-ask-online::after { display: none; }
.faq-ask-who { min-width: 0; line-height: 1.3; }
.faq-ask-who strong { display: block; color: var(--navy-800); font-size: 1.02rem; }
.faq-ask .buy-status { margin: 2px 0 0; font-size: .82rem; line-height: 1.35; }

.faq-ask-bubble {
  position: relative; margin-left: 20px; padding: 11px 14px; border-radius: 4px 16px 16px 16px;
  background: var(--tint); color: var(--navy-800); font-size: .93rem; font-weight: 400; line-height: 1.45;
  animation: faq-bubble-in .5s cubic-bezier(.2, .9, .3, 1.3) both .2s;
}
.faq-ask-bubble::before { content: ''; position: absolute; left: -7px; top: 0; border: 8px solid transparent; border-top-color: var(--tint); border-right-color: var(--tint); }
@keyframes faq-bubble-in { from { opacity: 0; transform: translateY(8px) scale(.94); transform-origin: top left; } to { opacity: 1; transform: none; } }
.faq-typing { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.faq-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400, #4aa3f0); animation: faq-typing 1.2s ease-in-out infinite; }
.faq-typing i:nth-child(2) { animation-delay: .15s; }
.faq-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes faq-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.faq-ask-line {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, #04a84a 0%, #06c755 55%, #2bdc75 100%);
  box-shadow: 0 10px 22px -8px rgba(6, 199, 85, .65); transition: transform .25s, box-shadow .25s;
}
.faq-ask-line::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 48%, transparent 66%);
  transform: translateX(-120%); animation: cta-shine 3.8s ease-in-out infinite 1.4s;
}
.faq-ask-line:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 28px -10px rgba(6, 199, 85, .8); }
.faq-ask-line-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(255,255,255,.2); flex-shrink: 0; }
.faq-ask-line:hover .faq-ask-line-icon i { animation: phone-ring .5s ease-in-out 1; }
.faq-ask-line-text { flex: 1; min-width: 0; line-height: 1.25; }
.faq-ask-line-text strong { display: block; font-size: 1.08rem; font-weight: 600; }
.faq-ask-line-text small { display: block; font-size: .8rem; opacity: .9; font-weight: 300; }
.faq-ask-line .cta-go { width: 36px; height: 36px; color: #06a84a; }
.faq-ask-line:hover .cta-go { transform: translateX(4px) rotate(-12deg); }
.faq-ask-call { background: #fff; }
.faq-ask-more { justify-self: center; font-size: .88rem; font-weight: 400; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.faq-ask-more i { font-size: .75rem; transition: transform .2s; }
.faq-ask-more:hover { color: var(--blue-700); }
.faq-ask-more:hover i { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .faq-ask-bubble, .faq-typing i, .faq-ask-line::before, .faq-ask-online::after { animation: none; }
  .faq-ask-line::before, .faq-ask-online::after { display: none; }
}

/* ---------- แผนที่ร้าน (หน้าติดต่อเรา) ---------- */
.ch-map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .88rem; font-weight: 500; color: var(--blue-600); }
.map-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.map-info { display: flex; flex-direction: column; justify-content: center; }
.map-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--blue-600); font-weight: 500; }
.map-info .section-title { margin-bottom: 14px; }
.map-place { margin: 0 0 16px; color: var(--navy-800); font-weight: 400; line-height: 1.6; }
.map-place strong { display: block; font-size: 1.1rem; color: var(--blue-700); }
.map-facts { display: grid; gap: 10px; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px dashed var(--border); }
.map-facts li { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--navy-800); }
.map-facts i { width: 18px; margin-top: 5px; color: var(--blue-600); text-align: center; }
.map-facts a { color: var(--navy-800); font-weight: 600; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-go i { transition: transform .25s; }
.map-go:hover i { transform: translateX(3px) rotate(8deg); }

.map-embed {
  position: relative; min-height: 380px; border-radius: 20px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border); box-shadow: 0 18px 40px -22px rgba(11, 60, 130, .45);
  /* ลายแผนที่จำลอง: ถนน + บล็อก ก่อนโหลด Google Maps */
  background:
    linear-gradient(35deg, transparent 47%, #fff 47.5%, #fff 50.5%, transparent 51%) 0 0 / 100% 100%,
    linear-gradient(-62deg, transparent 58%, #ffe7b3 58.4%, #ffe7b3 61%, transparent 61.4%) 0 0 / 100% 100%,
    linear-gradient(90deg, rgba(11,120,227,.07) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(11,120,227,.07) 1px, transparent 1px) 0 0 / 46px 46px,
    #e8f1fb;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.map-embed.is-loaded iframe { opacity: 1; }
.map-placeholder {
  position: relative; min-height: inherit; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center; transition: opacity .4s;
}
.map-embed.is-loaded .map-placeholder { opacity: 0; pointer-events: none; }
.map-embed.is-loading [data-map-load] { pointer-events: none; opacity: .7; }
.map-embed.is-loading [data-map-load] i { animation: map-bob .6s ease-in-out infinite; }
.map-pin { position: relative; font-size: 3rem; color: #e53935; filter: drop-shadow(0 8px 10px rgba(229, 57, 53, .35)); animation: map-bob 1.8s ease-in-out infinite; }
.map-pin::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 26px; height: 8px; margin-left: -13px; border-radius: 50%; background: rgba(0,0,0,.18); animation: map-shadow 1.8s ease-in-out infinite; z-index: -1; }
@keyframes map-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes map-shadow { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(.6); opacity: .25; } }
.map-ph-title { margin: 8px 0 0; font-size: 1.15rem; font-weight: 600; color: var(--blue-700); background: rgba(255,255,255,.85); padding: 2px 12px; border-radius: 8px; }
.map-ph-sub { margin: 0 0 8px; max-width: 420px; font-size: .9rem; color: var(--navy-800); background: rgba(255,255,255,.85); padding: 2px 10px; border-radius: 8px; }
.map-ph-note { margin: 4px 0 0; max-width: 380px; font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 10px; border-radius: 8px; }
.map-ph-note a { text-decoration: underline; }
.map-ph-open { font-size: .86rem; font-weight: 500; color: var(--blue-700); background: rgba(255,255,255,.9); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; gap: 22px; }
  .map-embed { min-height: 320px; }
  .map-ph-sub { display: none; }            /* ที่อยู่แสดงด้านบนแล้ว */
}
@media (prefers-reduced-motion: reduce) { .map-pin, .map-pin::after { animation: none; } }

/* ---------- ผลงานบริการ (โพสต์แบบการ์ดสินค้า) ---------- */
.service-post-icon {
  position: absolute; right: 12px; bottom: -20px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.05rem;
  border: 3px solid #fff; box-shadow: 0 6px 14px -4px rgba(11, 95, 196, .55); transition: transform .3s;
}
.service-post:hover .service-post-icon { transform: rotate(-12deg) scale(1.08); }
.service-post .product-card-body { padding-top: 16px; }
.service-post h3 { padding: 0 34px; }
.service-post-meta { width: 100%; margin: -4px 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--tint); display: grid; gap: 2px; text-align: left; font-size: .84rem; color: var(--navy-800); font-weight: 400; }
.service-post-meta li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-post-meta strong { color: var(--blue-700); font-weight: 500; }
.gallery-album-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .92rem; font-weight: 500; color: var(--blue-700); }
.gallery-album-link .fa-arrow-down { font-size: .78rem; transition: transform .2s; }
.gallery-album-link:hover .fa-arrow-down { transform: translateY(3px); }
.cat-label i { margin-right: 4px; }
@media (max-width: 640px) {
  .service-post h3 { padding: 0; }
  .service-post-icon { top: 8px; right: 8px; bottom: auto; width: 34px; height: 34px; font-size: .82rem; border-width: 2px; }
  .service-post .product-card-body { padding-top: 12px; }
  .service-post-meta { font-size: .76rem; padding: 6px 8px; }
}

/* ---------- หน้าเกี่ยวกับเรา: อัลบั้มภาพแบบโมเสก (ภาพแรกใหญ่) ---------- */
.about-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 12px; grid-auto-flow: dense; }
.about-mosaic .album-item { position: relative; aspect-ratio: auto; border-radius: 16px; box-shadow: var(--shadow-sm); }
.about-mosaic .album-item:first-child { grid-column: span 2; grid-row: span 2; }
.about-mosaic .album-item:nth-child(6) { grid-column: span 2; }
.about-mosaic-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; text-align: left; color: #fff; font-size: .88rem; font-weight: 400;
  background: linear-gradient(180deg, transparent, rgba(4, 24, 56, .78)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.about-mosaic .album-item:hover .about-mosaic-cap, .about-mosaic .album-item:focus-visible .about-mosaic-cap { opacity: 1; transform: none; }
@media (max-width: 1080px) { .about-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 170px; } .about-mosaic .album-item:nth-child(6) { grid-column: auto; } }
@media (max-width: 760px)  { .about-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; } .about-mosaic-cap { opacity: 1; transform: none; font-size: .78rem; padding: 16px 8px 6px; } }
