/* =====================================================================
   pf_base — buildersplastic.com.au additions (BP 2026-10-18)
   Branding site: header search + Where to buy, brand home page, product hand-off, contact.
   Colours/fonts come from tokens-<skin>.css. Design: "BP Brand Skins" canvas, Clean row.
   ===================================================================== */

/* ---------- header ---------- */
.bp-header .pf-brand img { max-height: 50px; }
.pf-skin-padit .bp-header .pf-brand img { border-radius: 4px; max-height: 42px; }
.pf-skin-snp .bp-header .pf-brand img, .pf-skin-hinge .bp-header .pf-brand img { max-height: 36px; }
.bp-search { flex: 1 1 320px; min-width: 0; display: flex; margin: 0; }
.bp-search input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--pf-line); border-right: 0; border-radius: var(--pf-radius-sm) 0 0 var(--pf-radius-sm); padding: 0 14px; font: inherit; font-size: 14px; box-shadow: none; }
.bp-search input:focus { border-color: var(--pf-primary); box-shadow: none; }
.bp-search-btn { height: 44px; padding: 0 18px; background: var(--pf-cta); color: var(--pf-cta-ink); border: 0; border-radius: 0 var(--pf-radius-sm) var(--pf-radius-sm) 0; font-family: var(--pf-font-head); font-weight: 700; font-size: 16px; text-transform: var(--pf-head-transform); letter-spacing: var(--pf-head-tracking); white-space: nowrap; }
.bp-search-btn:hover { background: var(--pf-cta-hover); }
.bp-buy-btn { flex: 0 0 auto; background: var(--pf-cta); color: var(--pf-cta-ink); padding: 11px 18px; border-radius: var(--pf-radius-sm); font-family: var(--pf-font-head); font-weight: 700; font-size: 16px; text-transform: var(--pf-head-transform); letter-spacing: var(--pf-head-tracking); white-space: nowrap; line-height: 22px; }
.bp-buy-btn:hover { background: var(--pf-cta-hover); color: var(--pf-cta-ink); }
.pf-util-right span { color: var(--pf-dark-ink); }
.pf-skin-bock .pf-menu .pf-menu-end .nav-link { color: var(--pf-menu-ink); }
.pf-skin-bock .pf-menu .nav-link:hover, .pf-skin-bock .pf-menu .nav-item.show > .nav-link { color: var(--pf-menu-ink); }
.pf-skin-bock .pf-menu .navbar-toggler { color: var(--pf-menu-ink); }

/* ---------- home: hero ---------- */
.bp-home #content { padding-top: 8px; }
.bp-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin: 16px 0 8px; }
.bp-hero-main { position: relative; overflow: hidden; background: var(--pf-dark); color: #fff; border-radius: var(--pf-radius); min-height: 290px; padding: 36px; display: flex; align-items: flex-end; gap: 20px; }
.bp-hero-img { position: absolute; right: 0; top: 0; width: 46%; height: 100%; object-fit: cover; opacity: .38; }
.bp-hero-main::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 46%; background: linear-gradient(90deg, var(--pf-dark) 0, transparent 40%); pointer-events: none; }
.bp-hero-text { position: relative; flex: 1 1 auto; max-width: 600px; }
.bp-kicker { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pf-accent); font-weight: 600; }
.bp-hero-title { margin: 8px 0 10px; color: #fff; font-size: 50px; line-height: 1; }
.bp-hero-text p { margin: 0 0 18px; color: var(--pf-dark-ink); font-size: 15px; max-width: 520px; }
.bp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.bp-btn-accent, .bp-btn-light, .bp-btn-dark { display: inline-block; padding: 12px 22px; border-radius: var(--pf-radius-sm); font-family: var(--pf-font-head); font-weight: 700; font-size: 17px; text-transform: var(--pf-head-transform); letter-spacing: var(--pf-head-tracking); line-height: 1.2; }
.bp-btn-accent { background: var(--pf-accent); color: var(--pf-accent-ink); }
.bp-btn-accent:hover { color: var(--pf-accent-ink); filter: brightness(.95); }
.bp-btn-light { background: #fff; color: var(--pf-dark); }
.bp-btn-light:hover { color: var(--pf-dark); background: #eef0f3; }
.bp-btn-dark { background: var(--pf-dark); color: #fff; font-size: 14px; padding: 9px 16px; }
.bp-btn-dark:hover { color: #fff; filter: brightness(1.2); }
.bp-hero-rolls { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, 96px); gap: 10px; }
.bp-hero-rolls img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 50%; }
.bp-hero-side { display: flex; flex-direction: column; gap: 16px; }
.bp-panel { background: var(--pf-surface); border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 20px; }
.bp-hero-side .bp-panel { flex: 1; }
@media (min-width: 768px) { :is(.pf-skin-hinge, .pf-skin-padit) .bp-hero { grid-template-columns: minmax(0, 1fr); } :is(.pf-skin-hinge, .pf-skin-padit) .bp-hero-side { flex-direction: row; } } /* Hinge + PAD-iT: full-width hero, side panels side by side underneath */
@media (min-width: 768px) { .pf-skin-hinge .bp-hero-img { opacity: 1; } .pf-skin-hinge .bp-hero-main::before { display: none; } } /* Hinge: photo shown clean, no shading */
.bp-panel h3 { font-size: 19px; margin: 0 0 6px; }
.bp-panel p { margin: 0 0 10px; font-size: 13px; color: var(--pf-muted); }
.bp-link { font-weight: 600; font-size: 13px; }
.bp-panel-row { display: flex; gap: 14px; align-items: center; }
.bp-panel-row img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--pf-radius-sm); flex: 0 0 80px; }
.bp-panel-row p { margin: 0; }

/* ---------- home: tiles, steps, intro, hand-off ---------- */
.bp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
@media (min-width: 768px) { .bp-tiles:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } } /* 8 tiles (Bock): 4 x 2, no orphan */
.bp-tile { background: var(--pf-surface); border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 12px; color: var(--pf-ink-strong); display: flex; flex-direction: column; gap: 8px; font-weight: 600; transition: box-shadow .15s ease; }
.bp-tile:hover { box-shadow: var(--pf-shadow); color: var(--pf-ink-strong); }
.bp-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.bp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-step-n { font-family: var(--pf-font-head); font-weight: 700; font-size: 28px; color: var(--pf-primary); line-height: 1; margin-bottom: 6px; }
.bp-steps strong { display: block; color: var(--pf-ink-strong); }
.bp-steps p { margin: 4px 0 0; }
.bp-intro { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; }
.bp-intro-copy { flex: 2 1 440px; min-width: 0; }
.bp-intro-copy h2 { font-size: 26px; margin: 0 0 10px; }
.bp-intro-copy p { color: var(--pf-ink); font-size: 14px; }
.bp-checks { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bp-checks li { display: flex; gap: 10px; align-items: baseline; }
.bp-checks i { color: var(--pf-primary); }
.bp-handoff { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 22px 28px; }
.bp-handoff img { height: 38px; width: auto; }
.bp-handoff > div { flex: 1 1 320px; }
.bp-handoff strong { color: var(--pf-ink-strong); }

/* ---------- cards ---------- */
.bp-card-actions { display: flex; gap: 6px; margin-top: auto; }
.bp-card-actions .btn { flex: 1 1 0; padding: 8px 6px; font-size: 13px; white-space: nowrap; }
.bp-card-actions .pf-btn-outline { border-width: 1px; }

/* ---------- product page ---------- */
.bp-buy-group { margin-top: 16px; }
.bp-buy-main { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; background: var(--pf-cta); color: var(--pf-cta-ink); padding: 15px; border-radius: var(--pf-radius-sm); font-family: var(--pf-font-head); font-weight: 700; font-size: 20px; text-transform: var(--pf-head-transform); letter-spacing: var(--pf-head-tracking); }
.bp-buy-main:hover { background: var(--pf-cta-hover); color: var(--pf-cta-ink); }
.bp-buy-note { margin: 8px 0 0; font-size: 13px; color: var(--pf-muted); }
.bp-buy-group .pf-enquiry-links { margin-top: 10px; }
.bp-buy-group .pf-enquiry-links a { cursor: pointer; font-weight: 600; }

/* ---------- contact ---------- */
.bp-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.bp-contact-info p { color: var(--pf-ink); font-size: 14px; }
.bp-contact h3 { font-size: 20px; margin-bottom: 12px; }

/* ---------- footer ---------- */
.bp-footer-blurb { margin: 0; max-width: 260px; }

/* ---------- tablet ---------- */
@media (max-width: 991.98px) {
  .bp-hero { grid-template-columns: minmax(0, 1fr); }
  .bp-hero-side { flex-direction: row; }
  .bp-contact { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone ---------- */
@media (max-width: 767.98px) {
  .pf-util-left { display: none; }
  .pf-util .container { justify-content: center; }
  .bp-header .container { flex-wrap: wrap; gap: 10px; }
  .bp-header .pf-brand { flex: 1 1 auto; }
  .bp-header .pf-brand img { max-height: 40px; }
  .bp-buy-btn { padding: 9px 12px; font-size: 14px; }
  .bp-search { order: 3; flex: 1 1 100%; }
  .bp-hero { margin-top: 10px; }
  .bp-hero-main { padding: 22px; min-height: 0; flex-direction: column; align-items: stretch; }
  .bp-hero-img { width: 100%; opacity: .25; }
  .bp-hero-main::before { width: 100%; background: linear-gradient(0deg, var(--pf-dark) 20%, transparent 100%); }
  .bp-hero-title { font-size: 34px; }
  .bp-hero-rolls { grid-template-columns: repeat(4, 64px); justify-content: start; }
  .bp-hero-rolls img { width: 64px; height: 64px; }
  .bp-hero-ctas a { flex: 1 1 auto; text-align: center; }
  .bp-hero-side { flex-direction: column; }
  .bp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bp-steps { grid-template-columns: minmax(0, 1fr); }
  .bp-intro { padding: 20px; }
  .bp-intro-copy h2 { font-size: 22px; }
  .bp-handoff { padding: 18px; gap: 14px; }
  .bp-handoff .bp-btn-dark { width: 100%; text-align: center; }
  .bp-card-actions { flex-direction: column; }
  .bp-buy-main { font-size: 18px; }
}

/* phone: long breadcrumb names and the footer email wrap instead of widening the page */
@media (max-width: 767.98px) {
  .breadcrumb > li.breadcrumb-item, .breadcrumb > li { white-space: normal; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .pf-footer a, .pf-footer li { overflow-wrap: anywhere; }
  .pf-footer-bar { flex-wrap: wrap; gap: 4px 12px; }
  .bp-header .pf-brand { flex: 1 1 0; min-width: 0; }
  .bp-header .pf-brand img { max-width: 100%; height: auto; object-fit: contain; object-position: left center; }
}
