/* ============================================================
   Phenom Sourcing — Product Category Detail Pages
   Shared stylesheet for /products/*.html (6 category pages)
   Inherits tokens from assets/styles.css (--navy, --blue, etc.)
   ============================================================ */

/* ---------- Logo name (replaces h1 in subpage header to keep one H1) ---------- */
.logo-text .logo-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* group title inside source section (furniture page two groups) */
.cp-group-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 18px;
  letter-spacing: -0.3px;
}

/* ---------- Breadcrumb ---------- */
.cp-crumb {
  margin-top: 80px;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-light);
}
.cp-crumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-crumb a { color: var(--text-light); text-decoration: none; }
.cp-crumb a:hover { color: var(--blue); }
.cp-crumb .sep { color: #c0c6cf; }
.cp-crumb .current { color: var(--navy); font-weight: 600; }

/* ---------- Hero (clean white B2B style) ---------- */
.cp-hero {
  background: var(--white);
  color: var(--navy);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
}
.cp-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.cp-hero .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.cp-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin: 0 0 18px;
}
.cp-hero h1 br {
  display: block;
  content: "";
  margin-top: 0;
}
.cp-hero .cp-sub {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.cp-hero .cp-desc {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  max-width: 540px;
  margin: 0 0 28px;
}
.cp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-tag {
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid rgba(30, 111, 219, 0.18);
}
/* hero image (replaces the SVG tile grid) */
.cp-hero-image {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--gray-bg);
  box-shadow: 0 16px 44px rgba(10, 31, 68, 0.12);
}
.cp-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Generic section ---------- */
.cp-section { padding: 76px 0; }
.cp-section.gray { background: var(--gray-bg); }
.cp-section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.cp-section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.cp-section-head h2 {
  font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.4px; margin: 0 0 12px;
}
.cp-section-head p { font-size: 16px; line-height: 1.7; color: var(--text-light); margin: 0; }

/* ---------- Card grids ---------- */
.cp-grid { display: grid; gap: 22px; }
.cp-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.cp-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.cp-grid.c4 { grid-template-columns: repeat(4, 1fr); }

.cp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cp-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow); }

.cp-ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cp-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cp-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
.cp-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-light); margin: 0; }
.cp-card .cp-card-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue);
  background: var(--blue-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* product source cards: icon tile on top, larger */
.cp-prod .cp-ico { width: 56px; height: 56px; }
.cp-prod .cp-ico svg { width: 30px; height: 30px; }

/* ---------- Customize list ---------- */
.cp-tags-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cp-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 18px; font-size: 15px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.cp-chip .cp-ico-sm {
  width: 26px; height: 26px; border-radius: 8px; background: var(--blue-light);
  color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cp-chip .cp-ico-sm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-customize-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; justify-items: center; }
.cp-customize-cols.c3 { grid-template-columns: repeat(3, 1fr); }
.cp-customize-note { max-width: 720px; margin: 30px auto 0; text-align: center; font-size: 15px; line-height: 1.7; color: var(--text-light); }

/* ---------- Process steps ---------- */
.cp-process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.cp-step {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 18px; position: relative; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.cp-step:hover { border-color: var(--blue); transform: translateY(-3px); }
.cp-step .cp-num {
  font-size: 28px; font-weight: 800; color: var(--blue);
  letter-spacing: -1px; line-height: 1; margin-bottom: 12px;
}
.cp-step h4 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin: 0 0 6px; line-height: 1.3; }
.cp-step p { font-size: 13px; line-height: 1.55; color: var(--text-light); margin: 0; }

/* ---------- Why cards ---------- */
.cp-why .cp-card { text-align: left; }

/* ---------- Clients need (problem -> solution) ---------- */
.cp-clients .cp-card { display: flex; flex-direction: column; gap: 8px; }
.cp-clients .cp-q { font-size: 16px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.cp-clients .cp-q .cp-ico-sm {
  width: 30px; height: 30px; border-radius: 8px; background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cp-clients .cp-q .cp-ico-sm svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-clients .cp-a { font-size: 14px; line-height: 1.6; color: var(--text-light); }

/* ---------- Featured ---------- */
.cp-featured .cp-card.cp-prod { display: flex; flex-direction: column; align-items: flex-start; }
.cp-featured .cp-link {
  margin-top: 26px; text-align: center;
}
.cp-featured .cp-link a {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue);
  text-decoration: none; font-size: 16px;
}
.cp-featured .cp-link a:hover { color: var(--blue-dark); }

/* ---------- Related case studies ---------- */
.cp-cases .cp-case {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.cp-cases .cp-case:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.cp-case .cp-case-top {
  height: 110px; background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex; align-items: center; justify-content: center; color: #8fb6ef;
}
.cp-case .cp-case-top svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cp-case .cp-case-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cp-case .cp-case-tag { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .4px; text-transform: uppercase; }
.cp-case h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.3; }
.cp-case p { font-size: 13.5px; line-height: 1.55; color: var(--text-light); margin: 0; flex: 1; }
.cp-case a.cp-case-view {
  margin-top: 6px; font-weight: 700; color: var(--blue); text-decoration: none; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cp-cases-foot { text-align: center; margin-top: 36px; }

/* ---------- Page-specific final CTA (light) ---------- */
.cp-final {
  background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 70px 0; text-align: center;
}
.cp-final h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy); margin: 0 0 14px; letter-spacing: -0.4px; }
.cp-final p { font-size: 16px; line-height: 1.7; color: var(--text-light); max-width: 640px; margin: 0 auto 28px; }
.cp-final .cp-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Common dark CTA band ---------- */
.cp-cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; text-align: center; padding: 72px 0; position: relative; overflow: hidden;
}
.cp-cta-band::before {
  content: ""; position: absolute; left: -100px; bottom: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,111,219,0.28), rgba(30,111,219,0) 70%);
}
.cp-cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 0 0 14px; position: relative; }
.cp-cta-band p { font-size: 16px; line-height: 1.7; color: #c2d2ea; max-width: 680px; margin: 0 auto 30px; position: relative; }
.cp-cta-band .cp-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Buttons (reuse site .btn) ---------- */
.cp-hero .btn-primary, .cp-final .btn-primary, .cp-cta-band .btn-primary { /* inherits .btn .btn-primary from styles.css */ }
.cp-cta-band .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-size: 15px; font-weight: 600; color: #fff;
  border: 2px solid rgba(255,255,255,0.32); border-radius: 8px; text-decoration: none;
  transition: all .2s ease;
}
.cp-cta-band .btn-secondary:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.6); }
.cp-cta-band .btn-secondary svg {
  width: 16px; height: 16px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cp-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  /* stacked: show the full 16:9 image, uncropped, centred */
  .cp-hero-image { max-width: 720px; margin: 0 auto; height: 405px; }
  .cp-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .cp-process { grid-template-columns: repeat(3, 1fr); }
  .cp-customize-cols, .cp-customize-cols.c3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cp-section { padding: 56px 0; }
  .cp-grid.c3, .cp-grid.c2, .cp-grid.c4 { grid-template-columns: 1fr; }
  .cp-process { grid-template-columns: repeat(2, 1fr); }
  .cp-hero { padding: 48px 0 56px; }
  .cp-hero-image { height: 340px; }
}
@media (max-width: 520px) {
  .cp-process { grid-template-columns: 1fr; }
  .cp-customize-cols, .cp-customize-cols.c3 { grid-template-columns: 1fr; }
  .cp-hero h1 { font-size: 28px; }
  .cp-hero-image { height: 240px; border-radius: 14px; }
}

/* =========================================================
   What We Source — 3×3 product photo grid
   (shared across all six detail pages)
   ========================================================= */
.cp-source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  grid-auto-rows: 1fr;      /* every row the same height, so no card is short */
}

.cp-source-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cp-source-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cp-source-figure {
  background: #f6f8fb;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.cp-source-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cp-source-body {
  flex: 1;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
}

.cp-source-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}

.cp-source-body p {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1100px) {
  .cp-source-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cp-source-grid { grid-template-columns: 1fr; }
  .cp-source-figure { aspect-ratio: 16 / 10; }
}
