/* =========================================================
   Inner page sections (theme 1.2) — built from the Figma
   "About Us / Services / Pool Equipment / Contact" designs.
   Loaded on the inner pages and inside the block editor, so
   pages look the same while you edit them.
   ========================================================= */

:root {
  --white: #fcfcfc;
  --black: #0f161d;
  --blue: #0071e3;
  --blue-hover: #0062c4;
  --bg: #f5f5f7;
  --gold: #a37b02;
  --aqua: #06bad4;
  --ocean: #003c70;
  --text-soft: rgba(15, 22, 29, 0.6);
  --line: rgba(15, 22, 29, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
  --pad: 80px;
}

/* ---------- Sections ---------- */
:is(.entry, .editor-styles-wrapper) .sp-section {
  padding: 100px max(var(--pad), calc((100% - 1280px) / 2));
  background: var(--white);
  font-family: var(--sans);
}
:is(.entry, .editor-styles-wrapper) .sp-section.sp-section--light { background: var(--bg); }
:is(.entry, .editor-styles-wrapper) .sp-section > *,
:is(.entry, .editor-styles-wrapper) .sp-section :where(.wp-block-column, .wp-block-group, .wp-block-group__inner-container) > * { margin-top: 0; margin-bottom: 0; }
:is(.entry, .editor-styles-wrapper) .sp-section .wp-block-columns { margin: 0; }

/* Text */
:is(.entry, .editor-styles-wrapper) .sp-section p { font: 400 16px/1.6 var(--sans); color: var(--text-soft); }
:is(.entry, .editor-styles-wrapper) .sp-section h2 { font: 600 44px/1.15 var(--serif); color: var(--black); margin: 0 0 20px; }
:is(.entry, .editor-styles-wrapper) .sp-section h3 { font: 600 26px/1.2 var(--serif); color: var(--black); margin: 0 0 10px; }
:is(.entry, .editor-styles-wrapper) .sp-section p + p { margin-top: 16px; }
:is(.entry, .editor-styles-wrapper) .sp-section a:not(.wp-block-button__link) { color: var(--blue); }
:is(.entry, .editor-styles-wrapper) p.sp-eyebrow { font: 400 24px/1.45 var(--serif); color: var(--gold); margin: 0 0 4px; }

/* Centred section heading */
:is(.entry, .editor-styles-wrapper) .sp-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
:is(.entry, .editor-styles-wrapper) .sp-head h2 { margin: 0; }
:is(.entry, .editor-styles-wrapper) .sp-head p.sp-lead { max-width: 720px; margin: 12px auto 0; font-size: 18px; line-height: 1.65; }

/* Buttons */
:is(.entry, .editor-styles-wrapper) .sp-section .wp-block-buttons,
:is(.entry, .editor-styles-wrapper) .sp-cta .wp-block-buttons { gap: 16px 20px; margin-top: 36px; }
:is(.entry, .editor-styles-wrapper) .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--blue);
  color: var(--white);
  font: 400 16px/1 var(--sans);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
:is(.entry, .editor-styles-wrapper) .wp-block-button .wp-block-button__link:hover { background: var(--blue-hover); }
:is(.entry, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border-color: var(--blue); color: var(--blue); }
:is(.entry, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(0, 113, 227, 0.08); }
:is(.entry, .editor-styles-wrapper) .sp-on-dark .wp-block-button.is-style-outline > .wp-block-button__link { border-color: var(--white); color: var(--white); }
:is(.entry, .editor-styles-wrapper) .sp-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(252, 252, 252, 0.14); }
:is(.entry, .editor-styles-wrapper) .wp-block-button.sp-btn-ghost > .wp-block-button__link { background: none; color: var(--black); padding: 0 12px; }
:is(.entry, .editor-styles-wrapper) .wp-block-button.sp-btn-ghost > .wp-block-button__link::after {
  content: ""; width: 20px; height: 20px;
  background: url("../assets/icons/chevron-dark.svg") center / 20px no-repeat;
  transition: transform .2s ease;
}
:is(.entry, .editor-styles-wrapper) .wp-block-button.sp-btn-ghost > .wp-block-button__link:hover { color: var(--blue); }
:is(.entry, .editor-styles-wrapper) .wp-block-button.sp-btn-ghost > .wp-block-button__link:hover::after { transform: translateX(3px); }

/* Text link with arrow ("Enquire now →") */
:is(.entry, .editor-styles-wrapper) p.sp-link { margin-top: 14px; font: 400 14px/1.6 var(--sans); }
:is(.entry, .editor-styles-wrapper) p.sp-link a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; }
:is(.entry, .editor-styles-wrapper) p.sp-link a::after {
  content: ""; width: 18px; height: 18px;
  background: url("../assets/icons/arrow.svg") center / 18px no-repeat;
  transition: transform .2s ease;
}
:is(.entry, .editor-styles-wrapper) p.sp-link a:hover::after { transform: translateX(3px); }

/* Grids */
:is(.entry, .editor-styles-wrapper) .sp-grid { display: grid; gap: 24px; }
:is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
:is(.entry, .editor-styles-wrapper) .sp-grid > * { margin: 0; min-width: 0; }

/* ---------- Feature card (icon, title, text) ---------- */
:is(.entry, .editor-styles-wrapper) .sp-feature {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: border-color .2s ease, transform .3s ease, box-shadow .3s ease;
}
:is(.entry, .editor-styles-wrapper) .sp-feature:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 22, 29, 0.06); }
:is(.entry, .editor-styles-wrapper) .sp-feature figure.sp-icon,
:is(.entry, .editor-styles-wrapper) figure.sp-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 0 20px;
  border-radius: 50%; background: rgba(0, 113, 227, 0.08);
}
:is(.entry, .editor-styles-wrapper) figure.sp-icon img { width: 24px; height: 24px; }
:is(.entry, .editor-styles-wrapper) .sp-feature p { font-size: 14px; line-height: 1.55; }

/* ---------- About: story ---------- */
:is(.entry, .editor-styles-wrapper) .sp-story.wp-block-columns { gap: 80px; }
:is(.entry, .editor-styles-wrapper) .sp-story__media { position: relative; }
:is(.entry, .editor-styles-wrapper) figure.sp-story__img { margin: 0; }
:is(.entry, .editor-styles-wrapper) figure.sp-story__img img { width: 100%; aspect-ratio: 540 / 612; object-fit: cover; border-radius: 20px; }
:is(.entry, .editor-styles-wrapper) .sp-story__media .sp-badge {
  position: absolute; left: 28px; bottom: 28px;
  padding: 20px 24px; border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(15, 22, 29, 0.14);
}
:is(.entry, .editor-styles-wrapper) p.sp-badge__num { font: 600 52px/1 var(--serif); color: var(--blue); }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-badge__text { max-width: 140px; margin-top: 8px; font-size: 14px; line-height: 1.4; }

/* ---------- About: stats strip ---------- */
:is(.entry, .editor-styles-wrapper) .sp-section.sp-stats { padding-top: 72px; padding-bottom: 72px; background: var(--ocean); }
:is(.entry, .editor-styles-wrapper) p.sp-stat__value { font: 600 52px/1 var(--serif); color: var(--white); }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-stat__label { margin-top: 10px; color: rgba(252, 252, 252, 0.75); }

/* ---------- About: certificate ---------- */
:is(.entry, .editor-styles-wrapper) .sp-cert.wp-block-columns { gap: 80px; }
:is(.entry, .editor-styles-wrapper) .sp-cert__card {
  padding: 32px; border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 44px rgba(15, 22, 29, 0.08);
}
:is(.entry, .editor-styles-wrapper) figure.sp-cert__img { margin: 0; }
:is(.entry, .editor-styles-wrapper) figure.sp-cert__img img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-cert__caption { margin-top: 16px; font-size: 14px; }
:is(.entry, .editor-styles-wrapper) .sp-facts { margin-top: 32px !important; border-top: 1px solid var(--line); }
:is(.entry, .editor-styles-wrapper) .sp-fact { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-fact p { margin: 0; }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-fact__label { font: 700 12px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-fact__value { color: var(--black); }

/* ---------- Call to action band ---------- */
:is(.entry, .editor-styles-wrapper) .sp-cta {
  padding: 96px max(var(--pad), calc((100% - 960px) / 2));
  text-align: center;
  background:
    linear-gradient(90deg, rgba(15, 22, 29, 0.82), rgba(0, 60, 112, 0.72)),
    url("../assets/contact-bg.png") center / cover no-repeat;
}
:is(.entry, .editor-styles-wrapper) .sp-cta > *,
:is(.entry, .editor-styles-wrapper) .sp-cta > .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: 0; }
:is(.entry, .editor-styles-wrapper) .sp-cta h2 { font: 600 44px/1.15 var(--serif); color: var(--white); margin: 0; }
:is(.entry, .editor-styles-wrapper) .sp-cta.sp-cta p { max-width: 720px; margin: 16px auto 0; font: 400 18px/1.65 var(--sans); color: rgba(252, 252, 252, 0.85); }
:is(.entry, .editor-styles-wrapper) .sp-cta.sp-cta .wp-block-buttons { justify-content: center; margin-top: 36px; }
:is(.entry, .editor-styles-wrapper) .sp-cta .wp-block-button__link { min-width: 220px; min-height: 56px; }

/* ---------- Services ---------- */
:is(.entry, .editor-styles-wrapper) .sp-svc {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0;
  min-height: 204px; overflow: hidden;
  border-radius: 20px; background: var(--bg);
  transition: box-shadow .3s ease, transform .3s ease;
}
:is(.entry, .editor-styles-wrapper) .sp-svc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 22, 29, 0.08); }
:is(.entry, .editor-styles-wrapper) figure.sp-svc__img { position: relative; margin: 0; height: 100%; min-height: 204px; overflow: hidden; }
:is(.entry, .editor-styles-wrapper) figure.sp-svc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
:is(.entry, .editor-styles-wrapper) .sp-svc:hover figure.sp-svc__img img { transform: scale(1.04); }
:is(.entry, .editor-styles-wrapper) .sp-svc__body { padding: 32px; }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-svc__num { font: 400 24px/1.45 var(--serif); color: var(--gold); margin-bottom: 4px; }
:is(.entry, .editor-styles-wrapper) .sp-svc__body p { font-size: 14px; line-height: 1.55; }
:is(.entry, .editor-styles-wrapper) .sp-svc__body h3 { margin-bottom: 8px; }

/* Process steps */
:is(.entry, .editor-styles-wrapper) .sp-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
:is(.entry, .editor-styles-wrapper) .sp-steps::before {
  content: ""; position: absolute; top: 32px; left: 32px;
  right: calc((100% - 120px) / 4 - 32px);
  height: 1px; background: rgba(0, 113, 227, 0.3);
}
:is(.entry, .editor-styles-wrapper) .sp-steps > * { margin: 0; }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-step__num {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 24px;
  border-radius: 50%; background: var(--blue);
  font: 600 26px/1 var(--serif); color: var(--white);
  box-shadow: 0 0 0 8px var(--bg);
}
:is(.entry, .editor-styles-wrapper) .sp-step p { font-size: 14px; line-height: 1.55; }

/* Feature chips */
:is(.entry, .editor-styles-wrapper) .sp-features.wp-block-columns { gap: 80px; }
:is(.entry, .editor-styles-wrapper) .sp-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-chip {
  display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 16px 20px; border: 1px solid rgba(15, 22, 29, 0.1); border-radius: 14px;
  background: var(--white); color: var(--black);
  transition: border-color .2s ease;
}
:is(.entry, .editor-styles-wrapper) p.sp-chip::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0, 113, 227, 0.12) url("../assets/icons/check.svg") center / 16px no-repeat;
}
:is(.entry, .editor-styles-wrapper) p.sp-chip:hover { border-color: var(--blue); }

/* Pool types */
:is(.entry, .editor-styles-wrapper) .sp-project { position: relative; aspect-ratio: 240 / 300; overflow: hidden; border-radius: 20px; background: var(--black); }
:is(.entry, .editor-styles-wrapper) .sp-project figure { position: absolute; inset: 0; margin: 0; }
:is(.entry, .editor-styles-wrapper) .sp-project figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
:is(.entry, .editor-styles-wrapper) .sp-project:hover figure img { transform: scale(1.05); }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-project__label {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 14px 12px; text-align: center;
  background: rgba(252, 252, 252, 0.92);
  font: 600 20px/1.45 var(--serif); color: var(--black);
}

/* ---------- Pool equipment ---------- */
:is(.entry, .editor-styles-wrapper) .sp-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -16px 0 40px; }
:is(.entry, .editor-styles-wrapper) .sp-filter button {
  height: 40px; padding: 0 24px;
  border: 1px solid rgba(15, 22, 29, 0.2); border-radius: 20px;
  background: var(--white); color: var(--black);
  font: 400 14px/1 var(--sans); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
:is(.entry, .editor-styles-wrapper) .sp-filter button:hover { border-color: var(--blue); color: var(--blue); }
:is(.entry, .editor-styles-wrapper) .sp-filter button.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
:is(.entry, .editor-styles-wrapper) .sp-filter button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }

:is(.entry, .editor-styles-wrapper) .sp-product-card {
  display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
  padding: 16px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--white);
  transition: border-color .2s ease, transform .3s ease, box-shadow .3s ease;
}
:is(.entry, .editor-styles-wrapper) .sp-product-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 22, 29, 0.06); }
:is(.entry, .editor-styles-wrapper) .sp-product-card.is-hidden { display: none; }
:is(.entry, .editor-styles-wrapper) .sp-product-card > :not(figure) { margin-left: 8px; margin-right: 8px; }
:is(.entry, .editor-styles-wrapper) figure.sp-product-card__img {
  display: flex; align-items: center; justify-content: center;
  height: 200px; margin: 0 0 18px; padding: 22px 28px;
  border-radius: 14px; background: var(--bg);
}
:is(.entry, .editor-styles-wrapper) figure.sp-product-card__img img {
  width: 100%; height: 156px; max-width: 100%;
  object-fit: contain; mix-blend-mode: multiply; /* hides white photo backgrounds */
}
:is(.entry, .editor-styles-wrapper) figure.sp-product-card__img.sp-rotate img { transform: rotate(90deg); }
:is(.entry, .editor-styles-wrapper) .sp-section p.sp-tag {
  align-self: flex-start; margin-bottom: 10px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(6, 186, 212, 0.14);
  font: 700 12px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ocean);
}
:is(.entry, .editor-styles-wrapper) .sp-product-card h3 { margin-bottom: 8px; }
:is(.entry, .editor-styles-wrapper) .sp-product-card p { font-size: 14px; line-height: 1.55; }
:is(.entry, .editor-styles-wrapper) .sp-product-card p.sp-link { margin-top: auto; padding-top: 14px; margin-bottom: 8px; }

:is(.entry, .editor-styles-wrapper) .sp-ask {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 32px; border-radius: 20px; background: var(--ocean);
}
:is(.entry, .editor-styles-wrapper) .sp-section .sp-ask h3 { font-size: 30px; color: var(--white); }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-ask p { font-size: 14px; color: rgba(252, 252, 252, 0.8); }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-ask .wp-block-buttons { margin-top: 28px; }
:is(.entry, .editor-styles-wrapper) .sp-ask .wp-block-button__link { min-height: 44px; padding: 0 24px; font-size: 14px; }

/* ---------- Contact ---------- */
:is(.entry, .editor-styles-wrapper) .sp-contact-card { padding: 32px 28px; border-radius: 20px; background: var(--bg); }
:is(.entry, .editor-styles-wrapper) .sp-contact-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 50%; background: var(--white);
}
:is(.entry, .editor-styles-wrapper) .sp-contact-card__icon img { width: 24px; height: 24px; }
:is(.entry, .editor-styles-wrapper) .sp-contact-card h3 { margin-bottom: 12px; }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-contact-card p { margin: 0; color: rgba(15, 22, 29, 0.7); line-height: 1.65; overflow-wrap: anywhere; }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-contact-card p + p { margin-top: 14px; }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-contact-card a { color: inherit; text-decoration: none; }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-contact-card a:hover { color: var(--blue); }

:is(.entry, .editor-styles-wrapper) .sp-enquiry.wp-block-columns { gap: 32px; align-items: stretch; }
:is(.entry, .editor-styles-wrapper) .sp-enquiry .form { height: 100%; }
:is(.entry, .editor-styles-wrapper) .sp-panel { height: 100%; padding: 48px 40px; border-radius: 20px; background: var(--ocean); }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-panel p.sp-eyebrow { color: var(--aqua); }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-panel h2 { font-size: 40px; color: var(--white); }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-panel p { color: rgba(252, 252, 252, 0.8); }
:is(.entry, .editor-styles-wrapper) .sp-section .sp-panel p.sp-check {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  color: var(--white);
}
:is(.entry, .editor-styles-wrapper) .sp-panel p.sp-check:first-of-type { margin-top: 24px; }
:is(.entry, .editor-styles-wrapper) .sp-panel p.sp-check::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(6, 186, 212, 0.16) url("../assets/icons/check-aqua.svg") center / 16px no-repeat;
}
:is(.entry, .editor-styles-wrapper) .sp-section .sp-panel p.sp-panel__small {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(252, 252, 252, 0.16);
  font-size: 14px; color: rgba(252, 252, 252, 0.7);
}
:is(.entry, .editor-styles-wrapper) .sp-section .sp-panel .wp-block-buttons { margin-top: 16px; }

/* Map with address card */
.map { position: relative; }
.map__card {
  position: absolute; top: 50%; left: calc(50% + 36px); transform: translateY(-50%);
  max-width: 340px; padding: 20px 24px; border-radius: 16px;
  background: var(--white); box-shadow: 0 16px 36px rgba(15, 22, 29, 0.16);
  font-family: var(--sans); line-height: 1.5;
}
.map__title { margin: 0; font: 600 26px/1.2 var(--serif); color: var(--black); }
.map__addr { margin: 6px 0 0; font-size: 14px; color: var(--text-soft); }
.map__link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--blue); text-decoration: none; }
.map__link::after { content: " →"; }
.map__link:hover { text-decoration: underline; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  :root { --pad: 40px; }
  :is(.entry, .editor-styles-wrapper) .sp-section { padding-top: 80px; padding-bottom: 80px; }
  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-services { grid-template-columns: minmax(0, 1fr); }
  :is(.entry, .editor-styles-wrapper) .sp-story.wp-block-columns,
  :is(.entry, .editor-styles-wrapper) .sp-cert.wp-block-columns,
  :is(.entry, .editor-styles-wrapper) .sp-features.wp-block-columns { gap: 48px; }
  :is(.entry, .editor-styles-wrapper) .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  :is(.entry, .editor-styles-wrapper) .sp-steps::before { display: none; }
  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  :is(.entry, .editor-styles-wrapper) .sp-story.wp-block-columns,
  :is(.entry, .editor-styles-wrapper) .sp-cert.wp-block-columns,
  :is(.entry, .editor-styles-wrapper) .sp-features.wp-block-columns,
  :is(.entry, .editor-styles-wrapper) .sp-enquiry.wp-block-columns { gap: 32px; }
  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map__card { position: relative; top: auto; left: auto; transform: none; max-width: none; margin: -48px 16px 0; }
  .map { padding-bottom: 24px; }
}
@media (max-width: 767px) {
  :is(.entry, .editor-styles-wrapper) .sp-section { padding: 56px 16px; }
  :is(.entry, .editor-styles-wrapper) .sp-section.sp-stats { padding-top: 48px; padding-bottom: 48px; }
  :is(.entry, .editor-styles-wrapper) .sp-cta { padding: 64px 16px; }
  :is(.entry, .editor-styles-wrapper) .sp-section h2, :is(.entry, .editor-styles-wrapper) .sp-cta h2 { font-size: 32px; }
  :is(.entry, .editor-styles-wrapper) .sp-section h3 { font-size: 24px; }
  :is(.entry, .editor-styles-wrapper) p.sp-eyebrow { font-size: 18px; }
  :is(.entry, .editor-styles-wrapper) .sp-head { margin-bottom: 32px; }
  :is(.entry, .editor-styles-wrapper) .sp-head p.sp-lead, :is(.entry, .editor-styles-wrapper) .sp-cta p { font-size: 16px; }
  :is(.entry, .editor-styles-wrapper) .sp-section .wp-block-buttons { margin-top: 28px; }

  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--3,
  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--4:not(.sp-products) { grid-template-columns: minmax(0, 1fr); }
  :is(.entry, .editor-styles-wrapper) .sp-stats .sp-grid.sp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  :is(.entry, .editor-styles-wrapper) .sp-grid.sp-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :is(.entry, .editor-styles-wrapper) .sp-grid { gap: 16px; }

  :is(.entry, .editor-styles-wrapper) .sp-story__media .sp-badge { left: 16px; bottom: 16px; padding: 14px 18px; }
  :is(.entry, .editor-styles-wrapper) p.sp-badge__num, :is(.entry, .editor-styles-wrapper) p.sp-stat__value { font-size: 40px; }
  :is(.entry, .editor-styles-wrapper) figure.sp-story__img img { aspect-ratio: 4 / 3; }
  :is(.entry, .editor-styles-wrapper) .sp-cert__card { padding: 20px; }
  :is(.entry, .editor-styles-wrapper) .sp-fact { grid-template-columns: 1fr; gap: 4px; }

  :is(.entry, .editor-styles-wrapper) .sp-svc { grid-template-columns: minmax(0, 1fr); }
  :is(.entry, .editor-styles-wrapper) figure.sp-svc__img { height: 200px; }
  :is(.entry, .editor-styles-wrapper) .sp-svc__body { padding: 24px; }
  :is(.entry, .editor-styles-wrapper) .sp-steps { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  :is(.entry, .editor-styles-wrapper) .sp-section p.sp-step__num { width: 56px; height: 56px; margin-bottom: 18px; font-size: 22px; }
  :is(.entry, .editor-styles-wrapper) .sp-chips { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  :is(.entry, .editor-styles-wrapper) .sp-section p.sp-project__label { padding: 10px 8px; font-size: 17px; }

  :is(.entry, .editor-styles-wrapper) .sp-filter { margin: -8px 0 28px; gap: 8px; }
  :is(.entry, .editor-styles-wrapper) .sp-filter button { height: 36px; padding: 0 16px; font-size: 13px; }
  :is(.entry, .editor-styles-wrapper) .sp-product-card { padding: 10px; }
  :is(.entry, .editor-styles-wrapper) .sp-product-card > :not(figure) { margin-left: 4px; margin-right: 4px; }
  :is(.entry, .editor-styles-wrapper) figure.sp-product-card__img { height: 130px; padding: 14px; margin-bottom: 12px; }
  :is(.entry, .editor-styles-wrapper) figure.sp-product-card__img img { height: 100px; }
  :is(.entry, .editor-styles-wrapper) .sp-product-card h3 { font-size: 20px; }
  :is(.entry, .editor-styles-wrapper) .sp-product-card p { font-size: 13px; }
  :is(.entry, .editor-styles-wrapper) .sp-section p.sp-tag { font-size: 10px; }
  :is(.entry, .editor-styles-wrapper) .sp-ask { grid-column: 1 / -1; padding: 32px 24px; }

  :is(.entry, .editor-styles-wrapper) .sp-contact-card { padding: 24px 20px; }
  :is(.entry, .editor-styles-wrapper) .sp-panel { padding: 32px 24px; }
  :is(.entry, .editor-styles-wrapper) .sp-section .sp-panel h2 { font-size: 30px; }
  :is(.entry, .editor-styles-wrapper) .sp-panel .wp-block-button,
  :is(.entry, .editor-styles-wrapper) .sp-panel .wp-block-button__link { width: 100%; }
  :is(.entry, .editor-styles-wrapper) .sp-cta .wp-block-button,
  :is(.entry, .editor-styles-wrapper) .sp-cta .wp-block-button__link { width: 100%; min-width: 0; }
}
