/*
Theme Name: MEYULMOL Energy
Theme URI: https://meyulmol.com/
Author: MEYULMOL
Author URI: https://meyulmol.com/
Description: A light, technology-forward WordPress theme for MEYULMOL LiFePO4 energy storage systems.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: meyulmol
*/

:root {
  --ink: #0c1824;
  --muted: #5c6b79;
  --line: #dce4ea;
  --panel: #f3f7f9;
  --panel-deep: #eaf1f4;
  --white: #ffffff;
  --navy: #071722;
  --blue: #0565ff;
  --blue-dark: #0047bd;
  --lime: #a7f432;
  --max: 1240px;
  --radius: 20px;
  --shadow: 0 22px 70px rgba(16, 38, 55, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.section { padding: 104px 0; }
.section-sm { padding: 66px 0; }
.section-panel { background: var(--panel); }
.section-dark { background: var(--navy); color: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); }
.section-dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.section-dark .eyebrow::before, .hero .eyebrow::before { background: var(--lime); }
h1, h2, h3, h4 { margin: 0 0 20px; color: inherit; line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 6.6vw, 6.4rem); }
h2 { font-size: clamp(2.25rem, 4.2vw, 4.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 22px; }
.lead { color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.72; }
.section-dark .lead { color: #b9c8d2; }
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center .eyebrow { justify-content: center; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.button.ghost { background: transparent; border-color: rgba(255,255,255,.48); color: var(--white); }
.button.ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.button.light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button.light:hover { color: var(--blue-dark); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.text-link::after { content: "\2192"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(220,228,234,.85); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.brand-name { font-size: 1.15rem; font-weight: 900; letter-spacing: .13em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: #354451; font-size: .81rem; font-weight: 800; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--blue); }
.header-cta { min-height: 44px; padding: 10px 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }

.hero { position: relative; min-height: 710px; overflow: hidden; display: grid; align-items: center; background: var(--navy); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,17,27,.96) 0%, rgba(4,17,27,.89) 43%, rgba(4,17,27,.25) 76%, rgba(4,17,27,.44) 100%), var(--hero-image) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(167,244,50,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(167,244,50,.45) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to right, black, transparent 78%); }
.hero-inner { position: relative; z-index: 1; padding: 112px 0 124px; }
.hero-copy { max-width: 790px; }
.hero h1 span { color: var(--lime); }
.hero-copy > p { max-width: 670px; color: #c7d3da; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 58px; color: #afbec8; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { min-height: 104px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 34px; height: 34px; color: var(--blue); }
.trust-copy strong { display: block; font-size: .9rem; line-height: 1.25; }
.trust-copy small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.split { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(45px, 7vw, 100px); }
.split.reverse > :first-child { order: 2; }
.image-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel-deep); box-shadow: var(--shadow); }
.image-frame img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; }
.image-frame.contain img { object-fit: contain; padding: 32px; background: #eef3f5; }
.image-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.38); border-radius: inherit; pointer-events: none; }
.image-label { position: absolute; right: 18px; bottom: 18px; padding: 12px 16px; border-radius: 9px; background: rgba(7,23,34,.9); color: var(--white); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.check-list { display: grid; gap: 13px; margin: 30px 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; color: #334654; }
.check-list li::before { content: "\2713"; flex: 0 0 23px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e6f9c7; color: #326700; font-size: .72rem; font-weight: 900; }

.comparison-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.comparison { width: 100%; border-collapse: collapse; }
.comparison th, .comparison td { padding: 21px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.comparison thead th { background: var(--navy); color: var(--white); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.comparison thead th:nth-child(2) { color: var(--lime); }
.comparison tbody tr:last-child th, .comparison tbody tr:last-child td { border-bottom: 0; }
.comparison tbody th { width: 28%; font-size: .9rem; }
.comparison td { color: var(--muted); }
.comparison td:nth-child(2) { background: #f6faee; color: #264b0e; font-weight: 750; }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech-card { min-height: 285px; padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.tech-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tech-card .icon-box { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 42px; border-radius: 12px; background: var(--navy); color: var(--lime); }
.tech-card p { color: var(--muted); font-size: .95rem; }

.safety-shell { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: center; }
.safety-number { font-size: clamp(8rem, 19vw, 16rem); font-weight: 900; line-height: .72; letter-spacing: -.09em; color: var(--lime); }
.safety-word { margin-top: 28px; color: #b8c7d0; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #28404f; border-left: 1px solid #28404f; }
.safety-item { min-height: 135px; padding: 24px; border-right: 1px solid #28404f; border-bottom: 1px solid #28404f; }
.safety-item strong { display: block; margin-bottom: 7px; color: var(--white); }
.safety-item span { color: #9db0bc; font-size: .88rem; line-height: 1.55; }

.family-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.family-story { position: relative; padding: 46px 42px; border-right: 1px solid var(--line); }
.family-story:last-child { border-right: 0; }
.family-voltage { display: block; color: var(--blue); font-size: 3.4rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.family-story p { color: var(--muted); }

.scenario-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.scenario { position: relative; min-height: 270px; overflow: hidden; grid-column: span 4; border-radius: 16px; background: var(--navy); color: var(--white); }
.scenario:nth-child(1), .scenario:nth-child(5) { grid-column: span 8; }
.scenario img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; opacity: .68; transition: transform .5s ease, opacity .5s ease; }
.scenario:hover img { transform: scale(1.035); opacity: .53; }
.scenario::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,16,25,.94), transparent 70%); }
.scenario-copy { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 22px; }
.scenario-copy h3 { margin-bottom: 5px; font-size: 1.22rem; }
.scenario-copy p { margin: 0; color: #c7d3da; font-size: .84rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: process; }
.process-step { counter-increment: process; padding: 30px; border-top: 3px solid var(--blue); background: var(--panel); }
.process-step::before { content: "0" counter(process); display: block; margin-bottom: 44px; color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.process-step p { margin: 0; color: var(--muted); font-size: .9rem; }

.support-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 55px; align-items: center; padding: clamp(42px, 7vw, 80px); border-radius: 22px; background: var(--blue); color: var(--white); box-shadow: 0 28px 80px rgba(5,101,255,.22); }
.support-panel p { color: #dbe8ff; }
.support-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-stat { padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.08); }
.support-stat strong { display: block; font-size: 1.8rem; }
.support-stat span { font-size: .78rem; color: #dbe8ff; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 24px 0; cursor: pointer; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--blue); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { max-width: 760px; color: var(--muted); padding: 0 0 24px; }

.cta-band { position: relative; overflow: hidden; padding: 80px 0; background: var(--navy); color: var(--white); }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -80px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(167,244,50,.22), transparent 68%); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { max-width: 760px; margin: 0; }

.page-hero { padding: 98px 0 82px; background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(167,244,50,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(167,244,50,.5) 1px, transparent 1px); background-size: 62px 62px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.page-hero p { max-width: 760px; color: #c4d1d9; font-size: 1.16rem; }

.product-story { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(38px, 6vw, 84px); align-items: center; padding: 75px 0; border-bottom: 1px solid var(--line); }
.product-story:nth-child(even) .product-visual { order: 2; }
.product-visual { padding: 28px; border-radius: var(--radius); background: var(--panel); }
.product-visual img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.spec-list { display: grid; gap: 11px; margin: 25px 0 32px; padding: 0; list-style: none; }
.spec-list li { position: relative; padding-left: 21px; color: var(--muted); font-size: .93rem; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.voltage-tag { display: inline-flex; padding: 7px 10px; margin-bottom: 18px; border-radius: 5px; background: #e5efff; color: var(--blue-dark); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.content-prose { padding: 82px 0 100px; }
.content-prose h2 { margin-top: 60px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.content-prose h3 { margin-top: 36px; }
.content-prose p, .content-prose li { color: #455562; }
.content-prose ul, .content-prose ol { padding-left: 24px; }
.content-prose li { margin-bottom: 10px; }
.content-callout { padding: 30px; margin: 36px 0; border-left: 4px solid var(--blue); background: var(--panel); }
.content-callout p:last-child { margin-bottom: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 38px 0; }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.info-card p:last-child { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card { padding: 38px; border-radius: 16px; background: var(--panel); }
.contact-card a:not(.button) { font-weight: 800; }
.editor-content > *:first-child { margin-top: 0; }

.site-footer { padding-top: 70px; background: #06131c; color: #aebdc6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 44px; }
.footer-brand p { max-width: 350px; font-size: .9rem; }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.footer-title { margin-bottom: 18px; color: var(--white); font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aebdc6; font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding: 22px 0; border-top: 1px solid #1c303c; font-size: .76rem; }

@media (max-width: 1050px) {
  .site-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 20px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 20px 35px rgba(0,0,0,.08); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 10px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 30px), var(--max)); }
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(90deg, rgba(4,17,27,.96), rgba(4,17,27,.74)), var(--hero-image) 62% center/cover no-repeat; }
  .hero-inner { padding: 90px 0 96px; }
  .hero-meta { gap: 14px 20px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(even) { border-right: 0; }
  .trust-item:last-child { grid-column: 1 / -1; justify-content: center; }
  .split, .safety-shell, .support-panel, .product-story { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .product-story:nth-child(even) .product-visual { order: initial; }
  .family-band { grid-template-columns: 1fr; }
  .family-story { border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario, .scenario:nth-child(1), .scenario:nth-child(5) { grid-column: span 6; }
  .scenario img { min-height: 245px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .info-grid, .contact-grid { grid-template-columns: 1fr; }
  .comparison-wrap { overflow-x: auto; }
  .comparison { min-width: 680px; }
}

@media (max-width: 540px) {
  .brand-name { font-size: 1rem; }
  h1 { font-size: 2.85rem; }
  .hero-actions .button { width: 100%; }
  .tech-grid, .process-grid, .support-stats, .safety-grid { grid-template-columns: 1fr; }
  .scenario, .scenario:nth-child(1), .scenario:nth-child(5) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .product-story { padding: 55px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.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; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: var(--white); color: var(--ink); }
