/* ===== Page content: matches the SP Page Builder / UIkit look of the Joomla site ===== */

/* Each old "row" is a full-width section. Measured on the Joomla site: container max 1500px with 30px side
   padding; columns have 15px gutters; blocks inside a column are 20px apart. */
.pr-main > .wp-block-group.alignfull,
.pr-main > .pr-section { margin: 0; }
/* Box model copied from SP Page Builder + the Joomla template: container (540/720/960/1140/1320px, padding
   15px below 640px and 30px above) > row (-15px margins) > columns with 15px padding. --pr-row is the resulting
   row width (full width on phones); content that is not in columns sits 15px in, like a column's content. */
.pr-section { box-sizing: border-box; width: 100%; padding-left: 0; padding-right: 0; --pr-row: 100%; }
@media (min-width: 576px) { .pr-section { --pr-row: 540px; } }
@media (min-width: 640px) { .pr-section { --pr-row: 510px; padding-left: 15px; padding-right: 15px; } }
@media (min-width: 768px) { .pr-section { --pr-row: 690px; } }
@media (min-width: 992px) { .pr-section { --pr-row: 930px; } }
@media (min-width: 1200px) { .pr-section { --pr-row: 1110px; } }
@media (min-width: 1400px) {
	.pr-section { --pr-row: 1290px; }
	/* Rows with a custom "container width" in SP Page Builder (applies from 1400px) */
	.pr-section--w1200 { --pr-row: 1170px; }
	.pr-section--w1500 { --pr-row: 1470px; }
	.pr-section--w1600 { --pr-row: 1570px; }
	.pr-section--w1700 { --pr-row: 1670px; }
}
.pr-section > * { box-sizing: border-box; margin-left: auto; margin-right: auto; width: 100%; max-width: var(--pr-row); }
.pr-section > :not(.wp-block-columns) { width: calc(100% - 30px); max-width: calc(var(--pr-row) - 30px); padding-left: 0; padding-right: 0; }
.pr-section > .wp-block-columns { gap: 0; margin-top: 0; margin-bottom: 0; }
/* Columns wrap like SP rows; per-breakpoint widths come from each page's layout CSS */
.pr-section .wp-block-columns.pr-cols { flex-wrap: wrap !important; }
.pr-section .wp-block-column { padding: 0 15px; box-sizing: border-box; }
.pr-section .wp-block-columns > .wp-block-column:not([style*="flex-basis"]) { flex-basis: 100%; }
.pr-section--bg-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.pr-section--fixed { background-attachment: fixed; }
@media (hover: none), (max-width: 1024px) { .pr-section--fixed { background-attachment: scroll; } }

/* Text: no font size/colour set here on purpose. On the Joomla site, page text inherits styles that the
   hand-written HTML sections and the pop-up apply to the whole page, so the port does the same. */
/* Paragraph/list/heading spacing: UIkit base rules apply, as on the Joomla site. There every page-builder block
   sat in its own wrapper, so UIkit's "* + p { margin-top }" rules never fired between blocks; only the bottom
   margins separated them. The same is done here by removing top margins at block level. */
.pr-section > *,
.pr-section .wp-block-column > *,
.pr-section .wp-block-group > :first-child { margin-top: 0; }
.pr-section .wp-block-column > :is(h1, h2, h3, h4, h5, h6):not(:first-child):not(.pr-heading) { margin-top: 40px; }
.pr-section .has-text-color .wp-block-heading,
.pr-section.has-text-color .wp-block-heading,
.pr-section.has-text-color p { color: inherit; }
.pr-section figure { margin-left: 0; margin-right: 0; }
.pr-section > figure { margin-left: auto; margin-right: auto; }   /* image in a single-column row: inside the container like other content */
.pr-section .wp-block-image img { max-width: 100%; height: auto; vertical-align: middle; }
.pr-section .wp-block-image.aligncenter { text-align: center; }
.pr-section .wp-block-image.aligncenter img { margin: 0 auto; }

/* Headings from the "UI Heading" addon (template "tm-title"): the global heading size for their level, bold, the usual
   20px gap below (UIkit margin classes such as uk-margin-small still apply). Some pages' own CSS restyles them
   (e.g. the home page makes h2s uppercase with a 48px gap); that CSS is carried over with the page. */
:where(.pr-heading) { margin-top: 0; }
.pr-heading { font-weight: 800; color: #1c1c1c; }
.pr-heading.is-primary,
.pr-section .pr-heading.is-primary { color: var(--pr-blue); }   /* own colour beats the section's text colour, as on Joomla */
.pr-heading.has-text-align-left { text-align: left; }
.pr-heading a { color: inherit; text-decoration: none; }

/* Buttons (UIkit primary / default) */
.wp-block-button__link, .wp-element-button {
	background: var(--pr-blue); color: #fff; border: 1px solid transparent; border-radius: 0;
	padding: 0 30px; line-height: 38px; font-size: 15px; text-transform: none; text-decoration: none; font-family: inherit;
	transition: background-color .1s ease-in-out, color .1s ease-in-out, border-color .1s ease-in-out;
}
.wp-block-button__link:hover { background: #397497; color: #fff; text-decoration: none; }   /* template uk-button-primary hover */
.wp-block-button.is-style-outline .wp-block-button__link {   /* = the template's uk-button-default */
	background: transparent; color: var(--pr-blue); border-color: var(--pr-blue); border-width: 1px; padding: 0 30px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus { background: var(--pr-blue); color: #fff; border-color: var(--pr-blue); }
.pr-buttons--large .wp-block-button__link { line-height: 46px; padding: 0 40px; font-size: 1.025rem; }
.pr-buttons { gap: 15px; }

/* Cards (uicard): whole card clickable, image zooms on hover, outlined "Read more" */
/* Card = UIkit panel on the old site (flow-root: margins of the last paragraph stay inside; no outer margin) */
.pr-card { position: relative; display: flow-root; margin-bottom: 0; }
.pr-card .pr-card__image { overflow: hidden; margin: 0; }
.pr-card .pr-card__image a { display: block; }
.pr-card .pr-card__image img { display: block; width: 100%; transition: transform .3s ease-out; }
.pr-card:hover .pr-card__image img { transform: scale(1.03); }
.pr-card .pr-card__title { font-size: 26px; color: var(--pr-blue); margin: 20px 0 0; }
.pr-card .pr-card__title a { color: inherit; text-decoration: none; }
.pr-card .pr-card__title + * { margin-top: 20px; }
/* Card body: the old card wrapped it in a panel with a 20px top margin; first/last child margins removed */
.pr-section .pr-card .pr-card__content { margin-top: 20px; display: flow-root; }   /* uk-panel on the old site */
.pr-card .pr-card__content > :first-child { margin-top: 0; }
.pr-card .pr-card__content > :last-child { margin-bottom: 0; }
/* UI text block (uitext): title uses the global heading size; 20px under it; body in its own wrapper */
.pr-section .pr-text-title { margin: 0 0 20px; }
/* UIkit "primary" text colour as the Joomla template set it */
.uk-text-primary { color: var(--pr-blue) !important; }
.pr-card--linked .pr-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pr-card__button { position: relative; z-index: 2; margin-top: 20px; }

/* Image with text overlay (image_overlay) */
.pr-overlay { margin-bottom: 30px; }
.pr-overlay .wp-block-cover__background { transition: background-color .3s, opacity .3s; }
.pr-overlay:hover .wp-block-cover__background { background-color: #fff; }
.pr-overlay .pr-overlay__title { color: #fff; font-size: 50px; font-weight: 500; margin: 0; text-align: center; }
/* the title link keeps the normal link colour, as on the Joomla site */
.pr-overlay .pr-overlay__title a { color: var(--pr-blue); text-decoration: none; }
.pr-overlay .pr-overlay__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pr-overlay .pr-overlay__title i { margin-right: 10px; }
.pr-overlay .pr-overlay__subtitle { color: #000; font-size: 25px; margin: 0; text-align: center; }
.pr-overlay:hover .pr-overlay__title { color: #000; }

/* Icons and counters */
.pr-icon { margin-bottom: 20px; line-height: 1; }
.pr-counter { text-align: center; margin-bottom: 30px; }
.pr-counter__number { font-family: var(--pr-font-heading); font-weight: 800; font-size: 48px; line-height: 1.2; }
.pr-counter__title { font-size: 16px; margin-top: 10px; }

/* Testimonial */
/* Measured on the Joomla site (SP "Testimonial Pro"); the quote text itself is styled by UIkit's blockquote */
.pr-testimonial { text-align: center; }
.pr-testimonial__quote { font-size: 71px; line-height: 71px; color: var(--pr-blue); margin-bottom: 10px; }
.pr-testimonial__message { font-size: 16px; line-height: 24px; margin-bottom: 10px; }
.pr-testimonial__footer { margin-top: 20px; }
.pr-testimonial cite { font-style: normal; font-weight: 400; line-height: 40px; }

/* Card slider */
.pr-slider { position: relative; margin-bottom: 30px; }
/* Items per view / gap come from the old slider settings (CSS variables on the element); UIkit breakpoints */
.pr-slider { --n: var(--pr-per, 1); }
@media (min-width: 640px) { .pr-slider { --n: var(--pr-per-s, var(--pr-per, 1)); } }
@media (min-width: 960px) { .pr-slider { --n: var(--pr-per-m, var(--pr-per-s, var(--pr-per, 2))); } }
@media (min-width: 1200px) { .pr-slider { --n: var(--pr-per-l, var(--pr-per-m, 4)); } }
@media (min-width: 1600px) { .pr-slider { --n: var(--pr-per-xl, var(--pr-per-l, var(--pr-per-m, 4)))); } }
.pr-slider__track { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--pr-gap, 30px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.pr-slider__track::-webkit-scrollbar { display: none; }
.pr-slider__item { flex: 0 0 calc((100% - (var(--n) - 1) * var(--pr-gap, 30px)) / var(--n)); scroll-snap-align: start; }
.pr-slider__item img { display: block; width: 100%; height: auto; }
.pr-slider__item a { color: inherit; text-decoration: none; }
.pr-slider__prev, .pr-slider__next {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; cursor: pointer;
	background: rgba(255,255,255,.85); color: #333; width: 40px; height: 40px; font-size: 28px; line-height: 1;
}
.pr-slider__prev { left: 10px; }
.pr-slider__next { right: 10px; }



/* Plain pages (search, 404) */
.pr-page { max-width: var(--pr-container); margin: 0 auto; padding: 70px 30px; box-sizing: border-box; }

/* Rows set to "full width" in SP Page Builder: no container, edge to edge */
.pr-section.pr-section--full { padding-left: 0; padding-right: 0; }
.pr-section.pr-section--full > * { width: auto; max-width: none; padding-left: 0; padding-right: 0; }

/* "Hide on device" switches from SP Page Builder (same breakpoints) */
@media (min-width: 1200px) { .pr-hide-xl { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .pr-hide-lg { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .pr-hide-md { display: none !important; } }
@media (min-width: 576px) and (max-width: 767.98px) { .pr-hide-sm { display: none !important; } }
@media (max-width: 575.98px) { .pr-hide-xs { display: none !important; } }

/* Utility classes that hand-written HTML on the old site borrowed from the Joomla template. Equivalent rules
   written from the measured result (see migration/build/template-classes.md for the site-wide list). */
.text-theme-colored { color: var(--pr-blue) !important; }
.line-bottom-double-line-centered { position: relative; margin-bottom: 15px; padding-bottom: 15px; }
.line-bottom-double-line-centered::before,
.line-bottom-double-line-centered::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; margin: 0 auto; background: var(--pr-blue); }
.line-bottom-double-line-centered::before { bottom: 3px; width: 20px; }
.line-bottom-double-line-centered::after { bottom: 7px; width: 45px; }
/* Images with a fixed width set in SP Page Builder keep it (SP output width + max-width) */
.pr-section .wp-block-image.pr-image--fixed img { max-width: none; }
/* Bootstrap ".container" inside hand-written HTML: the Joomla template gave it 15px side padding (30px from 640px) */
:where(.pr-raw) .container { padding-left: 15px; padding-right: 15px; }   /* low specificity: the page's own CSS still wins, as before */
@media (min-width: 640px) { :where(.pr-raw) .container { padding-left: 30px; padding-right: 30px; } }
/* Full-width rows: SP's row has -15px margins and its columns 15px padding, so column content runs edge to edge */
.pr-section.pr-section--full > .wp-block-columns { margin-left: -15px; margin-right: -15px; width: auto; max-width: none; }
.pr-section.pr-section--full { overflow-x: clip; }   /* the -15px row margins must not cause a sideways scrollbar */
/* Measured on the Joomla site: overlay content padding 35px, title line-height 1.4 + 20px gap, subtitle 1.6;
   testimonial block has 40px space below */
.pr-overlay.wp-block-cover { padding: 35px; }
.pr-overlay .pr-overlay__title { line-height: 1.4; margin: 0 0 20px; }
.pr-overlay .pr-overlay__subtitle { line-height: 1.6; }
.pr-testimonial { padding-bottom: 40px; }

/* Nested rows (an SP row inside a column): no container width/padding of their own, columns keep the 15px gutters */
.pr-section.pr-nested { padding-left: 0; padding-right: 0; }
.pr-section.pr-nested > * { width: auto; max-width: none; }
.pr-section.pr-nested > .wp-block-columns { margin-left: -15px; margin-right: -15px; }

/* Enquiry form "thank you" message (the old site showed BA Forms' message pop-up) */
.pr-form-message { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .15); }
.pr-form-message__box { position: relative; background: #fff; width: 600px; max-width: calc(100% - 30px); padding: 50px 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); text-align: center; }
.pr-form-message__box p { margin: 0; color: #212121; font-size: 16px; }
.pr-form-message__close { position: absolute; top: 10px; right: 15px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #000; }

/* Policy pages (Privacy, Cookies, Quality): hand-written <main class="col-lg-9"> column had 15px side padding on Joomla. */
.pr-main main.col-lg-9 { --bs-gutter-x: 30px; }   /* its inline padding is calc(var(--bs-gutter-x) * .5), 30px on Joomla */

/* Image addon title sits inline-block above its image (as SP Page Builder): no extra gap above the image. Only /quality uses it. */
.pr-image-title + .wp-block-image { margin-top: 0; }

/* ---------- User-requested changes (tracker review 16 Nov 2026), only on pages converted after that date ---------- */
/* U-01: "Enquire now" call to action in place of the old landing-page form (inside its navy band). */
.pr-enquire-cta { padding: 30px 20px; text-align: center; }
.pr-enquire-cta .pr-enquire-cta__text { color: #fff; font-size: 1.25rem; margin: 0 0 20px; text-align: center; }
.pr-enquire-cta .wp-block-button__link { background: #fff; color: var(--pr-navy); font-weight: 700; padding: 14px 36px; border-radius: 4px; }
.pr-enquire-cta .wp-block-button__link:hover { background: var(--pr-blue); color: #fff; text-decoration: none; }
/* U-02: overlay titles take the addon's own style; left aligned and no hover colour, as on the old site. */
.pr-overlay .pr-overlay__title.pr-overlay__title--left { text-align: left; }
.pr-overlay.pr-overlay--nohover:hover .wp-block-cover__background { background-color: #000; }
/* UIkit "primary" cards in the template's blue (#4990ba), not UIkit's default bright blue. */
.pr-main .uk-card-primary { background-color: var(--pr-blue); }
/* Why PlantRun: the three boxes (Increase Productivity / Reduce Downtime / Remove Paperwork) laid out the same way:
   centred title, icon and intro; the bullet list as a left-aligned block in the middle. */
#sppb-addon-XgPSOu513HfPbbxCfsq1y .uk-card .ui-title { text-align: center; }
#sppb-addon-XgPSOu513HfPbbxCfsq1y .uk-card .ui-content p { text-align: center !important; }
#sppb-addon-XgPSOu513HfPbbxCfsq1y .uk-card .ui-content ul { display: inline-block; text-align: left !important; margin-bottom: 0; }
/* UIkit "primary" panels and buttons in the template blue too, as on the old site (Shopfloor/Waste Recycling tiles,
   What is PlantRun "Get Started" button). Only To do pages use these; Why PlantRun's box already had this colour. */
.pr-main .uk-section-primary { background-color: var(--pr-blue); }
.pr-main .uk-button-primary { background-color: var(--pr-blue); }
.pr-main .uk-button-primary:hover, .pr-main .uk-button-primary:focus { background-color: #397497; }

/* Home "Request Budgetary Pricing" banner (Option B, 17-20 Nov 2026): PlantRun dark-grey panel, white text and a
   real "Get My Free Estimate" button (was a blue title link and black subtitle on a 70% black overlay, hard to read).
   The banner background no longer flips to white on hover. */
.pr-overlay--cta.wp-block-cover { min-height: 250px !important; }
.pr-overlay--cta .wp-block-cover__background,
.pr-overlay--cta:hover .wp-block-cover__background { background-color: var(--pr-dark) !important; opacity: .85 !important; }
.pr-overlay--cta .pr-overlay__title,
.pr-overlay--cta:hover .pr-overlay__title { color: #fff; font-size: 44px; margin: 0; }
.pr-overlay--cta .pr-overlay__subtitle { color: #fff; opacity: .85; font-family: 'Roboto', sans-serif; font-size: 20px; margin: 8px 0 22px; }
.pr-overlay--cta .wp-block-buttons { justify-content: center; }
.pr-overlay--cta .wp-block-buttons .wp-block-button__link { background: var(--pr-blue); color: #fff; font-family: 'Roboto', sans-serif; font-size: 17px; font-weight: 600; padding: 13px 30px; border-radius: 4px; transition: background-color .2s; }
.pr-overlay--cta .wp-block-buttons .wp-block-button__link:hover { background: #3a7aa0; color: #fff; }
.pr-overlay--cta .wp-block-buttons .wp-block-button__link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
	.pr-overlay--cta.wp-block-cover { padding: 30px 20px; }
	.pr-overlay--cta .pr-overlay__title, .pr-overlay--cta:hover .pr-overlay__title { font-size: 28px; }
	.pr-overlay--cta .pr-overlay__subtitle { font-size: 17px; }
}
