/* Frontier Agency — สื่อโฆษณาในสนามกอล์ฟระดับพรีเมียม
   สีตามคู่มือแบรนด์: Navy #001C4D · Royal #1E5BA8 · Ocean #1C8FE3 · Sky #4EBBFA · Mist #E8F4FD · Slate #5A6B7F
   dark-first: พื้นกรมท่าเป็นหลัก ไล่สี Ocean → Sky ใช้เฉพาะเส้นเน้นและสัญลักษณ์ */

:root {
  --navy: #001C4D;
  --navy-2: #062a66;
  --royal: #1E5BA8;
  --ocean: #1C8FE3;
  --sky: #4EBBFA;
  --mist: #E8F4FD;
  --slate: #5A6B7F;
  --accent: #1E5BA8;
  --ink: #001C4D;
  --paper: #F5F9FD;
  --line: rgba(0, 28, 77, .1);
  --grad: linear-gradient(90deg, var(--ocean), var(--sky));
  --font: 'Noto Sans Thai', system-ui, sans-serif;
  --radius: 14px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ไอคอนเส้น ความหนาเท่ากันทั้งเว็บ */
.stat-icon svg, .value-icon svg, .step-icon svg, .contact-list svg, .social svg, .float-contact svg {
  fill: none; stroke: currentColor; stroke-width: 1.75;
}

/* เส้นเน้นไล่สีของแบรนด์ */
.rule { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 18px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 0; background: var(--accent); color: #fff;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
  box-shadow: 0 1px 2px rgba(0, 28, 77, .12), 0 8px 20px -10px rgba(30, 91, 168, .6);
}
.btn:hover { background: #174b8c; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-sky { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -12px rgba(78, 187, 250, .6); }
.btn-sky:hover { background: var(--mist); }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--mist); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- หัวเว็บ ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  background: rgba(0, 28, 77, 0); transition: background .3s, box-shadow .3s;
}
.nav.scrolled, body:not(:has(.hero-full)) .nav { background: var(--navy); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
body.nav-open .nav { z-index: 55; background: transparent; box-shadow: none; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.logo-img { height: 46px; width: auto; }
.logo-text { font-weight: 700; font-size: 20px; letter-spacing: .04em; }

.nav-toggle {
  position: relative; z-index: 60; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .1); cursor: pointer; display: grid; place-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease); }
body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* เมนูอยู่นอกหัวเว็บ → มือถือเปิดได้เต็มจอเสมอ */
.menu {
  position: fixed; inset: 0; z-index: 50; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: calc(var(--nav-h) + 24px) 28px 40px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
body.nav-open { overflow: hidden; }
body.nav-open .menu { opacity: 1; visibility: visible; }
.menu-links { display: flex; flex-direction: column; gap: 6px; }
.menu-links a {
  color: #fff; text-decoration: none; font-size: 26px; font-weight: 600; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.menu-links a[aria-current] { color: var(--sky); }
.menu-cta { align-self: flex-start; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .menu {
    inset: 0 max(20px, calc((100% - var(--wrap)) / 2)) auto auto; height: var(--nav-h); padding: 0;
    flex-direction: row; align-items: center; gap: 28px; background: none;
    opacity: 1; visibility: visible;
  }
  .menu-links { flex-direction: row; gap: 4px; }
  .menu-links a { font-size: 15.5px; font-weight: 500; padding: 8px 14px; border: 0; border-radius: 999px; color: rgba(255, 255, 255, .86); transition: background .2s, color .2s; }
  .menu-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .menu-links a[aria-current] { color: #fff; background: rgba(78, 187, 250, .16); }
  .menu-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; }
.hero-full .hero-slide { min-height: min(70vh, 640px); display: flex; align-items: flex-end; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 60% 50%; transform: scale(1.04); will-change: transform; }
.hero-full .hero-slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 28, 77, .55) 0%, rgba(0, 28, 77, .15) 30%, rgba(0, 28, 77, .55) 62%, rgba(0, 28, 77, .94) 100%);
}
.hero-body { position: relative; z-index: 2; padding: calc(var(--nav-h) + 40px) 0 56px; }
.hero h1, .hero .h1 { font-size: clamp(30px, 7.4vw, 60px); line-height: 1.28; max-width: 15em; font-weight: 700; margin: 0; }
.hero-sub { font-size: clamp(16px, 2.1vw, 20px); color: rgba(255, 255, 255, .86); max-width: 34em; margin: 16px 0 28px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s, width .3s; }
.hero-dots button[aria-current="true"] { width: 44px; background: var(--sky); }

@media (min-width: 768px) {
  .hero-full .hero-slide { min-height: min(88vh, 820px); align-items: center; }
  .hero-full .hero-slide::after {
    background:
      linear-gradient(90deg, rgba(0, 28, 77, .95) 0%, rgba(0, 28, 77, .78) 38%, rgba(0, 28, 77, .1) 75%),
      linear-gradient(180deg, rgba(0, 28, 77, .5) 0%, transparent 25%);
  }
  .hero-body { padding: calc(var(--nav-h) + 56px) 0 96px; }
}

/* แบนเนอร์หน้ารอง */
.hero-compact .hero-slide { min-height: 340px; display: flex; align-items: flex-end; }
.hero-compact .hero-bg img { object-position: 50% 55%; }
.hero-compact .hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 28, 77, .94) 0%, rgba(0, 28, 77, .72) 55%, rgba(0, 28, 77, .45) 100%);
}
.hero-compact .hero-body { padding: calc(var(--nav-h) + 48px) 0 44px; }
.hero-compact h1, .hero-compact .h1 { font-size: clamp(28px, 5.4vw, 46px); }
.hero-compact .hero-sub { margin-bottom: 0; }
.hero-compact .btn { margin-top: 24px; }
@media (min-width: 768px) { .hero-compact .hero-slide { min-height: 420px; } }

.hero-split .hero-slide { display: grid; gap: 28px; padding-top: var(--nav-h); }
@media (min-width: 900px) { .hero-split .hero-slide { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 112px 0; } }
.sec-head { max-width: 46rem; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 4.4vw, 42px); }
.sec-head .lede { font-size: 18px; color: var(--slate); margin-top: 14px; }
.sec-head.on-dark .lede { color: rgba(255, 255, 255, .72); }
.prose p { color: #2b3d57; }
.prose.narrow { max-width: 46rem; }
.prose h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 18px; }

/* แถบข้อเท็จจริง (จุดเด่น 4 คอลัมน์) */
.stats { background: var(--navy); color: #fff; padding: 56px 0 64px; position: relative; }
.stats::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(78, 187, 250, .5), transparent); }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.stat { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
.stat:first-child { border-top: 0; }
.stat-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(78, 187, 250, .12); color: var(--sky); }
.stat-icon svg { width: 22px; height: 22px; }
.stat h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.stat p { color: rgba(255, 255, 255, .66); font-size: 15px; margin-top: 4px; line-height: 1.6; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; } .stat:nth-child(2) { border-top: 0; } }
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); padding: 4px 0 4px 24px; display: block; }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .stat-icon { margin-bottom: 18px; }
}

/* เกี่ยวกับ */
.about { display: grid; gap: 36px; align-items: center; }
.about-pic img { border-radius: var(--radius); width: 100%; }
.about-text h2 { font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 20px; }
.about-text .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .about.pic-right { grid-template-columns: 1fr 1.1fr; }
  .about.pic-right .about-pic { order: 2; }
}
.about-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.about-dark::before {
  content: ''; position: absolute; width: 720px; height: 720px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 143, 227, .28), transparent); pointer-events: none;
}
.about-dark .prose p { color: rgba(255, 255, 255, .78); }
.about-dark .wrap { position: relative; }

/* การ์ดคุณค่า (จุดเด่น 3 คอลัมน์) */
.values-sec { background: var(--mist); }
.values { display: grid; gap: 16px; }
.value { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 1px 2px rgba(0, 28, 77, .05), 0 12px 32px -18px rgba(0, 28, 77, .25); transition: transform .2s var(--ease), box-shadow .2s; }
.value:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0, 28, 77, .05), 0 18px 40px -18px rgba(0, 28, 77, .32); }
.value-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--sky); margin-bottom: 22px; }
.value-icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 21px; margin-bottom: 10px; }
.value p { color: var(--slate); font-size: 16px; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ขั้นตอน (จุดเด่น 2 คอลัมน์) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line); }
.step-no { font-size: 15px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--slate); font-size: 16px; }
.step-icon { color: var(--ocean); }
.step-icon svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; gap: 18px; } }

/* พื้นที่สื่อ (การ์ดบริการ) — รูปตามสัดส่วนจริง ไม่ครอป */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(0, 28, 77, .35); }
.card-pic { background: var(--mist); }
.card-pic img { width: 100%; }
.card-body { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { font-size: 16px; line-height: 1.45; }
.card-body p { color: var(--slate); font-size: 14.5px; line-height: 1.6; }
.card-body { flex: 1; }
.card-btn { margin-top: auto; align-self: flex-start; padding: 8px 14px; min-height: 44px; font-size: 14px; gap: 6px; }
.card-btn .i-arrow { width: 16px; height: 16px; }
.contact-note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.chip { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--royal); background: var(--mist); padding: 3px 10px; border-radius: 999px; }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card-body { padding: 20px 22px 26px; gap: 8px; }
  .card-body h3 { font-size: 19px; }
  .card-body p { font-size: 15.5px; }
}

/* รายการแนวนอน */
.rows { display: grid; gap: 16px; }
.row-item { display: grid; gap: 18px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 0 0 1px var(--line); }
.row-pic img { border-radius: 10px; width: 100%; }
.row-text { display: flex; flex-direction: column; gap: 8px; align-self: center; padding: 4px 6px 10px; }
.row-no { font-size: 14px; font-weight: 700; color: var(--ocean); letter-spacing: .08em; }
.row-text h3 { font-size: clamp(20px, 2.6vw, 26px); }
.row-text p { color: var(--slate); }
.row-text .btn { align-self: flex-start; margin-top: 8px; }
@media (min-width: 768px) {
  .rows { gap: 22px; }
  .row-item { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding: 18px; }
  .row-item:nth-child(even) .row-pic { order: 2; }
  .row-text { padding: 12px 20px; }
}

/* ผลงาน ก่อน/หลัง — พื้นเข้ม */
.gallery-sec { background: var(--navy); color: #fff; }
.compares { display: grid; gap: 28px; }
.compare-card { margin: 0; }
.compare { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); touch-action: pan-y; }
.compare > img, .compare-before img { width: 100%; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before img { height: 100%; object-fit: cover; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001C4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible + .x, .compare:focus-within { outline: 2px solid var(--sky); outline-offset: 3px; }
.tag { position: absolute; top: 12px; z-index: 2; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; pointer-events: none; }
.tag-before { left: 12px; background: rgba(0, 28, 77, .78); color: #fff; }
.tag-after { right: 12px; background: var(--ocean); color: #fff; }
.compare-card figcaption { padding-top: 16px; }
.compare-card h3 { font-size: 20px; }
.compare-card p { color: rgba(255, 255, 255, .7); font-size: 15.5px; margin: 4px 0 0; }
.compare-card .compare-what { color: var(--sky); font-weight: 500; }
@media (min-width: 768px) { .compares { grid-template-columns: 1fr 1fr; gap: 44px 32px; } }

.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 48px; align-items: start; }
.gal-item { margin: 0; }
.gal-item a { display: block; border-radius: 12px; overflow: hidden; }
.gal-item img { width: 100%; transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { padding-top: 12px; }
.gal-item h3 { font-size: 16px; }
.gal-item p { font-size: 14.5px; color: rgba(255, 255, 255, .68); margin-top: 4px; }
@media (min-width: 768px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 28px; } .gal-item h3 { font-size: 18px; } }
.fineprint { margin-top: 36px; font-size: 14px; color: rgba(255, 255, 255, .55); }

/* คำถามที่พบบ่อย */
.faq-wrap { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; } .faq-wrap .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--mist); position: relative; transition: background .2s, transform .3s var(--ease); }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px; }
.plus::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
details[open] .plus { background: var(--navy); }
details[open] .plus::before, details[open] .plus::after { background: #fff; }
details[open] .plus::after { transform: rotate(0); }
.faq-a { color: var(--slate); padding: 0 52px 24px 0; margin: 0; }

/* แถบชวนติดต่อ */
.cta-band { position: relative; overflow: hidden; }
.cta-dark { background: linear-gradient(120deg, var(--navy) 0%, #0a2f72 60%, var(--royal) 130%); color: #fff; }
.cta-dark::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.cta-soft { background: var(--mist); }
.cta-inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta-band h2 { font-size: clamp(24px, 4vw, 38px); max-width: 22em; }
@media (min-width: 900px) { .cta-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ติดต่อ */
.contact { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.contact-note { color: var(--slate); margin-bottom: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 0 0 1px var(--line); }
.contact-list li > svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--navy); color: var(--sky); }
.contact-list small { display: block; color: var(--slate); font-size: 13.5px; line-height: 1.4; }
.contact-list a, .contact-list span { font-size: 18px; font-weight: 600; text-decoration: none; color: var(--navy); word-break: break-word; }
.contact-list a:hover { color: var(--royal); }
.hours { list-style: none; padding: 0; margin: 20px 0 0; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.closed { color: #b42318; }
.lead { background: #fff; border-radius: 20px; padding: 26px 22px; display: grid; gap: 16px; box-shadow: 0 1px 2px rgba(0, 28, 77, .06), 0 24px 60px -30px rgba(0, 28, 77, .4); }
.lead h3 { font-size: 21px; }
.lead label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.lead input, .lead textarea {
  width: 100%; font: 16px/1.5 var(--font); color: var(--ink); background: var(--paper);
  border: 1.5px solid #d3dfee; border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.lead input:focus, .lead textarea:focus { outline: 0; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(28, 143, 227, .15); }
.lead textarea { min-height: 120px; resize: vertical; }
.lead .btn { justify-self: start; }
.lead .hp { position: absolute; left: -9999px; }
.msg { margin: 0; font-size: 15px; }
.msg.ok { color: #067647; }
.msg.bad { color: #b42318; }
@media (min-width: 768px) { .lead { padding: 36px; } }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.map-wrap { margin-top: 32px; }

/* เสียงจากลูกค้า */
.quotes { display: grid; gap: 16px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption span span { display: block; color: var(--slate); font-size: 14px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: #00143a; color: rgba(255, 255, 255, .72); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15.5px; }
.foot-top { display: grid; gap: 36px; }
.foot-logo { height: 54px; width: auto; margin-bottom: 18px; }
.foot-tag { color: #fff; font-weight: 600; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col b { color: #fff; font-size: 15px; margin-bottom: 4px; }
.foot a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.foot a:hover { color: var(--sky); }
.social { display: flex; gap: 10px; }
.social svg { width: 22px; height: 22px; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -11px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; } }

/* ปุ่มลอยมือถือ: ไลน์ + โทร */
.float-contact {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
}
.float-contact a {
  height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0, 20, 58, .5);
}
.float-contact svg { width: 22px; height: 22px; }
.fl-line { background: #06C755; color: #fff; }
.fl-call { background: var(--navy); color: #fff; }
@media (max-width: 899px) { body { padding-bottom: 80px; } }
@media (min-width: 900px) { .float-contact { display: none; } }
body.nav-open .float-contact { display: none; }

/* กล่องดูรูปเต็ม */
.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.light::backdrop { background: rgba(0, 20, 58, .88); }
.light img { max-width: 94vw; max-height: 86vh; border-radius: 10px; }
.light button { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }

/* อนิเมชันปรากฏตอนเลื่อนถึง — ไม่มี JS = แสดงทันที */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* พื้นที่กดอย่างน้อย 44px (ตัวตรวจ qa) */
.hero-dots { bottom: 6px; }
.hero-dots button, .hero-dots button[aria-current="true"] { height: 44px; background: none; position: relative; }
.hero-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: background .3s; }
.hero-dots button[aria-current="true"]::before { background: var(--sky); }
.foot-col { gap: 0; }
.foot-col a { min-height: 44px; display: inline-flex; align-items: center; }
.compare input { font-size: 16px; }
.hero-dots button { width: 44px; }
.hero-dots button::before { left: 6px; right: 6px; }
.hero-dots button[aria-current="true"] { width: 60px; }

/* ภาษาไทย: ตัวอักษรไม่ต่ำกว่า 14px และ line-height อย่างน้อย 1.4 กันสระชน */
h1, h2, h3, h4, .hero h1, .hero .h1 { line-height: 1.45; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.btn, .chip, .tag, .row-no, .contact-list small, .stat p, .card-body p { line-height: 1.5; }
.chip, .tag, .contact-list small { font-size: 14px; }

/* ---------- บทความ ---------- */
.a-wrap { max-width: 760px; padding-top: calc(var(--nav-h) + 20px); }
.crumbs { font-size: 14px; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--royal); }
.a-wrap h1 { font-size: clamp(28px, 5vw, 42px); }
.a-meta { color: var(--slate); font-size: 14.5px; margin-top: 10px; }
.a-cover { margin: 28px 0; }
.a-cover img { border-radius: var(--radius); }
.a-lead { font-size: 19px; color: #2b3d57; }
.a-toc { background: var(--mist); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.a-body h2 { font-size: 26px; margin: 36px 0 14px; }
.a-body h3 { font-size: 21px; margin: 28px 0 10px; }
.a-body blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--ocean); background: #fff; border-radius: 0 12px 12px 0; }
.a-fig { margin: 24px 0; }
.a-fig img { border-radius: 12px; }
.a-fig figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.a-embed { margin: 40px 0; }
.a-embed h3 { margin-bottom: 14px; }
.a-cta { margin: 36px 0; padding: 26px; background: var(--navy); color: #fff; border-radius: var(--radius); }
.a-cta .btn { margin-top: 12px; background: #fff; color: var(--navy); }
