/*
Theme Name: Hongxiang Apparel
Theme URI: https://hongxiangapparel.com
Author: Hongxiang Apparel
Description: A focused B2B WordPress theme for Hongxiang Apparel, an OEM and ODM clothing manufacturer serving global fashion brands.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: hongxiang-apparel
*/

:root {
  --hx-ink: #17211f;
  --hx-muted: #5d6965;
  --hx-line: #d9e0dd;
  --hx-bg: #f6f7f4;
  --hx-surface: #ffffff;
  --hx-green: #1d5c4a;
  --hx-green-2: #2f8069;
  --hx-gold: #b88a3b;
  --hx-red: #9b3f34;
  --hx-blue: #2f5f88;
  --hx-shadow: 0 18px 50px rgba(23, 33, 31, 0.12);
  --hx-radius: 8px;
  --hx-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hx-bg);
  color: var(--hx-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

p {
  margin: 0 0 1rem;
}

.hx-container {
  width: min(var(--hx-max), calc(100% - 40px));
  margin: 0 auto;
}

.hx-topbar {
  background: var(--hx-ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.hx-topbar .hx-container {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 8px 0;
}

.hx-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--hx-line);
  backdrop-filter: blur(12px);
}

.hx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.hx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.hx-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--hx-green);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hx-brand-text {
  display: grid;
  line-height: 1.12;
}

.hx-brand-text small {
  color: var(--hx-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.hx-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.93rem;
  font-weight: 650;
}

.hx-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hx-nav a {
  color: var(--hx-ink);
}

.hx-nav a:hover {
  color: var(--hx-green);
}

.hx-button,
.hx-nav .menu-item:last-child a,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hx-green);
  background: var(--hx-green);
  color: #fff;
  border-radius: 6px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hx-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  background: var(--hx-green-2);
  border-color: var(--hx-green-2);
  color: #fff;
}

.hx-button.hx-button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.66);
}

.hx-button.hx-button-light {
  background: #fff;
  color: var(--hx-green);
  border-color: #fff;
}

.hx-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #17211f;
}

.hx-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 26, 24, 0.92), rgba(15, 26, 24, 0.68) 44%, rgba(15, 26, 24, 0.22)),
    var(--hx-hero-image, none) center / cover no-repeat;
}

.hx-hero-inner {
  position: relative;
  display: grid;
  min-height: 690px;
  align-items: end;
  padding: 86px 0 72px;
}

.hx-hero-content {
  max-width: 760px;
}

.hx-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #f4d69c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hx-hero h1,
.hx-page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hx-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

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

.hx-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hx-line);
}

.hx-proof-item {
  padding: 28px;
  background: #fff;
}

.hx-proof-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--hx-green);
  font-size: 1.5rem;
}

.hx-section {
  padding: 82px 0;
}

.hx-section.hx-section-white {
  background: #fff;
}

.hx-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 36px;
}

.hx-section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hx-section-copy {
  color: var(--hx-muted);
  font-size: 1.03rem;
}

.hx-grid {
  display: grid;
  gap: 18px;
}

.hx-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.hx-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hx-card {
  min-height: 100%;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

.hx-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.hx-card p {
  color: var(--hx-muted);
  font-size: 0.96rem;
}

.hx-media-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

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

.hx-media-card div {
  padding: 18px;
}

.hx-center-action {
  justify-content: center;
}

.hx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.hx-split img {
  width: 100%;
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow);
}

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

.hx-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--hx-muted);
}

.hx-list li::before {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  background: var(--hx-gold);
  border-radius: 50%;
  content: "";
}

.hx-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hx-flow div {
  min-height: 132px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

.hx-flow strong {
  display: block;
  margin-bottom: 24px;
  color: var(--hx-gold);
  font-size: 0.95rem;
}

.hx-flow span {
  display: block;
  color: var(--hx-ink);
  font-size: 1.08rem;
  font-weight: 780;
  line-height: 1.24;
}

.hx-process {
  counter-reset: step;
}

.hx-process .hx-card {
  position: relative;
  padding-top: 64px;
}

.hx-process .hx-card::before {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--hx-gold);
  font-size: 0.86rem;
  font-weight: 850;
  counter-increment: step;
  content: "STEP " counter(step, decimal-leading-zero);
}

.hx-cta {
  color: #fff;
  background: var(--hx-green);
}

.hx-cta .hx-split {
  align-items: end;
}

.hx-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.hx-page-hero {
  padding: 86px 0 54px;
  color: #fff;
  background: linear-gradient(120deg, #17211f, #1d5c4a);
}

.hx-page-content {
  padding: 58px 0 86px;
}

.hx-page-content .entry-content {
  max-width: 860px;
  margin: 0 auto;
}

.hx-faq {
  display: grid;
  gap: 14px;
}

.hx-faq details {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

.hx-faq summary {
  cursor: pointer;
  font-weight: 780;
}

.hx-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.hx-contact-form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
}

.hx-contact-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--hx-ink);
  font-weight: 700;
}

.hx-contact-form input,
.hx-contact-form textarea,
.hx-contact-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--hx-line);
  border-radius: 6px;
  font: inherit;
}

.hx-contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.hx-toast {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 1000;
  width: min(420px, calc(100% - 32px));
}

.hx-toast-box {
  position: relative;
  padding: 20px 48px 20px 22px;
  color: #fff;
  background: var(--hx-green);
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow);
}

.hx-toast-box.hx-toast-error {
  background: var(--hx-red);
}

.hx-toast-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.04rem;
}

.hx-toast-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hx-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.hx-site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--hx-ink);
}

.hx-footer-main {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding: 54px 0;
}

.hx-site-footer h3,
.hx-site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.hx-site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hx-footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .hx-topbar .hx-container,
  .hx-header-inner,
  .hx-section-head,
  .hx-split,
  .hx-contact-panel,
  .hx-footer-main {
    grid-template-columns: 1fr;
  }

  .hx-header-inner {
    display: grid;
    padding: 14px 0;
  }

  .hx-nav,
  .hx-nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hx-proof,
  .hx-grid-3,
  .hx-grid-4,
  .hx-flow {
    grid-template-columns: 1fr 1fr;
  }

  .hx-hero-inner {
    min-height: 620px;
  }
}

@media (max-width: 620px) {
  .hx-container {
    width: min(100% - 28px, var(--hx-max));
  }

  .hx-proof,
  .hx-grid-3,
  .hx-grid-4,
  .hx-flow {
    grid-template-columns: 1fr;
  }

  .hx-section {
    padding: 58px 0;
  }

  .hx-hero-inner {
    min-height: 560px;
    padding: 70px 0 52px;
  }

  .hx-hero h1,
  .hx-page-hero h1 {
    font-size: 2.35rem;
  }
}
