/*
 * Home sections 5-11 (Plan 05-10).
 * Desktop geometry from reference/layout/home-desktop.json (1440).
 * Phone (max-width: 767px) is the 320 layout x 1.21875 (D-06).
 * Section heights are fixed in px at desktop widths so the page height stays
 * constant; columns, text offsets and widths scale in percent.
 * No html/body overflow rules here (MAIN-09).
 */

/* 05-09 split sections */
.home-section.home-05,
.home-section.home-06,
.home-section.home-07,
.home-section.home-08,
.home-section.home-09 {
	background: #fff;
	color: #000;
	margin: 0;
	padding: 0;
	max-width: none;
}

.home-split {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	align-items: stretch;
}

.home-split > .wp-block-column {
	flex: 0 0 50%;
	width: 50%;
	margin: 0;
	min-width: 0;
}

/* Core's .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column
   { flex-basis: 0; flex-grow: 1 } (0,3,0) beat the rule above and gave a 75/25 split
   (05-VERIFICATION gap). Phone resets flex-basis with !important below. */
.wp-block-columns.home-split > .wp-block-column.wp-block-column {
	flex: 0 0 50%;
}

/* Core stacks Columns up to 781px (.wp-block-columns { flex-wrap: wrap !important } and
   :not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important }, 0,3,0),
   but the phone layout starts at 767px, so 768-781 kept desktop padding on stacked columns and
   squeezed the videos (review WR-04). Higher-specificity !important keeps the split there. */
@media (min-width: 768px) and (max-width: 781px) {
	.wp-block-columns.home-split {
		flex-wrap: nowrap !important;
	}

	.wp-block-columns.home-split > .wp-block-column.wp-block-column {
		flex-basis: 50% !important;
	}
}

.home-split__media {
	position: relative;
	overflow: hidden;
	background: #000;
}

.home-split__media--left {
	order: -1;
}

/* Decorative loop fills its column. */
.home-split__media .wp-block-video {
	position: absolute;
	inset: 0;
	margin: 0;
}

.home-split__media .wp-block-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.home-split__media .video-comp-kn4o4tla video {
	object-position: 50% 0%;
}

/* Desktop section heights (Wix rects) */
.home-05 .home-split { min-height: 972px; }
.home-06 .home-split { min-height: 686px; }
.home-07 .home-split { min-height: 974px; }
.home-08 .home-split { min-height: 686px; }
.home-09 .home-split { min-height: 740px; }

/* Text column. The Wix text box is a fixed 360px wide and anchored to the viewport, not to the column
   (reference/layout/home-{desktop,1280,1024}.json: FASHION x = 25% - 169px, so 191/151/87 at 1440/1280/1024).
   Percentage padding resolves against the row (the viewport), so the column offset is 25% - 169px and the
   right padding is whatever leaves a 360px box in the 50% column. Right-hand columns (06, 08) sit at 75% - 206px. */
.home-split__text {
	box-sizing: border-box;
	padding: 127px 0 0 calc(25% - 169px);
	padding-right: calc(25% - 191px);
}

.home-06 .home-split__text,
.home-08 .home-split__text {
	padding-left: calc(25% - 206px);
	padding-right: calc(25% - 154px);
}

.home-07 .home-split__text {
	padding-top: 34px;
	padding-left: calc(25% - 180px);
	padding-right: calc(25% - 180px);
}

.home-09 .home-split__text {
	padding-left: calc(25% - 180px);
	padding-right: calc(25% - 180px);
}

.home-split__heading {
	font-size: 40px;
	font-weight: 400;
	line-height: 60px;
	letter-spacing: 3.2px;
	margin: 0 0 37px;
	color: #000;
}

.home-07 .home-split__heading {
	margin-bottom: 22px;
}

.home-split__list {
	margin: 0;
	padding: 0 0 0 1.2em;
	font-size: 16px;
	line-height: 28.8px;
	letter-spacing: 0.8px;
	color: #000;
}

.home-split__list li {
	margin: 0 0 28.8px;
}

.home-split__list li:last-child {
	margin-bottom: 0;
}

/* Wix Angels text: 16px / 22.4px with one blank line (22.4px) between paragraphs
   (reference/layout/home-desktop.json comp-kn4o4tlz3). */
.home-split__p {
	margin: 0 0 22.4px;
	font-size: 16px;
	line-height: 22.4px;
	letter-spacing: 0;
	color: #000;
}

.home-split__p a {
	color: #000;
	text-decoration: underline;
}

@media (max-width: 767px) {
	/* 320 layout x 1.21875 */
	.home-split {
		flex-direction: column;
		min-height: 0 !important;
	}

	.home-split > .wp-block-column {
		flex: 0 0 auto;
		width: 100%;
	}

	/* Text first, video after, whichever side it sits on desktop. */
	.home-split__media--left {
		order: 0;
	}

	/* Core sets flex-basis: 100% !important on stacked columns below 782px; in a column
	   flex container that resolves to content height, and the video is absolutely
	   positioned, so the media column collapsed to 0 (review CR-03). */
	.wp-block-columns.home-split > .wp-block-column.wp-block-column {
		flex-basis: auto !important;
	}

	.home-split__media {
		height: 341.25px; /* 280 x 1.21875 */
	}

	/* Wix phone video heights (reference/layout/home-phone.json, 320 layout x 1.21875). */
	.home-05 .home-split__media { height: 312px; }
	.home-06 .home-split__media { height: 307.125px; }
	.home-07 .home-split__media { height: 321.75px; }
	.home-08 .home-split__media { height: 307.125px; }
	.home-09 .home-split__media { height: 321.75px; }

	/* Section selectors repeated so this beats the desktop .home-0X padding (0,2,0). */
	.home-split__text,
	.home-06 .home-split__text,
	.home-07 .home-split__text,
	.home-08 .home-split__text,
	.home-09 .home-split__text {
		padding: 25.6px 7px 24px; /* 21 x 1.21875 */
	}

	.home-split__heading,
	.home-07 .home-split__heading {
		font-size: 25.59px;
		line-height: 38.4px;
		letter-spacing: 2.05px;
		text-align: center;
		margin: 0 0 24.4px;
	}

	.home-split__list {
		font-size: 14.625px;
		line-height: 26.3px;
		letter-spacing: 0.73px;
	}

	.home-split__list li {
		margin-bottom: 26.3px;
	}

	.home-split__p {
		font-size: 14.625px;
		line-height: 20.475px; /* 16.8 x 1.21875 */
		margin-bottom: 20.475px;
	}
	/* Per-section spacing from reference/layout/home-phone.json (x 1.21875), offsets relative to each section top
	   (quick 261118-fid). Text columns stay content-driven; only the gaps around them are set. */
	.home-05 .home-split__text { padding-bottom: 29.3px; }
	/* Wix draws section 6 over the last 9.7px of the FASHION video: crop it, keep the 312px video. */
	.home-05 .home-split__media { height: 302.3px; }
	.home-05 .home-split__media .wp-block-video { bottom: auto; height: 312px; }

	.home-06 .home-split__text { padding-top: 20.7px; padding-bottom: 29.3px; }
	.home-06 .home-split__heading { margin-bottom: 29.2px; }

	.home-07 .home-split__text { padding-top: 20.7px; padding-bottom: 9.8px; }
	.home-07 .home-split__heading { margin-bottom: 9.7px; }
	.home-07 .home-split__p:last-child { margin-bottom: 0; }
	.home-07 .home-split__media { margin-bottom: 19.5px; }

	.home-08 .home-split__text { padding-top: 20.7px; padding-bottom: 24.3px; }
	.home-08 .home-split__heading { margin-bottom: 20.7px; }
	.home-08 .home-split__media { margin-bottom: 1.5px; }

	.home-09 .home-split__text { padding-top: 11px; padding-bottom: 17.1px; }
	.home-09 .home-split__heading { margin-bottom: 17px; }
	.home-09 .home-split__media { margin-bottom: 19.4px; }
}

/* 10 clients and partners. Wix: section y 7606 (60px below section 9), heading 15px down, logos straight
   under it at x = 50vw - 306; section 11 starts 392px after section 10 (Wix sections overlap here). */
.home-section.home-10 {
	background: #fff;
	color: #000;
	margin: 0;
	padding: 15px 0 0;
	min-height: 465px;
	box-sizing: border-box;
	max-width: none;
}

.home-10 .home-split__heading {
	text-align: center;
	margin: 0 auto 15px;
	line-height: 56px;
}

.home-10__logos {
	width: 600px;
	max-width: calc(100% - 40px);
	margin: 0 auto;
}

.home-10__logos img {
	display: block;
	width: 100%;
	height: auto;
}

/* 11 conscious cutting edge design panel */
.home-section.home-11 {
	background: #fff;
	margin: 0;
	padding: 54px 0 49px;
	min-height: 760px; /* Wix: panel at +54, 657 tall, footer 50px below it (y 8758) */
	box-sizing: border-box;
	max-width: none;
}

/* Change from Wix (Anna, 261118-ann): the black panel spans the full width; Wix's was a 980px box.
   The text keeps Wix's 680px column, centred. */
.home-11 .glide-panel {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 657px;
	margin: 0;
	padding: 23px max(22px, calc((100% - 680px) / 2)) 0;
	background: #000;
	color: #fff;
}

.home-11__title {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 43.2px;
	text-align: center;
	color: #fff;
}

.home-11__sub {
	margin: 0 0 59px;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	text-align: center;
	color: #fff;
}

.home-11__list {
	margin: 0;
	padding: 0 0 0 28.8px;
	font-size: 16px;
	line-height: 30.4px;
	letter-spacing: 0.64px;
	color: #fff;
}

.home-11__list li {
	margin: 0 0 30.4px;
}

.home-11__list li:last-child {
	margin-bottom: 30.4px; /* Wix: every item, the last one too, ends with one empty 30.4px line */
}

@media (min-width: 768px) {
	.home-section.home-10 {
		margin-top: 59px;
		min-height: 392px;
	}

	.home-10 .home-split__heading {
		margin-bottom: 0;
	}

	.home-10__logos {
		margin-left: calc(50% - 306px);
	}
}

@media (max-width: 767px) {
	.home-section.home-10 {
		padding-top: 12.2px; /* 10 x 1.21875 */
		min-height: 250px;   /* 205.4 x 1.21875 */
	}

	.home-10 .home-split__heading {
		line-height: 35.8px;
		margin-bottom: 24px;
	}

	.home-10__logos {
		width: auto;
		max-width: none;
		margin: 0 24.4px; /* 20 x 1.21875 */
	}

	.home-section.home-11 {
		padding: 30.5px 0 0; /* 25 x 1.21875 */
		min-height: 620px;   /* 509 x 1.21875 */
	}

	.home-11 .glide-panel {
		width: 100%;
		max-width: none;
		min-height: 669px;   /* 549 x 1.21875 */
		margin: 0;
		padding: 36px 8.5px 0;
		border-radius: 0 9.75px 9.75px 0; /* 8 x 1.21875 */
	}

	.home-11__title {
		font-size: 21px;
		line-height: 31.5px;
	}

	/* Wix phone shows a different heading here ("CHOOSE US", no sub-heading); the text is kept and the gap
	   under it is reduced so the section is Wix's 699.7px tall. */
	.home-11__sub {
		font-size: 12px;
		margin-bottom: 22px;
	}

	.home-11__list {
		padding-left: 1.2em;
		font-size: 14.625px;
		line-height: 27.8px; /* 22.8 x 1.21875 */
		letter-spacing: 0.58px;
	}

	.home-11__list li {
		margin-bottom: 27.8px;
	}

	.home-11__list li:last-child {
		margin-bottom: 0;
	}
}
