/*
Theme Name: Fakivágás Somogy
Template: twentytwentyfive
Description: Marci Zsolt és csapata – gyerek-téma a Twenty Twenty-Five-hoz.
Author: Logiflow
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: fakivagas-somogy
*/

/* Rövid nevek a theme.json színeihez */
:root {
	--fs-dark: var(--wp--preset--color--contrast);
	--fs-acc: var(--wp--preset--color--accent-1);
	--fs-acc-h: var(--wp--preset--color--accent-2);
	--fs-sec: var(--wp--preset--color--accent-3);
	--fs-mut: var(--wp--preset--color--accent-4);
	--fs-card: var(--wp--preset--color--accent-5);
	--fs-line: var(--wp--preset--color--accent-6);
	--fs-bg: var(--wp--preset--color--base);
	--fs-r: 14px;
	--fs-max: 1180px;
}

/* ---------- Fejléc ---------- */
.fs-header {
	background: var(--fs-card);
	border-bottom: 1px solid var(--fs-line);
}
.fs-header > .fs-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}
.fs-brand {
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--fs-dark);
	text-decoration: none;
	margin: 0;
}
.fs-brand a { color: inherit; text-decoration: none; }
.fs-brand small {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: var(--fs-mut);
}
.fs-header .wp-block-navigation { font-weight: 600; font-size: 15px; gap: 22px; }
.fs-header .wp-block-navigation a { text-decoration: none; }

/* ---------- Általános ---------- */
.fs-wrap {
	max-width: var(--fs-max);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
	width: 100%;
}
.fs-section { padding: 72px 0; margin: 0; }
.fs-section--card {
	background: var(--fs-card);
	border-top: 1px solid var(--fs-line);
	border-bottom: 1px solid var(--fs-line);
}
.fs-sub { color: var(--fs-mut); max-width: 40em; margin: 0 0 34px; }
.fs-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 13px;
	font-weight: 700;
	opacity: 0.75;
	margin: 0;
}
.fs-kit { background: #fff3c4; color: #5a4500; padding: 0 4px; border-radius: 4px; font-size: 0.9em; }
main.wp-block-group { margin-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.wp-block-button__link svg,
.fs-btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.fs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	padding: 12px 22px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	font-size: 16px;
	line-height: 1.3;
}
.fs-btn--acc { background: var(--fs-acc); color: #fff; }
.fs-btn--acc:hover, .fs-btn--acc:focus { background: var(--fs-acc-h); color: #fff; }
.fs-btn--line { border-color: var(--fs-dark); color: var(--fs-dark); background: var(--fs-card); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 2px; }
.fs-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.fs-hero { background: var(--fs-dark); color: #fff; overflow: hidden; }
.fs-hero > .fs-wrap {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: center;
	padding-top: 64px;
	padding-bottom: 64px;
}
.fs-hero h1 {
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0.3em 0 0.4em;
	color: #fff;
}
.fs-hero h1 em { font-style: normal; color: #f0643c; }
.fs-hero .fs-lead { font-size: 19px; opacity: 0.9; max-width: 34em; margin: 0; }
.fs-hero .wp-block-buttons { margin: 26px 0 10px; }
.fs-hero .fs-note { font-size: 14px; opacity: 0.75; margin: 0; }
.fs-hero .wp-block-image { margin: 0; position: relative; }
.fs-hero .wp-block-image img {
	border-radius: var(--fs-r);
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.fs-hero .wp-block-image figcaption {
	position: absolute;
	left: 14px;
	bottom: 14px;
	margin: 0;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 13px;
	padding: 6px 10px;
	border-radius: 8px;
}

/* ---------- Tény-sáv ---------- */
.fs-facts { background: var(--fs-card); border-bottom: 1px solid var(--fs-line); }
.fs-facts ul {
	list-style: none;
	margin: 0 auto;
	padding: 22px 16px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.fs-facts li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0; }
.fs-facts strong { white-space: nowrap; font-size: 26px; color: var(--fs-acc); font-weight: 800; min-width: 2.2ch; }

/* ---------- Kártyák ---------- */
.fs-grid3, .fs-grid4 { display: grid; gap: 22px; }
.fs-grid3 { grid-template-columns: repeat(3, 1fr); }
.fs-grid4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fs-grid3 > *, .fs-grid4 > * { margin: 0 !important; }
.fs-card {
	background: var(--fs-card);
	border: 1px solid var(--fs-line);
	border-radius: var(--fs-r);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: var(--fs-dark);
	text-decoration: none;
}
.fs-card .fs-body { padding: 24px; }
.fs-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.fs-card p { margin: 0; color: var(--fs-mut); font-size: 16px; }
.fs-card .fs-more { margin-top: auto; padding: 0 24px 22px; font-weight: 700; }
.fs-card .fs-more a { text-decoration: none; color: var(--fs-acc); }
.fs-ic {
	width: 46px; height: 46px; border-radius: 12px;
	background: var(--fs-dark); color: #fff;
	display: grid; place-items: center; margin-bottom: 14px;
}
.fs-ic svg { width: 24px; height: 24px; }
.fs-work img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; display: block; }
.fs-work:hover h3 { text-decoration: underline; }
.fs-tag {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
	text-transform: uppercase; color: var(--fs-sec); margin-bottom: 6px;
}
.fs-center { text-align: center; margin-top: 30px; }

/* ---------- Rólunk ---------- */
.fs-story { background: var(--fs-dark); color: #fff; }
.fs-story h2 { color: #fff; }
.fs-story > .fs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fs-story .wp-block-image { margin: 0; }
.fs-story .wp-block-image img { border-radius: var(--fs-r); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.fs-story .fs-kiemeles {
	margin: 22px 0 0; padding: 18px 22px;
	border-left: 4px solid var(--fs-acc);
	background: rgba(255, 255, 255, 0.06);
	font-size: 19px; font-weight: 600;
	border-radius: 0 10px 10px 0;
}
.fs-small { opacity: 0.8; font-size: 15px; margin-top: 18px; }

/* ---------- Lépések ---------- */
.fs-steps { counter-reset: fs-s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fs-steps > * {
	background: var(--fs-card); border: 1px solid var(--fs-line);
	border-radius: var(--fs-r); padding: 26px; margin: 0 !important;
}
.fs-steps > *::before {
	counter-increment: fs-s; content: counter(fs-s);
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--fs-acc); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.fs-steps h3 { margin: 0 0 6px; font-size: 19px; }
.fs-steps p { margin: 0; color: var(--fs-mut); font-size: 16px; }

/* ---------- Település-chipek ---------- */
.fs-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fs-chips a {
	display: inline-block; background: var(--fs-card); border: 1px solid var(--fs-line);
	border-radius: 999px; padding: 8px 16px; text-decoration: none;
	color: var(--fs-dark); font-weight: 600; font-size: 15px;
}
.fs-chips a:hover { border-color: var(--fs-acc); }

/* ---------- Ajánlatkérés ---------- */
.fs-contact > .fs-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.fs-cinfo p { margin: 0 0 14px; display: flex; gap: 12px; align-items: flex-start; }
.fs-cinfo svg { width: 22px; height: 22px; flex: none; color: var(--fs-acc); margin-top: 3px; }
.fs-form, .wpcf7 form {
	background: var(--fs-card); border: 1px solid var(--fs-line);
	border-radius: var(--fs-r); padding: 26px;
}
.wpcf7 form p { margin: 0 0 14px; }
.wpcf7 label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
.wpcf7 input[type=text], .wpcf7 input[type=tel], .wpcf7 input[type=email], .wpcf7 textarea {
	font: inherit; font-weight: 400; font-size: 16px; width: 100%; box-sizing: border-box;
	padding: 12px 14px; border: 1px solid var(--fs-line); border-radius: 10px;
	background: var(--fs-bg); color: var(--fs-dark);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 3px solid var(--fs-sec); outline-offset: 1px; }
.wpcf7 input[type=submit] {
	font: inherit; font-weight: 700; border: 0; cursor: pointer; width: 100%;
	border-radius: 999px; padding: 14px 22px; background: var(--fs-acc); color: #fff;
}
.wpcf7 input[type=submit]:hover { background: var(--fs-acc-h); }
.codedropz-upload-wrapper .codedropz-upload-handler { border: 2px dashed var(--fs-line); border-radius: 10px; }

/* ---------- Tartalmi oldalak ---------- */
.fs-page-head { background: var(--fs-dark); color: #fff; padding: 56px 0 48px; }
.fs-page-head h1 { color: #fff; margin: 0.2em 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
.fs-page-head .fs-lead { opacity: 0.9; font-size: 19px; max-width: 40em; margin: 12px 0 0; }
.fs-content { padding-top: 56px; padding-bottom: 72px; }
.wp-block-post-content > .fs-grid4 { max-width: var(--wp--style--global--wide-size); }
.fs-content .wp-block-image img, .fs-content .wp-block-gallery img { border-radius: 10px; }
.fs-munka { padding-top: 8px; margin-top: 40px; border-top: 1px solid var(--fs-line); }
.fs-munka:first-child { border-top: 0; margin-top: 0; }
.fs-munka-datum { color: var(--fs-mut); font-size: 15px; margin-top: -4px; }
.fs-faq details {
	background: var(--fs-card); border: 1px solid var(--fs-line); border-radius: 12px;
	padding: 16px 20px; margin: 0 0 12px;
}
.fs-faq summary { font-weight: 700; cursor: pointer; }
.fs-cta-box {
	background: var(--fs-dark); color: #fff; border-radius: var(--fs-r);
	padding: 32px; margin-top: 48px;
}
.fs-cta-box h2 { color: #fff; margin-top: 0; }

/* ---------- Lábléc ---------- */
.fs-footer { background: var(--fs-dark); color: #fff; padding: 40px 0; font-size: 14px; }
.fs-footer > .fs-wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fs-footer a { color: #fff; }
.fs-footer p { margin: 0 0 6px; }

/* ---------- Mobil alsó sáv ---------- */
.fs-callbar { display: none; }

@media (max-width: 900px) {
	.fs-header .fs-btn { display: none; }
	.fs-hero > .fs-wrap, .fs-story > .fs-wrap, .fs-contact > .fs-wrap {
		grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px;
	}
	.fs-story > .fs-wrap, .fs-contact > .fs-wrap { padding-top: 0; padding-bottom: 0; }
	.fs-facts ul { grid-template-columns: 1fr 1fr; }
	.fs-grid3, .fs-steps { grid-template-columns: 1fr; }
	.fs-grid4 { grid-template-columns: 1fr 1fr; }
	.fs-section { padding: 52px 0; }
	.fs-footer { padding-bottom: 100px; }
	.fs-callbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--fs-card); border-top: 1px solid var(--fs-line);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08); transition: transform 0.2s;
	}
	.fs-callbar a { flex: 1; }
	body.fs-typing .fs-callbar { transform: translateY(110%); }
}
@media (max-width: 520px) {
	.fs-grid4 { grid-template-columns: 1fr; }
}
