/*
Theme Name: Linqiu Energy
Theme URI: https://www.linqiuscience.com/
Author: Linqiu Science
Description: A focused B2B energy storage inquiry theme.
Version: 1.0.3
Text Domain: linqiu-energy
*/

:root {
  --ink: #111817;
  --ink-soft: #394441;
  --paper: #f4f6f3;
  --white: #ffffff;
  --line: #d8ded9;
  --green: #55d66b;
  --green-dark: #183e28;
  --radius: 18px;
  --max: 1240px;
  --shadow: 0 24px 70px rgba(18, 37, 29, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.site-main { overflow: clip; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.section--white { background: var(--white); }
.section--dark { color: var(--white); background: var(--ink); }
.section--tight { padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 26px; height: 2px; background: var(--green); content: ""; }
.section--dark .eyebrow { color: #aeb9b4; }
h1, h2, h3 { margin: 0; line-height: .98; letter-spacing: -.045em; }
h1 { font-size: clamp(3.2rem, 7.2vw, 7rem); font-weight: 760; }
h2 { font-size: clamp(2.4rem, 5vw, 4.9rem); font-weight: 730; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 700; }
p { margin: 0; }
.lead { max-width: 690px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.section--dark .lead { color: #bac4bf; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: #0e2015;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { background: #74e485; transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(.99); }
.button--outline { border-color: rgba(255,255,255,.55); background: rgba(17,24,23,.28); color: var(--white); }
.button--outline:hover { background: var(--white); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.text-link::after { content: "\2197"; color: var(--green-dark); transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px,-3px); }

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { color: var(--ink); background: rgba(244,246,243,.94); box-shadow: 0 1px 0 rgba(17,24,23,.1); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.brand-mark::after { width: 11px; height: 11px; border-radius: 50%; background: var(--green); content: ""; }
.brand small { display: block; margin-top: -4px; opacity: .68; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { position: relative; font-size: .88rem; font-weight: 700; }
.nav a:not(.button)::after { position: absolute; bottom: -7px; left: 0; width: 0; height: 2px; background: var(--green); content: ""; transition: width .2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .button { min-height: 44px; padding-inline: 20px; color: #102016; }
.menu-toggle { display: none; width: 45px; height: 45px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: currentColor; }
.site-header.is-scrolled .menu-toggle { border-color: var(--line); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; content: ""; }

/* Hero */
.hero { position: relative; display: flex; min-height: 100dvh; align-items: flex-end; color: var(--white); background: #101817; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,13,14,.82) 0%, rgba(7,13,14,.48) 46%, rgba(7,13,14,.12) 78%), linear-gradient(0deg, rgba(7,13,14,.72) 0%, transparent 45%); content: ""; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; width: min(760px, 100%); padding: 180px 0 104px; }
.hero .eyebrow { color: #d7ded9; }
.hero h1 { max-width: 740px; }
.hero-copy { max-width: 620px; margin: 30px 0 38px; color: #dce3df; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-index { position: absolute; right: max(20px, calc((100vw - var(--max)) / 2)); bottom: 106px; z-index: 2; display: grid; grid-template-columns: repeat(3, auto); gap: 0; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: rgba(12,20,19,.45); backdrop-filter: blur(12px); }
.hero-index div { min-width: 135px; padding: 17px 20px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-index div:last-child { border: 0; }
.hero-index strong, .hero-index span { display: block; }
.hero-index strong { font-size: 1.2rem; }
.hero-index span { color: #b9c5bf; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.trust-row { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.trust-row > div { display: flex; min-height: 112px; align-items: center; padding: 22px 28px; border-right: 1px solid var(--line); }
.trust-row > div:first-child { padding-left: max(20px, calc((100vw - var(--max)) / 2)); font-weight: 800; }
.trust-row > div:last-child { border-right: 0; }
.trust-row span { color: var(--ink-soft); font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Content */
.split-head { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 80px; margin-bottom: 64px; }
.solutions-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.solution-card { position: relative; min-height: 420px; overflow: hidden; border-radius: var(--radius); background: #dde2df; }
.solution-card:first-child { grid-row: span 2; min-height: 858px; }
.solution-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.solution-card:hover img { transform: scale(1.035); }
.solution-card--product img { object-fit: contain; padding: 50px; }
.solution-card__body { position: absolute; right: 0; bottom: 0; left: 0; padding: 80px 34px 32px; color: var(--white); background: linear-gradient(transparent, rgba(7,13,12,.88)); }
.solution-card__body p { margin-top: 10px; color: #d4ddd8; }

.proof-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.proof-media { position: relative; min-height: 620px; overflow: hidden; border-radius: var(--radius); background: #dfe4e1; }
.proof-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.proof-panel { padding: 20px 0; }
.proof-list { margin: 45px 0 0; padding: 0; list-style: none; }
.proof-list li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 23px 0; border-top: 1px solid #36413e; }
.proof-list strong { color: var(--green); font-size: 1.65rem; }
.proof-list span { color: #c4cec9; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { display: flex; min-height: 500px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__media { display: grid; min-height: 310px; flex: 1; place-items: center; overflow: hidden; background: #e8ece9; }
.product-card__media img { max-height: 280px; object-fit: contain; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.045); }
.product-card__body { padding: 26px; }
.product-card__body small { color: #68736f; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card__body h3 { margin: 10px 0 14px; font-size: 1.5rem; }
.product-card__body p { color: var(--ink-soft); font-size: .92rem; }

.application-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; grid-template-rows: repeat(2, 280px); gap: 16px; margin-top: 60px; }
.application-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #dfe3e1; }
.application-grid figure:first-child { grid-row: span 2; }
.application-grid img { width: 100%; height: 100%; object-fit: cover; }
.application-grid figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 55px 24px 20px; color: var(--white); font-weight: 800; background: linear-gradient(transparent, rgba(8,14,13,.8)); }

.process { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 64px; border-top: 1px solid #36413e; }
.process-item { min-height: 235px; padding: 30px 28px 20px 0; border-right: 1px solid #36413e; }
.process-item + .process-item { padding-left: 28px; }
.process-item:last-child { border-right: 0; }
.process-item strong { display: block; margin-bottom: 55px; color: var(--green); font-size: .8rem; letter-spacing: .1em; }
.process-item h3 { margin-bottom: 14px; font-size: 1.45rem; }
.process-item p { color: #aeb9b4; font-size: .92rem; }

/* Inner pages */
.page-hero { position: relative; display: flex; min-height: 68dvh; align-items: flex-end; padding: 190px 0 85px; color: var(--white); background: var(--ink); }
.page-hero::after { position: absolute; right: -10vw; bottom: -40%; width: 48vw; height: 48vw; border: 1px solid rgba(85,214,107,.22); border-radius: 50%; box-shadow: 0 0 0 90px rgba(85,214,107,.03), 0 0 0 180px rgba(85,214,107,.02); content: ""; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { max-width: 940px; }
.page-hero .lead { margin-top: 28px; }
.category-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: 72px 0; border-top: 1px solid var(--line); }
.category-block__media { display: grid; min-height: 430px; place-items: center; overflow: hidden; border-radius: var(--radius); background: #e2e7e3; }
.category-block__media img { max-height: 400px; object-fit: contain; }
.spec-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 36px; margin: 32px 0 38px; padding: 0; list-style: none; }
.spec-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.projects-showcase { background: var(--white); }
.project-gallery__head { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 70px; margin-bottom: 48px; }
.project-gallery__head .lead { justify-self: end; }
.project-gallery__stage { position: relative; }
.project-gallery__viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: max(20px, calc((100vw - var(--max)) / 2)); }
.project-gallery__viewport::-webkit-scrollbar { display: none; }
.project-gallery__track { display: flex; gap: 18px; width: max-content; padding-inline: max(20px, calc((100vw - var(--max)) / 2)); }
.project-card { position: relative; width: min(46vw, 570px); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); scroll-snap-align: start; }
.project-card__media { position: relative; height: 390px; overflow: hidden; background: #dfe4e1; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-card__media img { transform: scale(1.025); }
.project-card__status { position: absolute; top: 20px; left: 20px; padding: 9px 14px; border-radius: 999px; background: rgba(244,246,243,.94); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(10px); }
.project-card__body { min-height: 245px; padding: 30px 32px 34px; }
.project-card__body .eyebrow { margin-bottom: 13px; }
.project-card__body h3 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.project-card__body > p { max-width: 48ch; margin-top: 18px; color: var(--ink-soft); }
.project-card__body .text-link { margin-top: 24px; }
.project-gallery__arrow { position: absolute; z-index: 3; top: 195px; display: grid; width: 58px; height: 58px; place-items: center; padding: 0; border: 1px solid rgba(17,24,23,.12); border-radius: 50%; background: var(--white); color: var(--green-dark); box-shadow: 0 12px 34px rgba(18,37,29,.18); cursor: pointer; transform: translateY(-50%); transition: background .2s ease, color .2s ease, transform .2s ease; }
.project-gallery__arrow:hover { background: var(--green); color: var(--ink); transform: translateY(-50%) scale(1.04); }
.project-gallery__arrow:active { transform: translateY(-50%) scale(.97); }
.project-gallery__arrow .dashicons { width: 24px; height: 24px; font-size: 24px; }
.project-gallery__arrow--prev { left: max(8px, calc((100vw - var(--max)) / 2 - 28px)); }
.project-gallery__arrow--next { right: 18px; }
.project-gallery__pagination { display: flex; width: min(calc(100% - 40px), var(--max)); align-items: center; gap: 9px; margin: 30px auto 0; }
.project-gallery__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #c7d0cb; cursor: pointer; transition: width .25s ease, background .25s ease; }
.project-gallery__dot[aria-current="true"] { width: 34px; background: var(--green-dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-copy p + p { margin-top: 22px; }
.about-values { display: grid; gap: 12px; }
.value { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--ink-soft); }

/* Inquiry */
.inquiry-section { background: var(--green-dark); color: var(--white); }
.inquiry-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.inquiry-grid .lead { margin-top: 24px; color: #c7d5cc; }
.inquiry-note { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); color: #b7c8bd; }
.inquiry-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; padding: 38px; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1/-1; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfd6d1; border-radius: 10px; background: #f9faf9; color: var(--ink); outline: 0; }
.field textarea { min-height: 125px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(85,214,107,.18); }
.form-status { grid-column: 1/-1; padding: 12px 14px; border-radius: 10px; background: #eef8f0; color: #174626; font-weight: 700; }
.form-status--error { background: #fff0ef; color: #7b2620; }
.form-hp { position: absolute; left: -9999px; }
.inquiry-form .button { justify-self: start; border: 0; cursor: pointer; }

/* Footer */
.site-footer { padding: 76px 0 30px; color: #d3dcd7; background: #0b1110; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,.7fr); gap: 60px; }
.footer-brand p { max-width: 360px; margin-top: 22px; color: #8f9c96; }
.footer-col h3 { margin-bottom: 20px; color: var(--white); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; margin: 10px 0; color: #aeb9b4; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 65px; padding-top: 24px; border-top: 1px solid #27302d; color: #78857f; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 1050px) {
  .nav { gap: 18px; }
  .hero-index { display: none; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .trust-row { grid-template-columns: repeat(2,1fr); }
  .trust-row > div:first-child { grid-column: 1/-1; padding-left: 28px; }
  .proof-grid, .inquiry-grid { gap: 50px; }
}

@media (max-width: 780px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .header-inner { min-height: 70px; }
  .menu-toggle { position: relative; z-index: 52; display: block; flex: 0 0 45px; }
  .menu-toggle::before, .menu-toggle::after { transition: transform .22s ease; }
  .menu-toggle > span:not(.screen-reader-text) { transition: opacity .18s ease; }
  .menu-toggle[aria-expanded="true"] > span:not(.screen-reader-text) { opacity: 0; }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
  body.menu-open { overflow: hidden; overscroll-behavior: none; }
  body.menu-open .site-header,
  body.menu-open .site-header.is-scrolled { height: 100dvh; overflow: hidden; color: var(--ink); background: var(--paper); backdrop-filter: none; }
  .nav { position: fixed; z-index: 51; top: 70px; right: 0; bottom: 0; left: 0; display: flex; visibility: hidden; width: 100%; height: calc(100dvh - 70px); flex-direction: column; gap: 0; align-items: stretch; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); opacity: 0; pointer-events: none; transform: translateX(100%); transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s; }
  .nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s; }
  .nav a { display: flex; width: 100%; min-height: 58px; flex: 0 0 auto; align-items: center; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 1.15rem; line-height: 1.2; }
  .nav a:not(.button)::after { display: none; }
  .nav .button { width: 100%; min-height: 54px; margin-top: 24px; padding-inline: 25px; border-bottom: 0; }
  .hero { min-height: 860px; }
  .hero::before { background: linear-gradient(0deg, rgba(7,13,14,.88) 0%, rgba(7,13,14,.45) 72%, rgba(7,13,14,.24)); }
  .hero-content { padding: 145px 0 70px; }
  .split-head, .solutions-grid, .proof-grid, .inquiry-grid, .about-grid, .category-block { grid-template-columns: 1fr; gap: 40px; }
  .solution-card:first-child { grid-row: auto; min-height: 520px; }
  .solution-card { min-height: 430px; }
  .proof-media { min-height: 480px; }
  .application-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 220px 220px; }
  .application-grid figure:first-child { grid-column: 1/-1; grid-row: auto; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-item:nth-child(2) { border-right: 0; }
  .project-gallery__head { grid-template-columns: 1fr; gap: 22px; }
  .project-gallery__head .lead { justify-self: start; }
  .project-card { width: min(82vw, 520px); }
  .project-card__media { height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.85rem, 13.5vw, 3.55rem); }
  h2 { font-size: clamp(2.25rem, 12vw, 3.45rem); }
  .brand { min-width: 0; font-size: .9rem; }
  .brand small { display: none; }
  .hero { min-height: 790px; }
  .hero-content { width: 100%; padding-bottom: 54px; }
  .hero-copy { margin: 24px 0 30px; font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .trust-row, .product-grid, .process, .footer-grid { grid-template-columns: 1fr; }
  .trust-row > div:first-child { grid-column: auto; }
  .trust-row > div { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-card { min-height: 450px; }
  .application-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(3,300px); }
  .application-grid figure:first-child { grid-column: auto; }
  .process-item, .process-item + .process-item { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid #36413e; }
  .process-item strong { margin-bottom: 24px; }
  .inquiry-form { grid-template-columns: 1fr; padding: 22px; }
  .field--full { grid-column: auto; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .spec-list { grid-template-columns: 1fr; }
  .project-gallery__head { margin-bottom: 32px; }
  .project-gallery__track { gap: 12px; padding-inline: 14px; }
  .project-card { width: calc(100vw - 46px); border-radius: 20px; }
  .project-card__media { height: 300px; }
  .project-card__body { min-height: 242px; padding: 25px 24px 28px; }
  .project-card__status { top: 14px; left: 14px; }
  .project-gallery__arrow { top: 150px; width: 54px; height: 54px; }
  .project-gallery__arrow--prev { left: 7px; }
  .project-gallery__arrow--next { right: 7px; }
  .project-gallery__pagination { width: calc(100% - 28px); margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
