/*
Theme Name: OtthonFix
Theme URI: https://otthonfixes.hu
Author: OtthonFix
Description: Az OtthonFix Web Kit v1.0 alapján készült egyedi block theme. Otthon körüli szolgáltatások bemutatására: ezermester munkák, felújítás és szakipari munkák, kert és udvar, otthonfelügyelet. A design tokenek a theme.json fájlban élnek, ez a stíluslap csak a komponensek megjelenését írja le.
Version: 1.0.10
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otthonfix
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, custom-menu, blog, one-column, two-columns
*/

/* ==========================================================================
   1. TOKEN ALIASOK
   A színek és méretek egyetlen forrása a theme.json. Itt csak rövid
   aliasokat adunk nekik, hogy a komponens-CSS olvasható maradjon.
   Ha színt akarsz módosítani, azt a theme.json-ben vagy a
   Megjelenés > Szerkesztő > Stílusok felületen tedd, NE itt.
   ========================================================================== */

:root {
	--navy: var(--wp--preset--color--navy);
	--navy-2: var(--wp--preset--color--navy-2);
	--navy-deep: var(--wp--preset--color--navy-deep);
	--green: var(--wp--preset--color--green);
	--green-dark: var(--wp--preset--color--green-dark);
	--accent: var(--wp--preset--color--accent);
	--white: var(--wp--preset--color--white);
	--light: var(--wp--preset--color--light);
	--concrete: var(--wp--preset--color--concrete);
	--graphite: var(--wp--preset--color--graphite);
	--muted: var(--wp--preset--color--muted);

	--radius: var(--wp--custom--radius);
	--radius-large: var(--wp--custom--radius-large);
	--radius-small: var(--wp--custom--radius-small);
	--shadow: var(--wp--custom--shadow);
	--shadow-card: var(--wp--custom--shadow-card);
}

html {
	scroll-behavior: smooth;
}

/* A ragadós fejléc ne csússzon a bejelentkezett admin sáv alá. */
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

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

/* ==========================================================================
   2. FEJLÉC ÉS NAVIGÁCIÓ
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	/* Átlátszatlan fehér, elválasztó vonal nélkül. A fejléc ragadós, ezért a
	   háttérnek fednie kell: így a görgetett tartalom tisztán eltűnik alatta,
	   nem dereng át. Ha mégis kellene finom határ, ide vehető vissza egy
	   border-bottom vagy egy lágy box-shadow. */
	background: var(--white);
}

.site-header .header-inner {
	min-height: 82px;
}

.site-header .custom-logo,
.site-header .wp-block-site-logo img {
	width: 235px;
	max-width: 100%;
	height: auto;
}

/* Zöld aláhúzás a menüpontok alatt, aktív oldalon kitöltve. */
.primary-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 4px;
}

.primary-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 3px;
	background: var(--green);
	border-radius: 3px;
	transition: width 0.2s ease;
}

.primary-nav .wp-block-navigation-item__content:hover::after,
.primary-nav .current-menu-item > .wp-block-navigation-item__content::after,
.primary-nav .current_page_item > .wp-block-navigation-item__content::after {
	width: 100%;
}

/* A lenyíló mobil menüben ne jelenjen meg az aláhúzás-animáció. */
.primary-nav .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__content::after {
	display: none;
}

.primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--white);
	padding-top: 90px;
}

/* Alsó szintű menü (Szolgáltatások almenü). */
.primary-nav .wp-block-navigation__submenu-container {
	border: 1px solid rgba(13, 27, 42, 0.1);
	border-radius: var(--radius-small);
	box-shadow: var(--shadow);
	padding: 8px;
	min-width: 240px;
}

.primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 9px 12px;
	border-radius: 9px;
}

.primary-nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:hover {
	background: var(--light);
	text-decoration: none;
}

.primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.skip-link:focus {
	background: var(--green);
	color: var(--navy);
	font-weight: 800;
	padding: 12px 18px;
	z-index: 9999;
}

/* ==========================================================================
   3. SZEKCIÓK ÉS CÍMBLOKKOK
   ========================================================================== */

.section {
	padding-block: 100px;
}

.section-light {
	background: var(--light);
}

.section-dark {
	background: var(--navy);
	color: var(--white);
}

.section-dark :where(h1, h2, h3, h4) {
	color: var(--white);
}

.section-dark p {
	color: #cad6df;
}

.kicker {
	display: block;
	color: var(--green-dark);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 10px;
}

.section-dark .kicker {
	color: var(--accent);
}

/* A szélességkorlát a gyerekelemekre kerül, nem a burkolóra. A burkoló így
   kitölti a szekció konténerét (nem kap középre igazító margót), a benne
   lévő elemek pedig flow elrendezésben vannak, ahol a max-width balra
   igazítva marad. */
.section-heading {
	margin-bottom: 45px;
}

.section-heading > * {
	max-width: 760px;
}

.section-heading.center {
	text-align: center;
}

.section-heading.center > * {
	margin-inline: auto;
}

.section-heading p {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--muted);
}

.section-dark .section-heading p {
	color: #cad6df;
}

/* ==========================================================================
   4. HERO (főoldal)
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--gradient--hero-navy);
	color: var(--white);
}

/* Dekoratív zöld körvonal jobbra fent. */
.hero::before {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	border: 90px solid rgba(122, 191, 43, 0.12);
	border-radius: 50%;
	right: -160px;
	top: -160px;
	pointer-events: none;
}

/* Átlós zöld ék a hero alján. */
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 105px;
	background: linear-gradient(
		174deg,
		transparent 49%,
		var(--green) 50%,
		var(--green) 57%,
		var(--white) 58%
	);
	pointer-events: none;
}

.hero > * {
	position: relative;
	z-index: 2;
}

.hero .hero-inner {
	padding-block: 80px 135px;
	min-height: 660px;
	align-items: center;
}

.hero :where(h1, h2, h3) {
	color: var(--white);
}

.hero h1 .has-green-color,
.hero h1 em {
	color: var(--green);
	font-style: normal;
}

.hero-lead {
	font-size: var(--wp--preset--font-size--large);
	color: #dce7ef;
	max-width: 680px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 13px;
	background: rgba(122, 191, 43, 0.15);
	border: 1px solid rgba(167, 216, 91, 0.35);
	border-radius: 999px;
	color: #dff7c2;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hero-note {
	color: #dce7ef;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}

.hero-note li {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
}

.hero-note li::before {
	content: "✓";
	flex: 0 0 23px;
	display: grid;
	place-items: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: var(--green);
	color: var(--navy);
	font-weight: 900;
	font-size: 0.8rem;
}

/* Hero-ban lévő fehér kártya a gyors szolgáltatásválasztóval. */
.hero-card {
	position: relative;
	background: rgba(255, 255, 255, 0.96);
	color: var(--graphite);
	border-radius: var(--radius-large);
	padding: 34px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.hero-card::before {
	content: "";
	position: absolute;
	width: 125px;
	height: 8px;
	background: var(--green);
	border-radius: 10px;
	top: -4px;
	left: 40px;
}

.hero-card :where(h2, h3) {
	color: var(--navy);
}

.hero-card p {
	color: var(--muted);
}

.quick-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 14px;
	background: var(--light);
	border-radius: var(--radius-small);
	font-weight: 700;
	color: var(--navy);
}

.quick-item:hover {
	background: #e8f0d9;
	text-decoration: none;
}

.quick-item img {
	width: 37px;
	height: 37px;
	object-fit: contain;
	flex: 0 0 37px;
}

/* ==========================================================================
   5. ALOLDALI HERO
   ========================================================================== */

.page-hero {
	background: var(--wp--preset--gradient--panel-navy);
	color: var(--white);
	padding-block: 90px 110px;
	position: relative;
	overflow: hidden;
}

.page-hero::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -5%;
	width: 110%;
	height: 130px;
	background: var(--white);
	transform: rotate(-2deg);
	pointer-events: none;
}

.page-hero > * {
	position: relative;
	z-index: 2;
}

/* A max-width mellé margin-inline: 0 is kell. A WordPress "constrained"
   elrendezése minden közvetlen gyerekelemnek automatikus oldalmargót ad,
   ami a szűkebb elemeket középre húzná – a kitben ezek balra igazítva
   vannak. Ugyanez a helyzet a .section-heading elemnél is lentebb. */
.page-hero h1,
.page-hero h2 {
	color: var(--white);
	max-width: 900px;
	margin-inline: 0;
}

.page-hero p {
	color: #d8e4ec;
	font-size: var(--wp--preset--font-size--large);
	max-width: 760px;
	margin-inline: 0;
}

.page-hero .kicker {
	color: var(--accent);
}

/* ==========================================================================
   6. SZOLGÁLTATÁSKÁRTYA
   ========================================================================== */

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid rgba(13, 27, 42, 0.09);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow-card);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	overflow: hidden;
	height: 100%;
}

.service-card::after {
	content: "";
	position: absolute;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: rgba(122, 191, 43, 0.08);
	right: -35px;
	top: -35px;
	pointer-events: none;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow);
	border-color: rgba(122, 191, 43, 0.45);
}

.service-card > * {
	position: relative;
	z-index: 2;
}

.service-card .wp-block-image {
	margin-bottom: 24px;
}

.service-card img {
	width: 62px;
	height: 62px;
	object-fit: contain;
}

.service-card h3 {
	color: var(--navy);
	margin-bottom: 12px;
}

.service-card p {
	color: var(--muted);
}

.service-card ul {
	margin-bottom: 20px;
}

.service-card .text-link {
	margin-top: auto;
}

.text-link a,
a.text-link {
	color: var(--green-dark);
	font-weight: 900;
}

/* ==========================================================================
   7. BIZALMI KÁRTYA
   ========================================================================== */

.benefit {
	padding: 26px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	height: 100%;
}

.benefit-number {
	display: block;
	color: var(--green);
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 8px;
}

.benefit h3 {
	color: var(--white);
	margin-block: 8px;
}

.benefit p {
	color: #c9d5de;
	margin: 0;
}

/* ==========================================================================
   8. FOLYAMAT (számozott lépések)
   ========================================================================== */

.process-step {
	position: relative;
	background: var(--white);
	border-radius: 18px;
	padding: 28px 20px;
	box-shadow: 0 8px 22px rgba(13, 27, 42, 0.05);
	height: 100%;
}

/* A számozás pozíció alapján készül, nem CSS counterrel. A counter csak
   akkor folytatólagos, ha a számláló egy közös ősön ténylegesen létrejön;
   ha nem, minden lépés saját számlálót nyit, és mindegyik 1-es lesz. */

.process-step::before {
	content: "1";
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--green);
	color: var(--navy);
	font-weight: 900;
	margin-bottom: 18px;
}

.process-step:nth-child(2)::before { content: "2"; }
.process-step:nth-child(3)::before { content: "3"; }
.process-step:nth-child(4)::before { content: "4"; }
.process-step:nth-child(5)::before { content: "5"; }
.process-step:nth-child(6)::before { content: "6"; }

.process-step h3 {
	color: var(--navy);
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--large);
}

.process-step p {
	margin: 0;
	color: var(--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ==========================================================================
   9. KIEMELT SZOLGÁLTATÁS PANEL
   ========================================================================== */

.visual-panel {
	min-height: 450px;
	border-radius: var(--radius-large);
	background: var(--wp--preset--gradient--panel-navy);
	position: relative;
	overflow: hidden;
	padding: 38px;
	color: var(--white);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}

.visual-panel::before {
	content: "";
	position: absolute;
	width: 330px;
	height: 330px;
	border-radius: 50%;
	background: rgba(122, 191, 43, 0.14);
	right: -100px;
	bottom: -100px;
	pointer-events: none;
}

.visual-panel > * {
	position: relative;
	z-index: 2;
}

.visual-panel img {
	width: 115px;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.visual-panel h3 {
	color: var(--white);
	font-size: 2.2rem;
	line-height: 1.1;
	max-width: 350px;
	margin: 70px 0 14px;
}

.visual-panel p {
	max-width: 420px;
	color: #d5e0e8;
}

.check-list {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 14px;
	margin-block: 25px 32px;
}

.check-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.check-list li::before {
	content: "✓";
	flex: 0 0 26px;
	height: 26px;
	display: grid;
	place-items: center;
	background: var(--green);
	color: var(--navy);
	border-radius: 50%;
	font-weight: 900;
	font-size: 0.85rem;
}

/* ==========================================================================
   10. CTA SÁV
   ========================================================================== */

.cta {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-large);
	background: var(--wp--preset--gradient--cta-green);
	padding: 55px;
	color: var(--navy);
}

.cta::after {
	content: "";
	position: absolute;
	width: 250px;
	height: 250px;
	border-radius: 50%;
	border: 55px solid rgba(13, 27, 42, 0.08);
	right: -70px;
	top: -80px;
	pointer-events: none;
}

.cta > * {
	position: relative;
	z-index: 2;
}

.cta :where(h2, h3) {
	color: var(--navy);
	margin-bottom: 10px;
}

.cta p {
	margin: 0;
	font-weight: 650;
	max-width: 700px;
}

/* A zöld sávon a gomb sötét, hogy legyen kontraszt. */
.cta .wp-block-button__link {
	background: var(--navy);
	color: var(--white);
}

.cta .wp-block-button__link:hover {
	background: var(--navy-2);
	color: var(--white);
}

/* ==========================================================================
   11. TARTALMI ELEMEK AZ ALOLDALAKON
   ========================================================================== */

.content-card {
	background: var(--light);
	border-radius: var(--radius);
	padding: 28px;
}

.content-card h3 {
	color: var(--navy);
	margin-top: 0;
}

.icon-list {
	list-style: none;
	padding-left: 0;
}

.icon-list li,
.icon-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--white);
	border-radius: 13px;
	padding: 14px;
	font-weight: 750;
	color: var(--navy);
}

.icon-list img,
.icon-tile img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	flex: 0 0 34px;
}

.notice {
	border-left: 5px solid var(--green);
	background: #f5faee;
	padding: 20px 22px;
	border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.notice p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   12. ÁRKÁRTYA
   ========================================================================== */

.price-card {
	background: var(--white);
	color: var(--graphite);
	border-radius: var(--radius);
	padding: 30px;
	border: 1px solid rgba(13, 27, 42, 0.09);
	height: 100%;
}

.price-card.featured {
	border: 2px solid var(--green);
	transform: translateY(-10px);
}

.price-card h3 {
	color: var(--navy);
	margin: 0 0 8px;
}

.price-status {
	color: var(--green-dark);
	font-weight: 900;
	font-size: var(--wp--preset--font-size--large);
}

/* ==========================================================================
   13. GYIK
   ========================================================================== */

.faq-list .wp-block-details {
	background: var(--white);
	border: 1px solid rgba(13, 27, 42, 0.1);
	border-radius: var(--radius-small);
	padding: 18px 20px;
}

.faq-list summary {
	cursor: pointer;
	color: var(--navy);
	font-weight: 850;
}

.faq-list .wp-block-details p {
	color: var(--muted);
}

/* ==========================================================================
   14. KAPCSOLAT
   ========================================================================== */

.contact-card {
	background: var(--navy);
	color: var(--white);
	border-radius: 26px;
	padding: 34px;
	height: 100%;
}

.contact-card :where(h2, h3) {
	color: var(--white);
	margin-top: 0;
}

.contact-card p {
	color: #d3dfe7;
}

.contact-card a {
	color: var(--accent);
}

.contact-lines strong {
	color: var(--green);
	display: block;
}

/* A Fluent Forms űrlap illesztése a kit stílusához. */
.otthonfix-form .ff-el-input--label label {
	font-weight: 800;
	color: var(--navy);
}

.otthonfix-form input[type="text"],
.otthonfix-form input[type="email"],
.otthonfix-form input[type="tel"],
.otthonfix-form textarea,
.otthonfix-form select {
	border: 1px solid var(--concrete);
	border-radius: 12px;
	padding: 13px 14px;
	background: var(--white);
	width: 100%;
}

.otthonfix-form textarea {
	min-height: 145px;
	resize: vertical;
}

.otthonfix-form .ff-btn-submit {
	background: var(--green);
	color: var(--navy);
	border: 0;
	border-radius: 999px;
	padding: 13px 26px;
	font-weight: 800;
	cursor: pointer;
}

.otthonfix-form .ff-btn-submit:hover {
	background: var(--accent);
}

/* ==========================================================================
   15. LÁBLÉC
   ========================================================================== */

.site-footer {
	background: var(--navy-deep);
	color: #d8e2e9;
	padding-block: 65px 25px;
}

.site-footer :where(h2, h3) {
	color: var(--white);
	font-size: 1rem;
	margin-bottom: 10px;
}

.site-footer a {
	color: #bfcdd7;
}

.site-footer a:hover {
	color: var(--green);
	text-decoration: none;
}

.site-footer .wp-block-site-logo img {
	width: 220px;
	max-width: 100%;
	margin-bottom: 18px;
}

.footer-col .wp-block-navigation {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 45px;
	padding-top: 22px;
	font-size: var(--wp--preset--font-size--x-small);
}

/* ==========================================================================
   16. BLOG / ARCHÍVUM (alap, később finomítható)
   ========================================================================== */

.entry-card {
	background: var(--white);
	border: 1px solid rgba(13, 27, 42, 0.09);
	border-radius: var(--radius);
	padding: 26px;
	height: 100%;
}

.entry-card h2,
.entry-card h3 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 0;
}

/* ==========================================================================
   17. RESZPONZÍV FINOMHANGOLÁS
   A rácsokat a WP grid layout (minimumColumnWidth) kezeli automatikusan,
   itt csak a dekorációt és a nagy paddingeket szedjük vissza.
   ========================================================================== */

@media (max-width: 1050px) {
	.hero .hero-inner {
		min-height: auto;
	}
	.hero::before {
		width: 360px;
		height: 360px;
		border-width: 60px;
		right: -120px;
		top: -120px;
	}
	.visual-panel h3 {
		margin-top: 40px;
	}
}

@media (max-width: 780px) {
	.site-header .header-inner {
		min-height: 70px;
		gap: 12px;
	}
	.site-header .custom-logo,
	.site-header .wp-block-site-logo img {
		width: 190px;
	}

	/* A logó, a hamburger ikon és a zöld gomb együtt nem fér ki egy telefon
	   szélességébe, a fejléc sora pedig nem tördel. Mobilon ezért elhagyjuk
	   a gombot: az ajánlatkérés a menü Kapcsolat pontjából és minden oldal
	   záró CTA sávjából elérhető. */
	.site-header .wp-block-buttons {
		display: none;
	}

	/* A lenyíló menü töltse ki a kijelzőt, és ne vigye magával a desktopos
	   panel-megjelenést (fix szélesség, keret, árnyék). */
	.primary-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 86px 22px 32px;
	}
	.primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	.primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		width: 100%;
		max-width: 100%;
		align-items: stretch;
	}
	.primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		min-width: 0;
		width: 100%;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 14px;
	}
	.primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		padding-block: 10px;
	}

	.section {
		padding-block: 72px;
	}
	.hero .hero-inner {
		padding-block: 65px 120px;
	}
	.hero-card {
		padding: 26px;
	}
	.page-hero {
		padding-block: 70px 90px;
	}
	.cta {
		padding: 38px 26px;
	}
	.visual-panel {
		min-height: 340px;
		padding: 28px;
	}
	.visual-panel h3 {
		font-size: 1.7rem;
		margin-top: 32px;
	}
	.price-card.featured {
		transform: none;
	}
}

/* ==========================================================================
   18. AKADÁLYMENTESSÉG
   ========================================================================== */

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--green-dark);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.service-card:hover {
		transform: none;
	}
}
