/*
Theme Name: SzűzMéz
Theme URI: https://szuzmez.hu
Description: Egyoldalas, teljes képernyős blokkokból álló landing téma a SzűzMéz számára. A szövegek és képek a Megjelenés → Testreszabás → SzűzMéz landing menüben szerkeszthetők.
Version: 2.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: szuzmez
*/

/* ---------- Alapok ---------- */

:root {
	--green: #034331;
	--deep: #003b2d;
	--gold: #c88b2c;
	--cream: #faf6ed;
	--ink: #17231d;
	--red: #ec171b;
	--sans: Arial, Helvetica, sans-serif;
	--serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--serif);
}

img { max-width: 100%; height: auto; }

[data-szm]:empty { display: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.screen {
	min-height: 100vh;
	position: relative;
	scroll-snap-align: start;
	overflow: hidden;
}

.wrap { width: min(1220px, 88%); margin: auto; }

.eyebrow {
	font: 700 11px var(--sans);
	letter-spacing: .18em;
	color: #987132;
	text-transform: uppercase;
}

.line {
	height: 2px;
	width: 160px;
	background: linear-gradient(90deg, var(--gold), transparent);
	margin: 22px 0;
}

.section { padding: clamp(55px, 8vw, 105px) 0; }

.title {
	font-size: clamp(34px, 4.5vw, 59px);
	line-height: 1.06;
	letter-spacing: -.04em;
	margin: 12px 0 25px;
}

.lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; }

.copy { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; }
.copy p { margin: 0 0 20px; }

.badge {
	position: absolute;
	right: 4vw;
	bottom: 15px;
	font: 11px var(--sans);
	letter-spacing: .12em;
	color: #887e64;
}

.button {
	display: inline-block;
	padding: 15px 27px;
	background: var(--red);
	border-radius: 99px;
	color: #fff;
	text-decoration: none;
	font: 700 15px var(--sans);
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.button:hover, .button:focus-visible {
	background: #d20f13;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -10px rgba(236, 23, 27, .7);
}

/* Kitöltő a még fel nem töltött képek helyén */
.ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 180px;
	padding: 24px;
	background: repeating-linear-gradient(135deg, #efe5cf 0 14px, #f6efdf 14px 28px);
	border: 2px dashed #d4bc89;
	color: #887e64;
	font: 700 12px/1.5 var(--sans);
	letter-spacing: .12em;
	text-align: center;
	text-transform: uppercase;
}

/* ---------- 1. Nyitó ---------- */

.hero {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	background: linear-gradient(110deg, #fffdf7, #f0e5d0);
	min-height: 100vh;
}

.hero-copy {
	padding: 28px 7vw 70px 8vw;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 2;
}

.topbrand {
	position: absolute;
	top: 26px;
	left: 8vw;
	display: grid;
	gap: 17px;
}

.contacts { display: flex; gap: 10px; }

.icon {
	height: 42px;
	width: 42px;
	border-radius: 50%;
	border: 1px solid #d4bc89;
	display: grid;
	place-items: center;
	background: #fffaf0;
	color: var(--green);
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.icon:hover, .icon:focus-visible { background: var(--green); color: #fff; }

.logo {
	color: var(--green);
	font: 500 clamp(28px, 3vw, 42px) var(--sans);
	letter-spacing: -.06em;
	display: flex;
	align-items: center;
	gap: 11px;
}
.logo .logo-img { height: clamp(56px, 6vw, 84px); width: auto; }

.hex {
	width: 42px;
	height: 46px;
	background: var(--gold);
	clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 22px;
	letter-spacing: 0;
}

/* A nagy felső térköz a felirat fölött van, így az nem csúszik a logó alá. */
.hero .eyebrow { margin: 170px 0 0; }

.hero h1 {
	font-size: clamp(42px, 6vw, 78px);
	line-height: .98;
	letter-spacing: -.05em;
	margin: 14px 0 24px;
	color: #142019;
}

.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.hero-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, #f3ead5 0, transparent 36%),
		linear-gradient(0deg, #063e2c22, transparent 45%);
	pointer-events: none;
}

.down {
	position: absolute;
	bottom: 23px;
	left: 50%;
	z-index: 3;
	text-decoration: none;
	background: var(--green);
	color: #fff;
	border-radius: 50%;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	font: 29px var(--sans);
	transform: translateX(-50%);
}

/* ---------- 2. Kép kártyákkal ---------- */

.page2 {
	background:
		radial-gradient(ellipse at 82% 12%, rgba(205, 164, 89, .20), transparent 34%),
		linear-gradient(135deg, #f4eddd 0%, #e8eadc 52%, #f8f3e8 100%);
	padding: clamp(22px, 4vw, 44px) 0 64px;
}

/* A 2. blokk „plakátja”: cím, három kártya és zöld sáv egy keretben. */
.p2 {
	position: relative;
	width: min(1500px, 94%);
	margin: auto;
	border: 3px solid #fff8e9;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(180deg, #fbf6ea 0%, #fffdf8 100%);
	box-shadow: 0 22px 60px rgba(46, 57, 36, .18);
}

/* A fejléc (anyuka, cím, logó) egy fix kép; a cím szövege az alt szövegben van. */
.p2-header { margin: 0; line-height: 0; }
.p2-header img {
	display: block;
	width: 100%;
	height: auto;
	-webkit-mask-image: linear-gradient(180deg, #000 92%, transparent);
	mask-image: linear-gradient(180deg, #000 92%, transparent);
}
.p2-header .ph { aspect-ratio: 1672 / 346; min-height: 0; line-height: 1.5; }

/* A kártyák a fejléc képéhez igazodnak (az eredeti kép arányai szerint). */
.p2-cards {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(6px, .5vw, 10px);
	padding: 0 1.4% 0 4.5%;
}

.p2-vine {
	position: absolute;
	top: 0;
	left: 0;
	width: 5.4%;
	height: auto;
	mix-blend-mode: multiply;
	-webkit-mask-image: linear-gradient(90deg, #000 75%, transparent), linear-gradient(180deg, #000 80%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, #000 75%, transparent), linear-gradient(180deg, #000 80%, transparent);
	mask-composite: intersect;
	pointer-events: none;
}

.p2-card {
	display: flex;
	flex-direction: column;
	padding: clamp(8px, 1vw, 14px);
	background: rgba(255, 253, 248, .92);
	border: 1px solid rgba(200, 139, 44, .18);
	border-radius: 14px;
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(80, 64, 30, .06);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.p2-card:hover, .p2-card:focus-visible {
	transform: translateY(-5px);
	border-color: var(--gold);
	box-shadow: 0 0 0 2px rgba(200, 139, 44, .5), 0 20px 40px rgba(46, 57, 36, .18);
	outline: none;
}
.p2-card-img { border-radius: 10px; overflow: hidden; aspect-ratio: 490 / 212; }
.p2-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p2-card:hover .p2-card-img img { transform: scale(1.04); }
.p2-card-title {
	margin: clamp(10px, 1.4vw, 20px) 0 4px;
	font: 400 clamp(17px, 1.75vw, 27px)/1.2 var(--serif);
	letter-spacing: -.015em;
	text-wrap: balance;
}
.p2-card-text {
	margin: 0 0 6px;
	font: 400 clamp(14px, 1.3vw, 20px)/1.25 var(--serif);
	color: #333;
	text-wrap: balance;
}

.p2-band {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	margin: clamp(14px, 1.8vw, 26px) 0 0;
	padding: clamp(18px, 2.4vw, 34px) clamp(16px, 3vw, 44px) clamp(18px, 2.4vw, 34px) clamp(150px, 26%, 400px);
	background: #023723;
	color: #fffdf6;
}
.p2-flowers {
	position: absolute;
	left: 0;
	bottom: 0;
	width: clamp(110px, 13vw, 215px);
	height: auto;
	pointer-events: none;
}
.p2-hexes {
	position: absolute;
	left: clamp(100px, 12vw, 190px);
	top: 50%;
	width: clamp(70px, 9vw, 150px);
	transform: translateY(-50%);
	pointer-events: none;
}
.p2-band-copy { flex: 1; text-align: center; }
.p2-band-title { margin: 0; font: 700 clamp(22px, 2.5vw, 40px)/1.15 var(--serif); letter-spacing: -.02em; }
.p2-band-text { margin: 4px 0 0; font: 400 clamp(15px, 1.45vw, 23px)/1.3 var(--serif); color: rgba(255, 253, 246, .9); }

.p2-button {
	flex: none;
	padding: .6em 1.4em;
	font-size: clamp(16px, 1.8vw, 28px);
	letter-spacing: .02em;
	background: linear-gradient(180deg, #f2262a, #c90f13);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px rgba(0, 0, 0, .35);
}
.p2-button span[aria-hidden] { margin-left: .3em; }

.page2note {
	width: min(1100px, 88%);
	margin: 30px auto;
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.55;
	color: #173f31;
	background: rgba(255, 250, 239, .76);
	border: 1px solid rgba(200, 139, 44, .28);
	border-radius: 16px;
	padding: 20px clamp(18px, 3vw, 34px);
	box-shadow: 0 12px 32px rgba(53, 61, 39, .07);
}
.page2note p { margin: 0 0 1em; }
.page2note p:last-child { margin: 0; color: #455c49; }
.page2note-title { font-weight: 700; color: #123d2f; }

/* ---------- 3. Termékeink ---------- */

.page3 { background: linear-gradient(140deg, #fbf7ec, #e8efe4); }

.cols {
	display: grid;
	grid-template-columns: 1fr .78fr;
	gap: 5vw;
	align-items: center;
}

.page3 .art {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
	object-position: center;
	border-radius: 48% 48% 32px 32px;
	border: 5px solid rgba(255, 250, 239, .88);
	box-shadow: 0 18px 44px rgba(28, 59, 42, .16);
}

/* ---------- 4. Kik vagyunk ---------- */

.page4 { background: #f7f1e3; overflow: visible; }

.blocks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.block {
	font-size: 16px;
	line-height: 1.63;
	padding: 22px 25px;
	background: #fffdf8b5;
	border-left: 2px solid #cfa34f;
	border-radius: 0 15px 15px 0;
}
.block p { margin: 0 0 16px; }
.block > :last-child p:last-child, .block > p:last-child { margin: 0; }
.block .hexes { color: var(--gold); }

.family-photo, .page6-photo { margin: 0; }
.family-photo img, .page6-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}

.page4 .family-photo {
	float: right;
	width: 43%;
	margin: 4px 0 16px 18px;
}
.page4 .family-photo img {
	border-radius: 14px;
	border: 3px solid #fff8e9;
	box-shadow: 0 12px 28px rgba(54, 63, 42, .14);
}

/* ---------- 5. Átvezető ---------- */

.page5 {
	min-height: 75vh;
	background: radial-gradient(ellipse at center, #fbefcf, #e7eddc 53%, #aabc9f);
	display: grid;
	place-items: center;
}

.comb {
	height: 330px;
	width: min(700px, 75vw);
	border-radius: 50% 50% 30px 30px;
	background: radial-gradient(ellipse, #e8b64f 0 19%, #bb7c28 20% 22%, #fff2d1 23% 44%, #879a7c 45%);
	box-shadow: 0 32px 70px #40351f30;
	display: grid;
	place-items: center;
	color: #fff8e6;
	font-size: 90px;
}

/* ---------- 6. Zárszó ---------- */

.page6 {
	background: #073e2f;
	color: #fffdf6;
	overflow: clip; /* a hidden megtörné a sticky láblécet */
	display: flex;
	flex-direction: column;
}
.page6 > .wrap { flex: 1; }
.page6 .title { color: #fff; }
.page6 .eyebrow { color: #f0c766; }
.page6 .badge { bottom: 76px; color: #9fb3a6; }

.page6 .page6-photo {
	float: right;
	width: 42%;
	max-width: 480px;
	margin: 6px 0 18px 24px;
}
.page6 .page6-photo img {
	border-radius: 20px;
	border: 3px solid rgba(255, 248, 233, .8);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .23);
}

.quote {
	font-size: clamp(25px, 3vw, 39px);
	line-height: 1.32;
	color: #f7d88e;
	clear: both;
}

/* Az utolsó blokkban a lábléc a képernyő aljára tapad. */
.site-footer {
	position: sticky;
	bottom: 0;
	z-index: 5;
	padding: 20px 0;
	background: var(--deep);
	border-top: 1px solid rgba(240, 199, 102, .25);
	color: rgba(255, 253, 246, .8);
	font: 13px var(--sans);
	letter-spacing: .04em;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #f0c766; }

/* ---------- Egyszerű aloldalak (pl. adatvédelem) ---------- */

.page-plain { padding: 64px 0; }
.page-plain .wrap { max-width: 760px; }

/* ---------- Mobil ---------- */

@media (max-width: 760px) {
	html { scroll-snap-type: none; }
	.hero { display: block; min-height: 100svh; }
	.hero-copy { min-height: 67svh; padding: 25px 8vw 50px; }
	.topbrand { left: 8vw; top: 18px; }
	.hero .eyebrow { margin-top: 160px; }
	.hero h1 { font-size: clamp(42px, 11vw, 64px); }
	.hero-photo { position: absolute; bottom: 0; left: 0; right: 0; height: 35svh; opacity: .78; }
	.hero-photo::after { background: linear-gradient(0deg, #073e2f22, transparent); }
	.wrap { width: 88%; }
	.cols, .blocks { grid-template-columns: 1fr; }
	.art-wrap { order: -1; }
	.page3 .art { height: 270px; border-radius: 32px; }
	.block { font-size: 15.5px; }
	.page2 { padding: 20px 0; }
	.p2 { width: 96%; border-radius: 12px; }
	.p2-vine { display: none; }
	.p2-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 8px; padding: 0 14px; }
	.p2-band {
		flex-direction: column;
		margin: 16px 0 0;
		padding: 26px 18px 120px;
	}
	.p2-hexes { left: auto; right: 14px; top: auto; bottom: 14px; transform: none; width: 70px; }
	.p2-flowers { width: 120px; }
	.page2note { margin: 18px auto; padding: 16px; }
	.comb { height: 220px; }
	.page6 .section { padding-bottom: 85px; }
	.page4 .family-photo, .page6 .page6-photo { float: none; width: 100%; max-width: none; margin: 14px 0 18px; }
	.family-photo img, .page6-photo img { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
