/**
 * Page-specific blocks (.p-<page>__<element>): the home page and the quote
 * wizards. Moved from the mockup's pages.css (design-261005-final, HANDOFF
 * section 9) in stage A, step 7; values unchanged.
 *
 * Left out: `.p-home [role="region"]` (height animation of the React
 * accordion of the mockup; the theme's accordion is <details>, its answer
 * fades in by the rule at the end of ds.css).
 *
 * Rule of the mockup: a class lives here only when it cannot be built from
 * .pw-* in the component files; when a block reaches a third page it moves
 * there as .pw-*.
 *
 * @package plantworld
 */

/* ═══ HOME ═══ */

.p-home__hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: flex-end;
	padding: 128px 0 96px;
	background: var(--pw-ink);
	overflow: hidden;
}

.p-home__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-home__hero-scrim {
	position: absolute;
	inset: 0;
	background: rgba(28, 26, 22, 0.55);
}

.p-home__hero-inner {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.p-home__hero-inner .pw-eyebrow {
	color: var(--pw-white);
}

.p-home__hero-title {
	max-width: 15ch;
	color: var(--pw-white);
}

.p-home__hero-lead {
	max-width: 56ch;
	color: var(--pw-white);
}

.p-home__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 8px;
}

.p-home__paths {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.p-home__path {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0;
	border-left: 0;
	text-decoration: none;
	border-bottom: 0;
}

.p-home__path-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.p-home__path-head .p-home__path-title {
	margin: 0;
}

.p-home__path-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.p-home__path-icon {
	display: inline-flex;
	align-items: center;
	color: var(--action-on-light);
}

/* The CTA is part of the link card, not a separate button: ghost look, one control per card. */
.p-home__path-cta {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--action-on-light);
	padding: 8px 0;
	border-bottom: 1px solid transparent;
	transition: var(--transition-color);
}

.p-home__path:hover .p-home__path-cta {
	color: var(--action-on-light-hover);
	border-bottom-color: currentColor;
}

.p-home__path:first-child {
	padding-left: 0;
	border-left: 0;
}

.p-home__path:last-child {
	padding-right: 0;
}

.p-home__path-title {
	transition: var(--transition-color);
}

.p-home__path:hover .p-home__path-title {
	color: var(--action-on-light);
}

/*
 * Path built from blocks (stage B): the card is a group and its title holds
 * the link. The link's ::after covers the whole card, so the card stays one
 * click target with one name (the title); hover and focus show on the card,
 * as when the card was the link. The card keeps the link color it had as an
 * <a>, and the text before the arrow is a paragraph without its own margin.
 */
.p-home__path:where(:not(a)) {
	position: relative;
	color: var(--action-on-light);
}

.p-home__path-title a {
	color: inherit;
	text-decoration: none;
}

.p-home__path-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.p-home__path-title a:focus-visible {
	outline: 0;
}

.p-home__path:has(.p-home__path-title a:focus-visible) {
	outline: 2px solid var(--focus-ring-on-light);
	outline-offset: 2px;
}

.p-home__path-cta > p {
	margin: 0;
}

.p-home__path-arrow {
	display: inline-flex;
	color: var(--action-on-light);
	transition: transform var(--dur) var(--ease);
}

.p-home__path:hover .p-home__path-arrow {
	transform: translateX(8px);
}

/*
 * "Wybrane z portfolio": a grid of equal 4:3 tiles (stage C0, Damian),
 * instead of the mockup's masonry of mixed ratios – one row, one height,
 * whatever the client's photos. Row order: the featured entries first.
 */
.p-home__masonry {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.p-home__masonry > .pw-tile {
	aspect-ratio: 4 / 3;
}

.p-home__masonry-cta {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.p-home__reviews {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.p-home__about-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

/* Embedded video 16:9: no radius or shadow, like the photo it replaces. */
.p-home__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--pw-ink);
}

.p-home__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.p-home__video-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	display: block;
}

.p-home__video-poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.p-home__video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--pw-white);
	color: var(--action-on-light);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-left: 4px;
	transition: color var(--dur) var(--ease);
}

.p-home__video-facade:hover .p-home__video-play {
	color: var(--action-on-light-hover);
}

/* Section heading in a split: the numeral next to the title, as in the other sections. */
.p-home__about-head {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.p-home__about {
	align-items: center;
}

.p-home__faq-cta {
	display: flex;
	justify-content: center;
	margin-top: 64px;
}

.p-home__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.p-home__cta-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
}

.p-home__cta-title {
	max-width: 24ch;
	color: var(--text-on-dark);
}

@media (max-width: 959px) {


	.p-home__hero {
		min-height: 0;
		padding: 96px 0 64px;
	}


	.p-home__paths,
	.p-home__reviews {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}


	.p-home__path {
		padding: 24px 0;
		border-left: 0;
		border-top: 1px solid var(--hairline);
	}


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

@media (max-width: 575px) {


	.p-home__paths,
	.p-home__reviews {
		grid-template-columns: minmax(0, 1fr);
	}


	.p-home__masonry {
		grid-template-columns: minmax(0, 1fr);
	}


	/* .wp-block-button__link: the label of a Button block in the editor, inside its wrapper (the > * here). */
	.p-home__hero-actions > *,
	.p-home__hero-actions .wp-block-button__link {
		width: 100%;
	}
}

/* ═══ QUOTE: hub and wizard ═══ */

/* Wizard (field labels and the required star get --text-lead-muted in the field component). */
.p-quote__wizard {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 0;
}

.p-quote__question {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/*
 * Review of 30.10.2026: a frame, not a fill – the wizard sits on paper-alt
 * too, so the fill was invisible and only its padding showed, as an indent.
 * The frame lines up with the fields above it.
 */
.p-quote__summary {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border: 1px solid var(--border-field);
}

.p-quote__summary-row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--hairline-weak);
}

.p-quote__summary-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.p-quote__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

/* Care path: photos are optional, so the dropzone is smaller and sits under the form. */
.p-quote__aside {
	margin-top: -16px;
}

@media (max-width: 575px) {


	.p-quote__pair {
		grid-template-columns: minmax(0, 1fr);
	}


	.p-quote__summary {
		padding: 24px;
	}
}
