:root {
  --ef-ink: #10221a;
  --ef-muted: #617066;
  --ef-soft: #f4f8f0;
  --ef-panel: #ffffff;
  --ef-line: rgba(16, 34, 26, 0.12);
  --ef-green: #2f8f55;
  --ef-green-dark: #145a38;
  --ef-mint: #7bdc98;
  --ef-amber: #f4b63f;
  --ef-blue: #2f74d0;
  --ef-teal: #319a95;
  --ef-night: #08130f;
  --ef-night-2: #0d241a;
  --ef-shadow: 0 20px 60px rgba(12, 28, 19, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ef-soft);
  color: var(--ef-ink);
  font-family: "Noto Sans Thai", "Tahoma", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .ef-header {
  top: 32px;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.energyfusion-site,
.energyfusion-site * {
  box-sizing: border-box;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ef-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 12px 40px;
  border-bottom: 1px solid rgba(16, 34, 26, 0.08);
  background: rgba(249, 252, 247, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(12, 28, 19, 0.08);
}

.ef-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ef-ink);
  text-decoration: none;
}

.ef-brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ef-blue), var(--ef-green));
  box-shadow: 0 10px 26px rgba(47, 143, 85, 0.26);
}

.ef-brand__mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ef-brand__text {
  display: grid;
  gap: 0;
  min-width: 0;
}

.ef-brand__text strong {
  overflow: hidden;
  font-size: 1.22rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ef-brand__text strong span {
  color: var(--ef-amber);
}

.ef-brand__text small {
  overflow: hidden;
  color: var(--ef-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ef-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.ef-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #26372e;
  font-weight: 700;
  text-decoration: none;
}

.ef-nav a:hover,
.ef-nav a:focus-visible {
  background: rgba(47, 143, 85, 0.1);
  color: var(--ef-green-dark);
}

.ef-header__actions,
.ef-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ef-button,
.ef-link-button,
.ef-product-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.ef-button:hover,
.ef-link-button:hover,
.ef-product-card button:hover {
  transform: translateY(-1px);
}

.ef-button span[aria-hidden="true"] {
  margin-right: 6px;
}

.ef-button--ghost {
  border-color: rgba(244, 182, 63, 0.52);
  color: #a4670c;
  background: rgba(255, 255, 255, 0.76);
}

.ef-button--solid,
.ef-button--green {
  color: #ffffff;
  background: linear-gradient(135deg, #3ba35d, #1f6e43);
  box-shadow: 0 14px 28px rgba(31, 110, 67, 0.24);
}

.ef-button--amber {
  color: #2f2110;
  background: linear-gradient(135deg, #ffd26d, var(--ef-amber));
  box-shadow: 0 14px 30px rgba(244, 182, 63, 0.26);
}

.ef-link-button {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ef-link-button--dark {
  border-color: rgba(16, 34, 26, 0.18);
  color: var(--ef-ink);
  background: #ffffff;
}

.ef-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--ef-line);
  border-radius: 8px;
  color: var(--ef-ink);
  background: #ffffff;
}

.ef-nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ef-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background-image: var(--hero-image);
  background-position: center right;
  background-size: cover;
  isolation: isolate;
}

.ef-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.22;
}

.ef-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 182, 63, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(3, 9, 14, 0.94) 0%, rgba(6, 20, 21, 0.72) 48%, rgba(12, 42, 28, 0.22) 100%);
}

.ef-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: 46px;
  width: min(1280px, calc(100% - 80px));
  min-height: inherit;
  margin: 0 auto;
  padding: 54px 0 40px;
  align-items: end;
}

.ef-hero__copy {
  min-width: 0;
}

.ef-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.ef-pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(13, 36, 26, 0.54);
  font-size: 0.82rem;
  font-weight: 800;
}

.ef-kicker {
  margin: 0 0 10px;
  color: var(--ef-amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ef-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 2.9rem;
  line-height: 1.14;
  font-weight: 950;
}

.ef-hero__lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
}

.ef-hero__actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.ef-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 18px;
  max-width: 760px;
  margin-top: 36px;
}

.ef-stats span {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.ef-stats strong {
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
}

.ef-solution-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ef-mini-card {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(13, 36, 26, 0.56);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.ef-mini-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.ef-mini-card strong {
  font-size: 1.12rem;
}

.ef-mini-card span:not(.ef-icon) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.ef-mini-card--solar {
  background: rgba(77, 52, 16, 0.58);
}

.ef-mini-card--iot {
  background: rgba(10, 38, 67, 0.58);
}

.ef-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.ef-icon svg {
  width: 24px;
  height: 24px;
}

.ef-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ef-section {
  padding: 86px 40px;
}

.ef-solutions,
.ef-products,
.ef-trust {
  background: #fbfdf8;
}

.ef-section__head,
.ef-solution-grid,
.ef-product-layout,
.ef-trust-grid {
  width: min(1280px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.ef-section__head {
  max-width: 820px;
  margin-bottom: 34px;
  text-align: center;
}

.ef-section__head--split {
  display: flex;
  max-width: 1280px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.ef-section__head h2,
.ef-calculator h2,
.ef-quote h2 {
  margin: 0;
  color: var(--ef-ink);
  font-size: 2.7rem;
  line-height: 1.14;
}

.ef-section__head p:not(.ef-kicker),
.ef-calculator__copy > p,
.ef-quote__intro > p {
  margin: 14px 0 0;
  color: var(--ef-muted);
  font-size: 1.06rem;
}

.ef-solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ef-solution-card,
.ef-product-card,
.ef-project-grid article,
.ef-trust-grid div,
.ef-calc-card,
.ef-quote-form {
  border: 1px solid var(--ef-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(12, 28, 19, 0.08);
}

.ef-solution-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.ef-card-label,
.ef-product-card span,
.ef-project-grid span {
  color: var(--ef-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ef-solution-card h3,
.ef-product-card h3,
.ef-project-grid h3 {
  margin: 0;
  color: var(--ef-ink);
  font-size: 1.22rem;
  line-height: 1.28;
}

.ef-solution-card p,
.ef-product-card p,
.ef-project-grid p {
  margin: 0;
  color: var(--ef-muted);
}

.ef-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ef-chip-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #24513a;
  background: rgba(47, 143, 85, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
}

.ef-solution-card a {
  width: fit-content;
  color: var(--ef-green-dark);
  font-weight: 900;
  text-decoration: none;
}

.ef-calculator {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(360px, 540px);
  justify-content: center;
  gap: 54px;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 0%, rgba(244, 182, 63, 0.16), transparent 34%),
    linear-gradient(135deg, #07120f, #123326);
}

.ef-calculator h2 {
  color: #ffffff;
}

.ef-calculator__copy > p {
  color: rgba(255, 255, 255, 0.72);
}

.ef-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.ef-metric-row span {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.ef-metric-row strong {
  color: #ffffff;
  font-size: 1.3rem;
}

.ef-calc-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ef-ink);
}

.ef-calc-card label,
.ef-quote-form label {
  display: grid;
  gap: 7px;
  color: #21352a;
  font-weight: 800;
}

.ef-calc-card input,
.ef-calc-card select,
.ef-quote-form input,
.ef-quote-form select,
.ef-quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 34, 26, 0.16);
  border-radius: 8px;
  color: var(--ef-ink);
  background: #f8fbf5;
  outline: none;
}

.ef-quote-form textarea {
  resize: vertical;
}

.ef-calc-card input:focus,
.ef-calc-card select:focus,
.ef-quote-form input:focus,
.ef-quote-form select:focus,
.ef-quote-form textarea:focus {
  border-color: rgba(47, 143, 85, 0.62);
  box-shadow: 0 0 0 4px rgba(47, 143, 85, 0.12);
}

.ef-calc-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ef-calc-results span {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 13px;
  border-radius: 8px;
  background: #eef7ed;
}

.ef-calc-results small {
  color: var(--ef-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ef-calc-results strong {
  color: var(--ef-green-dark);
  font-size: 1rem;
  line-height: 1.28;
}

.ef-calc-card > p {
  margin: 0;
  color: var(--ef-muted);
  font-size: 0.85rem;
}

.ef-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.ef-product-media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8df;
  box-shadow: var(--ef-shadow);
}

.ef-product-media img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.ef-product-media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(5, 18, 14, 0.68);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 800;
}

.ef-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ef-product-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.ef-product-card button {
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--ef-green-dark);
}

.ef-projects {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 18, 15, 0.94), rgba(20, 90, 56, 0.9)),
    url("../images/hero-smart-energy.jpg") center / cover;
}

.ef-projects .ef-section__head h2 {
  color: #ffffff;
}

.ef-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.ef-project-grid article {
  padding: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.ef-project-grid h3,
.ef-project-grid span {
  color: #ffffff;
}

.ef-project-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.ef-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ef-trust-grid div {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.ef-trust-grid strong {
  color: var(--ef-green-dark);
  font-size: 1.08rem;
}

.ef-trust-grid span {
  color: var(--ef-muted);
}

.ef-quote {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(360px, 620px);
  justify-content: center;
  gap: 54px;
  background: #eef6eb;
}

.ef-quote__intro ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.ef-quote__intro li {
  position: relative;
  padding-left: 28px;
  color: #254232;
  font-weight: 800;
}

.ef-quote__intro li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ef-amber);
  content: "";
}

.ef-quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.ef-full {
  grid-column: 1 / -1;
}

.ef-form-message {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #155035;
  background: rgba(47, 143, 85, 0.12);
  font-weight: 800;
}

.ef-form-message.is-visible {
  display: block;
}

.ef-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: 28px;
  padding: 48px 40px 30px;
  color: rgba(255, 255, 255, 0.74);
  background: #07120f;
}

.ef-footer > * {
  min-width: 0;
}

.ef-brand--footer {
  color: #ffffff;
}

.ef-footer p {
  max-width: 430px;
  margin: 16px 0 0;
}

.ef-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.ef-footer a,
.ef-footer span {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.ef-footer a:hover {
  color: #ffffff;
}

.ef-footer__legal {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .ef-header {
    grid-template-columns: auto auto;
  }

  .ef-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-self: end;
  }

  .ef-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--ef-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--ef-shadow);
  }

  .ef-nav.is-open {
    display: flex;
  }

  .ef-nav a {
    justify-content: center;
  }

  .ef-header__actions {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .ef-hero__inner {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .ef-solution-dock {
    max-width: 780px;
  }

  .ef-solution-grid,
  .ef-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ef-calculator,
  .ef-quote,
  .ef-product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.admin-bar .ef-header {
    top: 46px;
  }

  .ef-header {
    padding: 10px 18px;
  }

  .ef-header__actions {
    display: none;
  }

  .ef-hero {
    min-height: auto;
  }

  .ef-hero__inner {
    width: min(100% - 36px, 720px);
    padding: 52px 0 42px;
  }

  .ef-hero h1 {
    font-size: 2.45rem;
  }

  .ef-hero__lead {
    font-size: 1.08rem;
  }

  .ef-stats,
  .ef-solution-dock,
  .ef-metric-row,
  .ef-calc-results,
  .ef-product-grid,
  .ef-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ef-section {
    padding: 68px 22px;
  }

  .ef-section__head--split {
    display: grid;
  }

  .ef-section__head h2,
  .ef-calculator h2,
  .ef-quote h2 {
    font-size: 2.15rem;
  }

  .ef-product-media img {
    min-height: 340px;
  }

  .ef-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 640px) {
  .ef-brand__text strong {
    font-size: 1rem;
  }

  .ef-brand__text small {
    max-width: 180px;
  }

  .ef-hero h1 {
    font-size: 2.08rem;
  }

  .ef-hero__actions,
  .ef-button,
  .ef-link-button {
    width: 100%;
  }

  .ef-stats,
  .ef-solution-dock,
  .ef-solution-grid,
  .ef-metric-row,
  .ef-calc-results,
  .ef-product-grid,
  .ef-project-grid,
  .ef-trust-grid,
  .ef-quote-form,
  .ef-footer {
    grid-template-columns: 1fr;
  }

  .ef-mini-card {
    min-height: 0;
  }

  .ef-section__head h2,
  .ef-calculator h2,
  .ef-quote h2 {
    font-size: 1.85rem;
  }

  .ef-product-media img {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
