/**
 * Front page — editorial hero and path cards.
 */

main.yala-home-main {
	padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

.yala-home {
	--yala-home-display: "Fraunces", Georgia, "Times New Roman", serif;
	--yala-home-sans: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	width: 100%;
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* Hero — asymmetric split */
.yala-home-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
	margin-bottom: clamp(2.75rem, 7vw, 4.5rem);
}

@media (min-width: 900px) {
	.yala-home-hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: clamp(2rem, 4vw, 3rem);
	}
}

.yala-home-hero__eyebrow {
	margin: 0 0 0.65rem;
	font-family: var(--yala-home-sans);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--yala-accent, #00838f);
	opacity: 0.85;
}

.yala-home-hero__title {
	margin: 0 0 1rem;
	font-family: var(--yala-home-display);
	font-size: clamp(2.35rem, 1.6rem + 3.2vw, 3.75rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--yala-heading, #e53935);
}

.yala-home-hero__lead {
	margin: 0 0 1.75rem;
	max-width: 34rem;
	font-family: var(--yala-home-sans);
	font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
	line-height: 1.65;
}

.yala-home-hero__lead a {
	color: var(--yala-link, #4a148c);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

.yala-home-hero__lead a:hover,
.yala-home-hero__lead a:focus {
	color: var(--yala-link-hover, #38096b);
}

.yala-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.yala-home-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1.35rem;
	border-radius: 999px;
	font-family: var(--yala-home-sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.yala-home-hero__cta--primary {
	background: var(--yala-primary, #4a148c);
	color: #fff;
	box-shadow: 0 10px 28px rgba(74, 20, 140, 0.24);
}

.yala-home-hero__cta--primary:hover,
.yala-home-hero__cta--primary:focus {
	background: var(--yala-primary-dark, #38096b);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(56, 9, 107, 0.3);
}

.yala-home-hero__cta--secondary {
	border: 2px solid var(--yala-secondary-bright, #fbc02d);
	color: var(--yala-text, #2a1b1a);
	background: var(--yala-secondary-bright, #fbc02d);
}

.yala-home-hero__cta--secondary:hover,
.yala-home-hero__cta--secondary:focus {
	background: var(--yala-secondary-bright, #fbc02d);
	border-color: var(--yala-secondary-bright, #fbc02d);
	color: var(--yala-text, #2a1b1a);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(251, 192, 45, 0.35);
}

/* Card fan */
.yala-home-hero__fan {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: clamp(260px, 42vw, 380px);
	margin: 0 auto;
	max-width: 26rem;
}

.yala-home-hero__card {
	position: relative;
	display: block;
	width: clamp(7.5rem, 28vw, 10.5rem);
	margin: 0 -1.15rem;
	text-decoration: none;
	color: inherit;
	transition: transform 0.28s ease, filter 0.28s ease;
}

.yala-home-hero__card--left {
	transform: rotate(-10deg) translateY(12px);
	z-index: 1;
}

.yala-home-hero__card--center {
	transform: translateY(-8px) scale(1.06);
	z-index: 3;
}

.yala-home-hero__card--right {
	transform: rotate(10deg) translateY(12px);
	z-index: 2;
}

.yala-home-hero__card:hover,
.yala-home-hero__card:focus-within {
	z-index: 4;
}

.yala-home-hero__card--left:hover,
.yala-home-hero__card--left:focus-within {
	transform: rotate(-10deg) translateY(4px);
}

.yala-home-hero__card--center:hover,
.yala-home-hero__card--center:focus-within {
	transform: translateY(-14px) scale(1.06);
}

.yala-home-hero__card--right:hover,
.yala-home-hero__card--right:focus-within {
	transform: rotate(10deg) translateY(4px);
}

.yala-home-hero__card-flip {
	width: 100%;
	aspect-ratio: var(--yala-taro-card-ratio, 827 / 1476);
	perspective: 900px;
}

.yala-home-hero__card-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.62s cubic-bezier(0.33, 0, 0.2, 1);
	will-change: transform;
}

.yala-home-hero__card-inner.is-flipped {
	transform: rotateY(180deg);
}

.yala-home-hero__card-face {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	overflow: hidden;
	backface-visibility: hidden;
	box-shadow: 0 18px 40px rgba(34, 40, 49, 0.18);
}

.yala-home-hero__card-face--front {
	display: block;
	transform: rotateY(0deg);
	text-decoration: none;
	color: inherit;
	background: #f0ebe3;
}

.yala-home-hero__card-face--back {
	transform: rotateY(180deg);
	background:
		linear-gradient(155deg, var(--yala-gradient-start, #6a1b9a) 0%, var(--yala-gradient-mid, #4a148c) 55%, var(--yala-gradient-end, #38096b) 100%);
	background-size: cover;
	background-position: center;
}

.yala-home-hero__fan.has-card-back .yala-home-hero__card-face--back {
	background-image: var(--yala-home-card-back);
	background-color: #efd2b4;
	background-repeat: no-repeat;
	background-position: center center;
}

.yala-home-hero__card-face--front img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.yala-home-hero__card-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: unset;
	background: transparent;
}

.yala-home-hero__card-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.25rem 0.5rem 0.55rem;
	font-family: var(--yala-home-sans);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	color: #fff;
	background: linear-gradient(180deg, transparent 0%, rgba(34, 40, 49, 0.82) 100%);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.yala-home-hero__card:hover .yala-home-hero__card-label,
.yala-home-hero__card:focus .yala-home-hero__card-label {
	opacity: 1;
}

.yala-home-hero__card--placeholder {
	background: linear-gradient(145deg, #efd2b4 0%, #d4b896 100%);
	box-shadow: 0 12px 28px rgba(34, 40, 49, 0.12);
}

.yala-home-hero__card--placeholder.yala-home-hero__card--center {
	transform: translateY(-8px) scale(1.04);
}

/* Paths grid */
.yala-home-paths {
	text-align: center;
}

.yala-home-paths__heading {
	margin: 0 0 1.35rem;
	font-family: var(--yala-home-display);
	font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--yala-heading, #e53935);
}

.yala-home-paths__grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 1rem;
	text-align: left;
}

@media (min-width: 640px) {
	.yala-home-paths__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.yala-home-path {
	width: 100%;
	margin: 0;
}

.yala-home-path__nav {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	text-align: left;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.yala-home-path--blue .yala-home-path__nav {
	color: var(--yala-heading, #e53935);
	background: linear-gradient(165deg, var(--yala-white, #ffffff) 0%, var(--yala-bg, #fffef9) 100%);
	border: 1px solid rgba(74, 20, 140, 0.12);
	box-shadow: 0 8px 22px rgba(42, 27, 26, 0.07);
}

.yala-home-path--featured .yala-home-path__nav {
	color: #fff;
	background: linear-gradient(155deg, var(--yala-gradient-start, #6a1b9a) 0%, var(--yala-gradient-mid, #4a148c) 42%, var(--yala-gradient-end, #38096b) 100%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 12px 32px rgba(74, 20, 140, 0.28);
}

.yala-home-path--blue .yala-home-path__nav:hover,
.yala-home-path--blue .yala-home-path__nav:focus {
	color: var(--yala-heading, #e53935);
	transform: translateY(-3px);
	border-color: rgba(74, 20, 140, 0.2);
	box-shadow: 0 12px 28px rgba(42, 27, 26, 0.12);
}

.yala-home-path--featured .yala-home-path__nav:hover,
.yala-home-path--featured .yala-home-path__nav:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(74, 20, 140, 0.34);
	border-color: rgba(255, 255, 255, 0.28);
}

.yala-home-path__title {
	margin: 0 0 0.35rem;
	font-family: var(--yala-home-display);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.25;
	color: inherit;
}

.yala-home-path__text {
	flex: 1 1 auto;
	margin: 0;
	font-family: var(--yala-home-sans);
	font-size: 0.92rem;
	line-height: 1.55;
}

.yala-home-path--blue .yala-home-path__text {
	color: rgba(42, 27, 26, 0.82);
}

.yala-home-path--featured .yala-home-path__text {
	color: rgba(255, 255, 255, 0.92);
}

.yala-home-path__cta {
	margin: 0;
	font-family: var(--yala-home-sans);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.yala-home-path--blue .yala-home-path__cta {
	color: var(--yala-link, #4a148c);
}

.yala-home-path--featured .yala-home-path__cta {
	color: #fff;
}

.yala-home-path__cta::after {
	content: " →";
}

/* Front page: hide duplicate page title */
body.yala-front-page main .wp-block-post-title {
	display: none;
}

body.yala-front-page main .yala-home-hero__lead a {
	color: var(--yala-link, #4a148c);
}

@media (prefers-reduced-motion: reduce) {
	.yala-home-hero__card,
	.yala-home-hero__cta,
	.yala-home-path {
		transition: none;
	}

	.yala-home-hero__card-inner {
		transition: none;
	}

	.yala-home-hero__card-inner.is-flipped {
		transform: none;
	}

	.yala-home-hero__card--left {
		transform: rotate(-10deg) translateY(12px);
	}

	.yala-home-hero__card--center {
		transform: translateY(-8px) scale(1.06);
	}

	.yala-home-hero__card--right {
		transform: rotate(10deg) translateY(12px);
	}
}
