/*
=============================================================================
WB PHILLIPS METALS
WBP-C01 HOMEPAGE FINAL v1.0 — Homepage Responsive Visual System
Designed for: WBP-C01 Homepage FINAL v1.0 HTML
Namespace: .wbp-
=============================================================================

INSTALL
1. Add this stylesheet after the main BeTheme / child-theme stylesheet.
2. Keep WBP-C01C HTML unchanged unless replacing marked image/link placeholders.
3. Clear site/cache/CDN caches and test desktop + mobile.

BRAND TOKENS
The palette follows the WB Phillips navy / steel-grey identity.
Change the tokens here once and all reusable WBP components will update.
=============================================================================
*/

:root {
  --wbp-brand: #173a63;
  --wbp-brand-strong: #0e2948;
  --wbp-brand-dark: #0b1d30;
  --wbp-brand-soft: #eaf0f6;

  --wbp-steel: #7f8a95;
  --wbp-steel-dark: #59636d;
  --wbp-steel-soft: #eef1f4;

  --wbp-text: #1d2730;
  --wbp-muted: #5f6b76;
  --wbp-white: #ffffff;
  --wbp-bg: #ffffff;
  --wbp-bg-soft: #f5f7f9;
  --wbp-bg-warm: #fafafa;
  --wbp-border: #d9e0e6;
  --wbp-border-strong: #bcc7d1;

  --wbp-whatsapp: #198754;
  --wbp-whatsapp-dark: #116b42;
  --wbp-warning-bg: #fff8e8;
  --wbp-warning-border: #e1bb61;

  --wbp-radius-sm: 8px;
  --wbp-radius: 14px;
  --wbp-radius-lg: 22px;

  --wbp-shadow-1: 0 8px 28px rgba(17, 39, 61, 0.08);
  --wbp-shadow-2: 0 16px 46px rgba(17, 39, 61, 0.13);
  --wbp-shadow-focus: 0 0 0 4px rgba(23, 58, 99, 0.18);

  --wbp-shell: 1220px;
  --wbp-shell-narrow: 820px;

  --wbp-section-space: clamp(56px, 7vw, 92px);
  --wbp-gap: clamp(20px, 3vw, 34px);

  --wbp-transition: 180ms ease;
}

/* ==========================================================================
   BASE / BETHEME CONTAINMENT
   ========================================================================== */

.wbp-home,
.wbp-mobile-cta {
  font-family: inherit;
}

.wbp-home {
  color: var(--wbp-text);
  background: var(--wbp-bg);
  font-size: 17px;
  line-height: 1.65;
  overflow: clip;
}

.wbp-home *,
.wbp-home *::before,
.wbp-home *::after,
.wbp-mobile-cta *,
.wbp-mobile-cta *::before,
.wbp-mobile-cta *::after {
  box-sizing: border-box;
}

.wbp-home img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.wbp-home figure,
.wbp-home blockquote,
.wbp-home address,
.wbp-home dl,
.wbp-home dd,
.wbp-home p,
.wbp-home ul,
.wbp-home ol {
  margin-top: 0;
}

.wbp-home address {
  font-style: normal;
}

.wbp-home a {
  color: var(--wbp-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wbp-home a:hover {
  color: var(--wbp-brand-strong);
}

.wbp-home :focus-visible,
.wbp-mobile-cta :focus-visible {
  outline: 3px solid transparent;
  box-shadow: var(--wbp-shadow-focus);
  border-radius: 6px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.wbp-section {
  position: relative;
  padding-block: var(--wbp-section-space);
}

.wbp-section--soft {
  background: var(--wbp-bg-soft);
}

.wbp-shell {
  width: min(calc(100% - 40px), var(--wbp-shell));
  margin-inline: auto;
}

.wbp-shell--narrow {
  width: min(calc(100% - 40px), var(--wbp-shell-narrow));
}

.wbp-section-header {
  max-width: 820px;
  margin: 0 0 clamp(30px, 4vw, 46px);
}

.wbp-section-header:has(.wbp-section-title:last-child) {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.wbp-eyebrow {
  margin-bottom: 10px;
  color: var(--wbp-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.wbp-section-title,
.wbp-hero__title,
.wbp-final-cta__title {
  color: var(--wbp-brand-dark);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.wbp-section-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 42px);
}

.wbp-section-intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--wbp-muted);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.65;
}

.wbp-section-footer {
  margin-top: 34px;
  text-align: center;
}

/* ==========================================================================
   BUTTONS / ACTIONS
   ========================================================================== */

.wbp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.wbp-actions--center {
  justify-content: center;
}

.wbp-button,
.wbp-home a.wbp-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: var(--wbp-radius-sm);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--wbp-transition),
    box-shadow var(--wbp-transition),
    background-color var(--wbp-transition),
    border-color var(--wbp-transition),
    color var(--wbp-transition);
}

.wbp-button:hover {
  transform: translateY(-2px);
}

.wbp-button--primary,
.wbp-home a.wbp-button--primary {
  color: var(--wbp-white);
  background: var(--wbp-brand);
  border-color: var(--wbp-brand);
  box-shadow: 0 8px 20px rgba(23, 58, 99, 0.18);
}

.wbp-button--primary:hover,
.wbp-home a.wbp-button--primary:hover {
  color: var(--wbp-white);
  background: var(--wbp-brand-strong);
  border-color: var(--wbp-brand-strong);
  box-shadow: 0 12px 28px rgba(23, 58, 99, 0.24);
}

.wbp-button--secondary,
.wbp-home a.wbp-button--secondary {
  color: var(--wbp-brand);
  background: var(--wbp-white);
  border-color: var(--wbp-border-strong);
}

.wbp-button--secondary:hover,
.wbp-home a.wbp-button--secondary:hover {
  color: var(--wbp-brand-strong);
  background: var(--wbp-brand-soft);
  border-color: var(--wbp-brand);
}

.wbp-button--whatsapp,
.wbp-home a.wbp-button--whatsapp {
  color: var(--wbp-white);
  background: var(--wbp-whatsapp);
  border-color: var(--wbp-whatsapp);
  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.16);
}

.wbp-button--whatsapp:hover,
.wbp-home a.wbp-button--whatsapp:hover {
  color: var(--wbp-white);
  background: var(--wbp-whatsapp-dark);
  border-color: var(--wbp-whatsapp-dark);
}

.wbp-text-link,
.wbp-home a.wbp-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--wbp-brand);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(23, 58, 99, 0.35);
}

.wbp-text-link:hover {
  text-decoration-color: currentColor;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.wbp-section--hero {
  padding-block: clamp(48px, 6vw, 80px);
  background:
    radial-gradient(circle at 85% 15%, rgba(127, 138, 149, 0.15), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f5f8fb 100%);
  border-bottom: 1px solid var(--wbp-border);
}

.wbp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.wbp-hero__content {
  max-width: 680px;
}

.wbp-hero__title {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(40px, 5.3vw, 62px);
}

.wbp-hero__lead {
  margin-bottom: 14px;
  color: var(--wbp-text);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 650;
  line-height: 1.5;
}

.wbp-hero__text {
  margin-bottom: 26px;
  color: var(--wbp-muted);
  font-size: 17px;
}

.wbp-hero .wbp-actions {
  margin-bottom: 20px;
}

.wbp-help-note {
  margin: 0;
  color: var(--wbp-muted);
  font-size: 15px;
  line-height: 1.55;
}

.wbp-hero .wbp-help-note {
  max-width: 620px;
  padding-left: 14px;
  border-left: 3px solid var(--wbp-steel);
}

.wbp-media {
  position: relative;
  margin: 0;
}

.wbp-media::before {
  position: absolute;
  z-index: 0;
  inset: 20px -18px -18px 22px;
  content: "";
  background: var(--wbp-brand);
  border-radius: var(--wbp-radius-lg);
  opacity: 0.08;
}

.wbp-media__image {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(23, 58, 99, 0.12);
  border-radius: var(--wbp-radius-lg);
  box-shadow: var(--wbp-shadow-2);
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */

.wbp-section--trust {
  padding-block: 0;
  background: var(--wbp-brand-dark);
}

.wbp-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.wbp-trust-item {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 12px;
  color: var(--wbp-white);
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  text-align: center;
}

.wbp-trust-item:last-child {
  border-right: 0;
}

.wbp-trust-item__mark {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--wbp-brand-dark);
  background: var(--wbp-white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.wbp-trust-item__text {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

/* ==========================================================================
   GENERIC CARD GRIDS
   ========================================================================== */

.wbp-card-grid {
  display: grid;
  gap: var(--wbp-gap);
}

.wbp-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wbp-card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wbp-card {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 30px);
  background: var(--wbp-white);
  border: 1px solid var(--wbp-border);
  border-radius: var(--wbp-radius);
  box-shadow: var(--wbp-shadow-1);
}

.wbp-card--service {
  display: flex;
  min-height: 235px;
  flex-direction: column;
  border-top: 4px solid var(--wbp-brand);
  transition:
    transform var(--wbp-transition),
    box-shadow var(--wbp-transition),
    border-color var(--wbp-transition);
}

.wbp-card--service:hover {
  transform: translateY(-5px);
  box-shadow: var(--wbp-shadow-2);
  border-top-color: var(--wbp-steel-dark);
}

.wbp-card__title {
  margin: 0 0 12px;
  color: var(--wbp-brand-dark);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.wbp-card__text {
  margin-bottom: 20px;
  color: var(--wbp-muted);
}

.wbp-card__link,
.wbp-home a.wbp-card__link {
  margin-top: auto;
  color: var(--wbp-brand);
  font-weight: 800;
  text-decoration: none;
}

.wbp-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   METALS / PANELS / LISTS
   ========================================================================== */

.wbp-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wbp-gap);
}

.wbp-panel {
  padding: clamp(26px, 3vw, 34px);
  background: var(--wbp-white);
  border: 1px solid var(--wbp-border);
  border-radius: var(--wbp-radius);
  box-shadow: var(--wbp-shadow-1);
}

.wbp-panel--metal {
  position: relative;
  overflow: hidden;
}

.wbp-panel--metal::before {
  display: block;
  width: 62px;
  height: 5px;
  margin-bottom: 20px;
  content: "";
  background: var(--wbp-brand);
  border-radius: 99px;
}

.wbp-panel--metal:nth-child(2)::before {
  background: var(--wbp-steel-dark);
}

.wbp-panel__title {
  margin: 0 0 12px;
  color: var(--wbp-brand-dark);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
}

.wbp-panel__text {
  color: var(--wbp-muted);
}

.wbp-list {
  padding-left: 0;
  list-style: none;
}

.wbp-list--ticks li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 27px;
}

.wbp-list--ticks li::before {
  position: absolute;
  top: 0.06em;
  left: 0;
  content: "✓";
  color: var(--wbp-brand);
  font-weight: 900;
}

.wbp-list--columns {
  columns: 2;
  column-gap: 34px;
}

.wbp-list--columns li {
  break-inside: avoid;
  margin: 0 0 9px;
  padding-left: 20px;
  position: relative;
}

.wbp-list--columns li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.wbp-help-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: var(--wbp-gap);
  padding: clamp(22px, 3vw, 30px);
  background: var(--wbp-brand-soft);
  border: 1px solid #cbd8e4;
  border-left: 5px solid var(--wbp-brand);
  border-radius: var(--wbp-radius);
}

.wbp-help-box__content {
  max-width: 750px;
}

.wbp-help-box__title {
  margin: 0 0 6px;
  color: var(--wbp-brand-dark);
  font-size: 23px;
  font-weight: 800;
}

.wbp-help-box__text {
  margin: 0;
  color: var(--wbp-muted);
}

/* ==========================================================================
   FEATURE CARDS — YARD / COLLECTION
   ========================================================================== */

.wbp-feature-card {
  overflow: hidden;
  background: var(--wbp-white);
  border: 1px solid var(--wbp-border);
  border-radius: var(--wbp-radius-lg);
  box-shadow: var(--wbp-shadow-1);
}

.wbp-feature-card__media {
  margin: 0;
  overflow: hidden;
  background: var(--wbp-steel-soft);
}

.wbp-feature-card__media img {
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 350ms ease;
}

.wbp-feature-card:hover .wbp-feature-card__media img {
  transform: scale(1.025);
}

.wbp-feature-card__body {
  padding: clamp(26px, 3vw, 34px);
}

.wbp-feature-card__title {
  margin: 0 0 18px;
  color: var(--wbp-brand-dark);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.wbp-address {
  margin-bottom: 20px;
  color: var(--wbp-text);
  line-height: 1.6;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */

.wbp-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.wbp-process-step {
  position: relative;
  min-width: 0;
  padding: 26px 22px 24px;
  background: var(--wbp-white);
  border: 1px solid var(--wbp-border);
  border-radius: var(--wbp-radius);
}

.wbp-process-step__number {
  display: block;
  margin-bottom: 16px;
  color: rgba(23, 58, 99, 0.22);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wbp-process-step__title {
  margin: 0 0 10px;
  color: var(--wbp-brand-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.wbp-process-step p {
  margin-bottom: 0;
  color: var(--wbp-muted);
  font-size: 15px;
}

.wbp-compliance-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--wbp-warning-bg);
  border: 1px solid var(--wbp-warning-border);
  border-radius: var(--wbp-radius-sm);
}

.wbp-compliance-note p {
  margin: 0;
}

/* ==========================================================================
   COMMERCIAL
   ========================================================================== */

.wbp-section--commercial {
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--wbp-brand-dark);
}

.wbp-commercial {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(34px, 5vw, 62px);
  align-items: center;
}

.wbp-section--commercial .wbp-eyebrow {
  color: #c7d4df;
}

.wbp-section--commercial .wbp-section-title {
  color: var(--wbp-white);
}

.wbp-section--commercial .wbp-section-intro,
.wbp-section--commercial p {
  color: rgba(255, 255, 255, 0.78);
}

.wbp-section--commercial .wbp-list {
  color: rgba(255, 255, 255, 0.92);
}

.wbp-section--commercial .wbp-button--secondary,
.wbp-section--commercial a.wbp-button--secondary {
  color: var(--wbp-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.wbp-section--commercial .wbp-button--secondary:hover,
.wbp-section--commercial a.wbp-button--secondary:hover {
  color: var(--wbp-brand-dark);
  background: var(--wbp-white);
  border-color: var(--wbp-white);
}

.wbp-section--commercial .wbp-button--primary,
.wbp-section--commercial a.wbp-button--primary {
  color: var(--wbp-brand-dark);
  background: var(--wbp-white);
  border-color: var(--wbp-white);
  box-shadow: none;
}

.wbp-section--commercial .wbp-button--primary:hover,
.wbp-section--commercial a.wbp-button--primary:hover {
  color: var(--wbp-brand-dark);
  background: #eaf0f6;
  border-color: #eaf0f6;
}

.wbp-inline-points {
  margin: 24px 0 26px;
  line-height: 1.8;
}

.wbp-commercial__media {
  margin: 0;
}

.wbp-commercial__media img {
  aspect-ratio: 8 / 7;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--wbp-radius-lg);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   PROOF / TRUST LOGOS
   ========================================================================== */

.wbp-card--proof {
  min-height: 190px;
  box-shadow: none;
  border-top: 4px solid var(--wbp-steel);
}

.wbp-card--proof:nth-child(2) {
  border-top-color: var(--wbp-brand);
}

.wbp-card--proof:nth-child(3) {
  border-top-color: var(--wbp-steel-dark);
}

.wbp-card--proof:nth-child(4) {
  border-top-color: var(--wbp-brand);
}

.wbp-trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 38px;
}

.wbp-trust-logos img {
  width: auto;
  max-width: 150px;
  max-height: 62px;
  object-fit: contain;
  filter: grayscale(15%);
}

/* ==========================================================================
   LOCATIONS
   ========================================================================== */

.wbp-locations {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.35fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.wbp-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.wbp-location-card,
.wbp-home a.wbp-location-card {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 13px 16px;
  color: var(--wbp-brand-dark);
  background: var(--wbp-white);
  border: 1px solid var(--wbp-border);
  border-radius: var(--wbp-radius-sm);
  text-decoration: none;
  transition:
    transform var(--wbp-transition),
    border-color var(--wbp-transition),
    box-shadow var(--wbp-transition);
}

.wbp-location-card:hover {
  transform: translateY(-2px);
  border-color: var(--wbp-brand);
  box-shadow: var(--wbp-shadow-1);
}

.wbp-location-card--yard,
.wbp-home a.wbp-location-card--yard {
  color: var(--wbp-white);
  background: var(--wbp-brand);
  border-color: var(--wbp-brand);
}

.wbp-location-card--yard:hover,
.wbp-home a.wbp-location-card--yard:hover {
  color: var(--wbp-white);
  background: var(--wbp-brand-strong);
}

.wbp-location-card__name {
  font-weight: 800;
}

.wbp-location-card__meta {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.78;
  text-transform: uppercase;
}

.wbp-locations__visual {
  min-height: 310px;
  background:
    linear-gradient(135deg, rgba(23, 58, 99, 0.95), rgba(89, 99, 109, 0.9)),
    var(--wbp-brand);
  border-radius: var(--wbp-radius-lg);
  box-shadow: var(--wbp-shadow-1);
}

.wbp-locations__visual:empty::after {
  display: grid;
  min-height: 310px;
  place-items: center;
  padding: 28px;
  content: "Kent & Medway";
  color: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

/* ==========================================================================
   YARD / CONTACT
   ========================================================================== */

.wbp-yard {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(34px, 5vw, 62px);
  align-items: stretch;
}

.wbp-address--large {
  padding: 18px 20px;
  background: var(--wbp-bg-soft);
  border-left: 4px solid var(--wbp-brand);
  border-radius: 0 var(--wbp-radius-sm) var(--wbp-radius-sm) 0;
  font-size: 18px;
}

.wbp-contact-list {
  margin: 24px 0;
}

.wbp-contact-list__item,
.wbp-opening-hours dl > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wbp-border);
}

.wbp-contact-list dt,
.wbp-opening-hours dt {
  color: var(--wbp-muted);
  font-weight: 700;
}

.wbp-contact-list dd,
.wbp-opening-hours dd {
  margin: 0;
  color: var(--wbp-text);
  font-weight: 700;
}

.wbp-opening-hours {
  margin: 26px 0;
}

.wbp-opening-hours__title {
  margin: 0 0 8px;
  color: var(--wbp-brand-dark);
  font-size: 21px;
  font-weight: 800;
}

.wbp-yard__map {
  min-height: 100%;
}

.wbp-yard__map iframe,
.wbp-map-placeholder {
  width: 100%;
  min-height: 520px;
  height: 100%;
  border: 0;
  border-radius: var(--wbp-radius-lg);
  box-shadow: var(--wbp-shadow-1);
}

.wbp-map-placeholder {
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--wbp-muted);
  background:
    repeating-linear-gradient(
      45deg,
      #eef1f4,
      #eef1f4 14px,
      #e5e9ed 14px,
      #e5e9ed 28px
    );
  border: 1px solid var(--wbp-border);
  text-align: center;
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */

.wbp-review-card {
  margin: 0;
  padding: clamp(24px, 3vw, 30px);
  background: var(--wbp-white);
  border: 1px solid var(--wbp-border);
  border-radius: var(--wbp-radius);
  box-shadow: var(--wbp-shadow-1);
}

.wbp-review-card__stars {
  margin-bottom: 14px;
  color: var(--wbp-brand);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.wbp-review-card__quote {
  margin: 0 0 18px;
  color: var(--wbp-text);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
}

.wbp-review-card__source {
  color: var(--wbp-muted);
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   GUIDES
   ========================================================================== */

.wbp-card--guide {
  display: flex;
  min-height: 225px;
  flex-direction: column;
  box-shadow: none;
  transition:
    transform var(--wbp-transition),
    box-shadow var(--wbp-transition);
}

.wbp-card--guide:hover {
  transform: translateY(-3px);
  box-shadow: var(--wbp-shadow-1);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.wbp-faq-list {
  border-top: 1px solid var(--wbp-border);
}

.wbp-faq-item {
  margin: 0;
  border-bottom: 1px solid var(--wbp-border);
}

.wbp-faq-item__question {
  position: relative;
  padding: 21px 52px 21px 0;
  color: var(--wbp-brand-dark);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.wbp-faq-item__question::-webkit-details-marker {
  display: none;
}

.wbp-faq-item__question::after {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  content: "+";
  color: var(--wbp-brand);
  background: var(--wbp-white);
  border: 1px solid var(--wbp-border);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    transform var(--wbp-transition),
    background-color var(--wbp-transition),
    color var(--wbp-transition);
}

.wbp-faq-item[open] .wbp-faq-item__question::after {
  color: var(--wbp-white);
  background: var(--wbp-brand);
  content: "−";
}

.wbp-faq-item__answer {
  max-width: 750px;
  padding: 0 50px 21px 0;
  color: var(--wbp-muted);
}

.wbp-faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.wbp-section--final-cta {
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--wbp-brand-dark);
  text-align: center;
}

.wbp-final-cta__title {
  margin: 0 0 16px;
  color: var(--wbp-white);
  font-size: clamp(34px, 4.5vw, 48px);
}

.wbp-final-cta__text {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.wbp-final-cta__prompt {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
}

.wbp-section--final-cta .wbp-button--primary,
.wbp-section--final-cta a.wbp-button--primary {
  color: var(--wbp-brand-dark);
  background: var(--wbp-white);
  border-color: var(--wbp-white);
  box-shadow: none;
}

.wbp-section--final-cta .wbp-button--primary:hover,
.wbp-section--final-cta a.wbp-button--primary:hover {
  color: var(--wbp-brand-dark);
  background: var(--wbp-brand-soft);
  border-color: var(--wbp-brand-soft);
}

.wbp-final-cta__secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.55);
}

.wbp-final-cta__secondary a,
.wbp-home .wbp-final-cta__secondary a {
  color: var(--wbp-white);
  font-weight: 750;
}

/* ==========================================================================
   MOBILE STICKY CTA
   ========================================================================== */

.wbp-mobile-cta {
  display: none;
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {
  .wbp-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 36px;
  }

  .wbp-hero__title {
    font-size: clamp(38px, 5.4vw, 52px);
  }

  .wbp-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wbp-trust-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .wbp-trust-item:nth-child(3n) {
    border-right: 0;
  }

  .wbp-trust-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .wbp-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbp-card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbp-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbp-commercial {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }

  .wbp-locations {
    grid-template-columns: 1fr;
  }

  .wbp-locations__visual {
    display: none;
  }

  .wbp-yard {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --wbp-section-space: 52px;
  }

  .wbp-home {
    padding-bottom: 68px;
    font-size: 16px;
  }

  .wbp-shell,
  .wbp-shell--narrow {
    width: min(calc(100% - 30px), var(--wbp-shell));
  }

  .wbp-section-header {
    margin-bottom: 28px;
  }

  .wbp-section-title {
    font-size: clamp(28px, 8vw, 34px);
  }

  .wbp-section-intro {
    font-size: 17px;
  }

  .wbp-section--hero {
    padding-block: 38px 42px;
  }

  .wbp-hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .wbp-hero__content {
    display: contents;
  }

  .wbp-hero .wbp-eyebrow {
    order: 1;
    width: 100%;
    margin-bottom: -16px;
  }

  .wbp-hero__title {
    order: 2;
    width: 100%;
    margin-bottom: -12px;
    font-size: clamp(35px, 10vw, 43px);
  }

  .wbp-hero__lead {
    order: 3;
    width: 100%;
    margin-bottom: -14px;
    font-size: 18px;
  }

  .wbp-hero__text {
    order: 4;
    width: 100%;
    margin-bottom: -10px;
  }

  .wbp-hero__media {
    order: 5;
    width: 100%;
  }

  .wbp-hero .wbp-actions {
    order: 6;
    width: 100%;
    margin-bottom: -8px;
  }

  .wbp-hero .wbp-help-note {
    order: 7;
    width: 100%;
  }

  .wbp-media::before {
    inset: 12px -8px -9px 14px;
  }

  .wbp-media__image {
    aspect-ratio: 4 / 3;
    border-radius: var(--wbp-radius);
  }

  .wbp-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .wbp-button,
  .wbp-home a.wbp-button {
    width: 100%;
    min-height: 52px;
  }

  .wbp-text-link {
    justify-content: center;
    text-align: center;
  }

  .wbp-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbp-trust-item {
    min-height: 76px;
    justify-content: flex-start;
    padding: 14px 10px;
    text-align: left;
  }

  .wbp-trust-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
  }

  .wbp-trust-item:nth-child(even) {
    border-right: 0;
  }

  .wbp-trust-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .wbp-trust-item:last-child {
    grid-column: 1 / -1;
    justify-content: center;
    border-bottom: 0;
    border-right: 0;
    text-align: center;
  }

  .wbp-card-grid--3,
  .wbp-card-grid--4,
  .wbp-split-grid,
  .wbp-process-grid,
  .wbp-commercial,
  .wbp-yard {
    grid-template-columns: 1fr;
  }

  .wbp-card--service,
  .wbp-card--proof,
  .wbp-card--guide {
    min-height: 0;
  }

  .wbp-help-box {
    align-items: stretch;
    flex-direction: column;
  }

  .wbp-list--columns {
    columns: 1;
  }

  .wbp-compliance-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .wbp-commercial__media {
    order: -1;
  }

  .wbp-commercial__media img {
    aspect-ratio: 4 / 3;
  }

  .wbp-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbp-yard__map {
    order: -1;
  }

  .wbp-yard__map iframe,
  .wbp-map-placeholder {
    min-height: 340px;
    height: 340px;
    border-radius: var(--wbp-radius);
  }

  .wbp-contact-list__item,
  .wbp-opening-hours dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wbp-review-card__quote {
    font-size: 17px;
  }

  .wbp-faq-item__question {
    padding-block: 19px;
    padding-right: 46px;
    font-size: 17px;
  }

  .wbp-faq-item__answer {
    padding-right: 0;
  }

  .wbp-mobile-cta {
    position: fixed;
    z-index: 9998;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--wbp-brand-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 24px rgba(7, 20, 34, 0.22);
  }

  .wbp-mobile-cta__item {
    display: flex;
    min-width: 0;
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 5px;
    color: var(--wbp-white);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
  }

  .wbp-mobile-cta__item:last-child {
    border-right: 0;
  }

  .wbp-mobile-cta__item:hover,
  .wbp-mobile-cta__item:focus {
    color: var(--wbp-white);
    background: rgba(255, 255, 255, 0.08);
  }

  .wbp-mobile-cta__icon {
    font-size: 18px;
    line-height: 1;
  }
}

/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {
  .wbp-shell,
  .wbp-shell--narrow {
    width: min(calc(100% - 24px), var(--wbp-shell));
  }

  .wbp-hero__title {
    font-size: clamp(33px, 10.5vw, 40px);
  }

  .wbp-card,
  .wbp-panel,
  .wbp-feature-card__body {
    padding: 22px;
  }

  .wbp-location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .wbp-location-card {
    min-height: 62px;
    padding: 11px 12px;
  }

  .wbp-final-cta__secondary {
    flex-direction: column;
    gap: 7px;
  }

  .wbp-final-cta__secondary > span {
    display: none;
  }
}

/* ==========================================================================
   REDUCED MOTION / ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .wbp-home *,
  .wbp-home *::before,
  .wbp-home *::after,
  .wbp-mobile-cta * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .wbp-mobile-cta,
  .wbp-button,
  .wbp-actions {
    display: none !important;
  }

  .wbp-home {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .wbp-section {
    padding-block: 22px;
    break-inside: avoid;
  }

  .wbp-section--commercial,
  .wbp-section--final-cta,
  .wbp-section--trust {
    color: #000;
    background: #fff;
  }

  .wbp-section--commercial .wbp-section-title,
  .wbp-section--final-cta .wbp-final-cta__title {
    color: #000;
  }
}

/*
=============================================================================
WBP-C01H — HOMEPAGE POLISH v1.2
Append AFTER the existing wbp-homepage.css
=============================================================================
*/

/* --------------------------------------------------------------------------
   A. BUTTON TEXT — harden against legacy RT/WB Theme colour overrides
   -------------------------------------------------------------------------- */

.wbp-home a.wbp-button,
.wbp-home a.wbp-button:link,
.wbp-home a.wbp-button:visited {
  text-decoration: none !important;
}

.wbp-home .wbp-button__label {
  display: inline-block;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Normal primary buttons: navy background / white text */
.wbp-home a.wbp-button--primary,
.wbp-home a.wbp-button--primary:link,
.wbp-home a.wbp-button--primary:visited {
  color: var(--wbp-white) !important;
  -webkit-text-fill-color: var(--wbp-white) !important;
  background: var(--wbp-brand) !important;
  border-color: var(--wbp-brand) !important;
}

.wbp-home a.wbp-button--primary:hover,
.wbp-home a.wbp-button--primary:focus-visible {
  color: var(--wbp-white) !important;
  -webkit-text-fill-color: var(--wbp-white) !important;
  background: var(--wbp-brand-strong) !important;
  border-color: var(--wbp-brand-strong) !important;
}

/* Normal secondary buttons: white background / navy text */
.wbp-home a.wbp-button--secondary,
.wbp-home a.wbp-button--secondary:link,
.wbp-home a.wbp-button--secondary:visited {
  color: var(--wbp-brand) !important;
  -webkit-text-fill-color: var(--wbp-brand) !important;
  background: var(--wbp-white) !important;
  border-color: var(--wbp-border-strong) !important;
}

.wbp-home a.wbp-button--secondary:hover,
.wbp-home a.wbp-button--secondary:focus-visible {
  color: var(--wbp-brand-strong) !important;
  -webkit-text-fill-color: var(--wbp-brand-strong) !important;
  background: var(--wbp-brand-soft) !important;
  border-color: var(--wbp-brand) !important;
}

/* WhatsApp stays white on green */
.wbp-home a.wbp-button--whatsapp,
.wbp-home a.wbp-button--whatsapp:link,
.wbp-home a.wbp-button--whatsapp:visited {
  color: var(--wbp-white) !important;
  -webkit-text-fill-color: var(--wbp-white) !important;
}

/* --------------------------------------------------------------------------
   B. COMMERCIAL SECTION BUTTONS
   -------------------------------------------------------------------------- */

.wbp-home .wbp-section--commercial .wbp-commercial__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.wbp-home .wbp-section--commercial a.wbp-commercial__button--primary,
.wbp-home .wbp-section--commercial a.wbp-commercial__button--primary:link,
.wbp-home .wbp-section--commercial a.wbp-commercial__button--primary:visited {
  color: var(--wbp-brand-dark) !important;
  -webkit-text-fill-color: var(--wbp-brand-dark) !important;
  background: var(--wbp-white) !important;
  border-color: var(--wbp-white) !important;
}

.wbp-home .wbp-section--commercial a.wbp-commercial__button--primary:hover,
.wbp-home .wbp-section--commercial a.wbp-commercial__button--primary:focus-visible {
  color: var(--wbp-brand-dark) !important;
  -webkit-text-fill-color: var(--wbp-brand-dark) !important;
  background: var(--wbp-brand-soft) !important;
  border-color: var(--wbp-brand-soft) !important;
}

.wbp-home .wbp-section--commercial a.wbp-commercial__button--secondary,
.wbp-home .wbp-section--commercial a.wbp-commercial__button--secondary:link,
.wbp-home .wbp-section--commercial a.wbp-commercial__button--secondary:visited {
  color: var(--wbp-white) !important;
  -webkit-text-fill-color: var(--wbp-white) !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.50) !important;
}

.wbp-home .wbp-section--commercial a.wbp-commercial__button--secondary:hover,
.wbp-home .wbp-section--commercial a.wbp-commercial__button--secondary:focus-visible {
  color: var(--wbp-brand-dark) !important;
  -webkit-text-fill-color: var(--wbp-brand-dark) !important;
  background: var(--wbp-white) !important;
  border-color: var(--wbp-white) !important;
}

/* --------------------------------------------------------------------------
   C. LOCATIONS — stop legacy theme positioning/width rules interfering
   -------------------------------------------------------------------------- */

.wbp-home .wbp-locations {
  align-items: stretch;
}

.wbp-home .wbp-location-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: minmax(68px, auto);
  gap: 12px !important;
  width: 100% !important;
}

.wbp-home .wbp-location-grid > .wbp-location-card {
  float: none !important;
  clear: none !important;
  position: relative !important;
  inset: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none;
}

.wbp-home .wbp-location-grid > .wbp-location-card:hover {
  transform: translateY(-2px);
}

/* Replace the old empty-looking decorative tile with useful information. */
.wbp-home .wbp-locations__visual {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: clamp(28px, 4vw, 42px);
  color: var(--wbp-white);
  background:
    linear-gradient(145deg, rgba(23, 58, 99, 0.98), rgba(61, 83, 106, 0.96)),
    var(--wbp-brand);
  border-radius: var(--wbp-radius-lg);
}

.wbp-home .wbp-locations__visual::after,
.wbp-home .wbp-locations__visual:empty::after {
  content: none !important;
  display: none !important;
}

.wbp-home .wbp-locations__visual-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.wbp-home .wbp-locations__visual-title {
  color: var(--wbp-white) !important;
  -webkit-text-fill-color: var(--wbp-white) !important;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}

.wbp-home .wbp-locations__visual-text {
  max-width: 270px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   D. YARD / MAP
   -------------------------------------------------------------------------- */

.wbp-home .wbp-yard__map > iframe {
  display: block;
  width: 100% !important;
  min-height: 520px;
  height: 100%;
  border: 0 !important;
  border-radius: var(--wbp-radius-lg);
  box-shadow: var(--wbp-shadow-1);
}

/* --------------------------------------------------------------------------
   E. FINAL CTA — legacy heading rules were making the heading disappear
   -------------------------------------------------------------------------- */

.wbp-home .wbp-section--final-cta .wbp-final-cta__title,
.wbp-home .wbp-section--final-cta h2.wbp-final-cta__title {
  color: var(--wbp-white) !important;
  -webkit-text-fill-color: var(--wbp-white) !important;
  opacity: 1 !important;
}

.wbp-home .wbp-section--final-cta a.wbp-button--primary,
.wbp-home .wbp-section--final-cta a.wbp-button--primary:link,
.wbp-home .wbp-section--final-cta a.wbp-button--primary:visited {
  color: var(--wbp-brand-dark) !important;
  -webkit-text-fill-color: var(--wbp-brand-dark) !important;
  background: var(--wbp-white) !important;
  border-color: var(--wbp-white) !important;
}

.wbp-home .wbp-section--final-cta a.wbp-button--primary:hover,
.wbp-home .wbp-section--final-cta a.wbp-button--primary:focus-visible {
  color: var(--wbp-brand-dark) !important;
  -webkit-text-fill-color: var(--wbp-brand-dark) !important;
  background: var(--wbp-brand-soft) !important;
  border-color: var(--wbp-brand-soft) !important;
}

/* --------------------------------------------------------------------------
   F. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .wbp-home .wbp-locations {
    grid-template-columns: 1fr !important;
  }

  .wbp-home .wbp-locations__visual {
    min-height: 190px;
  }
}

@media (max-width: 767px) {
  .wbp-home .wbp-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wbp-home .wbp-section--commercial .wbp-commercial__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .wbp-home .wbp-section--commercial .wbp-commercial__button {
    width: 100%;
  }

  .wbp-home .wbp-yard__map > iframe {
    min-height: 340px;
    height: 340px;
  }
}

@media (max-width: 430px) {
  .wbp-home .wbp-location-grid {
    grid-template-columns: 1fr !important;
  }
}

/*
=============================================================================
WBP-C01I — LOCATIONS SECTION COMPACT FIX
Append AFTER the existing WBP-C01H / wbp-homepage.css rules.
Purpose:
- Keep all useful town links.
- Force a reliable 2-column desktop layout despite legacy theme interference.
- Stop the Kent & Medway panel stretching to the whole section height.
- Reduce unnecessary vertical space.
=============================================================================
*/

/* Main locations layout: content + compact service-area panel */
.wbp-home .wbp-locations {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px) !important;
  align-items: start !important;
  gap: clamp(28px, 4vw, 46px) !important;
}

/*
 * Use flex rather than grid here.
 * This is more resistant to the legacy RT/WB theme rules currently affecting
 * the location-card placement on the live homepage.
 */
.wbp-home .wbp-location-grid {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: stretch !important;
  gap: 10px 12px !important;
  width: 100% !important;
  margin: 0 0 24px !important;
}

.wbp-home .wbp-location-grid > a.wbp-location-card,
.wbp-home .wbp-location-grid > .wbp-location-card {
  display: flex !important;
  flex: 0 0 calc(50% - 6px) !important;
  width: calc(50% - 6px) !important;
  max-width: calc(50% - 6px) !important;
  min-width: 0 !important;
  min-height: 56px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  inset: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  transform: none;
}

.wbp-home .wbp-location-grid > a.wbp-location-card:hover,
.wbp-home .wbp-location-grid > .wbp-location-card:hover {
  transform: translateY(-2px);
}

/* Chatham needs a little more height because of the OUR YARD label. */
.wbp-home .wbp-location-card--yard {
  min-height: 64px !important;
}

/* Compact service-area card — no full-column stretching. */
.wbp-home .wbp-locations__visual {
  align-self: start !important;
  display: flex !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 30px 26px !important;
  border-radius: var(--wbp-radius-lg);
}

.wbp-home .wbp-locations__visual-text {
  max-width: none !important;
}

/* Slightly reduce section header spacing inside this particular section. */
.wbp-home .wbp-locations__content > .wbp-section-header {
  margin-bottom: 28px !important;
}

/* Tablet: keep links in two columns, move service-area card below them. */
@media (max-width: 1024px) {
  .wbp-home .wbp-locations {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .wbp-home .wbp-locations__visual {
    display: flex !important;
    min-height: 0 !important;
    padding: 24px 26px !important;
  }
}

/* Mobile: one clean column of towns; service-area card becomes a short banner. */
@media (max-width: 600px) {
  .wbp-home .wbp-location-grid {
    gap: 9px !important;
  }

  .wbp-home .wbp-location-grid > a.wbp-location-card,
  .wbp-home .wbp-location-grid > .wbp-location-card {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;
  }

  .wbp-home .wbp-locations__visual {
    padding: 22px !important;
  }
}
/*
=============================================================================
WBP-C01J — LOCATIONS GRID HARD FIX
Use AFTER all existing homepage CSS.
This deliberately uses #main-content + #wbp-home-location-grid specificity
because the legacy RT/WB theme is overriding generic nav/card layout rules.
=============================================================================
*/

/* Desktop: fixed 2-column location grid */
#main-content.wbp-home #wbp-home-location-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  grid-auto-rows: minmax(56px, auto) !important;
  gap: 10px 12px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  columns: auto !important;
  column-count: auto !important;
}

/* Kill legacy nav pseudo-elements that can become layout items */
#main-content.wbp-home #wbp-home-location-grid::before,
#main-content.wbp-home #wbp-home-location-grid::after {
  display: none !important;
  content: none !important;
}

/* Each town occupies exactly one grid cell */
#main-content.wbp-home #wbp-home-location-grid > a.wbp-location-card,
#main-content.wbp-home #wbp-home-location-grid > a.wbp-location-card:link,
#main-content.wbp-home #wbp-home-location-grid > a.wbp-location-card:visited {
  display: flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 56px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none;
  box-sizing: border-box !important;
}

/* Chatham has the small OUR YARD line */
#main-content.wbp-home #wbp-home-location-grid > a.wbp-location-card--yard {
  min-height: 62px !important;
}

#main-content.wbp-home #wbp-home-location-grid > a.wbp-location-card:hover {
  transform: translateY(-2px);
}

/* Main section columns */
#main-content.wbp-home .wbp-locations {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px !important;
  align-items: start !important;
  gap: 36px !important;
}

/* Compact service-area card, never a tall pillar */
#main-content.wbp-home .wbp-locations__visual {
  align-self: start !important;
  justify-self: stretch !important;
  display: flex !important;
  min-height: 0 !important;
  height: 280px !important;
  max-height: 280px !important;
  padding: 28px 24px !important;
  box-sizing: border-box !important;
}

/* Tablet */
@media (max-width: 1024px) {
  #main-content.wbp-home .wbp-locations {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  #main-content.wbp-home .wbp-locations__visual {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 22px 24px !important;
  }
}

/* Small mobile: one town per row */
@media (max-width: 600px) {
  #main-content.wbp-home #wbp-home-location-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
}
/*
=============================================================================
WBP-C01K — LOCATIONS BREAKPOINT FIX
Append AFTER C01J and all other homepage CSS.

Cause:
C01J changed the location grid to one column at max-width: 600px.
The latest screenshot is 568px wide, so that rule was being triggered.

Correct behaviour:
- 431px and wider: TWO town columns
- 430px and narrower: ONE town column
=============================================================================
*/

/* Explicitly restore two columns above phone width. */
@media (min-width: 431px) {
  #main-content.wbp-home #wbp-home-location-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
  }
}

/* Only genuinely narrow phones use one column. */
@media (max-width: 430px) {
  #main-content.wbp-home #wbp-home-location-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
  }
}
/*
=============================================================================
WBP-C01M — LOCATIONS FINAL SAFEGUARD
Append at the END of wbp-homepage.css.

Root cause:
WordPress/BeTheme inserted <br> elements between each location <a>.
Because the nav is CSS Grid, each <br> became a separate grid item and occupied
column 2, leaving every town link in column 1.

This safeguard removes those formatting artefacts from layout even if the editor
inserts them again.
=============================================================================
*/

/* WordPress editor formatting must never become grid/flex children here. */
.wbp-home nav.wbp-location-grid > br,
.wbp-home .wbp-locations__visual > br,
.wbp-home .wbp-locations > br,
.wbp-home .wbp-locations__content > br {
  display: none !important;
}

/* Authoritative location grid. */
.wbp-home nav.wbp-location-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 10px 12px !important;
  width: 100% !important;
}

.wbp-home nav.wbp-location-grid > a.wbp-location-card {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* One column only on genuinely narrow phones. */
@media (max-width: 480px) {
  .wbp-home nav.wbp-location-grid {
    grid-template-columns: 1fr !important;
  }
}
