/* ==========================================================
   T-OK CENTER — Front-end stylesheet
   ========================================================== */
:root {
  --green: #1d8f2d;
  --green-600: #17791f;
  --green-700: #0f6419;
  --green-900: #0a3f13;
  --green-light: #2fae3b;
  --lime: #7cc943;
  --mint: #eef7ea;
  --mint-2: #f6fbf3;
  --line: #e3ece0;
  --text: #1c2a1f;
  --muted: #56655a;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(20, 60, 25, .08);
  --shadow-lg: 0 14px 36px rgba(20, 60, 25, .14);
  --container: 1240px;
  --header-h: 76px;
  --font: 'Prompt', 'Sukhumvit Set', 'Noto Sans Thai', system-ui, sans-serif;
  --line-green: #06c755;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap; line-height: 1.2; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, #23a033, var(--green-600)); color: #fff; box-shadow: 0 6px 16px rgba(29, 143, 45, .28); }
.btn-primary:hover { background: linear-gradient(180deg, var(--green), var(--green-700)); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(29, 143, 45, .35); }
.btn-outline { background: #fff; color: var(--green-700); border-color: var(--green); }
.btn-outline:hover { background: var(--mint); }
.btn-white { background: #fff; color: var(--green-700); box-shadow: 0 8px 22px rgba(0, 0, 0, .15); }
.btn-white:hover { transform: translateY(-2px); }
.btn-line { background: var(--line-green); color: #fff; --line-text: var(--line-green); }
.btn-line:hover { filter: brightness(.95); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 5px 14px; font-size: 13.5px; border-width: 1.5px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 46px; height: 38px; }
.logo-text { font-weight: 800; font-size: 27px; letter-spacing: .3px; color: #1f2a22; white-space: nowrap; }
.logo-img { height: 44px; width: auto; }
.header-divider { width: 1px; height: 34px; background: #cfd8cc; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 8px; font-weight: 500; font-size: 15.5px; color: #26332a; transition: .15s; }
.main-nav > ul > li > a:hover { color: var(--green); background: var(--mint); }
.main-nav > ul > li > a.active { background: linear-gradient(180deg, #23a033, var(--green-600)); color: #fff; font-weight: 600; }
.main-nav .caret { width: 15px; height: 15px; }
.sub-toggle { display: none; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; z-index: 10; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(4px); }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 15px; }
.submenu a:hover { background: var(--mint); color: var(--green-700); }
.header-cta { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: var(--mint); border-radius: 12px; color: var(--green-700); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-cta-mobile { display: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(5, 30, 10, .45); z-index: 98; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; background: #eef6f8; }
.hero-bg { position: absolute; inset: 0 0 0 34%; background-size: cover; background-position: center right; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, #fff 30%, rgba(255, 255, 255, .92) 38%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, 0) 58%); }
.hero-swoosh { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 90px; }
.hero-content { max-width: 620px; }
.hero-title { font-size: clamp(30px, 3.7vw, 50px); font-weight: 800; color: var(--green-700); line-height: 1.22; letter-spacing: -.3px; }
.hero-title span { display: block; white-space: nowrap; }
.hero-line { display: block; width: 120px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--lime)); margin: 22px 0; }
.hero-text { font-size: 17.5px; color: #2b3a2e; max-width: 470px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section + .section { padding-top: 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sh-left { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 18px; row-gap: 4px; }
.section-title { position: relative; font-size: clamp(22px, 2.3vw, 29px); font-weight: 700; color: #1a271d; padding-left: 26px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 30px; transform: translateY(-50%) skewX(-18deg); background: linear-gradient(180deg, var(--green-light), var(--green-700)); border-radius: 2px; }
.section-sub { color: var(--muted); font-size: 15px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--green-700); font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 1.5px solid transparent; }
.link-more:hover { border-color: currentColor; }
.link-more .ic { width: 16px; height: 16px; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 12px 18px; border-radius: var(--radius); background: linear-gradient(180deg, #fff 0%, #fff 45%, #eaf6e4 100%); border: 1px solid var(--line); box-shadow: var(--shadow); transition: .22s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bfe0b4; }
.cat-img { display: flex; align-items: center; justify-content: center; height: 110px; width: 100%; }
.cat-img img { max-height: 110px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.cat-name { font-weight: 600; font-size: 15.5px; margin-top: 12px; min-height: 2.6em; display: flex; align-items: center; line-height: 1.3; }
.cat-go { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; margin-top: 8px; transition: .2s; }
.cat-go .ic { width: 15px; height: 15px; stroke-width: 3; }
.cat-card:hover .cat-go { background: var(--lime); transform: translateX(3px); }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: .22s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-img { display: flex; align-items: center; justify-content: center; height: 170px; padding: 14px; background: #fff; }
.pc-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.product-card:hover .pc-img img { transform: scale(1.04); }
.pc-body { padding: 4px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pc-title { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.pc-title a:hover { color: var(--green); }
.pc-model { color: var(--green); font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.pc-desc { color: var(--muted); font-size: 14px; margin: 6px 0 14px; line-height: 1.55; flex: 1; }
.pc-body .btn { align-self: flex-start; }

/* solutions */
.sol-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.sol-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .22s; }
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sol-img { display: block; aspect-ratio: 16/9.6; overflow: hidden; }
.sol-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sol-card:hover .sol-img img { transform: scale(1.06); }
.sol-body { display: block; padding: 10px 12px 14px; text-align: center; }
.sol-title { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid var(--line); }
.sol-title .ic { width: 24px; height: 24px; color: var(--green); }
.sol-title strong { font-size: 15.5px; }
.sol-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { background: #fff; border-radius: 12px; padding: 18px 20px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .22s; }
.why-card:hover { border-color: #bfe0b4; transform: translateY(-3px); }
.why-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.why-head .ic { width: 34px; height: 34px; color: var(--green); stroke-width: 2.2; }
.why-head h3 { font-size: 18.5px; color: var(--green-700); }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* CTA */
.cta { margin-top: 34px; background: linear-gradient(100deg, #138a28 0%, #1d9a33 35%, #4cb543 70%, #a9dc7c 100%); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 8% 50%, rgba(255, 255, 255, .18), transparent 30%), radial-gradient(circle at 70% 120%, rgba(255, 255, 255, .25), transparent 40%); }
.cta-inner { position: relative; max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 30px; min-height: 180px; padding: 0 24px; }
.cta-tower { width: 140px; height: 180px; object-fit: cover; align-self: flex-end; mix-blend-mode: luminosity; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.cta-text { flex: 1; padding: 26px 0; }
.cta-text h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.cta-text p { margin-top: 8px; font-size: 16.5px; max-width: 560px; opacity: .96; }
.cta-agent { width: 240px; height: 180px; object-fit: cover; object-position: left center; align-self: flex-end; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: linear-gradient(160deg, #0d5a1b 0%, #0a4515 55%, #0b3a12 100%); color: #dfeedd; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(circle, #9be26a 1.6px, transparent 2px), linear-gradient(35deg, transparent 49.5%, #9be26a 50%, transparent 50.5%), linear-gradient(-25deg, transparent 49.5%, #9be26a 50%, transparent 50.5%); background-size: 120px 90px, 240px 180px, 200px 160px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr .9fr 1.3fr 1fr; gap: 0; padding-top: 42px; padding-bottom: 36px; }
.f-col { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.f-col:first-child { border-left: 0; padding-left: 0; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-mark path:nth-child(1) { stroke: #fff; }
.f-company { font-weight: 600; color: #fff; font-size: 17px; margin: 14px 0 6px; }
.f-brand p:last-child { font-size: 14.5px; line-height: 1.7; opacity: .9; }
.f-title { font-size: 17px; color: #fff; font-weight: 600; margin-bottom: 14px; }
.f-links li a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 15px; opacity: .92; }
.f-links li a .ic { width: 13px; height: 13px; }
.f-links li a:hover { color: #b9f08f; opacity: 1; }
.f-contact li { display: flex; gap: 12px; padding: 5px 0; font-size: 15px; align-items: flex-start; }
.f-contact .ic { width: 20px; height: 20px; margin-top: 2px; color: #fff; }
.f-contact a:hover { color: #b9f08f; }
.f-social { display: flex; gap: 10px; flex-wrap: wrap; }
.f-social a { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; transition: .2s; --line-text: #fff; }
.f-social a .ic { width: 24px; height: 24px; }
.f-social a:hover { transform: translateY(-3px); background: #b9f08f; }
.f-hours { margin-top: 16px; font-size: 14px; display: flex; gap: 8px; align-items: center; opacity: .9; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 0; font-size: 13.5px; opacity: .8; text-align: center; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(120deg, #f2faee 0%, #e4f3dc 60%, #d3edc5 100%); padding: 30px 0 34px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 26px solid rgba(47, 174, 59, .12); box-shadow: 0 0 0 40px rgba(47, 174, 59, .06); }
.page-hero h1 { font-size: clamp(26px, 3.2vw, 38px); color: var(--green-700); font-weight: 800; position: relative; z-index: 1; }
.page-hero .lead { margin-top: 8px; color: var(--muted); font-size: 16.5px; position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; position: relative; z-index: 1; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .ic { width: 14px; height: 14px; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 16px; border-radius: 999px; background: var(--mint); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; transition: .15s; }
.chip:hover { border-color: var(--green); color: var(--green-700); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.search { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; min-width: 260px; }
.search input { border: 0; padding: 9px 16px; flex: 1; outline: none; min-width: 0; background: transparent; }
.search button { border: 0; background: var(--green); color: #fff; width: 44px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search:focus-within { border-color: var(--green); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; }
.pagination a.active, .pagination a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty > .ic { width: 54px; height: 54px; color: #a9cfa0; margin: 0 auto 10px; }
.empty p { margin-bottom: 16px; }

/* product detail */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pd-media { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.pd-media img { max-height: 380px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.pd-cat { display: inline-block; background: var(--mint); color: var(--green-700); padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.pd-title { font-size: clamp(24px, 2.8vw, 34px); margin-top: 10px; }
.pd-model { color: var(--green); font-weight: 700; font-size: 20px; margin-top: 2px; }
.pd-short { margin-top: 12px; color: #34443a; font-size: 16.5px; }
.pd-points { margin: 18px 0 24px; display: grid; gap: 8px; }
.pd-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.pd-points .ic { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-top: 46px; }
.block-title { font-size: 21px; color: var(--green-700); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--mint); }
.content p { margin-bottom: 12px; }
.content ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.content ol { list-style: decimal; padding-left: 22px; margin-bottom: 12px; }
.content li { margin-bottom: 4px; }
.content a { color: var(--green); text-decoration: underline; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; background: var(--mint-2); font-weight: 600; color: #2b3a2e; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.related { margin-top: 56px; }

/* solutions page */
.sol-grid-nav .sol-body { padding-bottom: 6px; }
.sol-grid-nav .sol-title { border: 0; margin: 0; }
.sol-list { margin-top: 50px; display: grid; gap: 50px; }
.sol-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sol-row.rev .sol-row-img { order: 2; }
.sol-row-img img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; object-fit: cover; }
.badge-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--green); align-items: center; justify-content: center; margin-bottom: 12px; }
.badge-ic .ic { width: 28px; height: 28px; }
.sol-row h2 { font-size: clamp(21px, 2.3vw, 28px); color: var(--green-700); }
.lead-sm { font-size: 17px; color: #34443a; margin: 8px 0 12px; font-weight: 500; }
.sol-row .content { color: var(--muted); }
.sol-row .btn { margin-top: 6px; }

/* services */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); overflow: hidden; transition: .22s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-no { position: absolute; right: 16px; top: 8px; font-size: 48px; font-weight: 800; color: var(--mint); line-height: 1; }
.step-ic { display: inline-flex; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(180deg, var(--green-light), var(--green-600)); color: #fff; align-items: center; justify-content: center; margin-bottom: 14px; position: relative; }
.step-ic .ic { width: 28px; height: 28px; }
.step h3 { font-size: 18.5px; margin-bottom: 6px; position: relative; }
.step p { color: var(--muted); font-size: 14.5px; position: relative; }

/* portfolio */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .22s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-year { position: absolute; left: 12px; top: 12px; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.work-body { padding: 18px 20px 22px; }
.work-body h2 { font-size: 18px; margin-bottom: 8px; }
.work-meta { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--green-700); font-weight: 500; }
.work-meta .ic { width: 16px; height: 16px; }
.work-body p:last-child { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.contact-info { display: grid; gap: 12px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--mint-2); border: 1px solid var(--line); border-radius: 14px; transition: .2s; }
a.ci-item:hover { border-color: var(--green); background: #fff; }
.ci-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-ic .ic { width: 22px; height: 22px; }
.ci-line { background: var(--line-green); --line-text: var(--line-green); }
.ci-line .ic { width: 28px; height: 28px; }
.ci-item small { display: block; color: var(--muted); font-size: 13px; }
.ci-item strong, .ci-item address { font-weight: 600; font-size: 15.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 6px; }
.field label b { color: #d33; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #d6e2d2; border-radius: 10px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(47, 174, 59, .15); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.alert ul { list-style: disc; padding-left: 18px; }
.alert-success { background: #e8f7e3; color: #17621f; border: 1px solid #bfe3b4; }
.alert-error { background: #fdecec; color: #a12222; border: 1px solid #f3c2c2; }
.map-wrap { margin-top: 30px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Floating buttons ---------- */
.float-contact { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fc-btn { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.fc-btn:hover { transform: scale(1.06); }
.fc-btn .ic { width: 28px; height: 28px; }
.fc-line { background: var(--line-green); --line-text: var(--line-green); }
.fc-line .ic { width: 36px; height: 36px; }
.fc-phone { background: var(--green); }
.nav-open .float-contact { display: none; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-inner { gap: 14px; }
  .main-nav > ul > li > a { padding: 7px 10px; font-size: 15px; }
  .logo-text { font-size: 23px; }
  .header-divider { display: none; }
  .sol-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  /* เมนูมือถือ: แผงเต็มจอใต้ header แสดง/ซ่อนด้วย display (ไม่มีแอนิเมชัน) */
  .main-nav { display: none; position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 99; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex-direction: column; }
  .nav-open .main-nav { display: flex; }
  .nav-backdrop { display: none !important; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav > ul > li > a { flex: 1; padding: 13px 14px; font-size: 16.5px; border-radius: 10px; }
  .main-nav .caret { display: none; }
  .sub-toggle { display: inline-flex; width: 46px; height: 46px; border: 0; background: var(--mint); border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--green-700); margin-left: 6px; }
  .sub-toggle .ic { transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .submenu { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 6px 14px; display: none; min-width: 0; }
  .has-sub:hover > .submenu { transform: none; }
  .has-sub.sub-open > .submenu { display: block; }
  .nav-cta-mobile { display: inline-flex; margin-top: 18px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .f-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero { min-height: 500px; }
  .hero-bg { inset: 0 0 0 20%; }
  .pd, .pd-detail, .contact-grid { grid-template-columns: 1fr; }
  .steps, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-agent { width: 180px; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .logo-text { font-size: 21px; }
  .logo-mark { width: 38px; height: 32px; }
  .hero { min-height: 0; display: flex; flex-direction: column; background: #fff; }
  .hero::before { display: none; }
  .hero-inner { order: 1; padding-top: 28px; padding-bottom: 18px; }
  .hero-bg { order: 2; position: relative; inset: auto; width: 100%; height: 250px; background-position: 62% center; }
  .hero-title span { white-space: normal; }
  .hero-swoosh { height: 60px; }
  .hero-text { font-size: 16px; }
  .hero-actions .btn { flex: 1; padding: 12px 14px; }
  .hero-line { margin: 16px 0; }
  .section { padding: 34px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 18px; }
  .section-sub { font-size: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-img { height: 90px; }
  .cat-img img { max-height: 90px; }
  .product-grid { gap: 12px; }
  .pc-img { height: 130px; padding: 10px; }
  .pc-body { padding: 4px 12px 14px; }
  .pc-title, .pc-model { font-size: 15px; }
  .pc-desc { font-size: 13px; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .steps, .work-grid { grid-template-columns: 1fr; }
  .sol-row { grid-template-columns: 1fr; gap: 18px; }
  .sol-row.rev .sol-row-img { order: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 20px 16px; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .toolbar > * { min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .search { min-width: 0; }
  .pd-actions .btn { flex: 1 1 100%; }
  .cta-inner { flex-direction: column; text-align: center; gap: 14px; padding: 28px 16px 0; }
  .cta-tower { display: none; }
  .cta-text { padding: 0; }
  .cta-agent { width: 220px; height: 140px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); object-position: center top; }
  .footer-grid { grid-template-columns: 1fr; }
  .f-col { border-left: 0; padding: 0; }
  .footer-bottom { padding-bottom: 18px; }

  .float-contact { right: 14px; bottom: max(16px, env(safe-area-inset-bottom)); gap: 10px; }
  .fc-btn { width: 54px; height: 54px; }
}
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

@media print {
  .site-header, .float-contact, .cta, .site-footer { display: none !important; }
}

/* ---------- Catalog additions ---------- */
@media (min-width: 1025px) { .cat-grid-many { grid-template-columns: repeat(5, 1fr); } }
.content h3 { font-size: 18px; color: var(--green-700); margin: 18px 0 8px; }
.content img { border-radius: 12px; border: 1px solid var(--line); margin: 12px 0; }
.muted-sm { color: var(--muted); font-size: 14.5px; margin: -6px 0 12px; }

.branches { margin-top: 40px; }
.branch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.branch-region { display: inline-block; background: var(--mint); color: var(--green-700); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.branch-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.branch-card p { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: #34443a; margin-top: 6px; }
.branch-card p .ic { width: 17px; height: 17px; color: var(--green); margin-top: 3px; }
.branch-card a:hover { color: var(--green); }

.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl-item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.hl-ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--green); color: var(--green); display: flex; align-items: center; justify-content: center; }
.hl-ic .ic { width: 26px; height: 26px; }
.hl-item p { font-weight: 500; font-size: 15.5px; line-height: 1.45; }

.after-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
.after-list { list-style: none; counter-reset: a; display: grid; gap: 10px; }
.after-list li { counter-increment: a; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.after-list li::before { content: counter(a); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.partners-card img { margin: 0 auto; max-height: 260px; width: auto; }

@media (max-width: 1024px) {
  .branch-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .after-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .branch-grid, .hl-grid { grid-template-columns: 1fr; gap: 12px; }
}
