/**
 * FinMech – kiegészítő stílusok.
 *
 * Ez a fájl a style.css UTÁN töltődik be, ezért felülírja azt.
 * Itt van minden új elem (aloldalak, morzsamenü, számok sáv, űrlap),
 * valamint a hero törékeny, hardcode-olt pozicionálásának javítása.
 */

/* A <picture> csak burkoló a WebP változatokhoz – ne befolyásolja az
   elrendezést, hogy a meglévő img-re írt szabályok változatlanul érvényesüljenek. */
picture {
	display: contents;
}

:root {
	--fm-blue: #37517e;
	--fm-blue-dark: #2b4166;
	--fm-accent: #9c611a;
	--fm-sand: #a0942f;
	--fm-text: #444;
	--fm-muted: #6c757d;
	--fm-line: #e6e9ef;
}

/* ==========================================================================
   HERO – a korábbi fix magasság és a -190px negatív margók helyett
   rendes flex elrendezés. A sivatagi arculat változatlan.
   ========================================================================== */

#hero {
	width: 100%;
	height: auto;
	min-height: 32rem;
	padding: 130px 0 60px;
	position: relative;
	overflow: hidden;
	background: var(--fm-blue);
	background-image: linear-gradient(0deg, #fffde6, #a0942fd9, #372d03d9);
}

#hero .container {
	padding-top: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	position: relative;
	z-index: 1;
}

#hero #dakarheader {
	margin: 0;
	/* flex: 1 1 460px; */
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

#hero #headertext {
	position: static;
	flex: 1 1 340px;
	max-width: 520px;
	padding: 0;
	text-align: left;
}

#hero h1 {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem);
	font-weight: 300;
	line-height: 1.15;
	color: #fff;
	text-shadow: -7px 8px 4px rgb(0 0 0);
}

#hero h1 .fm-brand {
	display: block;
	font-size: 0.5em;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 0.4em;
}

.fm-hero-lead {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
	margin-bottom: 1.5rem;
	text-shadow: -3px 6px 7px rgb(0 0 44);
}

.fm-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

@media (max-width: 991px) {
	#hero {
		padding: 110px 0 48px;
		min-height: 0;
	}

	#hero .container {
		flex-direction: column;
		text-align: center;
	}

	#hero #headertext {
		text-align: center;
		max-width: 100%;
		position: absolute;
		top: -50px;
	}

	.fm-hero-actions {
		justify-content: center;
	}
}

/* A hó-effekt canvas nem takarhatja a tartalmat */
#hero #canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

/* ==========================================================================
   Gombok
   ========================================================================== */

.cta-btn {
	font-family: "Jost", sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.5px;
	display: inline-block;
	padding: 11px 26px;
	border-radius: 50px;
	transition: 0.3s;
	color: #fff;
	background: var(--fm-blue);
	border: 2px solid var(--fm-blue);
	text-decoration: none;
}

.cta-btn:hover {
	background: var(--fm-blue-dark);
	border-color: var(--fm-blue-dark);
	color: #fff;
}

.cta-btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
}

.cta-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
}

/* ==========================================================================
   Nyelvváltó – az inline SVG zászlók a korábbi CDN-es flag-icons helyett
   ========================================================================== */

.fm-flag {
	border-radius: 2px;
	vertical-align: -1px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.fm-lang {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
}

.flagmain {
	display: none;
	align-items: center;
	margin-left: auto;
	padding: 0 12px;
}

@media (max-width: 991px) {
	.flagmain {
		display: inline-flex;
	}
}

.navbar .nav-static {
	display: block;
	padding: 10px 20px;
	color: var(--fm-muted);
	font-size: 15px;
	/* Mobil menüben törhet, hogy ne lógjon ki a képernyőből */
	white-space: normal;
	max-width: 240px;
}

/* ==========================================================================
   Számok sáv
   ========================================================================== */

.fm-stats {
	background: var(--fm-blue);
	padding: 34px 0;
}

.fm-stats ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 1.5rem 2rem;
	text-align: center;
}

.fm-stats li {
	flex: 1 1 130px;
}

.fm-stat-num {
	display: block;
	font-family: "Jost", sans-serif;
	font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem);
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

.fm-stat-label {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Morzsamenü
   ========================================================================== */

/* A fejléc fix pozíciójú és a logó 150px magas, ezért az aloldalak első
   eleme csak ez alatt kezdődhet, különben a logó eltakarja. */
.fm-breadcrumb {
	background: #f6f8fb;
	border-bottom: 1px solid var(--fm-line);
	padding: 12px 0;
	margin-top: 152px;
	font-size: 14px;
}

@media (max-width: 991px) {
	.fm-breadcrumb {
		margin-top: 86px;
	}
}

.fm-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.fm-breadcrumb li + li::before {
	content: "›";
	margin-right: 8px;
	color: var(--fm-muted);
}

.fm-breadcrumb a {
	color: var(--fm-blue);
	text-decoration: none;
}

.fm-breadcrumb a:hover {
	text-decoration: underline;
}

.fm-breadcrumb [aria-current] {
	color: var(--fm-muted);
}

/* ==========================================================================
   Aloldalak
   ========================================================================== */

.fm-page-head {
	padding: 46px 0 10px;
}

.fm-page-head h1 {
	font-family: "Jost", sans-serif;
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
	font-weight: 600;
	color: var(--fm-blue);
	margin-bottom: 18px;
}

.fm-lead {
	font-size: 1.08rem;
	color: var(--fm-text);
	max-width: 68ch;
}

.fm-section {
	padding: 46px 0;
}

.fm-section h2 {
	font-family: "Jost", sans-serif;
	font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
	font-weight: 600;
	color: var(--fm-blue);
	margin-bottom: 16px;
}

.fm-section h3 {
	font-family: "Jost", sans-serif;
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--fm-blue);
	margin: 22px 0 8px;
}

.fm-section p,
.fm-section li {
	color: var(--fm-text);
	line-height: 1.7;
}

.fm-section ul {
	padding-left: 1.1rem;
}

.fm-section-img {
	border-radius: 10px;
	/* box-shadow: 0 10px 30px rgba(55, 81, 126, 0.14); */
	width: 100%;
	height: auto;
}

/* Adatlap linkek */
.fm-mat-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	padding: 0;
	margin: 14px 0 0;
	justify-content: inherit;
}

.fm-mat-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--fm-line);
	border-radius: 50px;
	background: #fff;
	color: var(--fm-blue);
	font-size: 14px;
	text-decoration: none;
	transition: 0.25s;
}

.fm-mat-list a:hover {
	border-color: var(--fm-blue);
	background: var(--fm-blue);
	color: #fff;
}

.section-title .fm-mat-list {
	justify-content: center;
}

/* GYIK */
.fm-faq-list details {
	border: 1px solid var(--fm-line);
	border-radius: 8px;
	background: #fff;
	margin-bottom: 10px;
	padding: 0 18px;
}

.fm-faq-list summary {
	cursor: pointer;
	padding: 14px 0;
	font-weight: 600;
	color: var(--fm-blue);
	list-style: none;
}

.fm-faq-list summary::-webkit-details-marker {
	display: none;
}

.fm-faq-list summary::after {
	content: "+";
	float: right;
	font-weight: 400;
	font-size: 1.3em;
	line-height: 1;
	color: var(--fm-muted);
}

.fm-faq-list details[open] summary::after {
	content: "−";
}

.fm-faq-list details > div {
	padding-bottom: 16px;
	color: var(--fm-text);
	line-height: 1.7;
}

/* Ajánlatkérő sáv az aloldalak alján */
.fm-quote {
	background: var(--fm-blue);
	padding: 40px 0;
	color: #fff;
}

.fm-quote h2 {
	font-family: "Jost", sans-serif;
	font-size: 1.6rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: #fff;
}

.fm-quote p {
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.85);
}

.fm-quote .cta-btn {
	background: #fff;
	border-color: #fff;
	color: var(--fm-blue);
	margin: 6px 4px;
}

.fm-quote .cta-btn:hover {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(255, 255, 255, 0.85);
	color: var(--fm-blue);
}

/* Kapcsolódó oldalak */
.fm-related-card {
	display: block;
	height: 100%;
	padding: 22px;
	border: 1px solid var(--fm-line);
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	transition: 0.25s;
}

.fm-related-card:hover {
	border-color: var(--fm-blue);
	box-shadow: 0 10px 26px rgba(55, 81, 126, 0.12);
	transform: translateY(-2px);
}

.fm-related-card h3 {
	margin: 0 0 8px;
	font-family: "Jost", sans-serif;
	font-size: 1.05rem;
	color: var(--fm-blue);
}

.fm-related-card p {
	margin: 0;
	font-size: 14px;
	color: var(--fm-muted);
	line-height: 1.6;
}

/* ==========================================================================
   Ajánlatkérő űrlap
   ========================================================================== */

.fm-quote-form {
	padding: 60px 0;
}

.fm-form {
	max-width: 820px;
	margin: 0 auto;
}

.fm-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--fm-blue);
	margin-bottom: 5px;
}

.fm-form input[type="text"],
.fm-form input[type="email"],
.fm-form input[type="tel"],
.fm-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--fm-line);
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	transition: border-color 0.2s;
}

.fm-form input:focus,
.fm-form textarea:focus {
	outline: none;
	border-color: var(--fm-blue);
	box-shadow: 0 0 0 3px rgba(55, 81, 126, 0.12);
}

.fm-form input[aria-invalid="true"],
.fm-form textarea[aria-invalid="true"] {
	border-color: #c0392b;
}

.fm-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	color: var(--fm-text);
	font-size: 14px;
	line-height: 1.5;
}

.fm-consent input {
	margin-top: 3px;
	flex: 0 0 auto;
}

/* Csali mező – csak a botok látják */
.fm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fm-form-status {
	display: inline-block;
	margin-left: 14px;
	font-size: 14px;
}

.fm-form-status.is-ok {
	color: #1e7e34;
}

.fm-form-status.is-err {
	color: #c0392b;
}

/* ==========================================================================
   Apróbb javítások a meglévő szekciókon
   ========================================================================== */

/* A "Székhely" doboz korábban inline style="opacity:.5" volt */
.fm-info-secondary {
	opacity: 0.75;
}

/* A CTA sáv címe h3-ról h2-re váltott (egy H1 + logikus címsorrend miatt).
   A style.css csak .cta h3-at színezte fehérre, ezért a h2 sötét maradt. */
.cta h2 {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
}

/* A style.css fix 10rem magasságot ad a szolgáltatás dobozoknak, és
   max-width: fit-content-et az oszlopoknak. Mindkettő elvágta az újonnan
   bekerült leírásokat. */
.services .row > div {
	max-width: none;
}

.services .icon-box {
	height: auto;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

.services .icon-box p {
	margin-bottom: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fm-text);
}

/* A szolgáltatás dobozok címei h4-ről h3-ra váltottak – a megjelenés marad */
.services .icon-box h3 {
	font-weight: 700;
	margin-bottom: 15px;
	font-size: 20px;
	font-family: "Jost", sans-serif;
}

.services .icon-box h3 a {
	color: #37517e;
	transition: 0.3s;
	text-decoration: none;
}

.services .icon-box h3 a:hover {
	color: #47b2e4;
}

/* Portfólió és csapat címek h4 -> h3 */
.portfolio .portfolio-item .portfolio-info h3 {
	font-size: 18px;
	color: #37517e;
	font-weight: 600;
	margin-bottom: 4px;
}

/* Egységes képarányú termékkártyák.
   Két okból: egyrészt így a rács rendezett marad a nagyon eltérő
   méretarányú termékfotók mellett is, másrészt az elemek magassága
   nem függ attól, betöltődött-e már a kép – így az Isotope elrendezése
   a lusta képbetöltés mellett is azonnal helyes. */
.portfolio .portfolio-item .portfolio-img {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f6fa;
	border-radius: 6px;
}

.portfolio .portfolio-item .portfolio-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Az e-mail gomb a csapat szekcióban ugyanolyan kör alakú, mint a
   template többi közösségi ikonja volt */
.team .member .social .email-container .show-email {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50px;
	background: #eff2f8;
	color: #37517e;
	transition: ease-in-out 0.3s;
}

.team .member .social .email-container .show-email:hover {
	background: #47b2e4;
	color: #fff;
}

.team .member .member-info h3 {
	font-weight: 700;
	margin-bottom: 5px;
	font-size: 20px;
	color: #37517e;
}

.contact .info h3 {
	padding: 0 0 10px 60px;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 0;
	color: #37517e;
}

/* Az e-mail felfedő gomb korábban inline stílusokkal igazodott */
.email-container {
	display: inline-flex;
	align-items: center;
}

.email-container .show-email {
	margin-top: 6px;
}

/* Széchenyi blokk képaránya rögzítve, hogy ne ugráljon betöltéskor */
.szechenyi img {
	height: 70px;
	width: auto;
}
