/**
 * Főoldal — block stílusok
 * Betöltés: csak is_front_page() esetén (lásd functions.php)
 */

/* ==========================================================================
   SECTION SPACING — egységes 64px eltartás szekciók között
   Logika: minden section kap margin-bottom: 64px.
   A hero container padding-bottom-ját nullázzuk (main.css-ben 40px), hogy
   a section margin-bottom adja az egységes gap-et.
   ========================================================================== */

/* Hero: container padding-bottom nullázva → margin-bottom adja a gap-et */
.famingo-hero .famingo-hero__container {
	padding-bottom: 0;
}

.famingo-hero {
	margin-bottom: 64px;
}

/* Gallery: legújjabb projekt + grid + gomb együtt; main.css margin-top nullázva */
.famingo-gallery {
	margin-top: 0;
	margin-bottom: 64px;
}

/* Process: main.css-ben margin-top: 92px + padding-bottom: 80px → felülírva */
.famingo-process {
	margin-top: 0;
	padding-bottom: 0;
	margin-bottom: 64px;
}

/* CTA: main.css-ben margin-top: 92px + padding-bottom: 80px → felülírva */
.famingo-cta {
	margin-top: 0;
	padding-bottom: 32px;
}

/* ==========================================================================
   RESPONSIVE TIPOGRÁFIA — főoldal szekciók
   Figma iPhone 16 frame: hero heading 35px, body 14px mobilon
   ========================================================================== */

/* Mobile (≤767px) */
@media (max-width: 767px) {
	/* Hero heading: Figma mobile → 35px (main.css clamp min: 42px → felülírva) */
	.famingo-hero__heading {
		font-size: 35px;
	}

	/* Hero body: Figma mobile → 14px */
	.famingo-hero__text {
		font-size: 14px;
	}

	/* Process heading: arányosan csökkentve a hero mintájára */
	.famingo-process__heading {
		font-size: 35px;
	}

	/* Process step badge: kisebb képernyőn 40px elég */
	.famingo-process__badge {
		font-size: 40px;
	}
}

/* Tablet (768px–1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
	/* Hero heading: clamp közbülső értéke ~50px tableten — megtartva */
	.famingo-hero__text {
		font-size: 15px;
	}

	.famingo-process__badge {
		font-size: clamp(44px, 6vw, 60px);
	}
}

/* ==========================================================================
   HERO SZEKCIÓ
   ========================================================================== */

.hero-section {
	background: var(--color-primary);
	color: #ffffff;
}

.hero-section h1,
.hero-section .wp-block-heading {
	color: #ffffff;
}

.hero-section p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 17px;
	line-height: 1.65;
	max-width: 520px;
}

.hero-section__cols {
	gap: 40px;
}

@media (min-width: 1200px) {
	.hero-section__cols {
		gap: 64px;
	}
}

.hero-section__ctas {
	margin-top: 32px;
	flex-wrap: wrap;
	gap: 16px;
}

/* Hero CTA gombok — fehér alapon */
.hero-section .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #ffffff;
	color: var(--color-primary);
	border-color: #ffffff;
}

.hero-section .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.6);
}

.hero-section .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	opacity: 0.92;
}

/* Hero kép */
.hero-section__image-col {
	display: flex;
	align-items: center;
}

.hero-section__image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-card);
	border: 2px solid rgba(255, 255, 255, 0.3);
	object-fit: cover;
	aspect-ratio: 4 / 5;
}

@media (max-width: 767px) {
	.hero-section__image-col {
		display: none;
	}
}

/* ==========================================================================
   RÓLUNK INTRO SZEKCIÓ
   ========================================================================== */

.rolunk-intro-section {
	background: var(--color-background);
	text-align: center;
}

.rolunk-intro-section h2 {
	margin-bottom: 20px;
}

/* ==========================================================================
   FOLYAMATUNK SZEKCIÓ
   ========================================================================== */

.folyamat-section {
	background: var(--color-card-bg);
}

.folyamat-section__grid {
	gap: 24px;
	margin-bottom: 24px;
}

.folyamat-section__grid:last-child {
	margin-bottom: 0;
}

.folyamat-section__step {
	background: var(--color-background);
	border: 1px solid #000000;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-hard);
	padding: 32px 28px;
}

.folyamat-section__step-num {
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1;
	margin-bottom: 12px;
}

.folyamat-section__step h3 {
	margin-bottom: 10px;
}

.folyamat-section__step p:not(.folyamat-section__step-num) {
	font-size: 15px;
	line-height: 1.6;
}

/* ==========================================================================
   LEGÚJABB PROJEKTÜNK SZEKCIÓ
   ========================================================================== */

.projekt-section {
	background: var(--color-background);
}

.projekt-section__image img {
	width: 100%;
	border-radius: var(--radius-card);
	border: 2px solid #000000;
	box-shadow: var(--shadow-hard);
	object-fit: cover;
	aspect-ratio: 16 / 10;
}

.projekt-section__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

.projekt-section__text h3 {
	font-size: 28px;
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.projekt-section__cols {
		flex-direction: column;
	}

	.projekt-section__image-col,
	.projekt-section__text {
		flex-basis: 100% !important;
	}
}

/* ==========================================================================
   ÜGYFÉL VISSZAJELZÉSEK SZEKCIÓ
   ========================================================================== */

.testimonials-section {
	background: var(--color-card-bg);
	overflow: hidden;
}

.testimonials-section__track {
	display: flex;
	flex-direction: row;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	/* Scrollbar elrejtése */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.testimonials-section__track::-webkit-scrollbar {
	display: none;
}

.testimonials-section__card {
	min-width: 300px;
	max-width: 360px;
	flex-shrink: 0;
	scroll-snap-align: start;
	background: var(--color-background);
	border: 1px solid #000000;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-hard);
	padding: 28px 24px;
}

.testimonials-section__quote {
	font-family: var(--font-display);
	font-size: 15px;
	font-style: italic;
	line-height: 1.65;
	color: var(--color-text);
	margin-bottom: 16px;
}

.testimonials-section__author {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-muted);
	margin-bottom: 0;
}

/* ==========================================================================
   ZÁRÓ CTA SZEKCIÓ
   ========================================================================== */

.cta-section {
	background: var(--color-text);
	text-align: center;
}

.cta-section h2,
.cta-section .wp-block-heading {
	color: #ffffff;
	margin-bottom: 32px;
}

/* CTA gomb fehér alapon fekete szöveg -> inverted */
.cta-section .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #ffffff;
	color: var(--color-primary);
	border-color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════
   GALÉRIA LIGHTBOX OVERLAY
   Figma: node 90:1302 — rgba(0,0,0,0.81) backdrop, close btn node 90:1648
   ══════════════════════════════════════════════════════════════ */

/* Overlay wrapper — nincs saját scroll */
.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
}

.gallery-lightbox[hidden] {
	display: none;
}

.gallery-lightbox__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.81);
	cursor: pointer;
}

/* Panel — teljes magasság, flex oszlop */
.gallery-lightbox__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1440px;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Fix felső rész — close + featured */
.gallery-lightbox__top {
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	padding: 80px var(--container-padding-mobile) 22px;
}

@media (min-width: 768px) {
	.gallery-lightbox__top {
		padding: 80px var(--container-padding-tablet) 22px;
	}
}

@media (min-width: 1200px) {
	.gallery-lightbox__top {
		padding: 50px 104px 22px;
	}
}

/* Görgethető grid rész */
.gallery-lightbox__scroll {
	flex: 1;
	overflow-y: auto;
	position: relative;
	z-index: 1;
	padding: 22px var(--container-padding-mobile) 80px;
}

@media (min-width: 768px) {
	.gallery-lightbox__scroll {
		padding: 22px var(--container-padding-tablet) 80px;
	}
}

@media (min-width: 1200px) {
	.gallery-lightbox__scroll {
		padding: 22px 104px 80px;
	}
}

.gallery-lightbox__close {
	display: block;
	margin-bottom: 32px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.gallery-lightbox__featured {
	margin-bottom: 0;
}

.gallery-lightbox__featured-img {
	display: block;
	width: 100%;
	aspect-ratio: 1232 / 611;
	object-fit: cover;
	border-radius: 40px;
	border: 1px solid #000;
	box-shadow: 0px 5px 0px 0px rgba(0, 0, 0, 1);
}

.gallery-lightbox__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 600px) {
	.gallery-lightbox__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

.gallery-lightbox__grid-item {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 40px;
	border: 1px solid #000;
	box-shadow: 0px 5px 0px 0px rgba(0, 0, 0, 1);
	cursor: pointer;
	transition: opacity 0.2s;
}

.gallery-lightbox__grid-item:hover {
	opacity: 0.85;
}

body.lightbox-open {
	overflow: hidden;
}
