/* =========================================================
   WHAT WE BUY — layout only.
   Typography, colours, icon sizes and shared components all
   come from pages.css (which mirrors home + about-us exactly).
   Only var(--navy) and var(--green) are used.
   ========================================================= */

.wwb-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.wwb-intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.wwb-intro-actions .btn svg { width: 18px; height: 18px; }

/* ---------- operations cards ---------- */

.wwb-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wwb-ops-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
}

.wwb-ops-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wwb-ops-text { flex: 1; margin-bottom: 0; }

/* ---------- materials grid ---------- */

.wwb-materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.wwb-material { display: flex; flex-direction: column; }

.wwb-material-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef1f5;
  overflow: hidden;
}

.wwb-material-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.wwb-material:hover .wwb-material-img { transform: scale(1.05); }

.wwb-material-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b9c2cd;
}

.wwb-material-placeholder svg { width: 18px; height: 18px; }

.wwb-material-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.wwb-material-body { display: flex; flex-direction: column; flex: 1; }
.wwb-material-body .pg-card-text { flex: 1; }

.wwb-material-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--green);
}

.wwb-material-price svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- no magnetic material ---------- */

.wwb-nomag-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(123, 196, 0, .16);
  margin-bottom: 16px;
}

.wwb-nomag-badge svg { width: 18px; height: 18px; color: var(--green); }

.wwb-nomag-actions { margin-top: 22px; }

/* ---------- why choose us ---------- */

.wwb-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- how it works ---------- */

.wwb-steps-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: wwbstep;
}

.wwb-step {
  position: relative;
  text-align: center;
  padding: 32px 20px 26px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.wwb-step:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 10px 26px rgba(14, 26, 51, .09);
}

/* big ghosted step number in the corner */
.wwb-step::before {
  counter-increment: wwbstep;
  content: counter(wwbstep);
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: rgba(14, 26, 51, .06);
  transition: color .25s ease;
}

.wwb-step:hover::before { color: rgba(123, 196, 0, .22); }

/* connector arrow between cards (desktop only) */
.wwb-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--divider);
  border-right: 2px solid var(--divider);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.wwb-step-circle {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  transition: background .25s ease, transform .25s ease;
}

.wwb-step:hover .wwb-step-circle { transform: scale(1.06); }

.wwb-step-circle svg { width: 18px; height: 18px; color: var(--green); }

.wwb-step-circle--accent { background: var(--green); }
.wwb-step-circle--accent svg { color: var(--white); }

/* ---------- cta strip ---------- */

.wwb-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.wwb-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wwb-cta-actions .btn svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .wwb-materials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .wwb-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .wwb-intro-media { order: -1; }

  .wwb-ops-grid { grid-template-columns: 1fr; }
    .wwb-materials-grid { grid-template-columns: repeat(2, 1fr); }

  .wwb-steps-flow { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .wwb-step:nth-child(2)::after { display: none; }
}

@media (max-width: 640px) {
  .wwb-materials-grid { grid-template-columns: 1fr; }

  .wwb-steps-flow { grid-template-columns: 1fr; row-gap: 28px; }
  .wwb-step::after { display: none !important; }

  .wwb-cta-inner { flex-direction: column; align-items: flex-start; }
  .wwb-cta-actions .btn,
  .wwb-intro-actions .btn { flex: 1; justify-content: center; }
}
