/* ================================================================
   PRODUCT DETAIL PAGES + CASE STUDIES — SHARED COMPONENTS
   Loaded alongside css/style.css on:
   products-waterproofing.html, products-admixtures.html,
   products-repair.html, products-flooring.html, pvc-water-stopper.html,
   products-sheets.html, products-drainage.html, products-manhole.html,
   products-road-safety.html, case-studies.html
   ================================================================ */

/* ---------- Breadcrumb + generic page hero ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; font-weight: 700; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb li[aria-current="page"] { color: var(--navy); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 8px;
  background: linear-gradient(110deg, #eef4f6 0%, #f8fbfc 58%, #e8f2f4 100%);
  border-top: 1px solid var(--line-soft);
}

/* ---------- Layout A: split hero ---------- */
.pd-hero { padding-block: 8px 48px; }
.pd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
.pd-hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #fff;
  padding: clamp(20px, 3vw, 40px);
}
.pd-hero h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.pd-hero p.pd-lead { font-size: 16.5px; line-height: 1.7; color: var(--body); margin-top: 14px; max-width: 54ch; }
.pd-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Feature grid (Layout A) ---------- */
.pd-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-card); }
.pd-features .card { border: 0; border-top: 4px solid var(--teal); box-shadow: var(--shadow-sm); }
.pd-features .icon-circle { width: 54px; height: 54px; margin-bottom: 14px; border-color: rgba(27,154,170,.35); color: var(--teal-dark); background: rgba(27,154,170,.06); }
.pd-features .icon-circle svg { width: 23px; height: 23px; }
.pd-features h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.pd-features p { font-size: 14px; line-height: 1.6; }

/* ---------- Spec table (shared A / B) ---------- */
.pd-spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-spec-table th, .pd-spec-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.pd-spec-table th { background: var(--surface); font-family: var(--font-display); font-weight: 800; color: var(--navy); width: 34%; }
.pd-spec-table tr:last-child td, .pd-spec-table tr:last-child th { border-bottom: 0; }

/* ---------- Applications checklist ---------- */
.pd-applications { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }

/* ---------- Layout B: banner hero ---------- */
.pd-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(120deg, var(--navy) 0%, #163a52 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  margin-top: 8px;
}
.pd-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(27,154,170,.35), transparent 70%);
}
.pd-banner__content { position: relative; z-index: 1; max-width: 640px; }
.pd-banner .eyebrow { color: var(--gold); }
.pd-banner h1 { color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.pd-banner p { color: #C7D5E1; font-size: 16px; line-height: 1.7; margin-top: 12px; max-width: 56ch; }
.pd-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.pd-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(28px, 3.4vw, 48px); align-items: start; }
.pd-gallery { display: grid; gap: 12px; }
.pd-gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 18px; }

/* FAQ accordion */
.pd-faq { display: grid; gap: 10px; }
.pd-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
.pd-faq summary { cursor: pointer; padding: 14px 0; font-family: var(--font-display); font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; font-size: 20px; color: var(--teal-dark); transition: transform .2s var(--ease); }
.pd-faq details[open] summary::after { transform: rotate(45deg); }
.pd-faq p { padding-bottom: 16px; margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.65; }

/* Related products grid (used on pvc-water-stopper.html) */
.pd-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-card); }
.pd-related .card { display: flex; flex-direction: column; gap: 6px; }
.pd-related .card strong { font-family: var(--font-display); font-size: 15px; color: var(--navy); }
.pd-related .card span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pd-related .card em {
  font-style: normal;
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Layout C: zig-zag story ---------- */
.pd-story__row {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}
.pd-story__row + .pd-story__row { margin-top: clamp(44px, 5vw, 72px); }
.pd-story__row.is-reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.pd-story__row.is-reverse .pd-story__media { order: 2; }
.pd-story__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; padding: 22px; }
.pd-story__row h3 { font-size: 22px; font-weight: 800; color: var(--navy); }
.pd-story__row p { font-size: 15.5px; line-height: 1.75; }

.pd-compare-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-compare-table th, .pd-compare-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.pd-compare-table th { background: var(--navy); color: #fff; font-family: var(--font-display); }
.pd-compare-table tr:last-child td { border-bottom: 0; }
.pd-compare-table tr:nth-child(even) td { background: var(--surface); }

/* ---------- Dark CTA band (reused across all detail pages) ---------- */
.cta-band { background: var(--navy); color: #C7D5E1; }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band-actions { justify-content: center; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Case studies page ---------- */
.cs-grid { display: grid; gap: clamp(28px, 3vw, 44px); }
.cs-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 2.4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cs-card.is-reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.cs-card.is-reverse .cs-card__media { order: 2; }
.cs-card__media img { width: 100%; border-radius: var(--radius); background: var(--surface); padding: 18px; }
.cs-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cs-card h3 { font-size: 21px; font-weight: 800; color: var(--navy); }
.cs-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 14px; }
.cs-card dt { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.cs-card dd { margin: 0; color: var(--body); }
.cs-placeholder-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pd-hero__grid, .pd-split, .pd-story__row, .pd-story__row.is-reverse,
  .cs-card, .cs-card.is-reverse {
    grid-template-columns: 1fr;
  }
  .pd-story__row.is-reverse .pd-story__media,
  .cs-card.is-reverse .cs-card__media { order: 0; }
  .pd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .page-hero { padding-block: 32px 4px; }
  .pd-hero { padding-block: 4px 36px; }
  .pd-features { grid-template-columns: 1fr; }
  .pd-related { grid-template-columns: 1fr; }
  .pd-applications { grid-template-columns: 1fr; }
  .pd-spec-table th, .pd-spec-table td, .pd-compare-table th, .pd-compare-table td { padding: 11px 14px; font-size: 13.5px; }
  .pd-banner { min-height: 0; padding: 26px 20px; }
}
