/* KN UPVC — เค เอ็น ยูพีวีซี อลูมิเนียม แอนด์ เซอร์วิส
   โทน: น้ำเงินเข้ม (หลัก) · ขาว (พื้น) · ดำ (ตัวหนังสือ) · แดง (เน้นเล็กน้อยตามโลโก้)
   ฟอนต์ Prompt ตามที่ลูกค้าขอ ใช้ฟอนต์เดียวทั้งเว็บ แยกน้ำหนัก */

:root {
  --accent: #0b2545;
  --navy: var(--accent);
  --navy-deep: #071a33;
  --night: #050f1f;
  --ink: #111a26;
  --paper: #ffffff;
  --mist: #f2f5f9;
  --line: #dde3eb;
  --muted: #566476;
  --red: #c8102e;
  --red-dark: #a50d26;
  --radius: 10px;
  --font: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px -12px rgba(11, 37, 69, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.7;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px; border-radius: 8px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; font-weight: 500; font-size: 16px; line-height: 1.3;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(11, 37, 69, .6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 10px 22px -12px rgba(200, 16, 46, .7); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-glass:hover { background: #fff; color: var(--navy); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 16.5px; }

/* ---------- แถบข้อมูลบน ---------- */
.topbar { background: var(--night); color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 8px 26px; min-height: 38px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: #fff; }
.tb-social { gap: 12px; }
@media (max-width: 899px) { .topbar span:first-child, .tb-mail, .tb-social { display: none !important; } }
@media (max-width: 479px) { .topbar { display: none; } }

/* ---------- หัวเว็บ (ห้าม backdrop-filter/transform/filter เพราะเมนูมือถือ fixed ต้องเต็มจอ) ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.hdr.scrolled { box-shadow: 0 6px 24px -14px rgba(5, 15, 31, .35); }
.hdr-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; }
.logo-img { height: 44px; width: auto; max-width: 62vw; object-fit: contain; }
.logo-light .logo-img { height: 56px; padding: 10px 14px; background: #fff; border-radius: 10px; box-sizing: content-box; }
@media (min-width: 1024px) { .hdr .logo-img { height: 52px; } }
.mark {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .02em;
}
.mark i { position: absolute; right: 6px; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-text b { font-weight: 700; font-size: 19px; color: var(--navy); letter-spacing: .01em; }
.logo-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.dnav { display: none; margin-left: auto; gap: 4px; }
.dnav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: 15.5px; color: var(--ink); border-radius: 6px; }
.dnav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.dnav a:hover::after, .dnav a[aria-current="page"]::after { transform: scaleX(1); }
.dnav a[aria-current="page"] { color: var(--navy); }
.hdr-cta { display: none; min-height: 44px; padding: 8px 18px; font-size: 15px; }
.nav-toggle { margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 8px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) {
  .dnav { display: flex; }
  .hdr-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .logo-text small { max-width: 260px; }
}

/* เมนูมือถือ — อยู่นอกหัวเว็บ เต็มจอ */
.mnav {
  position: fixed; inset: 0; top: 0; z-index: 35; background: #fff; padding: 100px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
body.nav-open { overflow: hidden; }
body.nav-open .mnav { opacity: 1; visibility: visible; }
.mnav-links { display: flex; flex-direction: column; }
.mnav-links a { padding: 14px 0; font-size: 21px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav-links a[aria-current="page"] { color: var(--red); }
.mnav-contact { display: grid; gap: 12px; }
@media (min-width: 1024px) { .mnav { display: none; } }

/* ---------- แบนเนอร์หน้าแรก ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; min-height: min(70vh, 640px); display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-slide picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 60% 45%; }
.hero-slide::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 15, 31, .86) 0%, rgba(5, 15, 31, .62) 45%, rgba(5, 15, 31, .12) 85%),
              linear-gradient(0deg, rgba(5, 15, 31, .55), transparent 40%); }
.hero-body { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .9); margin-bottom: 14px; }
.eyebrow::after { content: ''; width: 40px; height: 2px; background: var(--red); }
.hero-title { font-size: clamp(32px, 7.4vw, 60px); font-weight: 600; line-height: 1.25; max-width: 14em; }
.hero-sub { margin-top: 16px; font-size: clamp(16px, 2.1vw, 19px); font-weight: 300; max-width: 34em; color: rgba(255, 255, 255, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 18px; font-weight: 500; }
.hero-phone svg { width: 20px; height: 20px; }
.hero-nav { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .2s, width .25s var(--ease); }
.hero-dots button[aria-current="true"] { background: #fff; width: 44px; }
.hero-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(5, 15, 31, .35); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.hero-arrow:hover { background: rgba(255, 255, 255, .2); }
.hero-arrow svg { width: 18px; height: 18px; stroke-width: 2; }
@media (min-width: 768px) {
  .hero-slide { min-height: min(78vh, 720px); }
  .hero-nav { justify-content: flex-end; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); left: auto; }
}
@media (max-width: 599px) {
  .hero-img { object-position: 62% 50%; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(5, 15, 31, .9) 10%, rgba(5, 15, 31, .55) 55%, rgba(5, 15, 31, .25)); }
  .hero-slide { align-items: flex-end; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* แบนเนอร์หน้ารอง */
.page-hero { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.page-hero picture, .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-img { object-fit: cover; object-position: 50% 45%; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 15, 31, .9), rgba(5, 15, 31, .55) 70%, rgba(5, 15, 31, .35)); }
.page-hero-body { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(30px, 5.6vw, 48px); }
.page-hero p { margin-top: 10px; max-width: 38em; color: rgba(255, 255, 255, .88); font-weight: 300; font-size: clamp(16px, 2vw, 18px); }
.page-hero .btn { margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); margin-bottom: 12px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 768px) { .page-hero-body { padding-top: 84px; padding-bottom: 84px; } }

/* ---------- แถบความมั่นใจ ---------- */
.trust { background: var(--mist); border-bottom: 1px solid var(--line); }
.trust .sec-head { padding-top: 32px; }
.trust-list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.trust-list li { display: flex; align-items: flex-start; gap: 12px; }
.trust-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.trust-icon svg { width: 22px; height: 22px; }
.trust h3 { font-size: 15px; font-weight: 600; color: var(--navy); }
.trust p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(var(--cols, 4), 1fr); padding: 28px 0; }
  .trust-list li + li { border-left: 1px solid var(--line); padding-left: 20px; }
  .trust h3 { font-size: 16px; }
}

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: clamp(56px, 9vw, 104px) 0; }
.sec-mist { background: var(--mist); }
.sec-navy { background: var(--navy); color: #fff; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .rule { margin-left: auto; margin-right: auto; }
.sec-head h2, .about-text h2, .contact-info h2, .prose h2 { font-size: clamp(28px, 4.2vw, 42px); color: var(--navy); }
.sec-head.light h2, .sec-navy .sec-head h2 { color: #fff; }
.sec-head .lead { margin-top: 12px; }
.lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--muted); }
.sec-head.light .lead { color: rgba(255, 255, 255, .8); }
.rule { display: block; width: 44px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 16px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--red); letter-spacing: .03em; margin-bottom: 6px; }
.center-cta { text-align: center; margin-top: 32px; }

/* ---------- ขั้นตอน / จุดเด่นแบบมีเลข ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; transition: transform .2s var(--ease), box-shadow .2s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-no { font-size: 26px; font-weight: 600; color: var(--red); line-height: 1; }
.step-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--navy); display: grid; place-items: center; }
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 17px; color: var(--navy); }
.step p { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(min(var(--cols, 4), 4), 1fr); gap: 20px; } .step { padding: 26px 22px; } }
@media (min-width: 1024px) {
  .steps { position: relative; }
  .step:not(:last-child)::after { content: ''; position: absolute; top: 48px; right: -21px; width: 22px; height: 1px; background: var(--line); }
}

/* ---------- เกี่ยวกับ / บริการเด่น (รูปคู่ข้อความ) ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about-pic { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.about-pic img { width: 100%; height: 100%; object-fit: contain; }
.about-text .btn { margin-top: 22px; }
.about-text h2 { margin-bottom: 16px; }
.prose { color: #2a3646; }
.prose p { margin-bottom: 1em; }
.prose.narrow { max-width: 760px; margin: 0 auto; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); }
  .about.pic-right .about-pic { order: 2; }
  .about.no-pic { grid-template-columns: 1fr; max-width: 800px; }
  .about-pic { max-height: 640px; }
}
.about-sec + .about-sec { padding-top: 0; }

/* ---------- การ์ดบริการ ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: start; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; height: 100%; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-pic { overflow: hidden; background: var(--mist); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-pic img { transform: scale(1.03); }
.card-body { padding: 14px 14px 18px; }
.card h3 { font-size: 16px; color: var(--navy); line-height: 1.4; }
.card p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.card-price { font-weight: 600; color: var(--red); margin-top: 8px; }
.card-price s { color: var(--muted); font-weight: 400; margin-left: 8px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } .card-body { padding: 18px 20px 22px; } .card h3 { font-size: 18px; } .card p { font-size: 15px; } }
@media (min-width: 1100px) { .cards:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); gap: 16px; } .cards:has(> :nth-child(5):last-child) .card h3 { font-size: 16.5px; } .cards:has(> :nth-child(5):last-child) .card p { font-size: 14px; } }
.rows { display: grid; gap: 14px; }
.row-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.row-item .card-pic { border-radius: 8px; }
.row-item h3 { font-size: 17px; color: var(--navy); }
.row-item p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.row-cta { grid-column: 1 / -1; }
@media (min-width: 768px) { .row-item { grid-template-columns: 200px 1fr auto; padding: 16px; gap: 24px; } .row-cta { grid-column: auto; } }

/* ---------- ผลงาน (ไม่ครอป · ความสูงตามรูปจริง) ---------- */
.gal { columns: 2; column-gap: 10px; }
.gal-item { break-inside: avoid; margin: 0 0 10px; position: relative; border-radius: 8px; overflow: hidden; background: var(--navy-deep); }
.gal-item a { display: block; overflow: hidden; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(5, 15, 31, .85), transparent); color: #fff; pointer-events: none; }
.gal-item figcaption b { display: block; font-weight: 500; font-size: 14px; line-height: 1.4; }
.gal-item figcaption span { display: none; }
.gal-video video { width: 100%; background: #000; }
.gal-video figcaption { position: static; background: var(--navy-deep); padding: 10px 12px; pointer-events: auto; }
.gal-video figcaption span { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); }
.gal-more { text-align: center; margin-top: 28px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 768px) { .gal { column-gap: 16px; } .gal-item { margin-bottom: 16px; } .gal-item figcaption b { font-size: 15px; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 3); } .gal-item figcaption span { display: block; font-size: 13px; color: rgba(255, 255, 255, .78); } }
.sec:not(.sec-navy) .gal-item { background: var(--mist); }

/* ---------- รีวิว ---------- */
.quotes { display: grid; gap: 16px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.quote-mark { width: 30px; height: 30px; color: var(--red); stroke-width: 2.2; }
.quote blockquote { margin: 0; font-size: 16px; color: #2a3646; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--navy); font-weight: 600; }
.quote figcaption span span { display: block; font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { display: grid; gap: 28px; }
.faq-note { color: var(--muted); margin-bottom: 18px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 500; color: var(--navy); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 18px 18px; margin: 0; color: #36424f; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-side { position: sticky; top: 110px; } }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: clamp(48px, 7vw, 80px) 0; }
.cta-dark { background: var(--navy) url('/img/factory-front-kn-upvc.webp') center/cover; position: relative; color: #fff; }
.cta-dark::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 51, .95), rgba(11, 37, 69, .86)); }
.cta-soft { background: var(--mist); }
.cta-inner { position: relative; display: grid; gap: 22px; align-items: center; }
.cta-band h2 { font-size: clamp(24px, 3.6vw, 36px); max-width: 22em; }
.cta-soft h2 { color: var(--navy); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; }
.cta-phone svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* ---------- ติดต่อ ---------- */
.contact-sec { background: var(--navy-deep); color: #fff; }
.contact { display: grid; gap: 32px; }
.contact-info h2 { color: #fff; margin-bottom: 10px; }
.contact-info .lead { color: rgba(255, 255, 255, .8); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.contact-list small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.3; }
.contact-list a { font-size: 17px; font-weight: 500; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.hours-box { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; margin-bottom: 24px; }
.hours-box h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.hours-box p { font-size: 18px; font-weight: 500; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.closed { color: #ff8a9a; }
.contact-line { width: 100%; }
form.lead { background: #fff; color: var(--ink); border-radius: 14px; padding: 24px 18px; display: grid; gap: 14px; }
.lead h3 { font-size: 24px; color: var(--navy); }
.form-note { font-size: 14.5px; color: var(--muted); margin: -6px 0 4px; }
.f2 { display: grid; gap: 14px; }
.lead label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.lead input, .lead textarea, .lead select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.lead textarea { min-height: 120px; resize: vertical; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 37, 69, .12); }
.lead button { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { font-size: 15px; margin: 0; min-height: 1.4em; }
.msg.ok { color: #137a3e; }
.msg.bad { color: var(--red); }
.map-wrap { margin-top: 32px; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
@media (min-width: 600px) { .f2 { grid-template-columns: 1fr 1fr; } form.lead { padding: 30px; } }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } .contact-line { width: auto; } }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--night); color: rgba(255, 255, 255, .78); padding: 56px 0 calc(28px + 76px); font-size: 15px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.logo-light .logo-text b { color: #fff; }
.logo-light .logo-text small { color: rgba(255, 255, 255, .65); max-width: 80vw; white-space: normal; }
.logo-light .mark { background: #fff; color: var(--navy); }
.foot-brand p { margin-top: 16px; max-width: 30em; font-size: 14.5px; }
.foot-h { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.foot-nav { display: grid; gap: 8px; }
.foot-nav a:hover, .foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-contact, .foot-contact-col { grid-column: 1 / -1; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; }
.foot-contact svg { margin-top: 4px; color: #fff; }
.foot-contact a { word-break: break-word; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .12); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 255, 255, .55); }
@media (min-width: 900px) {
  .foot { padding-bottom: 28px; }
  .foot-grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.3fr; gap: 40px; }
  .foot-brand, .foot-contact, .foot-contact-col { grid-column: auto; }
}

/* ---------- ปุ่มลอยบนมือถือ (ไลน์ + โทร) ---------- */
.float-contact { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(5, 15, 31, .35); }
.float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 8px; font-weight: 500; color: #fff; }
.fl-line { background: #06c755; }
.fl-call { background: var(--navy); }
.float-contact svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .float-contact { display: none; } }
body.nav-open .float-contact { display: none; }

/* ---------- กดดูรูปเต็ม ---------- */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(5, 15, 31, .9); }
dialog.light img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 6px; }
dialog.light button { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
dialog.light button svg { width: 22px; height: 22px; stroke-width: 2; }

/* ---------- บทความ ---------- */
.a-wrap { max-width: 800px; }
.a-wrap .crumbs { color: var(--muted); }
.a-wrap h1 { font-size: clamp(28px, 5vw, 42px); color: var(--navy); }
.a-meta { color: var(--muted); font-size: 14px; }
.a-cover, .a-fig { margin: 24px 0; }
.a-cover img, .a-fig img { border-radius: var(--radius); }
.a-lead { font-size: 19px; color: #2a3646; }
.a-toc { background: var(--mist); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.a-body h2 { margin: 32px 0 12px; color: var(--navy); font-size: 26px; }
.a-body h3 { margin: 24px 0 10px; color: var(--navy); }
.a-body a { color: var(--red); text-decoration: underline; }
.a-body blockquote { border-left: 3px solid var(--red); margin: 20px 0; padding: 4px 0 4px 18px; }
.a-embed { margin: 32px 0; }
.a-cta { background: var(--mist); border-radius: var(--radius); padding: 22px; margin: 28px 0; }

/* ---------- พื้นที่กดอย่างน้อย 44x44 บนมือถือ ---------- */
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.hero-phone, .cta-phone, .contact-list a, .foot-nav a, .foot-list a, .topbar a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav { gap: 0; }
.foot-list { gap: 0; }
.foot-contact li { align-items: center; }
.foot-contact svg { margin-top: 0; }
.contact-list { gap: 8px; }
.hero-arrow { width: 44px; height: 44px; }
.hero-dots button { position: relative; height: 44px; background: transparent !important; }
.hero-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: background .2s; }
.hero-dots button[aria-current="true"]::before { background: #fff; }

/* ---------- ตัวอักษรไทยอ่านง่าย: อย่างน้อย 14px · ระยะบรรทัดอย่างน้อย 1.4 (สระบน-ล่างไม่ชนกัน) ---------- */
h1, h2, h3, h4, .hero-title { line-height: 1.42; }
.btn, .logo-text, .contact-list small { line-height: 1.45; }
.topbar, .trust p, .foot-bottom, .tag, .logo-text small,
.gal-video figcaption span, .gal-item figcaption span, .contact-list small, .crumbs { font-size: 14px; }
.hero-dots button { width: 48px; height: 48px; }
.hero-dots button::before { left: 10px; right: 10px; top: 22px; }
.hero-dots button[aria-current="true"] { width: 60px; }
.hero-arrow, .nav-toggle { width: 48px; height: 48px; }
.social a { width: 48px; height: 48px; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.crumbs { align-items: center; margin-bottom: 4px; }

/* ---------- เนื้อหาปรากฏตอนเลื่อนถึง (เปิดเฉพาะเมื่อมีสคริปต์และไม่ได้ลดการเคลื่อนไหว) ---------- */
.rv-on .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.rv-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
