/*
Theme Name: Xiaofa Bulk Powerbank
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: A lean B2B WordPress theme for bulk tested used power bank wholesale suppliers.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bulk-powerbank-wholesale
*/

:root {
  --ink: #121922;
  --muted: #626a72;
  --line: #ddd4c7;
  --paper: #fffdfa;
  --panel: #f7f1e7;
  --steel: #2f3d4a;
  --charcoal: #141b22;
  --charcoal-soft: #1e2832;
  --olive: #566756;
  --copper: #b46c31;
  --gold: #dda566;
  --shadow: 0 24px 60px rgba(18, 25, 34, 0.12);
  --radius: 22px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

video {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 251, 244, 0.9);
  border-bottom: 1px solid rgba(20, 27, 34, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  color: var(--charcoal);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu a {
  border-bottom: 2px solid transparent;
  padding: 28px 0 24px;
}

.menu a:hover {
  border-color: var(--copper);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.button.secondary {
  background: transparent;
  color: var(--charcoal);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 86px;
  background:
    linear-gradient(96deg, rgba(8, 11, 15, 0.95) 0%, rgba(8, 11, 15, 0.88) 40%, rgba(8, 11, 15, 0.4) 100%),
    url("assets/media/bulk-stock-room.jpg") center / cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -140px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(221, 165, 102, 0.26), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.72fr);
  gap: 40px;
  align-items: start;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

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

.hero-facts article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 18px 18px 16px;
}

.hero-facts strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.hero-proof {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 24px;
}

.proof-heading .eyebrow {
  margin-bottom: 10px;
}

.proof-heading h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.muted-light {
  color: rgba(255, 255, 255, 0.72);
}

.video-shell {
  margin-top: 20px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

.proof-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.procurement-strip {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding-bottom: 20px;
}

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

.procurement-card {
  border: 1px solid rgba(20, 27, 34, 0.08);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.procurement-card.notice {
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-soft));
  color: #fff;
}

.procurement-label {
  margin-bottom: 12px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.procurement-card.notice .procurement-label,
.procurement-card.notice p {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: linear-gradient(180deg, #f6f0e6 0%, #f0ebe2 100%);
}

.section.dark {
  background: linear-gradient(180deg, #151d25 0%, #111820 100%);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.58fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.dark .section-head p,
.dark .section-copy,
.dark .shipping-note,
.dark .step-card p {
  color: rgba(255, 255, 255, 0.72);
}

.section-copy {
  color: var(--muted);
  font-size: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}

.proof-card,
.photo-card {
  position: relative;
  min-height: 250px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d9dfe4;
  box-shadow: var(--shadow);
}

.proof-card.large {
  grid-row: span 2;
  min-height: 520px;
}

.proof-card img,
.photo-card img,
.proof-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-card figcaption,
.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 21, 0.86) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.proof-note {
  grid-column: 2 / 4;
  border: 1px solid rgba(20, 27, 34, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #f7f2e8 100%);
  box-shadow: var(--shadow);
  padding: 30px;
}

.proof-note h3 {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--olive);
  border-bottom: 3px solid var(--olive);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.split-layout,
.contact-layout,
.visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.photo-card.portrait {
  min-height: 560px;
}

.detail-card,
.quote-box,
.visit-note,
.shipping-panel {
  border: 1px solid rgba(20, 27, 34, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
}

.detail-card p,
.visit-note,
.contact-list,
.muted {
  color: var(--muted);
}

.shipping-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.shipping-media {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.78fr);
  gap: 18px;
}

.shipping-main,
.proof-card.compact {
  min-height: 430px;
}

.shipping-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

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

.step-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(221, 165, 102, 0.18);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.step-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.shipping-note {
  margin: 18px 0 0;
  font-size: 14px;
}

.visit-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.visit-gallery .proof-card {
  min-height: 360px;
}

.visit-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.visit-note {
  background: linear-gradient(180deg, #f5efe5 0%, #fff 100%);
}

.contact-section {
  background: linear-gradient(180deg, #fffdfa 0%, #f4ecdf 100%);
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.contact-point {
  border: 1px solid rgba(20, 27, 34, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.contact-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.contact-point p {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a,
.site-footer a {
  color: inherit;
}

.quote-box h3 {
  margin-bottom: 8px;
}

.quote-form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 27, 34, 0.14);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(180, 108, 49, 0.16);
  border-color: var(--copper);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  background: #0d1318;
  color: rgba(255, 255, 255, 0.68);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.page-hero {
  padding: 96px 0 58px;
  background: linear-gradient(180deg, #151d25 0%, #111820 100%);
  color: #fff;
}

.content {
  padding: 64px 0;
}

.content .section-inner > * {
  max-width: 840px;
}

.card {
  border: 1px solid rgba(20, 27, 34, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-head,
  .split-layout,
  .contact-layout,
  .visit-layout,
  .shipping-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .procurement-grid,
  .hero-facts,
  .contact-points,
  .visit-gallery,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .proof-card.large,
  .proof-note {
    grid-column: auto;
    grid-row: auto;
  }

  .shipping-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .menu {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .menu a {
    padding: 0;
  }

  .hero {
    padding-top: 84px;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .section-inner {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 42px;
  }

  .lead,
  .section-copy,
  .section-head p {
    font-size: 17px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts,
  .procurement-grid,
  .proof-grid,
  .contact-points,
  .visit-gallery,
  .step-grid,
  .field-grid,
  .shipping-media {
    grid-template-columns: 1fr;
  }

  .proof-card.large,
  .proof-card.compact,
  .photo-card.portrait,
  .shipping-main {
    min-height: 320px;
  }
}
