/* WaeCharge — Design 2 : Fresh Green & White */
:root {
  --green: #16a34a;
  --green-bright: #22c55e;
  --green-deep: #15803d;
  --green-ink: #052e16;
  --mint: #ecfdf5;
  --mint-2: #d1fae5;
  --lime: #a3e635;
  --brand-blue: #104090;
  --ink: #1c2b22;
  --muted: #5f7268;
  --line: #d9ece0;
  --bg: #ffffff;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(22, 163, 74, 0.14);
  --font-head: "Kanit", "Prompt", -apple-system, sans-serif;
  --font-body: "Sarabun", "Noto Sans Thai", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* language toggle */
body[data-lang="th"] .lang-en { display: none !important; }
body[data-lang="en"] .lang-th { display: none !important; }

img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, .btn { font-family: var(--font-head); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; gap: 24px;
  border-bottom: 3px solid var(--mint-2);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--brand-blue); }
.brand-name .accent { color: var(--brand-blue); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 9px 18px; border-radius: 999px; font-family: var(--font-head);
}
.main-nav a:hover { background: var(--mint); color: var(--green-deep); text-decoration: none; }
.main-nav a.active { background: var(--mint-2); color: var(--green-deep); }

.nav-cta {
  background: var(--green); color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}
.nav-cta:hover { background: var(--green-deep) !important; }

.lang-switch {
  display: flex; background: var(--mint); border-radius: 999px; overflow: hidden;
  font-size: 0.85rem; padding: 4px; gap: 2px;
}
.lang-switch button {
  border: 0; background: transparent; padding: 6px 14px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; color: var(--muted); border-radius: 999px;
}
.lang-switch button.on { background: #fff; color: var(--green-deep); box-shadow: 0 2px 8px rgba(5, 46, 22, 0.12); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--green-ink); }

/* ---------- hero (light & fresh) ---------- */
.hero {
  background:
    radial-gradient(700px 420px at 92% 0%, rgba(163, 230, 53, 0.28), transparent 65%),
    radial-gradient(800px 500px at -5% 100%, rgba(34, 197, 94, 0.16), transparent 60%),
    linear-gradient(180deg, #f2fdf6 0%, #ffffff 100%);
  padding: 84px 0 88px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "⚡"; position: absolute; right: 6%; top: 10%; font-size: 9rem;
  opacity: 0.10; transform: rotate(12deg);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 1.5px;
  color: var(--green-deep); margin-bottom: 20px;
  background: #fff; border: 2px solid var(--mint-2); padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.10);
  font-family: var(--font-head);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.22; font-weight: 700;
  color: var(--green-ink);
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--green-bright), #65a30d);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { margin-top: 22px; font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px; font-weight: 600;
  font-size: 1rem; transition: all 0.18s ease; text-decoration: none !important;
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--mint-2); color: var(--green-deep); background: #fff; }
.btn-ghost:hover { border-color: var(--green); background: var(--mint); }
.btn-outline { border: 2px solid var(--green); color: var(--green-deep); background: #fff; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* hero visual card */
.hero-card {
  background: #fff; border-radius: 28px; padding: 34px 30px;
  box-shadow: 0 24px 60px rgba(5, 46, 22, 0.14);
  border: 1px solid var(--line);
  position: relative;
}
.hero-card::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border-radius: 28px; background: linear-gradient(135deg, var(--mint-2), rgba(163, 230, 53, 0.35));
}
.hero-card .hc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-card .hc-head .dot {
  width: 46px; height: 46px; border-radius: 14px; background: var(--mint);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.hero-card .hc-head b { font-family: var(--font-head); color: var(--green-ink); display: block; line-height: 1.3; }
.hero-card .hc-head span { font-size: 0.8rem; color: var(--muted); }
.hc-bar { height: 14px; border-radius: 999px; background: var(--mint); overflow: hidden; margin: 10px 0 6px; }
.hc-bar i { display: block; height: 100%; width: 78%; border-radius: 999px; background: linear-gradient(90deg, var(--green-bright), var(--lime)); }
.hc-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.hc-rows { margin-top: 20px; display: grid; gap: 10px; }
.hc-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--mint); border-radius: 14px; padding: 12px 16px; font-size: 0.9rem;
}
.hc-row b { font-family: var(--font-head); color: var(--green-deep); }

/* stats as chips */
.hero-stats {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px;
}
.hero-stats .stat {
  background: #fff; border: 2px solid var(--mint-2); border-radius: 999px;
  padding: 12px 24px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.08);
}
.hero-stats .stat b { color: var(--green); font-family: var(--font-head); font-size: 1.05rem; }
.hero-stats .stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section.soft { background: linear-gradient(180deg, var(--mint) 0%, #f7fdf9 100%); }
.section-head { max-width: 740px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
  color: var(--green-deep); margin-bottom: 12px; background: var(--mint-2);
  padding: 6px 16px; border-radius: 999px; font-family: var(--font-head);
}
h2.section-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--green-ink); line-height: 1.3; font-weight: 600; }
.section-head p { margin-top: 14px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.22s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--mint-2); }
.card .icon {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; margin-bottom: 20px;
  background: var(--mint); border: 2px solid var(--mint-2);
}
.card h3 { font-size: 1.12rem; color: var(--green-ink); margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* product cards */
.product-card { display: flex; flex-direction: column; border-top: 5px solid var(--green-bright); }
.product-card .spec-tag {
  display: inline-block; align-self: flex-start; font-size: 0.78rem; font-weight: 600;
  color: #fff; background: var(--green); padding: 5px 14px;
  border-radius: 999px; margin-bottom: 16px; font-family: var(--font-head);
}
.product-card ul { list-style: none; margin-top: 16px; }
.product-card ul li {
  font-size: 0.9rem; color: var(--muted); padding: 7px 0 7px 26px; position: relative;
}
.product-card ul li::before {
  content: "🌿"; position: absolute; left: 0; font-size: 0.8rem; top: 9px;
}

/* check list */
.check-list { list-style: none; }
.check-list li { padding: 9px 0 9px 34px; position: relative; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 8px; background: var(--green-bright); color: #fff;
  font-size: 0.72rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--green-deep), var(--green) 55%, var(--green-bright));
  color: #fff; border-radius: 32px; padding: 60px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.12);
}
.cta-band::after {
  content: ""; position: absolute; right: 40px; bottom: -80px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(163, 230, 53, 0.25);
}
.cta-band h2 { font-size: 1.65rem; line-height: 1.35; font-weight: 600; position: relative; z-index: 1; }
.cta-band p { color: #dcfce7; margin-top: 8px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); box-shadow: 0 10px 24px rgba(5, 46, 22, 0.25); }
.cta-band .btn-primary:hover { background: var(--mint); }

/* ---------- legal / content pages ---------- */
.page-hero {
  background:
    radial-gradient(600px 300px at 90% 20%, rgba(163, 230, 53, 0.30), transparent 60%),
    linear-gradient(180deg, var(--mint) 0%, #ffffff 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--green-ink); font-weight: 600; }
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 660px; }

.content-page { padding: 64px 0 96px; }
.content-body { max-width: 840px; }
.content-body h2 {
  color: var(--green-ink); font-size: 1.35rem; margin: 44px 0 14px; font-weight: 600;
  padding-left: 16px; border-left: 5px solid var(--green-bright); border-radius: 2px;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { color: var(--green-ink); font-size: 1.05rem; margin: 26px 0 10px; }
.content-body p { margin-bottom: 14px; color: #33463b; }
.content-body ul, .content-body ol { margin: 0 0 16px 24px; color: #33463b; }
.content-body li { margin-bottom: 8px; }
.content-body .updated {
  display: inline-block; font-size: 0.85rem; color: var(--green-deep); margin-bottom: 32px;
  background: var(--mint); padding: 6px 16px; border-radius: 999px;
}
.notice-box {
  background: var(--mint); border: 2px dashed var(--green-bright);
  padding: 20px 24px; border-radius: 18px; margin: 24px 0;
}

/* steps */
.steps { list-style: none; counter-reset: step; margin: 24px 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 14px; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-family: var(--font-head); box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(var(--green-bright) 0 4px, transparent 4px 9px);
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--mint); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
}
.contact-info-card h3 { color: var(--green-ink); margin-bottom: 8px; font-weight: 600; }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--mint-2); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ci {
  font-size: 1.1rem; width: 40px; height: 40px; background: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row b { display: block; color: var(--green-ink); font-size: 0.9rem; font-family: var(--font-head); }
.contact-row span, .contact-row a { font-size: 0.92rem; color: var(--muted); }

/* social links */
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--mint); border: 1px solid var(--line); color: var(--brand-blue);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-link:hover { background: var(--brand-blue); color: #fff; text-decoration: none; }
.social-link svg { width: 19px; height: 19px; fill: currentColor; display: block; }
a.fb-inline { display: inline-flex; align-items: center; gap: 7px; }
a.fb-inline svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.contact-row .ci .ci-glyph { width: 18px; height: 18px; fill: var(--brand-blue); display: block; }

/* contact map */
.map-section { margin-top: 48px; }
.map-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 18px;
}
.map-head h3 { color: var(--green-ink); font-size: 1.3rem; margin-top: 8px; font-weight: 600; }
.map-embed {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--mint);
}
.map-embed iframe { display: block; width: 100%; height: 440px; border: 0; }

form.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow);
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--green-ink); margin-bottom: 6px; font-family: var(--font-head); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--mint-2); border-radius: 14px;
  font-family: inherit; font-size: 0.95rem; background: #fbfefc;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-bright); background: #fff;
}

/* FAQ */
.faq-item {
  border: 2px solid var(--mint-2); border-radius: 18px; margin-bottom: 14px; background: #fff;
  transition: border-color 0.15s ease;
}
.faq-item[open] { border-color: var(--green-bright); }
.faq-item summary {
  cursor: pointer; padding: 18px 24px; font-weight: 600; color: var(--green-ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-head);
}
.faq-item summary::after {
  content: "+"; font-size: 1.2rem; color: #fff; background: var(--green-bright);
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); font-size: 0.94rem; }

/* ---------- footer (deep green) ---------- */
.site-footer {
  background: var(--green-ink); color: #b7d9c3; padding: 72px 0 32px;
  border-top: 6px solid var(--green-bright);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b7d9c3; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand img { height: 44px; background: #fff; border-radius: 12px; padding: 4px 10px; }
.footer-brand p { font-size: 0.88rem; margin-top: 16px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(183, 217, 195, 0.2); margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px 24px; gap: 8px; border-bottom: 3px solid var(--mint-2);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .cta-band { padding: 42px 28px; }
  .map-embed iframe { height: 320px; }
  /* narrow phones: the logo mark carries the brand so the wordmark can go,
     which keeps the Facebook button from overlapping it */
  .brand-name { display: none; }
  .social-link { width: 34px; height: 34px; }
  .social-link svg { width: 17px; height: 17px; }
}

/* ---------- product detail pages ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--green-deep); }

.product-hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.product-img-frame {
  background: #fff; border-radius: 28px; padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.product-img-frame img { max-height: 420px; object-fit: contain; }

.power-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.power-chips .chip {
  background: var(--mint-2); color: var(--green-deep); font-family: var(--font-head);
  font-weight: 600; font-size: 0.9rem; padding: 7px 18px; border-radius: 999px;
}
.power-chips .chip.alt { background: #e8edf8; color: var(--brand-blue); }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge-row .badge {
  font-size: 0.78rem; font-weight: 600; color: var(--green-deep);
  border: 1.5px solid var(--mint-2); background: #fff; padding: 5px 14px; border-radius: 999px;
}

/* spec table */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th {
  background: var(--mint); color: var(--green-ink); font-family: var(--font-head);
  font-weight: 600; white-space: nowrap;
}
.spec-table tbody th {
  font-weight: 600; color: var(--green-ink); background: #fbfefc; width: 220px;
  font-family: var(--font-head); font-size: 0.88rem;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { color: #33463b; }
.spec-section td {
  background: var(--mint-2) !important; color: var(--green-deep) !important;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 1px; text-transform: uppercase;
}

/* product list cards link */
.card-link { margin-top: auto; padding-top: 18px; }
.card-link a { font-family: var(--font-head); font-weight: 600; color: var(--brand-blue); }
.card-link a::after { content: " →"; }

.product-list-img {
  height: 210px; display: flex; align-items: center; justify-content: center;
  background: var(--mint); border-radius: 16px; margin-bottom: 20px; padding: 16px;
}
.product-list-img img { max-height: 178px; object-fit: contain; }

@media (max-width: 920px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .spec-table tbody th { width: 160px; }
}

/* product gallery thumbnails */
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 84px; height: 84px; padding: 8px; cursor: pointer;
  border: 2px solid var(--mint-2); border-radius: 14px; background: #fff;
  transition: border-color 0.15s ease;
}
.gallery-thumbs button:hover { border-color: var(--green); }
.gallery-thumbs button.on { border-color: var(--green-bright); background: var(--mint); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
