/* Homepage content layer. Places the homepage copy into the existing sections (hero, text and photo sections,
   finishes, why choose us, process, contact band) and adds three sections for the copy that had no home:
   the opening copy, the other services and the FAQ. Colours, type, buttons and the shapes from look.css are unchanged. */

/* ---------- Shared pieces ---------- */
#about-us, #more-services, #epoxy, #projects, #finishes, #why, #process, #faq { scroll-margin-top: 128px; }
.pp-p { margin: 0; }
.pp-p a { font-weight: 600; color: #b8431f; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pp-p a:hover { color: #111; }
.pp-leadin { margin: 0; font-family: var(--pc-font-body); font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--pc-ink); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
ul.pp-intro__list, ul.pp-more__grid, ul.pp-why__people, ul.pp-ticks, .sec--finishes ul.post-grid__items { list-style: none; margin: 0; padding: 0; }
.pp-actions .btn:focus-visible, .pp-faq__q button:focus-visible { outline: 3px solid #111; outline-offset: -6px; }
.pp-more .pc-h2, .split--intro .pc-h2, .split--work .pc-h2, .sec--finishes .pc-h2, .why .pc-h2, .process .pc-h2, .pp-faq .pc-h2 { text-wrap: balance; }
/* Outline button: the line is drawn as a shape so it shows on every screen and follows the cut corner */
.btn-wrap:has(> .btn--outline) { padding: 1px; background: #f0542e; filter: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12.6px), calc(100% - 12.6px) 100%, 0 100%); }
.btn-wrap > .btn--outline { display: block; padding: 15px 27px; }

/* ---------- Opening copy (new section): copy and actions on the left, the five specialities on a cut card ---------- */
.pp-intro { background: #fff; }
.pp-intro__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: center; }
.pp-intro__copy { display: flex; flex-direction: column; gap: 20px; }
.pp-intro__lead { margin: 0; font-family: var(--pc-font-body); font-size: 26px; font-weight: 500; line-height: 1.42; color: var(--pc-ink); text-wrap: pretty; }
.pp-intro__copy .pc-text { max-width: 60ch; }
.pp-intro__panel { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
.pp-intro__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(18px, 18px); background: linear-gradient(76deg, #f9a825, #e65100); clip-path: polygon(48px 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%, 0 48px); }
.pp-intro__card { display: flex; flex-direction: column; gap: 14px; padding: 56px 48px 52px; background: #f8f8f8; clip-path: polygon(48px 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%, 0 48px); }
.pp-intro__item { position: relative; padding: 15px 0 15px 34px; border-top: 1px solid #dcd9d6; font-family: var(--pc-font-body); font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--pc-ink); }
.pp-intro__item:first-child { border-top: 0; }
.pp-intro__item::before { content: ""; position: absolute; left: 4px; top: 22px; width: 11px; height: 11px; background: #f0542e; transform: rotate(45deg); }
@media (max-width: 1024px) {
	.pp-intro__row { grid-template-columns: 1fr; gap: 48px; }
	.pp-intro__copy .pc-text { max-width: none; }
}
@media (max-width: 767px) {
	.pp-intro__row { gap: 36px; }
	.pp-intro__lead { font-size: 20px; }
	.pp-intro__panel { margin: 0 12px 12px 0; }
	.pp-intro__panel::before { transform: translate(12px, 12px); clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); }
	.pp-intro__card { padding: 40px 24px 36px; clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); }
	.pp-intro__item { font-size: 17px; }
	.pp-leadin { font-size: 18px; }
}

/* ---------- Other services (new section): six cut cards, built like the resource cards ---------- */
.pp-more { background: #fff; }
.pp-more .sec__inner { gap: 64px; }
.pp-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pp-more__card { display: flex; flex-direction: column; gap: 22px; padding: 36px 32px 40px; background: #f8f8f8; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pp-cut)), calc(100% - var(--pp-cut)) 100%, 0 100%); }
.pp-more__icon { display: grid; place-items: center; width: 96px; height: 96px; margin: 18px 0 18px 18px; border: 1px solid #f0542e; background: #fff; transform: rotate(45deg); }
.pp-more__icon svg { display: block; width: 50px; height: 50px; transform: rotate(-45deg); }
.pp-more__txt { font-family: var(--pc-font-body); font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--pc-text); text-wrap: pretty; }
.pp-more__txt::first-letter { text-transform: uppercase; }
.pp-more .sec__btn .pp-actions { justify-content: center; margin-top: 0; }
@media (max-width: 1024px) { .pp-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.pp-more .sec__inner { gap: 40px; }
	.pp-more__grid { grid-template-columns: 1fr; }
	.pp-more__card { flex-direction: row; align-items: center; gap: 22px; padding: 22px 20px 26px; }
	.pp-more__icon { flex: 0 0 60px; width: 60px; height: 60px; margin: 12px; }
	.pp-more__icon svg { width: 34px; height: 34px; }
	.pp-more__txt { font-size: 16px; }
}

/* ---------- Text and photo sections: epoxy and resin, our work ---------- */
.split--intro .split__col, .split--work .split__col { gap: 20px; }
.split--intro .split__text.pp-p, .split--work .split__text.pp-p { margin: 0; color: var(--pc-text); }
.pp-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 2px 0; }
.pp-tick { position: relative; padding-left: 30px; font-family: var(--pc-font-body); font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--pc-ink); }
.pp-tick::before { content: ""; position: absolute; left: 4px; top: .42em; width: 11px; height: 11px; background: #f0542e; transform: rotate(45deg); }
@media (max-width: 767px) {
	.split--work .pc-h2, .why .pc-h2 { padding: 9px 0; line-height: 120%; }
	.pp-ticks { grid-template-columns: 1fr; gap: 12px; }
	.pp-tick { font-size: 16px; }
	.pp-actions { flex-direction: column; }
}

/* ---------- Finishes: the four round samples, each with its description ---------- */
.sec--finishes .post-grid { display: flex; flex-direction: column; gap: 44px; }
.sec--finishes .post-grid__items { align-items: start; }
.sec--finishes .loop-card__link { align-items: center; }
.sec--finishes .pp-fin__txt { font-family: var(--pc-font-body); font-size: 16px; line-height: 1.6; color: var(--pc-text); text-align: center; text-wrap: pretty; }
.sec--finishes .pp-fin__txt strong { display: flex; align-items: flex-end; justify-content: center; min-height: 2em; margin-bottom: 12px; text-align: center; }
.pp-fin__close { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pp-fin__close .pp-p { max-width: 70ch; text-align: center; }
.pp-fin__close .pp-actions { justify-content: center; margin-top: 0; }
@media (max-width: 1024px) { .sec--finishes .post-grid__items { gap: 3rem 2rem; } }
@media (max-width: 767px) {
	.sec--finishes .post-grid__items { grid-template-columns: 1fr; gap: 2.75rem; }
	.sec--finishes .loop-card__media { width: 200px; }
	.sec--finishes .pp-fin__txt strong { min-height: 0; }
}

/* ---------- Why choose us: the seven rows carry the four people and the three reasons ---------- */
.why { overflow-x: clip; }
.why .why__text { margin: 0 0 6px; padding: 0 0 14px 4px; color: var(--pc-ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
.why .pp-why__people { display: flex; flex-direction: column; }
.why .why-box__text { display: block; margin: 0; font-size: 15px; font-weight: 400; line-height: 1.5; color: #333; }
.why .why-box__text strong { font-weight: 700; color: #111; }
.why .why__item { align-items: center; min-height: 88px; padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 1025px) and (max-width: 1199.98px) { .why .why__items { width: calc(100% - 150px); } .why .why__graphic { margin-left: -420px; } }
@media (min-width: 1200px) {
	.why .why__items { width: calc(100% - 190px); }
	.why .why__graphic { margin-left: -400px; }
}
@media (max-width: 767px) { .why .why__text { font-size: 18px; } }

/* ---------- Process: the two paragraphs beside the heading ---------- */
.process .process__head { align-items: flex-start; }
.process .process__intro { color: var(--pc-text); }
.process .process__intro p:last-child { margin-bottom: 0; }

/* ---------- FAQ (new section) ---------- */
.pp-faq { background: #fafafa; }
.pp-faq .sec__inner { gap: 64px; }
.pp-faq__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.pp-faq__head { position: sticky; top: 136px; display: flex; flex-direction: column; gap: 26px; }
.pp-faq__item { border-bottom: 1px solid #dcd9d6; }
.pp-faq__item:first-child { border-top: 1px solid #dcd9d6; }
.pp-faq__q { margin: 0; font-size: 1rem; line-height: 1.2; }
.pp-faq__q button { display: flex; justify-content: space-between; align-items: center; gap: 28px; width: 100%; min-height: 88px; padding: 22px 6px; border: 0; background: none; font-family: var(--pc-font-head); font-size: 26px; font-weight: 700; line-height: 1.2; text-transform: uppercase; text-align: left; color: var(--pc-ink); cursor: pointer; }
.pp-faq__q button::after { content: ""; flex: 0 0 38px; height: 38px; background: linear-gradient(#fff, #fff) 50% 50% / 14px 2px no-repeat, linear-gradient(#fff, #fff) 50% 50% / 2px 14px no-repeat, #e04327; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.pp-faq__q button:hover { color: #c8390f; }
.pp-faq__q button[aria-expanded="true"]::after { background: linear-gradient(#fff, #fff) 50% 50% / 14px 2px no-repeat, #111; transform: rotate(180deg); }
.pp-faq__a { padding: 0 70px 30px 6px; }
.pp-faq__a p { max-width: 68ch; margin: 0 0 14px; font-family: var(--pc-font-body); font-size: 18px; line-height: 1.62; color: var(--pc-text); }
.pp-faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 1024px) {
	.pp-faq__row { grid-template-columns: 1fr; gap: 40px; }
	.pp-faq__head { position: static; }
}
@media (max-width: 767px) {
	.pp-faq .sec__inner { gap: 40px; }
	.pp-faq__q button { min-height: 72px; gap: 16px; padding: 18px 2px; font-size: 21px; }
	.pp-faq__q button::after { flex-basis: 32px; height: 32px; }
	.pp-faq__a { padding: 0 2px 24px; }
	.pp-faq__a p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { .pp-faq__q button::after { transition: none; } }

/* ---------- Desktop rhythm (1025px and up): one section spacing and one set of heading sizes that ease with the window ---------- */
@media (min-width: 1025px) {
	.home { --pp-y: clamp(72px, 7.8vw, 112px); --pp-g: clamp(44px, 5.2vw, 80px); --pp-h2: clamp(38px, 4.1vw, 56px); --pp-h3: clamp(32px, 3.4vw, 48px); }
	/* same space above and below the content of every section */
	.home .sec__inner, .home .split__inner, .home .cta__inner, .home .gtabs__inner, .home .process__inner, .home .why__inner, .home .team__inner, .home .res__cards { padding-top: var(--pp-y); padding-bottom: var(--pp-y); }
	.home .reviews { padding-top: var(--pp-y); padding-bottom: var(--pp-y); }
	.home .res__ig { padding-top: 0; padding-bottom: var(--pp-y); }
	/* same gap between a section's heading block and its content */
	.home .sec__inner, .home .split__inner, .home .gtabs__inner, .home .reviews, .home .res__ig, .home .pp-more .sec__inner, .home .pp-faq .sec__inner { gap: var(--pp-g); }
	.home .team__inner { gap: 32px; }
	.home .guide__inner { padding-top: calc(var(--pp-y) * .57); padding-bottom: calc(var(--pp-y) * .57); }
	.home .split__row, .home .pp-intro__row, .home .pp-faq__row { gap: var(--pp-g); }
	.home .split__col { width: calc((100% - var(--pp-g)) / 2); }
	/* same heading size everywhere */
	.home .pc-h2, .home .team__title, .home .footer-contact__title, .home .cta__title { font-size: var(--pp-h2); line-height: 1.2; }
	.home .guide__title, .home .clients__title { font-size: var(--pp-h3); line-height: 1.15; }
	.home .split__img { height: clamp(440px, 46vw, 600px); }
}

/* Content lines up with the page container on desktop: the selling-point strip loses the room that was kept for slider arrows, and the review rows sit inside the same width as the heading above them */
@media (min-width: 1025px) {
	.home .usp__carousel { padding-left: 0; padding-right: 0; }
	.home .reviews__viewport { width: 100%; max-width: var(--pc-max); margin-inline: auto; }
}

/* Clients and partners on laptops: smaller logos and tighter side padding so they sit two or three across instead of stacking in one column */
@media (min-width: 1025px) and (max-width: 1439px) {
	.home .clients__panel { padding-top: var(--pp-y); padding-bottom: var(--pp-y); gap: 28px; }
	.home .clients__panel--clients { padding-left: 24px; padding-right: calc(24px + var(--pp-slant)); }
	.home .clients__panel--partners { padding-left: calc(24px + var(--pp-slant)); padding-right: 24px; }
	.home .clients__logos { gap: 16px; }
	.home .clients__logo { width: calc((100% - 16px) / 2); max-width: 170px; padding: 12px; }
	.home .clients__img { height: 54px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
	.home .clients__logo { width: calc((100% - 32px) / 3); max-width: 170px; }
	.home .clients__logos { gap: 16px; }
}
@media (min-width: 1025px) { .home .ux-score { padding-left: 0; padding-right: 0; } }
/* Why choose us: nothing from its decorative shapes spills up into the team section above */
.home .why { overflow: clip; }
