/* ============================================================
   RECYCLING LINES HUB — PAGE STYLESHEET
   File: assets/css/page-recycling-lines.css
   Auto-loaded by functions.php when template = page-recycling-lines.php
   Rules: No :root{}. No hardcoded colors or spacing. No !important.
          All tokens from global.css only.
   ============================================================ */


/* ============================================================
   S1 — HERO
   ============================================================ */

.rl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.rl-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden; 
}

.rl-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: cb-hero-breathe 8s ease-in-out infinite;
  transform-origin: center center;
}

.rl-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(215,25,32,.22), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.05), transparent 34%),
    linear-gradient(135deg, rgba(11,13,16,.92) 0%, rgba(23,26,31,.85) 55%, rgba(36,39,46,.80) 100%);
}

.rl-hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--sp-8) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* Tech grid overlay */
.rl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
}

.rl-hero__header {
  max-width: 760px;
}

.rl-hero__badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-mid);
  background: rgba(215,25,32,0.12);
  border: 1px solid rgba(215,25,32,0.28);
  border-radius: 100px;
  padding: 4px var(--sp-2);
  margin-bottom: var(--sp-3);
}

.rl-hero__title {
  font-size: clamp(36px, 5.5vw, var(--text-4xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
  text-wrap: pretty;
}

.rl-hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 580px;
}

/* Trust bar */
.rl-hero__trust {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.rl-hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rl-hero__trust-num {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xl);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
}

.rl-hero__trust-unit {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-sm);
  color: var(--brand-mid);
  font-weight: 500;
}

.rl-hero__trust-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.rl-hero__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* CTA group */
.rl-hero__cta-group {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}


/* ============================================================
   S2 — WHY RECYCLE IN-HOUSE
   ============================================================ */

.rl-why {
  padding: var(--sp-7) 0;
}

.rl-why .section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.rl-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.rl-why__card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rl-why__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.rl-why__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  color: var(--brand);
  flex-shrink: 0;
}

.rl-why__card-num {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--brand);
  line-height: 1.1;
}

.rl-why__card-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
}

.rl-why__card-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   S3 — THREE RECYCLING SOLUTIONS
   Dark surface — page-specific components only
   ============================================================ */

.rl-solutions {
  padding: var(--sp-7) 0;
}

.rl-solutions .section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.rl-solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* Dark-surface card — NOT .product-card */
.rl-solutions__card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rl-solutions__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.rl-solutions__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.rl-solutions__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.rl-solutions__card:hover .rl-solutions__card-img img {
  transform: scale(1.04);
}

.rl-solutions__card-body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.rl-solutions__card-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

.rl-solutions__card-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

.rl-solutions__card-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.rl-solutions__card-materials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.rl-solutions__card-materials span {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-sm);
  padding: 2px var(--sp-1);
}

.rl-solutions__card-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-mid);
  padding-top: var(--sp-1);
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s ease;
}

.rl-solutions__card:hover .rl-solutions__card-cta {
  color: #fff;
}

.rl-solutions__qualifier {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.40);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================================
   S4 — PROCESS STEPS
   ============================================================ */

.rl-process {
  padding: var(--sp-7) 0;
}

.rl-process .section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.rl-process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.rl-process__step {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rl-process__step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.rl-process__step-num {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.08em;
}

.rl-process__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  color: var(--brand);
  flex-shrink: 0;
}

.rl-process__step-icon--output {
  background: var(--green-bg);
  color: var(--green-fg);
}

.rl-process__step--output {
  border-color: rgba(22,101,52,0.20);
}

.rl-process__step-title {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--gray-800);
  margin: 0;
}

.rl-process__step-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   S5 — SINGLE-STAGE vs TWO-STAGE
   Dark surface
   ============================================================ */

.rl-stage {
  padding: var(--sp-7) 0;
}

.rl-stage .section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.rl-stage__table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: var(--sp-5);
}

.rl-stage__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.rl-stage__table thead tr {
  background: rgba(255,255,255,0.06);
}

.rl-stage__table th {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}

.rl-stage__table th:first-child {
  color: rgba(255,255,255,0.40);
}

.rl-stage__table td {
  padding: var(--sp-2) var(--sp-3);
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.55;
  vertical-align: top;
}

.rl-stage__table tbody tr:last-child td {
  border-bottom: none;
}

.rl-stage__table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

.rl-stage__table td:first-child {
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rl-stage__col-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px var(--sp-2);
  border-radius: 100px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.15);
}

.rl-stage__col-badge--b {
  background: rgba(215,25,32,0.15);
  color: var(--brand-mid);
  border-color: rgba(215,25,32,0.30);
}

.rl-stage__spec {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: var(--text-base);
  font-weight: 500;
  color: #fff;
}

.rl-stage__spec-note {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.38);
  margin-top: 2px;
  font-style: italic;
}

.rl-stage__cta-note {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.rl-stage__cta-note p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.65;
}


/* ============================================================
   S6 — LAYERQUESTAR SUPPLY STANDARD
   Light surface
   ============================================================ */

.rl-standard {
  padding: var(--sp-7) 0;
}

.rl-standard .section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.rl-standard__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.rl-standard__card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rl-standard__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.rl-standard__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  color: var(--brand);
  flex-shrink: 0;
}

.rl-standard__card h3 {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--gray-800);
  margin: 0;
}

.rl-standard__card p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   S7 — FAQ
   Light surface — details/summary accordion
   ============================================================ */

.rl-faq {
  padding: var(--sp-7) 0;
  background: var(--gray-50);
}

.rl-faq .section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.rl-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rl-faq__item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}

.rl-faq__item[open] {
  border-color: var(--brand);
}

/* Remove native browser marker */
.rl-faq__item summary {
  list-style: none;
}

.rl-faq__item summary::-webkit-details-marker {
  display: none;
}

.rl-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

.rl-faq__q:hover {
  background: var(--brand-subtle);
  color: var(--brand);
}

.rl-faq__item[open] .rl-faq__q {
  color: var(--brand);
  background: var(--brand-subtle);
}

.rl-faq__q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.rl-faq__chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.25s ease;
}

.rl-faq__item[open] .rl-faq__chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.rl-faq__a {
  padding: 0 var(--sp-4) var(--sp-3);
  border-top: 1px solid var(--gray-100);
}

.rl-faq__a p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.75;
  margin: var(--sp-2) 0 0;
}


/* ============================================================
   S8 — RELATED EQUIPMENT
   Dark surface
   ============================================================ */

.rl-related {
  padding: var(--sp-7) 0;
}

.rl-related .section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.rl-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.rl-related__card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rl-related__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.rl-related__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.rl-related__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.rl-related__card:hover .rl-related__card-img img {
  transform: scale(1.04);
}

.rl-related__card-body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.rl-related__card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

.rl-related__card-body h3 {
  font-size: var(--text-md);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.rl-related__card-body p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.rl-related__card-link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-mid);
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s ease;
}

.rl-related__card:hover .rl-related__card-link {
  color: #fff;
}


/* ============================================================
   S9 — FINAL CTA
   Dark surface
   ============================================================ */

.rl-cta {
  padding: var(--sp-8) 0;
}

.rl-cta__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.rl-cta__title {
  font-size: clamp(28px, 4vw, var(--text-3xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}

.rl-cta__desc {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

.rl-cta__group {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-1);
}


/* ============================================================
   RESPONSIVE — 960px (mobile layout)
   ============================================================ */

@media (max-width: 960px) {

  .rl-hero__inner {
    padding: var(--sp-7) var(--sp-3);
  }

  .rl-hero__trust {
    gap: var(--sp-3);
  }

  .rl-hero__divider {
    display: none;
  }

  .rl-why__grid {
    grid-template-columns: 1fr;
  }

  .rl-solutions__grid {
    grid-template-columns: 1fr;
  }

  .rl-process__steps {
    grid-template-columns: 1fr 1fr;
  }

  .rl-stage__table th,
  .rl-stage__table td {
    padding: var(--sp-2);
    font-size: var(--text-xs);
  }

  .rl-standard__grid {
    grid-template-columns: 1fr;
  }

  .rl-related__grid {
    grid-template-columns: 1fr;
  }

  .rl-cta__group {
    flex-direction: column;
    align-items: stretch;
  }

  .rl-cta__group .btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {

  .rl-hero__cta-group {
    flex-direction: column;
  }

  .rl-hero__cta-group .btn {
    text-align: center;
    justify-content: center;
  }

  .rl-process__steps {
    grid-template-columns: 1fr;
  }

  .rl-why__card-num {
    font-size: var(--text-2xl);
  }
}


/* ============================================================
   REDUCED MOTION OVERRIDE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .rl-solutions__card,
  .rl-related__card,
  .rl-why__card,
  .rl-process__step,
  .rl-standard__card,
  .rl-faq__item,
  .rl-faq__chevron {
    transition: none;
  }

  .rl-solutions__card:hover .rl-solutions__card-img img,
  .rl-related__card:hover .rl-related__card-img img {
    transform: none;
  }
}

@keyframes cb-hero-breathe {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}
