/* ChinaBridge Sourcing — homepage v3 */

body.home-v3 {
  --ink: #203b56;
  --ink-2: #34495c;
  --muted: #5f6d78;
  --bg: #ffffff;
  --bg-soft: #f2f4f5;
  --line: #d9dfe3;
  --brand: #203b56;
  --brand-2: #2f5a7c;
  --brand-soft: #e7edf1;
  --accent: #c79b57;
  --accent-2: #b68743;
  --accent-soft: #f5eddf;
  --ok: #2d6a51;
  --danger: #a53b2d;
  --shadow-sm: 0 8px 24px rgba(22, 43, 62, 0.06);
  --shadow-md: 0 18px 50px rgba(22, 43, 62, 0.12);
  --radius: 8px;
  --maxw: 1220px;
  color: var(--ink-2);
  background: #fff;
}

.home-v3 .container {
  max-width: var(--maxw);
}

.home-v3 .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
}

.home-v3 .header-inner {
  height: 80px;
}

.home-v3 .brand {
  color: var(--brand);
}

.home-v3 .brand-mark rect {
  fill: var(--brand);
}

.home-v3 .brand-mark circle {
  fill: var(--accent);
}

.home-v3 .nav {
  gap: 22px;
}

.home-v3 .nav a {
  color: var(--ink-2);
}

.home-v3 .nav a:hover,
.home-v3 .nav a[aria-current="page"] {
  color: var(--brand);
}

.home-v3 .nav .btn-primary,
.home-v3 .btn-primary {
  background: var(--accent);
  color: var(--brand);
  border-color: var(--accent);
}

.home-v3 .nav .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.home-v3 .nav .btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}

.home-v3 .btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--brand);
}

.home-v3 .btn-secondary {
  background: var(--brand);
  color: #fff;
}

.home-v3 .btn-ghost {
  color: var(--brand);
  border-color: #bac4cb;
  background: transparent;
}

.home-v3 .btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}

.home-v3 .btn-outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.home-v3 .btn-outline-light:hover {
  color: var(--brand);
  background: #fff;
  border-color: #fff;
}

.home-v3 a:focus-visible,
.home-v3 button:focus-visible,
.home-v3 summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 0;
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--accent);
}

.home-hero-background {
  position: absolute;
  inset: 0;
}

.home-hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 32, 49, 0.98) 0%, rgba(18, 42, 63, 0.90) 46%, rgba(18, 42, 63, 0.38) 78%, rgba(18, 42, 63, 0.26) 100%);
}

.home-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(0.98);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: 34px;
}

.home-hero-copy {
  max-width: 700px;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #f0d7ad;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--accent);
}

.home-hero h1 {
  max-width: 700px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.home-hero h1 span {
  display: block;
}

.home-hero-lead {
  max-width: 620px;
  margin: 0 0 20px;
  color: #e2e9ee;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.home-hero .hero-actions {
  margin-top: 32px;
}

.home-v3 .btn-lg {
  min-height: 52px;
  padding: 15px 26px;
}

.home-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 580px;
  margin: 22px 0 0;
  color: #bdcbd5;
  font-size: 0.86rem;
}

.home-hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--accent);
}

.home-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.home-hero .btn-ghost:hover {
  color: var(--brand);
  background: #fff;
  border-color: #fff;
}

.hero-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 64px;
}

.hero-principle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  color: #fff;
  background: rgba(10, 30, 47, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-principle-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.hero-principle strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-image-note {
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Shared editorial sections */
.home-section {
  padding: clamp(76px, 9vw, 116px) 0;
}

.home-section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}

.home-section-head h2 {
  max-width: 700px;
  margin: 0;
  color: var(--brand);
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-section-head > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Product categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  border-top: 3px solid var(--brand);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.category-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.85 / 1;
  margin: 0;
  background: #e6e4df;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
  transition: transform 300ms ease, filter 300ms ease;
}

.category-card:hover .category-image img {
  transform: scale(1.025);
  filter: saturate(0.95);
}

.category-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 4px 2px;
}

.category-index {
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.category-body h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.category-body p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.category-tags span {
  padding: 4px 8px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 650;
}

.category-link {
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 750;
}

.category-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.category-credit {
  max-width: 720px;
  text-align: right;
}

.category-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.category-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.category-action p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.category-action .btn {
  flex: 0 0 auto;
}

/* Process */
.process-section {
  color: #fff;
  background: var(--brand);
}

.process-section .home-section-head h2,
.process-section .home-eyebrow {
  color: #fff;
}

.process-section .home-section-head > p {
  color: #cdd8e1;
}

.process-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 46px;
}

.process-heading-row .home-eyebrow {
  margin-bottom: 15px;
}

.process-heading-row h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.process-intro {
  max-width: 760px;
  margin: 16px 0 0;
  color: #d4dfe7;
  font-size: 1rem;
}

.process-heading-link {
  flex: 0 0 auto;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.process-heading-link:hover {
  color: var(--accent);
  text-decoration: none;
  border-color: var(--accent);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 210px;
  padding: 30px 44px 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  counter-increment: process;
}

.process-step + .process-step {
  padding-left: 42px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.process-number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.process-number::before {
  content: "0" counter(process);
}

.process-step h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.process-step p {
  max-width: 310px;
  margin: 0;
  color: #d4dfe7;
  font-size: 1rem;
}

.process-step::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: 22px;
  color: var(--accent);
  font-size: 1.25rem;
}

.process-step:last-child::after {
  display: none;
}

.process-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 12px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.process-support strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 1.02rem;
}

.process-support p {
  max-width: 760px;
  margin: 0;
  color: #cdd8e1;
  font-size: 0.92rem;
}

.process-support .btn {
  flex: 0 0 auto;
}

/* Evidence */
.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}

.report-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  padding: 0;
  background: #d8dde0;
  border: 1px solid var(--line);
}

.report-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 18px;
  border: 1px solid #cdd5da;
  pointer-events: none;
}

.report-stage .inspection-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96);
}

.report-stage .report-image {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 34px;
  width: min(42%, 270px);
  height: auto;
  border: 6px solid #fff;
  box-shadow: 0 24px 55px rgba(17, 36, 52, 0.30);
}

.sample-label {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 34px;
  padding: 9px 13px;
  color: var(--brand);
  background: var(--accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inspection-label {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
}

.evidence-copy h2 {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--brand);
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.evidence-lead {
  max-width: 650px;
  margin: 0 0 34px;
  color: var(--muted);
}

.evidence-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-bottom: 34px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.evidence-item span {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.evidence-item strong {
  display: block;
  color: var(--brand);
  font-size: 0.97rem;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.example-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Final inquiry */
.inquiry-wrap {
  padding: 0 0 clamp(76px, 9vw, 112px);
}

.inquiry-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 44px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 68px);
  color: #fff;
  background: var(--brand);
  border-top: 7px solid var(--accent);
}

.inquiry-cta::after {
  content: "";
  position: absolute;
  top: -70px;
  right: 13%;
  width: 1px;
  height: 320px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(34deg);
}

.inquiry-cta h2 {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.inquiry-cta p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: #d6e0e7;
}

.inquiry-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 250px;
}

.inquiry-actions .btn-light {
  background: var(--accent);
  color: var(--brand);
}

.inquiry-actions .btn-light:hover {
  background: #dab272;
  color: var(--brand);
}

.inquiry-alt-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #fff;
  font-size: 0.86rem;
}

.inquiry-alt-links a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.inquiry-alt-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.home-v3 .site-footer {
  background: #182f45;
}

.image-credit-line {
  display: block;
  margin-top: 6px;
  color: #8fa3b4;
  font-size: 0.72rem;
  line-height: 1.5;
}

.image-credit-line a {
  color: #aebdc8;
}

@media (max-width: 1120px) {
  .home-hero h1 {
    font-size: clamp(2.9rem, 5.5vw, 4.15rem);
  }
}

@media (max-width: 980px) {
  .home-v3 .header-inner {
    height: 72px;
  }

  .home-v3 .nav-toggle {
    display: inline-flex;
  }

  .home-v3 .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .home-v3 .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .home-v3 .nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .home-v3 .nav .btn {
    margin-top: 14px;
    justify-content: center;
  }

  .home-hero {
    min-height: 620px;
  }

  .home-hero-inner {
    min-height: 620px;
    padding-top: 66px;
  }

  .home-hero-copy {
    max-width: 760px;
  }

  .hero-principles {
    margin-top: 52px;
  }

  .home-section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-section-head > p {
    max-width: 650px;
  }

  .process-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-action,
  .process-support {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .report-stage {
    min-height: 500px;
  }

  .inquiry-cta {
    grid-template-columns: 1fr;
  }

  .inquiry-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .home-v3 .container {
    padding: 0 20px;
  }

  .home-v3 .header-inner {
    height: 64px;
  }

  .home-v3 .nav {
    inset-block-start: 64px;
    padding-inline: 20px;
  }

  .home-v3 .brand {
    font-size: 1.04rem;
  }

  .home-v3 .brand-mark {
    width: 32px;
    height: 32px;
  }

  .home-hero {
    min-height: 710px;
    padding: 0;
  }

  .home-hero::before {
    width: 5px;
  }

  .home-hero-background::after {
    background: linear-gradient(90deg, rgba(13, 32, 49, 0.98) 0%, rgba(16, 38, 57, 0.88) 72%, rgba(16, 38, 57, 0.66) 100%);
  }

  .home-hero-inner {
    min-height: 710px;
    padding-top: 54px;
    padding-bottom: 24px;
  }

  .home-kicker {
    margin-bottom: 20px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .home-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(2.55rem, 11.5vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .home-hero-lead {
    font-size: 1.03rem;
  }

  .home-hero .hero-actions {
    gap: 10px;
  }

  .home-hero .hero-actions .btn {
    width: 100%;
  }

  .hero-principles {
    gap: 8px;
    margin-top: 34px;
  }

  .hero-principle {
    padding: 9px 11px;
  }

  .hero-principle strong {
    font-size: 0.75rem;
  }

  .hero-image-note {
    right: 16px;
    bottom: 10px;
    font-size: 0.58rem;
  }

  .home-section {
    padding: 68px 0;
  }

  .home-section-head {
    margin-bottom: 32px;
  }

  .home-section-head h2,
  .process-heading-row h2,
  .evidence-copy h2 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-card {
    display: flex;
    border-top: 3px solid var(--brand);
    border-left: 0;
  }

  .category-image {
    aspect-ratio: 1.85 / 1;
  }

  .category-body {
    padding: 20px 4px 2px;
  }

  .category-body h3 {
    font-size: 1.25rem;
  }

  .category-note {
    flex-direction: column;
    gap: 8px;
  }

  .category-action {
    gap: 20px;
  }

  .category-action .btn,
  .process-support .btn {
    width: 100%;
  }

  .category-credit {
    text-align: left;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step + .process-step {
    min-height: 0;
    padding: 24px 34px 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
  }

  .process-number {
    margin-bottom: 18px;
  }

  .process-step::after {
    top: 23px;
    right: 4px;
    transform: rotate(90deg);
  }

  .report-stage {
    min-height: 440px;
    padding: 0;
  }

  .sample-label {
    top: 18px;
    left: 18px;
  }

  .report-stage .report-image {
    right: 18px;
    bottom: 18px;
    width: 44%;
    border-width: 4px;
  }

  .inspection-label {
    bottom: 16px;
    left: 18px;
  }

  .evidence-points {
    grid-template-columns: 1fr;
  }

  .inquiry-wrap {
    padding-bottom: 68px;
  }

  .inquiry-cta {
    gap: 30px;
    padding: 38px 24px;
  }

  .inquiry-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .inquiry-alt-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-principles {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-principle {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-image img,
  .home-v3 .nav {
    transition: none;
  }
}
