:root {
  --bg: #fff; --fg: #14282e; --muted: #5d7076; --line: #dfe8e4; --soft: #f1f6ee;
  --green: #22c55e; --green-d: #16a34a; --navy: #2a5d6b; --deep: #17383f;
  --font: "Noto Sans Thai", system-ui, sans-serif;
  --display: "Noto Sans Thai", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--fg); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
section.tint { background: var(--soft); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--deep); }
.sub { margin: 6px 0 24px; color: var(--muted); }
.eyebrow { margin: 0 0 10px; font-size: .78rem; letter-spacing: .18em; font-weight: 600; color: var(--green-d); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--green); background: var(--green); color: #fff; font: 500 1rem var(--font); cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-d); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(248,248,248,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.3rem; color: var(--deep); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.nav nav { display: flex; gap: 6px; font-size: .95rem; }
.nav nav a { padding: 8px 18px; border-radius: 10px; }
.nav nav a:hover { color: var(--green-d); }
.nav nav a.on { background: #d5f5e0; color: var(--green-d); font-weight: 500; }
.btn.sm { min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 500; white-space: nowrap; }

/* hero: full-bleed dark photo */
.hero { position: relative; color: #fff; padding: 0; min-height: min(calc(100vh - 72px), 760px); min-height: min(calc(100svh - 72px), 760px); display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(90deg, rgba(10,18,16,.82) 0%, rgba(10,18,16,.55) 55%, rgba(10,18,16,.35) 100%), url(img/station.jpg) center / cover; }
.hero-body { padding-top: 80px; padding-bottom: 48px; }
.badge-pill { display: inline-block; margin: 0 0 22px; padding: 6px 16px; border: 1px solid rgba(34,197,94,.6); border-radius: 999px; background: rgba(34,197,94,.18); color: #7ee2a3; font-size: .9rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; line-height: 1.1; color: #fff; }
.hero h1 span { color: var(--green); }
.lead { font-size: 1.15rem; color: #e1e7e4; margin: 22px 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.ghost-w { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn.ghost-w:hover { background: rgba(255,255,255,.15); }
.hero .btn { border-radius: 10px; min-height: 56px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-bottom: 0; border-radius: 22px 22px 0 0; text-align: center; }
.stats div { padding: 22px 12px; border-left: 1px solid rgba(255,255,255,.2); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 2rem; font-weight: 600; line-height: 1.2; }
.stats b small { font-size: 1rem; color: var(--green); font-weight: 500; }
.stats span { font-size: .9rem; color: #d3dad7; }

/* branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 36px; }
.branch { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.branch .pic { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #17383f, #2a5d6b); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; }
.branch .pic img { width: 100%; height: 100%; object-fit: cover; }
.branch .city { position: absolute; left: 20px; bottom: 16px; padding: 4px 16px; border-radius: 999px; background: var(--green); color: #fff; font: 500 .85rem var(--font); }
.branch .body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.branch h3 { font-size: 1.5rem; font-weight: 600; color: #0b1512; margin-bottom: 4px; }
.branch .row { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: .95rem; }
.branch .row i { font-style: normal; color: var(--green-d); flex: none; width: 1.3em; text-align: center; }
.branch .more { margin-top: auto; padding-top: 8px; color: var(--green-d); font-weight: 500; }
.branch.is-soon .pic .city { background: #f0b429; color: #3b2a00; }

/* service menu tiles (mirrors ev.baanporjai.com) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(23,56,63,.35); }
.tile .ic { font-size: 1.8rem; margin-bottom: 6px; }
.tile b { font-weight: 500; font-size: 1.05rem; color: var(--deep); }
.tile span:last-child { font-size: .88rem; color: var(--muted); }
.tile.soon { opacity: .6; border-style: dashed; background: transparent; }
.badge { position: absolute; top: 14px; right: 14px; font-size: .7rem; padding: 2px 10px; border-radius: 999px; background: #f0b429; color: #3b2a00; }

/* two-column sections */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.photo { width: 100%; border-radius: 24px; box-shadow: 0 20px 40px -22px rgba(23,56,63,.4); }
.info { margin: 0; display: grid; gap: 14px; }
.info div { padding: 14px 18px; border-left: 4px solid var(--green); background: var(--soft); border-radius: 0 14px 14px 0; }
.info dt { font-size: .8rem; color: var(--muted); }
.info dd { margin: 0; font-weight: 500; color: var(--deep); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px 14px; font-size: .92rem; color: var(--muted); }
.steps { padding-left: 1.2em; margin: 0 0 16px; display: grid; gap: 6px; }
.note { padding: 14px 16px; background: #fff7df; border-radius: 14px; font-size: .92rem; margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 600; margin-right: 10px; }
section#member .photo, section#rent .photo { max-height: 520px; object-fit: cover; }

footer { background: #0b0b0b; color: #b9c2be; padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr 2fr; gap: 40px; padding-bottom: 48px; }
footer .brand { color: #fff; }
.f-brand p { margin: 18px 0 20px; max-width: 24em; font-size: .95rem; }
footer h4 { margin: 0 0 20px; font-size: .95rem; font-weight: 500; color: #7c8682; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.f-links a:hover, footer a:hover { color: var(--green); }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.f-cols b { color: #fff; font-weight: 500; }
.f-cols p, .f-phone { margin: 8px 0 0; font-size: .92rem; }
.f-phone { margin-top: 28px; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid #1f2523; font-size: .85rem; color: #7c8682; }

@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; gap: 28px; }
  .nav nav { display: none; }
  .hero-body { padding-top: 56px; }
  .stats b { font-size: 1.5rem; }
  .stats span { font-size: .78rem; }
  section { padding: 40px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .f-cols { grid-template-columns: 1fr; }
}

/* why Chargekub */
.eyebrow-g { margin: 0 0 12px; color: var(--green-d); font-weight: 500; }
h2.big { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; color: #0b1512; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.wcard { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #e9f5ec; display: flex; flex-direction: column; }
.wcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wcard > div { padding: 24px 26px 28px; }
.tag { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #d0f0da; color: var(--green-d); font-size: .82rem; }
.wcard h3 { font-size: 1.3rem; font-weight: 600; margin: 14px 0 8px; color: #0b1512; }
.wcard p { margin: 0; color: var(--muted); font-size: .95rem; }

/* services two-column list */
.photo.sq { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 32px; }
.svc-list { display: grid; gap: 16px; margin: 0 0 28px; }
.svc { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.svc-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #e9f5ec; font-size: 1.5rem; }
.svc b { font-weight: 500; color: #0b1512; }
.svc p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.chip { font-style: normal; font-weight: 400; font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: #cfe9d8; color: #2f6b43; margin-left: 6px; }
.price-t { font-style: normal; font-size: .82rem; color: var(--green-d); margin-left: 4px; }

/* green call-to-action band */
.cta-band { background: var(--green); color: #fff; padding: 56px 0; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; }
.band p { margin: 8px 0 0; color: #e8fbee; }
.band-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.w { background: #fff; color: var(--green-d); border-color: #fff; border-radius: 10px; }
.btn.w:hover { background: #eafbf0; }
.btn.wo { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); border-radius: 10px; }
.btn.wo:hover { background: rgba(255,255,255,.15); }

/* facilities: image + 2x3 cards */
.fac { grid-template-columns: .9fr 1.1fr; gap: 56px; }
.fac-img { aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 32px; }
.fac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fac-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: #e4f3e8; }
.fac-card .svc-ic { background: #cfebd8; width: 46px; height: 46px; font-size: 1.3rem; }
.fac-card b { font-weight: 500; color: #0b1512; }
.fac-card p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
@media (max-width: 760px) { .fac { grid-template-columns: 1fr; gap: 28px; } .fac-grid { grid-template-columns: 1fr; } .fac-img { aspect-ratio: 4 / 3; } }

/* payment */
.center { text-align: center; }
.pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 40px auto 0; max-width: 900px; }
.pay-card { padding: 28px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.pay-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #e4f3e8; font-size: 1.5rem; margin-bottom: 14px; }
.pay-card b { display: block; font-weight: 500; color: #0b1512; }
.pay-card p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
#payment { background: #f0f7f2; }

/* click-to-zoom images */
section img:not(.no-zoom) { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5,10,8,.9); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; cursor: zoom-out; }
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.94); transition: transform .25s; cursor: zoom-out; }
.lb.open img { transform: scale(1); }
.lb button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.3); }

/* gentle motion */
.btn, .tile, .wcard, .branch, .svc, .fac-card, .pay-card, .photo { transition: transform .25s ease, box-shadow .25s ease, background .15s; }
.wcard:hover, .branch:hover, .pay-card:hover, .svc:hover, .fac-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -20px rgba(23,56,63,.4); }
.btn:hover { transform: translateY(-2px); }
.wcard img, .branch .pic img { transition: transform .5s ease; }
.wcard:hover img, .branch:hover .pic img { transform: scale(1.05); }
.wcard, .branch { overflow: hidden; }
.badge-pill::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-body > *, .stats { animation: rise .8s ease both; }
.hero-body > :nth-child(2) { animation-delay: .1s; } .hero-body > :nth-child(3) { animation-delay: .2s; } .hero-body > :nth-child(4) { animation-delay: .3s; } .stats { animation-delay: .45s; }
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease, box-shadow .25s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* review */
#review { background: #fff; }
.stars { font-size: 2.2rem; letter-spacing: .15em; color: #f5b400; margin: 6px 0 22px; }
.rv-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rv-btns .btn { border-radius: 10px; min-height: 54px; }

.f-social { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.sm.fb { background: #1877f2; border-color: #1877f2; }
.btn.sm.fb:hover { background: #0f63cf; }
.f-fb { margin: 8px 0 0; font-size: .92rem; }

/* dark mode (18:00-05:59 Thailand time, see the script in index.html) */
:root[data-theme="dark"] { color-scheme: dark; --bg: #1c2a28; --fg: #eef5f2; --muted: #b0c4bc; --line: #3a4d48; --soft: #233431; --deep: #eef5f2; --green-d: #4ade80; }
[data-theme="dark"] .nav { background: rgba(28,42,40,.92); }
[data-theme="dark"] .nav nav a.on { background: #2c5a40; color: #7ee2a3; }
[data-theme="dark"] .branch, [data-theme="dark"] .tile, [data-theme="dark"] .svc, [data-theme="dark"] .pay-card { background: #283a37; }
[data-theme="dark"] .tile.soon { background: transparent; }
[data-theme="dark"] .wcard, [data-theme="dark"] .fac-card { background: #2a3e3a; }
[data-theme="dark"] .tag, [data-theme="dark"] .chip, [data-theme="dark"] .svc-ic, [data-theme="dark"] .fac-card .svc-ic, [data-theme="dark"] .pay-ic { background: #2c4d3b; color: #7ee2a3; }
[data-theme="dark"] #payment { background: #20302d; }
[data-theme="dark"] #review { background: var(--bg); }
[data-theme="dark"] .note { background: #3a3518; color: #f3e7b0; }
[data-theme="dark"] h2.big, [data-theme="dark"] .wcard h3, [data-theme="dark"] .branch h3, [data-theme="dark"] .tile b, [data-theme="dark"] .svc b, [data-theme="dark"] .fac-card b, [data-theme="dark"] .pay-card b, [data-theme="dark"] .brand { color: var(--fg); }
[data-theme="dark"] footer .brand { color: #fff; }
[data-theme="dark"] .btn.ghost { color: #9fd4e0; border-color: #9fd4e0; }
[data-theme="dark"] .btn.ghost:hover { background: #9fd4e0; color: #1c2a28; }
[data-theme="dark"] .photo { box-shadow: 0 20px 40px -22px rgba(0,0,0,.7); }
[data-theme="dark"] .branch .pic { background: linear-gradient(135deg, #17383f, #2a5d6b); }
body { transition: background .4s, color .4s; }

/* mobile nav: keep the brand and the button from colliding */
.brand { white-space: nowrap; flex: none; }
.nav-cta { flex: none; }
.stats b { white-space: nowrap; }
@media (max-width: 760px) {
  .nav .wrap { height: 64px; gap: 10px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .nav-cta { min-height: 40px; padding: 0 14px; font-size: .9rem; }
  .stats b small { font-size: .8rem; }
}
@media (max-width: 400px) { .hide-sm { display: none; } .brand { font-size: 1rem; } }
[data-theme="dark"] footer { background: #16211f; }
[data-theme="dark"] .f-bottom { border-top-color: #2e3d39; }

/* theme switch button */
.nav-r { display: flex; align-items: center; gap: 10px; flex: none; }
.theme-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.theme-btn:hover { background: var(--soft); transform: rotate(12deg); }
.theme-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: inline; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (max-width: 760px) { .nav-r { gap: 8px; } .theme-btn { width: 40px; height: 40px; border-radius: 10px; } }

/* language switch button (TH / EN) */
.lang-btn { height: 44px; min-width: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 .85rem var(--font); letter-spacing: .04em; cursor: pointer; transition: background .2s; }
.lang-btn:hover { background: var(--soft); }
.lang-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 760px) { .lang-btn { height: 40px; min-width: 40px; border-radius: 10px; padding: 0 8px; } }
@media (max-width: 420px) {
  .nav .wrap { padding: 0 14px; gap: 8px; }
  .nav .brand { font-size: 1rem; gap: 6px; }
  .nav .brand img { width: 32px; height: 32px; }
  .nav-r { gap: 6px; }
  .lang-btn, .theme-btn { height: 36px; min-width: 36px; width: auto; border-radius: 9px; font-size: .8rem; padding: 0 8px; }
  .theme-btn { width: 36px; padding: 0; font-size: 1rem; }
  .nav .btn.nav-cta { min-height: 34px; padding: 0 10px; font-size: .8rem; border-radius: 9px; }
  .nav-cta::before { margin-right: 4px; }
}

.nav-cta { gap: 0; }
.nav-cta::before { content: "⚡"; margin-right: 6px; }
@media (max-width: 1080px) { .nav nav { display: none; } }
