/*
 * Landing sections converted from the old flexible layouts (eteria-core
 * migrations/flexible-landings.php): /sprzedaz-mieszkania-przez-biuro-
 * nieruchomosci/ (Figma 5090:6049, the wizard 5678:6702), /sprzedaj-
 * nieruchomosc/, /landing-o-eterii/, /umow-konsultacje/ and the like.
 * The wizard form itself is styled by its block (eteria/landing-wizard).
 *
 * Each composition keeps one class on its section; inside are core blocks
 * with their own settings (sizes, colours, «Siatka» / «Stos» / «Wiersz»
 * layouts, «Karta» cards, «Liczba», «Kroki»). These rules lay out what no
 * layout can and draw what no block setting does: hairlines, icons, a
 * link without its underline, line wrapping.
 */

/* -------------------------------------------------------------------------
 * Form wizard hero: copy and trust list on the left, the form card on the
 * right; on phones the form comes right after the title. The section's
 * group holds the three; the first group is the copy, the last the trust
 * list and the call card.
 * ---------------------------------------------------------------------- */

.e-landing-wizard {
	padding-top: var(--wp--preset--spacing--30);
}

/* The hero fades to white and the partners' strip is white: one area, one
 * gap between them. */
.e-landing-wizard.is-style-section-hero + .is-style-section-white {
	padding-top: 0;
}

/* The same under the title band with the valuation form
 * (/sprzedaz-mieszkania-przez-biuro-nieruchomosci/): one section gap, the
 * band's, instead of its own padding plus the strip's (review of
 * 02.12.2026). Without :has() the band keeps its shorter padding. */
.is-style-section-page-hero:has(+ .e-landing-partners.is-style-section-white) {
	padding-bottom: var(--wp--custom--section);
}

.is-style-section-page-hero + .e-landing-partners.is-style-section-white {
	padding-top: 0;
}

.e-landing-wizard > .wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--e-gap-md);
	margin-block-start: clamp(1.5rem, 1.1479rem + 1.5023vw, 2.5rem) !important;
}

.e-landing-wizard > .wp-block-group > * {
	margin-block: 0 !important;
}

@media (min-width: 1024px) {

	.e-landing-wizard > .wp-block-group {
		grid-template-areas:
			"intro form"
			"aside form";
		grid-template-rows: auto 1fr;
		grid-template-columns: minmax(0, 560fr) minmax(0, 660fr);
		column-gap: clamp(2.5rem, -2.5rem + 6.25vw, 5rem);
		align-items: start;
	}

	.e-landing-wizard > .wp-block-group > .wp-block-group:first-child {
		grid-area: intro;
	}

	.e-landing-wizard > .wp-block-group > .wp-block-eteria-landing-wizard {
		grid-area: form;
	}

	.e-landing-wizard > .wp-block-group > .wp-block-group:last-child {
		grid-area: aside;
	}
}

/* The trust icons and the photo keep their size beside the text and sit
 * on its first line (no inline gap under them). */
.e-landing-wizard .is-layout-flex > .wp-block-image {
	flex-shrink: 0;
}

.e-landing-wizard .is-layout-flex > .wp-block-image img {
	display: block;
}

/* "Nie lubisz formularzy? Zadzwoń…": the number without an underline. */
.e-landing-wizard a[href^="tel:"] {
	color: var(--wp--preset--color--burgundy);
	text-decoration: none;
}

.e-landing-wizard a[href^="tel:"]:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
 * Partner logos: grey until hovered
 * ---------------------------------------------------------------------- */

.e-landing-partners .wp-block-image img {
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.e-landing-partners .wp-block-image img:hover {
	filter: none;
	opacity: 1;
}

/* -------------------------------------------------------------------------
 * Reviews: Google rating and opinions, video recommendations (graphite)
 * ---------------------------------------------------------------------- */

.e-landing-reviews > .is-style-eyebrow + h2 {
	margin-block-start: var(--wp--preset--spacing--16);
}

.e-landing-reviews > :is(.wp-block-eteria-google-reviews, .wp-block-eteria-video-testimonials) {
	margin-block-start: var(--e-gap-md);
}

.e-landing-reviews > .wp-block-eteria-google-rating {
	display: flex;
	justify-content: center;
}

/* -------------------------------------------------------------------------
 * "Dla Ciebie, jeśli / Nie dla Ciebie, jeśli": every point (an H3) is a
 * row with a tick; in the card marked --dont-fit a cross. The mark is the
 * one thing no block setting says, hence the class on that card.
 * ---------------------------------------------------------------------- */

.e-landing-fit h3 {
	display: flex;
	gap: 14px;
	align-items: baseline;
	margin: 0 !important;
	padding-block: 14px;
	border-bottom: 1px solid var(--wp--preset--color--border-cream);
}

.e-landing-fit h3:last-child {
	border-bottom: 0;
}

.e-landing-fit h3::before {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	content: "";
	background-color: var(--wp--preset--color--burgundy);
	transform: translateY(3px);
	-webkit-mask: url(../../icons/check.svg) no-repeat center / contain;
	mask: url(../../icons/check.svg) no-repeat center / contain;
}

.e-landing-fit__card--dont-fit h3::before {
	background-color: var(--wp--preset--color--text-muted);
	-webkit-mask-image: url(../../icons/close.svg);
	mask-image: url(../../icons/close.svg);
}

/* -------------------------------------------------------------------------
 * The founder's note with figures and signature (about_with_natalia): the
 * title's lines run long rather than even.
 * ---------------------------------------------------------------------- */

.e-landing-about h2 {
	text-wrap: pretty;
}

/* -------------------------------------------------------------------------
 * The CEO's note (ceo_quote): the quote's lines kept even.
 * ---------------------------------------------------------------------- */

.e-landing-quote > p:first-child {
	text-wrap: balance;
}

/* -------------------------------------------------------------------------
 * Client stories: who and what at the foot of each card, under a hairline
 * (the card's last paragraph; the story's own paragraphs are subtle).
 * ---------------------------------------------------------------------- */

.e-landing-stories .is-style-card > p:last-child:not(.has-text-color) {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--16);
	border-top: 1px solid var(--wp--preset--color--border-cream);
}

.e-landing-stories .is-style-card > p:last-child:not(.has-text-color) span {
	color: var(--wp--preset--color--text-muted);
}

/* -------------------------------------------------------------------------
 * The ETER method (layout "steps"): heading left, the lead right, then the
 * «Kroki» block in its «Etapy» style (Figma 5090:6049, "7 etapów
 * sprzedaży"; review of 14.11.2026).
 * ---------------------------------------------------------------------- */

.e-flex-steps > .wp-block-eteria-steps {
	margin-block-start: clamp(2.5rem, 1.9366rem + 2.4038vw, 4rem);
}

.e-flex-steps > .wp-block-buttons {
	margin-block-start: var(--e-gap-md);
}

.e-flex-steps__head {
	display: grid;
	gap: var(--wp--preset--spacing--20) clamp(2.5rem, -2.5rem + 6.25vw, 5rem);
}

.e-flex-steps__head > * {
	margin: 0 !important;
}

@media (min-width: 1024px) {

	.e-flex-steps__head:has(> .e-flex-steps__lead) {
		grid-template-columns: minmax(0, 560fr) minmax(0, 660fr);
		align-items: start;
	}

	.e-flex-steps__lead {
		padding-top: 12px;
	}
}

.e-flex-steps__lead {
	max-width: 46rem;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 300;
	line-height: var(--wp--custom--line-height--body, 1.625);
	color: rgb(240 240 230 / 0.7);
}

.e-flex-steps__lead > * {
	margin: 0;
}

.e-flex-steps__lead > * + * {
	margin-block-start: 12px;
}

/* Production puts a second H2 ("7 etapów sprzedaży…") in the lead: kept,
 * set as the lead's title. */
.e-flex-steps__lead :is(h2, h3) {
	font-size: var(--wp--preset--font-size--h-4);
	line-height: 1.185;
	color: var(--wp--preset--color--text-inverse);
}

/* -------------------------------------------------------------------------
 * Before and after photos with only a heading ("Magia pierwszego wrażenia"):
 * label and heading across the page, the photos right under them.
 * ---------------------------------------------------------------------- */

/* The block brings its own gutter and bottom space for the case list
 * page; inside the section the section's own are enough. */
.e-landing-case > .wp-block-eteria-cases {
	margin-block-start: clamp(2rem, 1.5493rem + 1.9231vw, 3rem);
	padding: 0;
}

/* -------------------------------------------------------------------------
 * hero_1 with a photo (/landing-o-eterii/, /sprzedaj-nieruchomosc/), review
 * of 20.11.2026: the H1 beside the lead, rating and button, the team photo
 * as a panorama across the page column under them.
 * ---------------------------------------------------------------------- */

.e-landing-hero > .wp-block-image.e-landing-hero__photo {
	margin-block-start: var(--wp--preset--spacing--60);
}

.e-landing-hero__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 62%;
}

@media (min-width: 782px) {

	.e-landing-hero__photo img {
		aspect-ratio: 16 / 7;
	}
}

/* -------------------------------------------------------------------------
 * The «wyceniarka» hero with a CF7 form (/umow-konsultacje/, /agencja-
 * nieruchomosci-warszawa/, /sprzedaj-nieruchomosc-w-warszawie-bez-presji/):
 * the figures' row under the H1, the card's title, the rating under it.
 * ---------------------------------------------------------------------- */

.e-sales-hero .is-style-section-graphite > h2 {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * "Porozmawiaj z naszym Ekspertem" (/landing-o-eterii/): one advisor's card
 * (eteria/agent-card, Figma 4581:12845) under the text, narrower than the
 * column beside the form.
 * ---------------------------------------------------------------------- */

@media (min-width: 782px) {

	.e-contact-agent {
		max-width: 300px;
	}
}
