/* Ella Equestrian: főoldal. Méretek a Figma "Home_dekstop_01_mod" (1512 px) és "Home_mobile_v01_mod" (394 px) frame-ek alapján. */

/* GeneratePress konténerek: a főoldalon minden szekció teljes szélességű. */
.ella-front #page,
.ella-front .site-content,
.ella-front .content-area,
.ella-front .site-main,
.ella-front .inside-article,
.ella-front .entry-content {
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
}

.ella-front .site-content {
	display: block;
}

.ella-front {
	--ella-gutter: max(60px, calc((100% - 1392px) / 2));
	--ella-section-y: 96px;
}

/* Klasszikus témában a WordPress burkoló div-et tehet a csoportok belsejébe; ez ne szóljon bele az elrendezésbe. */
.ella-front .wp-block-group__inner-container {
	display: contents;
}

/* Alap margó nullázás alacsony (egy osztálynyi) specificitással, hogy a szekciók saját térközei felülírhassák. */
.ella-front :where(.entry-content > *, .entry-content :is(.wp-block-group, .wp-block-group__inner-container) > *) {
	margin-block: 0;
}

.ella-front .entry-content a {
	text-decoration: none;
}

/* A rövidkódok körül a WordPress üres bekezdést hagyhat, ez ne legyen rácselem. */
.ella-front .entry-content p:empty {
	display: none;
}

.ella-section {
	padding: var(--ella-section-y) var(--ella-gutter);
}

.ella-front h2.wp-block-heading,
.ella-featured__name {
	margin: 0;
	color: var(--contrast);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.3;
}

.ella-front .ella-subtitle {
	margin-top: 12px;
	color: var(--contrast);
	font-size: 18px;
	line-height: 1.4;
}

.ella-center {
	text-align: center;
}

/* Gombok (Gomb blokk "ella-btn" osztállyal) */

/* A GeneratePress "a.wp-block-button__link:not(.has-background)" szabályánál erősebb kell. */
.ella-front .ella-btn a.wp-block-button__link,
.ella-featured__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 227px;
	padding: 16px 32px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 6px;
	transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* Hover: mélyebb bordó, enyhe emelkedés és bordós árnyék. */
.ella-front .ella-btn a.wp-block-button__link:hover,
.ella-front .ella-btn a.wp-block-button__link:focus {
	color: #fff;
	background: #4e1b29;
	border-color: #4e1b29;
	box-shadow: 0 10px 24px rgba(104, 40, 57, 0.35);
	transform: translateY(-2px);
}

.ella-btn--arrow .wp-block-button__link::after,
.ella-btn--instagram .wp-block-button__link::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--ella-icon) center / contain no-repeat;
	mask: var(--ella-icon) center / contain no-repeat;
}

.ella-btn--arrow {
	--ella-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.ella-btn--instagram {
	--ella-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23000'/%3E%3C/svg%3E");
}

.ella-link {
	color: var(--accent);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ella-link a {
	color: inherit;
}

.ella-link a:hover {
	color: var(--accent-2);
}

/* 1. Hero */

.ella-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 733px;
	padding: 180px var(--ella-gutter) 50px;
	overflow: hidden;
	color: #fff;
	background: var(--black);
}

.ella-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ella-hero__bg img,
.ella-hero__bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Videós hero: a Videó blokk is háttérként tölti ki a szekciót (Bővített → CSS osztály nélkül is). */
.ella-hero > .wp-block-video,
.ella-hero > .wp-block-group__inner-container > .wp-block-video {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}

.ella-hero > .wp-block-video video,
.ella-hero > .wp-block-group__inner-container > .wp-block-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ella-hero > .wp-block-video figcaption {
	display: none;
}

/* Sötétítés: felül a fejléc, alul a szöveg olvashatóságáért. */
.ella-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0) 35%),
		linear-gradient(0deg, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0) 60%);
	pointer-events: none;
}

.ella-hero > *:not(.ella-hero__bg):not(.wp-block-video),
.ella-hero > .wp-block-group__inner-container > *:not(.ella-hero__bg):not(.wp-block-video) {
	position: relative;
	z-index: 2;
	max-width: 672px;
}

.ella-front .ella-hero h1 {
	margin: 0;
	color: #fff;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.3;
}

.ella-front .ella-hero p {
	margin-top: 12px;
	color: #fff;
	font-size: 18px;
	line-height: 1.5;
}

.ella-front .ella-hero .wp-block-buttons {
	margin-top: 12px;
}

/* 2. Legújabb termékek */

.ella-new {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title link"
		"sub link"
		"list list";
	align-items: end;
}

.ella-new h2 {
	grid-area: title;
}

.ella-new .ella-subtitle {
	grid-area: sub;
}

.ella-new .ella-link {
	grid-area: link;
	align-self: center;
}

.ella-new .ella-products {
	grid-area: list;
	margin-top: 44px;
}

/* 3. Bemutatkozás */

.ella-about {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 583fr) minmax(0, 749fr);
	gap: 60px;
	align-items: center;
	padding-top: 80px;
	padding-bottom: 80px;
	background: var(--accent-light);
}

.ella-about__img img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 16px 120px 16px 16px;
}

.ella-front .ella-about p {
	margin-top: 20px;
	font-size: 18px;
	line-height: 1.25;
}

.ella-front .ella-about h2 + p {
	margin-top: 32px;
}

.ella-front .ella-about .ella-about__sign {
	margin-top: 24px;
	color: var(--accent);
	font-weight: 600;
}

/* A pajzsos kör a szekció aljára lóg. */
.ella-about::after {
	content: "";
	position: absolute;
	right: var(--ella-gutter);
	bottom: -213px;
	width: 304px;
	height: 304px;
	background: #fff url("../img/shield-badge.svg") center 52% / 55% no-repeat;
	border-radius: 50%;
	pointer-events: none;
}

/* 4. Vélemények */

.ella-reviews {
	padding-top: 110px;
}

.ella-reviews .ella-carousel {
	margin-top: 48px;
}

.ella-reviews .ella-carousel__track {
	grid-auto-columns: calc((100% - 3 * 40px) / 4);
	gap: 40px;
}

.ella-front .ella-quote :is(h3, p) {
	margin-top: 16px;
}

.ella-front .ella-quote .ella-stars {
	margin-top: 0;
	color: #f8d33a;
	font-size: 22px;
	letter-spacing: 2px;
	line-height: 1;
}

.ella-front .ella-quote h3 {
	margin: 16px 0 0;
	color: var(--contrast);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.ella-front .ella-quote p {
	font-size: 16px;
	line-height: 1.4;
}

.ella-front .ella-quote .ella-quote__name {
	margin-top: 24px;
	color: var(--accent);
	font-style: italic;
}

/* 5. Kategóriák */

.ella-cats-head {
	padding-top: 0;
	padding-bottom: 44px;
}

.ella-cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.ella-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 24px;
	min-height: 650px;
	padding: 38px;
	overflow: hidden;
	color: #fff;
}

.ella-cat__img {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ella-cat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ella-cat:hover .ella-cat__img img {
	transform: scale(1.03);
}

.ella-cat::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(0deg, rgba(26, 26, 26, 0.65) 0%, rgba(26, 26, 26, 0) 55%);
	pointer-events: none;
}

.ella-cat > *:not(.ella-cat__img),
.ella-cat > .wp-block-group__inner-container > *:not(.ella-cat__img) {
	position: relative;
	z-index: 2;
}

.ella-front .ella-cat h3 {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 600;
}

.ella-cat .ella-btn .wp-block-button__link {
	min-width: 255px;
}

/* 6. Mérettáblázat és kiemelt termék */

.ella-sizes-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 494px);
	gap: 60px;
	align-items: stretch;
}

.ella-sizes {
	padding-top: 32px;
}

.ella-sizes .ella-subtitle {
	max-width: 480px;
}

.ella-sizes__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	gap: 12px;
	margin-top: 40px;
}

.ella-size {
	padding: 24px 28px;
	background: var(--accent-light);
	border-radius: 12px;
}

.ella-front .ella-size h3 {
	margin: 0;
	color: var(--accent);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
}

.ella-front .ella-size p {
	margin-top: 16px;
	font-size: 18px;
	line-height: 1.25;
}

.ella-featured {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: 600px;
	padding: 32px;
	overflow: hidden;
	color: #fff;
	background: var(--black);
	border-radius: 12px;
}

.ella-featured__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ella-featured::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(0deg, rgba(26, 26, 26, 0.75) 0%, rgba(26, 26, 26, 0) 50%);
}

.ella-featured > *:not(.ella-featured__img) {
	position: relative;
	z-index: 2;
}

/* A fenti "> *" szabálynál erősebb szelektor kell, különben a címke a normál sorrendbe csúszik. */
.ella-front .ella-featured__badge {
	position: absolute;
	top: 28px;
	right: 32px;
	z-index: 2;
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(26, 26, 26, 0.45);
	border-radius: 6px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.ella-front .ella-featured__name {
	color: #fff;
	font-size: 24px;
}

.ella-featured__price {
	margin: 12px 0 0;
	font-size: 18px;
}

.ella-front .ella-featured__button {
	width: 100%;
	margin-top: 28px;
	background: transparent;
	border-color: #fff;
}

.ella-front .ella-featured__button:hover {
	color: var(--contrast);
	background: #fff;
}

/* 7. Instagram */

.ella-insta {
	padding-right: 0;
	padding-left: 0;
	overflow: hidden;
}

.ella-insta .wp-block-buttons {
	justify-content: center;
	margin-top: 32px;
}

.ella-insta__grid {
	display: grid;
	grid-template-columns: 0.55fr 1fr 1.43fr 1.43fr 0.55fr;
	grid-template-rows: repeat(2, 326px);
	gap: 12px;
	margin-top: 40px;
}

.ella-insta__grid figure {
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
}

.ella-insta__grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ella-insta__grid figure:nth-child(1) {
	grid-area: 1 / 1 / 3 / 2;
	border-radius: 0 8px 8px 0;
}

.ella-insta__grid figure:nth-child(2) {
	grid-area: 1 / 2 / 2 / 3;
}

.ella-insta__grid figure:nth-child(3) {
	grid-area: 2 / 2 / 3 / 3;
}

.ella-insta__grid figure:nth-child(4) {
	grid-area: 1 / 3 / 3 / 4;
}

.ella-insta__grid figure:nth-child(5) {
	grid-area: 1 / 4 / 3 / 5;
}

.ella-insta__grid figure:nth-child(6) {
	grid-area: 1 / 5 / 2 / 6;
	border-radius: 8px 0 0 8px;
}

.ella-insta__grid figure:nth-child(7) {
	grid-area: 2 / 5 / 3 / 6;
	border-radius: 8px 0 0 8px;
}

.ella-insta__grid figure:nth-child(n+8) {
	display: none;
}

/* 8. Hírlevél */

.ella-newsletter {
	text-align: center;
	background: var(--base);
}

.ella-newsletter__form {
	max-width: 740px;
	margin: 40px auto 0;
	text-align: left;
}

.ella-newsletter__fields {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: end;
	gap: 16px;
}

.ella-newsletter__field span {
	display: block;
	color: var(--accent);
	font-size: 13px;
	font-weight: 600;
}

.ella-newsletter__field input,
.ella-newsletter__field input:focus {
	width: 100%;
	padding: 10px 0;
	color: var(--contrast);
	background: transparent;
	border: 0;
	border-bottom: 1.5px solid var(--accent-2);
	border-radius: 0;
	outline: none;
}

.ella-newsletter__field input:focus {
	border-bottom-color: var(--accent);
	box-shadow: 0 1px 0 var(--accent);
}

.ella-newsletter__submit,
.ella-newsletter__submit:hover,
.ella-newsletter__submit:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 68px;
	height: 56px;
	padding: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.ella-newsletter__submit:hover {
	background: var(--accent-2);
}

.ella-newsletter__submit span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.ella-newsletter__consent {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
	font-size: 13px;
}

.ella-newsletter__consent input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--accent);
}

.ella-newsletter__consent a {
	color: inherit;
	text-decoration: underline;
}

/* Tablet */

@media (max-width: 1200px) {
	.ella-reviews .ella-carousel__track {
		grid-auto-columns: calc((100% - 40px) / 2);
	}
}

@media (max-width: 1024px) {
	.ella-front {
		--ella-gutter: 32px;
		--ella-section-y: 72px;
	}

	.ella-about,
	.ella-sizes-row {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.ella-about::after {
		width: 200px;
		height: 200px;
		bottom: -140px;
	}

	.ella-featured {
		min-height: 560px;
	}

	.ella-insta__grid {
		grid-template-rows: repeat(2, 240px);
	}
}

/* Mobil */

@media (max-width: 768px) {
	.ella-front {
		--ella-gutter: 20px;
		--ella-section-y: 48px;
	}

	.ella-hero {
		min-height: 552px;
		padding-bottom: 28px;
		text-align: center;
	}

	.ella-front .ella-hero h1 {
		font-size: 28px;
	}

	.ella-front .ella-hero p {
		font-size: 16px;
	}

	.ella-hero .wp-block-buttons,
	.ella-hero .ella-btn,
	.ella-hero .ella-btn .wp-block-button__link {
		width: 100%;
	}

	.ella-front h2.wp-block-heading {
		font-size: 24px;
	}

	.ella-front .ella-subtitle {
		font-size: 16px;
	}

	.ella-new {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"title"
			"sub"
			"list"
			"link";
	}

	.ella-new .ella-products {
		margin-top: 24px;
	}

	.ella-new .ella-link {
		margin-top: 24px;
		text-align: center;
	}

	.ella-about {
		padding-top: 0;
		padding-right: 0;
		padding-left: 0;
		gap: 0;
	}

	.ella-about__img img {
		aspect-ratio: 394 / 423;
		border-radius: 0;
	}

	.ella-about__text {
		padding: 32px var(--ella-gutter) 0;
	}

	.ella-front .ella-about p {
		font-size: 16px;
	}

	.ella-about::after {
		right: var(--ella-gutter);
		width: 155px;
		height: 155px;
		bottom: -137px;
	}

	.ella-reviews {
		padding-top: 48px;
	}

	.ella-reviews h2,
	.ella-reviews .ella-subtitle {
		max-width: calc(100% - 150px);
	}

	.ella-reviews .ella-carousel__track {
		grid-auto-columns: 100%;
	}

	.ella-cats {
		grid-template-columns: 1fr;
	}

	.ella-cat {
		min-height: 600px;
		padding: 32px 20px;
	}

	.ella-cat .wp-block-buttons,
	.ella-cat .ella-btn,
	.ella-cat .ella-btn .wp-block-button__link {
		width: 100%;
	}

	.ella-sizes {
		padding-top: 0;
	}

	.ella-sizes__grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-flow: row;
		margin-top: 24px;
	}

	.ella-front .ella-size p {
		margin-top: 8px;
		font-size: 16px;
	}

	.ella-featured {
		min-height: 540px;
		padding: 24px 20px;
	}

	.ella-front .ella-featured__badge {
		top: 20px;
		right: 20px;
	}

	.ella-insta__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(2, 200px);
	}

	.ella-insta__grid figure:nth-child(1) {
		grid-area: 1 / 1 / 3 / 2;
	}

	.ella-insta__grid figure:nth-child(2) {
		grid-area: 1 / 2 / 2 / 3;
		border-radius: 8px 0 0 8px;
	}

	.ella-insta__grid figure:nth-child(3) {
		grid-area: 2 / 2 / 3 / 3;
		border-radius: 8px 0 0 8px;
	}

	.ella-insta__grid figure:nth-child(n+4) {
		display: none;
	}

	.ella-newsletter__fields {
		grid-template-columns: 1fr;
	}

	.ella-newsletter__submit,
	.ella-newsletter__submit:hover,
	.ella-newsletter__submit:focus {
		width: 100%;
		height: 50px;
	}

	.ella-newsletter__submit span {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
	}

	.ella-newsletter__consent {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ella-front * {
		transition: none !important;
	}
}
