/*
Theme Name: KennyXSourcing.com
Theme URI: https://KennyXSourcing.com
Author: KennyXSourcing.com
Author URI: https://KennyXSourcing.com
Description: A lightweight B2B sourcing WordPress theme for industrial China sourcing services.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: xsourcing
*/

:root {
  --ink: #171d21;
  --muted: #5f6b71;
  --line: #d6dde1;
  --paper: #f3f5f4;
  --white: #ffffff;
  --blue: #285d72;
  --blue-dark: #102832;
  --gold: #b9782a;
  --green: #4e6f66;
  --shadow: 0 18px 48px rgba(18, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 33, 44, 0.88);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(201, 135, 44, 0.95), rgba(255, 255, 255, 0.12) 55%),
    rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 11px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links .menu-item {
  display: inline-flex;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.header-action {
  background: var(--gold);
  color: #151515;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.page-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0 70px;
}

.page-hero h1 {
  color: var(--ink);
}

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

.page-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-actions .button.secondary {
  border-color: var(--line);
  color: var(--blue-dark);
  background: var(--white);
}

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

.detail-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 33, 43, 0.06);
}

.detail-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-card p,
.split-copy p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: start;
}

.split-list {
  display: grid;
  gap: 12px;
}

.split-list div {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(18px, 5vw, 72px);
  background: var(--blue-dark);
  color: var(--white);
}

.cta-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 18, 28, 0.92), rgba(6, 18, 28, 0.55) 45%, rgba(6, 18, 28, 0.22)),
    linear-gradient(180deg, rgba(6, 18, 28, 0.10), rgba(6, 18, 28, 0.64));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 72px);
  padding: 70px 0;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.button.primary {
  background: var(--gold);
  color: #151515;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin: 54px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(7, 23, 34, 0.62);
}

.hero-metrics dt {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 12px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 90px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.category-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 33, 43, 0.07);
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-body p,
.process-grid p,
.quality-content p,
.quote-copy p,
.site-footer p {
  color: var(--muted);
}

.card-body ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #40515f;
  font-size: 14px;
}

.process {
  padding-top: 24px;
}

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

.process-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.visit-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
  padding-top: 24px;
}

.visit-copy p {
  color: var(--muted);
  font-size: 17px;
}

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

.visit-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 33, 43, 0.06);
}

.visit-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.visit-grid p {
  color: var(--muted);
}

.quality-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  padding: 82px clamp(18px, 5vw, 72px);
  background: var(--blue-dark);
  color: var(--white);
}

.quality-content {
  max-width: 520px;
}

.quality-content p {
  font-size: 17px;
}

.quality-list {
  display: grid;
  gap: 14px;
}

.quality-list div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.quality-list strong,
.quality-list span {
  display: block;
}

.quality-list span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.quote-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.quote-copy {
  position: sticky;
  top: 104px;
}

.contact-notes {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-notes span,
.contact-notes a {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}

.inquiry-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd6df;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 93, 143, 0.16);
  border-color: var(--blue);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.form-submit {
  width: 100%;
  border: 0;
  font-size: 16px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
}

.custom-logo {
  width: auto;
  max-width: 190px;
  height: 44px;
  object-fit: contain;
}

.content-page {
  min-height: 60vh;
}

.content-article {
  max-width: 880px;
}

.content-article h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
}

.entry-content {
  margin-top: 28px;
  color: #344554;
  font-size: 17px;
}

.entry-content a {
  color: var(--blue);
  text-decoration: underline;
}

.entry-content img,
.featured-media img {
  border-radius: 8px;
}

.featured-media {
  margin: 32px 0;
}

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

.archive-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 33, 43, 0.07);
}

.archive-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.archive-card h2 {
  margin: 0;
  font-size: 24px;
}

.footer-menu ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1040px) {
  .category-grid,
  .process-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quality-band,
  .quote-section,
  .intro,
  .page-hero,
  .split-section,
  .visit-section {
    grid-template-columns: 1fr;
  }

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

  .quote-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-action {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    margin: 0 auto;
    padding: 58px 0;
  }

  .hero-metrics,
  .category-grid,
    .process-grid,
    .visit-grid,
    .archive-grid,
    .detail-grid,
    .form-row,
    .trust-strip {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 56px 0 42px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 64px 0;
  }

  .quality-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

