/* wiratkarnbuncheeit.com — navy & white, solid / professional (ไม่มีสีชมพู) */
:root {
  --navy-900: #111c4e;
  --navy-800: #1b2a6b;
  --navy-700: #2e3192;   /* สีโลโก้ */
  --blue-500: #3d5bd9;
  --blue-100: #e4ebfa;
  --blue-50:  #f3f6fd;
  --red-600:  #c8161d;   /* สีเพชรในโลโก้ ใช้เฉพาะปุ่มโทร */
  --red-700:  #a51218;
  --ink:      #1a2033;
  --muted:    #525c72;
  --line:     #dbe2f0;
  --white:    #ffffff;
  --radius:   12px;
  --shadow:   0 1px 2px rgba(17, 28, 78, .06), 0 6px 20px rgba(17, 28, 78, .07);
  --font:     "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --font-h:   "Prompt", "Noto Sans Thai", Tahoma, sans-serif;
  --wrap:     1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.75 var(--font); color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }
h1, h2, h3 { font-family: var(--font-h); font-weight: 600; line-height: 1.35; color: var(--navy-900); margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; vertical-align: middle; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: #c4cce0; font-size: .95rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-800); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .65em 1.25em; border-radius: 999px;
  font: 600 1rem/1.3 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .8em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-call { background: var(--red-600); color: #fff; }
.btn-call:hover { background: var(--red-700); color: #fff; }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: #fff; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-800); }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.hdr { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); margin-right: auto; }
.brand img { width: 56px; height: 56px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { font-family: var(--font-h); font-size: 1.12rem; color: var(--navy-700); }
.brand-txt small { font-size: .8rem; color: var(--muted); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5em .85em; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--blue-50); color: var(--navy-700); }
.nav a[aria-current="page"] { color: var(--navy-700); background: var(--blue-100); }
.hdr-call { display: none; padding: .6em; }
.hdr-tels { display: flex; flex-direction: column; gap: 4px; }
.hdr-tel { display: flex; align-items: center; gap: 6px; background: var(--red-600); color: #fff; border-radius: 999px; padding: .2em .95em; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.hdr-tel:hover { background: var(--red-700); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy-800); cursor: pointer; }

@media (max-width: 980px) {
  .hdr-tels { display: none; }
  .hdr-call { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: .8em .9em; }
  .hdr { gap: 10px; min-height: 66px; }
  .brand img { width: 46px; height: 46px; }
  .brand-txt strong { font-size: .98rem; }
  .brand-txt small { font-size: .75rem; }
}

/* ---------- breadcrumb ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px 0; margin: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa5bd; }
.crumbs a { color: var(--muted); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #3d4fb8 0%, transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 64px 72px; }
.hero h1 { color: #fff; }
.hero .lead { color: #dbe3f8; font-size: 1.1rem; }
.hero .lead strong { color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #dbe3f8; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ic { color: #8fb0ff; }
.hero-art svg { width: 100%; max-width: 440px; display: block; margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.eyebrow { font-weight: 600; font-size: .9rem; letter-spacing: .04em; color: var(--blue-500); margin-bottom: .4em; text-align: center; }
.eyebrow.light { color: #a9bdf5; text-align: left; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 48px; gap: 24px; }
  .hero-art { max-width: 280px; margin-inline: auto; }
}

.page-hero { background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 760px; margin: 0; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--blue-50); }
.sec-title { text-align: center; max-width: 820px; margin-inline: auto; }
.sec-title.left { text-align: left; margin-inline: 0; }
.sec-title a { color: inherit; text-decoration-color: var(--blue-500); text-decoration-thickness: 2px; }
.sec-sub { text-align: center; color: var(--muted); max-width: 680px; margin: -4px auto 36px; }
.sec-title + .cards, .sec-title + .clients, .sec-title + .steps, .sec-title + .faq, .sec-title + .map, .sec-title + .checklist { margin-top: 32px; }
@media (max-width: 700px) { .section { padding: 52px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .cards-4, .cards-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-2, .cards-3, .cards-4, .cards-5 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.ic-wrap { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--blue-100); color: var(--navy-700); margin-bottom: 14px; }
.ic-wrap.lg { width: 64px; height: 64px; }
.svc-card { display: flex; flex-direction: column; border-top: 4px solid var(--navy-700); }
.svc-card h3 a { color: var(--navy-900); text-decoration: none; }
.svc-card h3 a:hover { color: var(--blue-500); }
.svc-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }

.why { text-align: center; padding: 8px; }
.why p { color: var(--muted); font-size: .96rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--navy-700); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-700); }
.timeline strong { display: block; font-family: var(--font-h); color: var(--navy-800); }
.timeline span { color: var(--muted); }

.clients { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.clients li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-weight: 500; }
.clients .ic { color: var(--navy-700); }
@media (max-width: 860px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .clients { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { text-align: center; padding: 10px; }
.steps .num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-700); color: #fff; font: 600 1.2rem var(--font-h); margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

.quote { position: relative; margin: 0; }
.quote > .ic { color: var(--blue-100); position: absolute; right: 20px; top: 18px; width: 40px; height: 40px; }
.quote blockquote { margin: 0 0 12px; font-size: 1.15rem; color: var(--navy-900); font-weight: 500; }
.quote figcaption { font-weight: 600; color: var(--navy-700); }
.quote figcaption span { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 4px; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--navy-700); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- services page ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill-nav a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; text-decoration: none; font-size: .95rem; }
.pill-nav a:hover { border-color: var(--navy-700); }
.svc-detail .for { background: var(--blue-50); border-left: 4px solid var(--navy-700); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.section.alt .svc-detail .for, .section.alt .for { background: #fff; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 7px 0; }
.checklist .ic { color: var(--navy-700); margin-top: 4px; }
.checklist.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
@media (max-width: 700px) { .checklist.cols-2 { grid-template-columns: 1fr; } }

.stat-box { display: grid; gap: 14px; }
.stat-box div { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 22px 26px; }
.stat-box strong { display: block; font: 600 1.7rem var(--font-h); }
.stat-box span { color: #c9d4f4; }

/* ---------- blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card h3 a { color: var(--navy-900); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-500); }
.post-card > p:not(.post-meta) { color: var(--muted); font-size: .96rem; flex: 1; }
.post-meta { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.tag { display: inline-block; background: var(--blue-100); color: var(--navy-700); border-radius: 999px; padding: 0 .7em; font-weight: 600; margin-right: 6px; }
.article { padding-top: 32px; }
.art-head h1 { margin-top: .3em; }
.tldr { background: var(--blue-50); border: 1px solid var(--line); border-left: 5px solid var(--navy-700); border-radius: 8px; padding: 18px 22px; margin: 8px 0 32px; }
.tldr strong { font-family: var(--font-h); color: var(--navy-700); }
.tldr p { margin: 4px 0 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--navy-800); color: #fff; font-weight: 600; }
.prose tr:nth-child(even) td { background: var(--blue-50); }
.art-faq { margin-top: 40px; }
.disclaimer { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; background: var(--blue-50); }
.art-cta h2 { font-size: 1.3rem; margin-bottom: .2em; }
.art-cta p { margin: 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 14px; }
.c-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.c-item .ic-wrap { margin: 0; }
.c-item small { display: block; color: var(--muted); }
.c-item strong { font-weight: 600; color: var(--navy-900); word-break: break-word; }
.c-item .addr { font-weight: 500; }
a.c-item:hover { border-color: var(--navy-700); }
.form-card h2 { font-size: 1.4rem; }
form label { display: block; font-weight: 500; margin-bottom: 14px; }
form input[type=text], form input[type=tel], form input[type=email], form select, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: .7em .9em; font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #c3cde3; border-radius: 8px; background: #fff; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--navy-700); outline: 3px solid var(--blue-100); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.req { color: var(--red-600); }
.consent-chk { display: flex; gap: 10px; font-weight: 400; font-size: .92rem; color: var(--muted); }
.consent-chk input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.alert ul { margin: 0; }
.alert.ok { background: #e6f5ec; color: #135c32; border: 1px solid #b8e0c6; }
.alert.err { background: #fdecec; color: #8a1116; border: 1px solid #f3c1c3; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--blue-100); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

.big404 { font: 600 5rem/1 var(--font-h); color: var(--blue-100); margin: 0; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #d3dcf6; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--navy-900); color: #dfe5f6; padding-top: 56px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.ftr { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 860px) { .ftr { grid-template-columns: 1fr; gap: 28px; } }
.ftr-logo img { background: #fff; border-radius: 14px; padding: 6px; width: 84px; height: 84px; }
.ftr-h { color: #fff; font-size: 1.1rem; }
.ftr-list { list-style: none; padding: 0; margin: 0; }
.ftr-list li { margin-bottom: 8px; }
.ftr-contact { font-style: normal; }
.ftr-contact p { display: flex; gap: 10px; margin-bottom: 10px; }
.ftr-contact .ic { color: #8fb0ff; margin-top: 5px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-block: 18px; font-size: .88rem; color: #aeb9d8; }
.ftr-bottom p { margin: 0; }
.ftr-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ftr-bottom a { color: #aeb9d8; }

/* mobile call bar */
.mbar { display: none; }
@media (max-width: 768px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 600; color: #fff; text-decoration: none; }
  .mbar-call { background: var(--red-600); }
  .mbar-line { background: #06c755; }
  .mbar-msg { background: var(--navy-700); }
  body { padding-bottom: 56px; }
}

/* cookie consent (แสดงเมื่อเปิด GA4) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 18px 20px; font-size: .94rem; }
.consent p { margin-bottom: 12px; }
.consent div { display: flex; gap: 10px; }
@media (max-width: 768px) { .consent { bottom: 72px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
.map + .center { margin-top: 20px; }

/* ---------- revise 2026-10-02 ---------- */
@media (min-width: 981px) and (max-width: 1180px) { .nav a { padding: .5em .6em; } .hdr { gap: 12px; } }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05a647; color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f5fc7; color: #fff; }
.eyebrow.left, .btn-row.left { text-align: left; justify-content: flex-start; }
.vid-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; max-width: 980px; }
.vid-frame { background: #000; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); max-width: 340px; width: 100%; margin-inline: auto; }
.vid-frame video { display: block; width: 100%; height: auto; aspect-ratio: 322 / 540; }
.video-sec .checklist { margin-bottom: 20px; }
@media (max-width: 760px) { .vid-grid { grid-template-columns: 1fr; gap: 28px; } .vid-frame { max-width: 300px; } }
.line-box img { display: block; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; }
.line-box .btn { margin-top: 6px; padding: .4em 1em; font-size: .92rem; }
.ftr-qr { margin: 16px 0 0; }
.ftr-qr img { background: #fff; border-radius: 10px; padding: 6px; width: 120px; height: 120px; }
.ftr-qr figcaption { font-size: .85rem; color: #aeb9d8; margin-top: 4px; }
.cta-actions .btn-lg { padding: .7em 1.3em; }
.nw { white-space: nowrap; }
.mbar { grid-template-columns: 1fr 1fr 1fr; } .mbar-call2 { background: var(--red-700) !important; } @media (max-width:768px){ .mbar a { gap: 6px; padding: 14px 6px; } }
