/*
Theme Name: HeshuangLock B2B Smart Security
Theme URI: https://heshuanglock.com
Author: Dongguan Heshuang E-commerce Co., Ltd.
Author URI: https://heshuanglock.com
Description: Premium B2B smart lock factory website theme for HeshuangLock, including products, OEM/ODM, factory strength, solutions, and contact routes.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: heshuanglock
*/

:root {
  --carbon-950: #070809;
  --carbon-900: #101214;
  --carbon-800: #191d21;
  --platinum: #f5f4ef;
  --graphite: #4d545c;
  --signal: #d8ff5f;
  --white: #ffffff;
  --soft-shadow: 0 18px 50px rgba(16, 18, 20, 0.10);
  --glass-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--platinum);
  color: var(--carbon-900);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

.hs-product-main {
  min-height: 70vh;
  padding-top: 108px;
}

.hs-product-hero {
  background: var(--carbon-950);
  color: var(--white);
  padding: 72px 24px;
}

.hs-product-hero-grid {
  display: grid;
  align-items: center;
  gap: 56px;
  grid-template-columns: 0.92fr 1.08fr;
}

.hs-product-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
}

.hs-product-hero-copy {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.8;
}

.hs-product-media {
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  padding: 32px;
}

.hs-product-media img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: contain;
}

.hs-spec-list {
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.hs-spec-row {
  display: grid;
  gap: 20px;
  border-bottom: 1px solid rgba(7, 8, 9, 0.08);
  padding: 20px 24px;
  grid-template-columns: 0.42fr 0.58fr;
}

.hs-spec-row:last-child {
  border-bottom: 0;
}

.hs-spec-row dt {
  font-weight: 700;
}

.hs-spec-row dd {
  margin: 0;
  color: var(--graphite);
}

.hs-cookie-banner {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  max-width: 900px;
  align-items: center;
  gap: 24px;
  margin: auto;
  border: 1px solid rgba(7, 8, 9, 0.12);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 20px;
}

.hs-cookie-banner p {
  flex: 1;
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.65;
}

.hs-cookie-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 860px) {
  .hs-product-hero-grid {
    grid-template-columns: 1fr;
  }

  .hs-product-media {
    min-height: 420px;
  }

  .hs-product-media img {
    height: 380px;
  }

  .hs-cookie-banner {
    display: block;
  }

  .hs-cookie-actions {
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .hs-product-main {
    padding-top: 84px;
  }

  .hs-product-hero {
    padding: 48px 20px;
  }

  .hs-product-media {
    min-height: 360px;
  }

  .hs-product-media img {
    height: 320px;
  }

  .hs-spec-row {
    grid-template-columns: 1fr;
  }
}

.site-nav {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 18px;
  right: 18px;
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 8, 9, 0.72);
  color: var(--white);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
}

.brand-mark {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--carbon-950);
}

.nav-links,
.nav-actions,
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  gap: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--white);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--white);
  color: var(--carbon-950);
}

.button-dark {
  background: var(--carbon-950);
  color: var(--white);
}

.button-outline {
  border: 1px solid currentColor;
  color: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #070809 0%, #171b20 46%, #050607 100%);
  color: var(--white);
  padding: 132px 24px 0;
}

.hero::before,
.dark-grid::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  min-height: calc(100vh - 96px);
  align-items: center;
  gap: 56px;
  padding-bottom: 64px;
  grid-template-columns: 1fr 0.92fr;
}

.eyebrow {
  margin: 0;
  color: var(--signal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 980px;
  margin: 24px 0 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 740;
  line-height: 1.01;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 18px;
  line-height: 1.8;
}

.hero-cards,
.stack {
  display: grid;
  gap: 14px;
}

.hero-card {
  display: grid;
  min-height: 212px;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  grid-template-columns: 0.62fr 0.38fr;
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  margin: 18px 0 0;
  font-size: 32px;
  line-height: 1.1;
}

.hero-card p,
.muted-light {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.75;
}

.lock-visual {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--carbon-950);
}

.lock-visual::before {
  position: absolute;
  inset: 20px 32px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.50));
}

.lock-visual::after {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 48px;
  height: 48px;
  content: "";
  transform: translateX(-50%);
  border: 1px solid rgba(216, 255, 95, 0.50);
  border-radius: 50%;
  background: rgba(216, 255, 95, 0.10);
}

.trust-row {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  grid-template-columns: repeat(4, 1fr);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: middle;
}

.section {
  padding: 88px 24px;
}

.section-light {
  background: var(--platinum);
}

.section-white {
  background: var(--white);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--carbon-950);
  color: var(--white);
}

.section-head {
  display: grid;
  align-items: end;
  gap: 28px;
  grid-template-columns: 0.74fr 1fr;
}

.section h2,
.final h2 {
  margin: 16px 0 0;
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 720;
  line-height: 1.08;
}

.muted {
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.75;
}

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

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

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

.product-card,
.panel {
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.product-card {
  min-height: 448px;
  overflow: hidden;
  background: var(--carbon-950);
  color: var(--white);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.product-card:hover,
.panel-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow);
}

.product-card-inner {
  display: flex;
  min-height: 448px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #070809 0%, #171b20 46%, #050607 100%);
  color: var(--white);
  padding: 136px 24px 72px;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.product-row {
  display: grid;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  grid-template-columns: 0.78fr 1.22fr;
}

.product-row-dark {
  display: flex;
  min-height: 288px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--carbon-950);
  color: var(--white);
  padding: 32px;
}

.product-row-body {
  padding: 32px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip {
  border: 1px solid rgba(16, 18, 20, 0.10);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.capability-card {
  display: grid;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 28px;
  grid-template-columns: 0.42fr 0.58fr;
}

.form-mock,
.dark-panel {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--glass-shadow);
}

.form-mock {
  padding: 24px;
}

.field {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: var(--carbon-950);
  padding: 16px 18px;
}

.field small {
  display: block;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field b {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.site-footer {
  background: var(--carbon-950);
  color: var(--white);
  padding: 72px 24px 32px;
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

@media (max-width: 920px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .site-nav {
    border-radius: 22px;
  }

  .hero-layout,
  .hero-card,
  .section-head,
  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .product-row,
  .capability-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .cta-row,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 48px;
  }
}
