:root {
	--cherubin-bg: #fcf7f2;
	--cherubin-surface: #fffdf9;
	--cherubin-text: #40352f;
	--cherubin-muted: #6d615a;
	--cherubin-accent: var(--ch-accent, #8a5d7a);
	--cherubin-accent-strong: var(--ch-accent-hover, #6e4562);
	--cherubin-border: rgba(82, 59, 61, 0.08);
	--cherubin-shadow: 0 18px 45px rgba(94, 72, 67, 0.1);
	--cherubin-radius: 30px;
	--cherubin-radius-sm: 22px;
}

.home #main > .container {
	width: min(1180px, calc(100% - 32px));
}

.cherubin-home {
	color: var(--cherubin-text);
	padding: 28px 0 90px;
}

.cherubin-home__hero,
.cherubin-home__section {
	margin-bottom: 28px;
}

.cherubin-home__hero,
.cherubin-home__section--soft,
.cherubin-home__section--story,
.cherubin-home__section--social,
.cherubin-home__section--cta {
	background:
		radial-gradient(circle at top right, rgba(211, 194, 226, 0.55), transparent 30%),
		radial-gradient(circle at bottom left, rgba(250, 224, 204, 0.55), transparent 28%),
		var(--cherubin-bg);
	border: 1px solid var(--cherubin-border);
	border-radius: calc(var(--cherubin-radius) + 8px);
	box-shadow: var(--cherubin-shadow);
}

.cherubin-home__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 28px;
	padding: 34px;
	align-items: center;
}

.cherubin-home__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--cherubin-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cherubin-home h1,
.cherubin-home h2,
.cherubin-home h3 {
	color: var(--cherubin-text);
	line-height: 1.08;
	margin: 0;
}

.cherubin-home h1 {
	font-size: clamp(2.5rem, 5vw, 4.7rem);
	margin-top: 18px;
	max-width: 11ch;
}

.cherubin-home__lead,
.cherubin-home__helper,
.cherubin-home__section-heading p,
.cherubin-home p {
	color: var(--cherubin-muted);
}

.cherubin-home__lead {
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 18px 0 0;
	max-width: 58ch;
}

.cherubin-home__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 24px;
}

.cherubin-home__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 14px 24px;
	border-radius: 999px;
	background: var(--cherubin-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 12px 30px rgba(134, 92, 135, 0.25);
}

.cherubin-home__button:hover,
.cherubin-home__button:focus {
	background: var(--cherubin-accent-strong);
	color: #fff;
}

.cherubin-home__button--secondary {
	background: rgba(255, 255, 255, 0.82);
	color: var(--cherubin-text);
	box-shadow: none;
	border: 1.5px solid rgba(35, 33, 33, 0.16);
}

.cherubin-home__button--secondary:hover,
.cherubin-home__button--secondary:focus {
	background: #fff;
	color: var(--cherubin-text);
}

.cherubin-home__helper {
	margin: 18px 0 0;
	font-size: 0.95rem;
}

.cherubin-home__hero-stack {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	min-height: 260px;
}

.cherubin-home__hero-card {
	min-height: 200px;
}

/* No special spanning — all 3 cards are equal columns */
.cherubin-home__hero-card:first-child {
	grid-row: auto;
}

.cherubin-home__hero-card,
.cherubin-home__story-frame,
.cherubin-home__feature-image,
.cherubin-home__category-media,
.cherubin-home__product-image-link {
	position: relative;
	overflow: hidden;
	border-radius: var(--cherubin-radius);
	background: linear-gradient(180deg, #f7eee7 0%, #fefaf6 100%);
}

/* Images inside cards: sharp bottom corners so they blend into card content below */
.cherubin-home__feature-image {
	border-radius: var(--cherubin-radius) var(--cherubin-radius) 0 0;
}

.cherubin-home__hero-image,
.cherubin-home__feature-photo,
.cherubin-home__category-image,
.cherubin-home__product-image,
.cherubin-home__story-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cherubin-home__image-placeholder {
	width: 100%;
	height: 100%;
	min-height: 180px;
	background:
		radial-gradient(circle at top right, rgba(134, 92, 135, 0.22), transparent 24%),
		radial-gradient(circle at bottom left, rgba(249, 204, 182, 0.4), transparent 28%),
		linear-gradient(180deg, #f9f1eb 0%, #fffdf9 100%);
}

.cherubin-home__section {
	padding: 18px 0;
}

.cherubin-home__section-heading {
	margin-bottom: 24px;
}

.cherubin-home__section-heading h2 {
	font-size: clamp(2rem, 3vw, 3rem);
	margin-top: 16px;
}

.cherubin-home__section-heading p {
	margin: 10px 0 0;
	max-width: 48ch;
}

.cherubin-home__feature-grid,
.cherubin-home__category-grid,
.cherubin-home__trust-grid,
.cherubin-home__product-grid,
.cherubin-home__steps {
	display: grid;
	gap: 20px;
}

.cherubin-home__feature-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cherubin-home__feature-card,
.cherubin-home__category-card,
.cherubin-home__trust-card,
.cherubin-home__product-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	border: 1px solid var(--cherubin-border);
	border-radius: var(--cherubin-radius);
	overflow: hidden;
	background: var(--cherubin-surface);
	box-shadow: 0 12px 30px rgba(92, 73, 65, 0.07);
}

.cherubin-home__feature-card.is-blush,
.cherubin-home__category-card.is-blush {
	background: #fff4f1;
}

.cherubin-home__feature-card.is-lavender,
.cherubin-home__category-card.is-lavender {
	background: #f5f1fb;
}

.cherubin-home__feature-card.is-peach,
.cherubin-home__category-card.is-peach {
	background: #fff5eb;
}

.cherubin-home__feature-card.is-mint,
.cherubin-home__category-card.is-mint {
	/* Replaced cool mint with warm lilac — harmonises with plum accent */
	background: #f4f0f9;
}

.cherubin-home__category-card.is-cream {
	background: #fbf6ed;
}

.cherubin-home__feature-content,
.cherubin-home__category-copy,
.cherubin-home__product-copy {
	padding: 22px;
}

.cherubin-home__feature-content h2,
.cherubin-home__category-copy h3,
.cherubin-home__trust-card h3,
.cherubin-home__product-copy h3 {
	font-size: 1.35rem;
}

.cherubin-home__feature-content p,
.cherubin-home__category-copy p,
.cherubin-home__trust-card p,
.cherubin-home__product-copy {
	margin-top: 10px;
}

.cherubin-home__text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--cherubin-accent);
	font-weight: 700;
}

.cherubin-home__section--soft {
	padding: 28px 32px;
}

.cherubin-home__steps {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	/* No extra padding — parent .cherubin-home__section--soft already has padding: 28px 32px */
}

.cherubin-home__step {
	background: rgba(255, 255, 255, 0.7);
	border-radius: var(--cherubin-radius-sm);
	padding: 24px;
	border: 1px solid rgba(82, 59, 61, 0.06);
}

.cherubin-home__step span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--cherubin-accent);
	font-weight: 700;
	margin-bottom: 18px;
}

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

.cherubin-home__category-card {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	min-height: 220px;
}

.cherubin-home__category-copy {
	flex: 1;
}

.cherubin-home__category-media {
	width: min(42%, 240px);
	height: 100%;
	min-height: 220px;
	border-radius: 0;
}

.cherubin-home__trust-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cherubin-home__trust-card {
	padding: 24px;
}

.cherubin-home__product-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cherubin-home__product-card {
	background: #fff;
	overflow: visible;
}

.cherubin-home__product-image-link {
	aspect-ratio: 1 / 1;
	border-radius: var(--cherubin-radius) var(--cherubin-radius) 0 0;
	overflow: hidden;
}

.cherubin-home__product-price {
	display: block;
	margin-top: 10px;
	font-weight: 700;
	color: var(--cherubin-text);
}

.cherubin-home__section-actions {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.cherubin-home__section--story {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: 24px;
	padding: 32px;
}

.cherubin-home__story-copy {
	align-self: center;
}

.cherubin-home__story-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cherubin-home__story-frame {
	aspect-ratio: 3 / 4;
	display: block;
	text-decoration: none;
}

/* Blog badge on each story frame */
.cherubin-home__story-frame::before {
	content: 'Blog';
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 4px 10px;
	background: var(--cherubin-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
}

.cherubin-home__story-title {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 10px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--cherubin-text);
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.3;
}

.cherubin-home__social-card,
.cherubin-home__cta-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px;
}

.cherubin-home__social-card h2,
.cherubin-home__cta-card h2 {
	font-size: clamp(1.85rem, 2.4vw, 2.6rem);
	margin-top: 14px;
}

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

.cherubin-home__section--social,
.cherubin-home__section--cta {
	height: 100%;
	margin-bottom: 0;
}

.cherubin-home a:focus-visible,
.cherubin-home button:focus-visible {
	outline: 3px solid rgba(134, 92, 135, 0.4);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.cherubin-home__hero,
	.cherubin-home__section--story {
		grid-template-columns: 1fr;
	}

	.cherubin-home__feature-grid,
	.cherubin-home__trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.cherubin-home__category-grid,
	.cherubin-home__steps {
		grid-template-columns: 1fr;
	}

	.cherubin-home__social-card,
	.cherubin-home__cta-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.cherubin-home__closing-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.home #main > .container {
		width: min(100%, calc(100% - 18px));
	}

	.cherubin-home {
		padding: 16px 0 60px;
		font-size: 14px;
	}

	/* Smaller headings on mobile */
	.cherubin-home h1 {
		font-size: clamp(1.75rem, 7vw, 2.4rem);
		margin-top: 12px;
	}

	.cherubin-home__lead {
		font-size: 0.9rem;
		margin-top: 12px;
	}

	.cherubin-home__helper {
		font-size: 0.8rem;
		margin-top: 10px;
	}

	.cherubin-home__hero,
	.cherubin-home__section--soft,
	.cherubin-home__section--story,
	.cherubin-home__section--social,
	.cherubin-home__section--cta {
		border-radius: 26px;
	}

	.cherubin-home__hero,
	.cherubin-home__section--story,
	.cherubin-home__steps,
	.cherubin-home__social-card,
	.cherubin-home__cta-card {
		padding: 22px;
	}

	/* Hero photos: 3 compact columns in a single row */
	.cherubin-home__hero-stack {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: 1fr;
		min-height: auto;
		gap: 6px;
	}

	.cherubin-home__hero-card {
		aspect-ratio: 2 / 3;
		min-height: 0;
	}

	.cherubin-home__hero-card:first-child {
		grid-column: auto;
		grid-row: auto;
		min-height: 0;
	}

	/* Feature + trust: 2×2 grid */
	.cherubin-home__feature-grid,
	.cherubin-home__trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.cherubin-home__feature-content,
	.cherubin-home__trust-card {
		padding: 14px;
	}

	.cherubin-home__feature-content h2,
	.cherubin-home__trust-card h3 {
		font-size: 0.95rem;
	}

	.cherubin-home__feature-content p,
	.cherubin-home__trust-card p {
		font-size: 0.82rem;
	}

	/* Category: 2 compact side-by-side columns */
	.cherubin-home__category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.cherubin-home__category-card {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	.cherubin-home__category-copy {
		padding: 12px 14px;
	}

	.cherubin-home__category-copy h3 {
		font-size: 0.92rem;
	}

	.cherubin-home__category-copy p {
		font-size: 0.84rem;  /* minimum readable: ≥13px */
		margin-top: 4px;
	}

	.cherubin-home__category-media {
		width: 100%;
		min-height: 96px;
		border-radius: 0;
	}

	/* Hide product section ("Začni jednoducho") on mobile — too long */
	.cherubin-home__section--products {
		display: none;
	}

	/* Steps: heading | step1 / step2 | step3 */
	.cherubin-home__section--soft {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 18px;
	}

	.cherubin-home__section-heading {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 0;
	}

	.cherubin-home__section-heading h2 {
		font-size: 1.25rem;  /* section title needs more presence on mobile */
		margin-top: 6px;
	}

	.cherubin-home__section-heading p {
		font-size: 0.88rem;
	}

	/* Unwrap steps so they participate directly in the parent 2-col grid */
	.cherubin-home__steps {
		display: contents;
	}

	.cherubin-home__step:nth-child(1) {
		grid-column: 2;
		grid-row: 1;
	}

	.cherubin-home__step:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	.cherubin-home__step:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}

	.cherubin-home__step {
		padding: 14px;
		font-size: 0.88rem;  /* was 0.82rem — too small */
	}

	.cherubin-home__step span {
		width: 32px;
		height: 32px;
		font-size: 0.86rem;
		margin-bottom: 8px;
	}

	/* Story section */
	.cherubin-home__section--story {
		margin-top: 8px;
	}

	/* Story gallery: 2 per row, compact */
	.cherubin-home__story-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.cherubin-home__story-frame {
		aspect-ratio: 3 / 4;
	}

	.cherubin-home__story-title {
		font-size: 0.83rem;  /* was 0.78rem — too small */
		padding: 7px 10px;
		bottom: 8px;
		left: 8px;
		right: 8px;
	}

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

	/* Closing grid: side by side, hide eyebrow + description to save space */
	.cherubin-home__closing-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.cherubin-home__social-card .cherubin-home__eyebrow,
	.cherubin-home__cta-card .cherubin-home__eyebrow {
		display: none;
	}

	.cherubin-home__social-card > div > p,
	.cherubin-home__cta-card > div > p {
		display: none;
	}

	.cherubin-home__social-card,
	.cherubin-home__cta-card {
		padding: 16px;
		gap: 10px;
	}

	.cherubin-home__social-card h2,
	.cherubin-home__cta-card h2 {
		font-size: 1.05rem;
		margin-top: 0;
	}

	.cherubin-home__button,
	.cherubin-home__button--secondary {
		width: 100%;
		min-height: 44px;
		font-size: 0.88rem;
	}
}

/* ─── LANDSCAPE MOBILE ─────────────────────────────────────
   On phones rotated to landscape (≤812px wide, ≤500px tall)
   the hero images would push CTA far below the fold.
   Collapse to a compact single-row layout.
   ─────────────────────────────────────────────────────── */
@media (max-width: 812px) and (max-height: 500px) {
	/* Hero: keep text + images side-by-side even on small height */
	.cherubin-home__hero {
		grid-template-columns: 1fr 1fr !important;
		padding: 18px !important;
		gap: 16px;
	}

	/* Hero images: shorter in landscape */
	.cherubin-home__hero-card {
		aspect-ratio: 1 / 1 !important;
		min-height: 0 !important;
	}

	.cherubin-home__hero-stack {
		min-height: 0;
	}

	/* Smaller hero heading */
	.cherubin-home h1 {
		font-size: 1.5rem !important;
		margin-top: 8px;
	}

	.cherubin-home__lead {
		font-size: 0.86rem !important;
		margin-top: 8px;
	}

	.cherubin-home__helper {
		display: none;
	}

	/* CTA buttons compact in landscape */
	.cherubin-home__hero-actions {
		flex-direction: row !important;
		flex-wrap: wrap;
		gap: 8px;
	}
	.cherubin-home__button {
		width: auto !important;
		min-height: 40px;
		padding: 8px 16px;
		font-size: 0.84rem;
	}
}

/* Elementor helper classes for the editable homepage */
.home .elementor-section.cherubin-home-section {
	margin-bottom: 28px;
}

.home .elementor-section.cherubin-home-hero > .elementor-container,
.home .elementor-section.cherubin-home-card-grid > .elementor-container,
.home .elementor-section.cherubin-home-soft > .elementor-container,
.home .elementor-section.cherubin-home-cta > .elementor-container {
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(35, 33, 33, 0.08);
	border-radius: 34px;
	box-shadow: 0 20px 60px rgba(35, 33, 33, 0.08);
	padding: 34px;
}

.home .elementor-section.cherubin-home-soft > .elementor-container {
	background: linear-gradient(180deg, #fff6ee 0%, #f6eadf 100%);
}

.home .elementor-section.cherubin-home-hero {
	position: relative;
}

.home .elementor-section.cherubin-home-hero:before {
	content: "";
	position: absolute;
	inset: 22px auto auto 22px;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: rgba(233, 195, 147, 0.28);
	filter: blur(2px);
	pointer-events: none;
}

.home .cherubin-home-kicker .elementor-heading-title {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 12px;
}

.home .cherubin-home-button-row .elementor-button,
.home .cherubin-home-shop-button .elementor-button {
	min-width: 220px;
}

.home .cherubin-home-note .elementor-widget-container,
.home .cherubin-home-card .elementor-widget-wrap,
.home .cherubin-home-mini-card .elementor-widget-wrap {
	background: rgba(255, 255, 255, 0.84);
	border: 1px solid rgba(35, 33, 33, 0.08);
	border-radius: 28px;
	box-shadow: 0 16px 42px rgba(35, 33, 33, 0.08);
}

.home .cherubin-home-card .elementor-widget-wrap,
.home .cherubin-home-mini-card .elementor-widget-wrap {
	padding: 22px;
}

.home .cherubin-home-note .elementor-widget-container {
	padding: 18px 22px;
}

@media (max-width: 767px) {
	.home .elementor-section.cherubin-home-hero > .elementor-container,
	.home .elementor-section.cherubin-home-card-grid > .elementor-container,
	.home .elementor-section.cherubin-home-soft > .elementor-container,
	.home .elementor-section.cherubin-home-cta > .elementor-container {
		padding: 22px;
		border-radius: 26px;
	}

	.home .cherubin-home-button-row .elementor-button,
	.home .cherubin-home-shop-button .elementor-button {
		min-width: 100%;
	}
}
