/* lumeplus.net: FASAILUME LIMITED PARTNERSHIP / LUME+ EV charging */
:root {
  --sky: #58a8e3;
  --blue: #1f78bd;
  --navy: #1d3557;
  --ink: #12233b;
  --night: #0d1726;
  --neon: #4fd8ff;
  --bg: #f4f8fc;
  --card: #ffffff;
  --line: #e1e8f0;
  --muted: #5d6b7e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Leelawadee UI", "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); }
img { max-width: 100%; }

/* Thai / English: only the chosen language is shown */
html[data-lang="th"] [lang="en"]:not(html),
html[data-lang="en"] [lang="th"]:not(html) { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 23, 38, 0.92); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #cfe2f3; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: #cfe2f3; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--neon); color: var(--night); font-weight: 700; }
@media (max-width: 720px) { .nav { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero { background: radial-gradient(1200px 500px at 70% -10%, #1b3b63 0%, var(--night) 60%); color: #fff; padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.2; margin: 0 0 14px; }
.hero p.lead { font-size: 18px; color: #cfe2f3; margin: 0 0 24px; max-width: 34em; }
.hero .logo { justify-self: center; width: min(280px, 70vw); border-radius: 56px; box-shadow: 0 0 60px rgba(79, 216, 255, 0.35); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; font-weight: 600; font-size: 15px; }
.badge small { display: block; font-weight: 400; color: #9fb7cf; font-size: 12px; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero p.lead { margin-inline: auto; } .badges { justify-content: center; } .hero .logo { grid-row: 1; width: 180px; border-radius: 40px; } }

/* sections */
section { padding: 56px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; color: var(--navy); }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 46em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.step { font-weight: 800; color: var(--blue); font-size: 14px; letter-spacing: 0.06em; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-size: 44px; color: var(--blue); line-height: 1; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }

.notice { display: none; background: #eaf7fd; border: 1px solid var(--sky); border-radius: 14px; padding: 16px 18px; margin: 24px auto 0; max-width: 1000px; color: var(--ink); }

/* text pages */
.page { max-width: 820px; margin: 0 auto; padding: 40px 20px 64px; }
.page h1 { font-size: clamp(26px, 4vw, 34px); color: var(--navy); margin: 0 0 6px; }
.page h2 { font-size: 22px; margin: 32px 0 8px; }
.page h3 { font-size: 17px; margin: 22px 0 4px; color: var(--navy); }
.page .card + .card { margin-top: 14px; }
.muted { color: var(--muted); font-size: 14px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 8px 0 2px; color: var(--muted); }

/* footer */
footer { background: var(--night); color: #9fb7cf; padding: 36px 0; font-size: 14px; }
footer .wrap { display: grid; gap: 20px; grid-template-columns: 2fr 1fr 1fr; }
footer b { color: #fff; }
footer a { color: #cfe2f3; text-decoration: none; display: block; margin: 2px 0; }
footer a:hover { color: #fff; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }

/* features */
section#price { background: var(--bg); }
.grid.features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card.feature .fi { font-size: 28px; line-height: 1; margin-bottom: 8px; }

/* chat box */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 6px 20px rgba(13, 23, 38, 0.35); cursor: pointer; }
.chat-fab:hover { background: #1a6aa8; }
.chat-fab-ico { font-size: 18px; line-height: 1; }
.chat-dot { position: absolute; top: 6px; right: 8px; width: 11px; height: 11px; border-radius: 50%; background: #ff4d4f; border: 2px solid #fff; }
.chat-dot[hidden] { display: none; }
.chat-panel { position: fixed; right: 18px; bottom: 84px; z-index: 50; width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 16px 48px rgba(13, 23, 38, 0.35); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--night); color: #fff; }
.chat-x { background: none; border: 0; color: #cfe2f3; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-body { padding: 14px 16px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-intro { margin: 0; color: var(--muted); font-size: 14px; }
.chat-form { display: flex; flex-direction: column; gap: 8px; }
.chat-form input, .chat-form textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; resize: vertical; }
.chat-form input:focus, .chat-form textarea:focus { outline: 2px solid rgba(88, 168, 227, 0.35); border-color: var(--sky); }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-note { margin: 0; font-size: 12px; color: var(--muted); }
.chat-err { margin: 0; font-size: 13px; color: #c0392b; min-height: 0; }
.chat-err:empty { display: none; }
.chat-send { align-self: flex-end; padding: 9px 22px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.chat-send:disabled { opacity: 0.6; cursor: default; }
.chat-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 15px; }
.chat-msg.me { align-self: flex-end; background: #e6f2fc; }
.chat-msg.staff { align-self: flex-start; background: #e7f6ec; }
.chat-meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-status { margin: 0; font-size: 13px; color: var(--muted); }
.chat-status:empty { display: none; }
.chat-new { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.chat-open-btn { margin: 4px 0 6px; padding: 9px 18px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 520px) { .chat-fab { right: 12px; bottom: 12px; } .chat-panel { right: 8px; left: 8px; width: auto; bottom: 74px; } }
