/* Alapbeállítások*/
:root {
	--bg: #ffffff;
	--bgsec:#ffffff8c;
	--panel: #ffffff;
	--txt: #0f1220;
	--muted: #000;
	--line: rgba(16, 24, 40, .08);
	--shadow: 0 10px 30px rgba(16, 24, 40, .06);
	--brand: #f5b64c;
	--brand-2: #d32525;
	--ring: rgba(42, 179, 255, .25);
	--overlayBg: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .65));
	--inkStrong: #111;
	--hoverBg: #f3f4f6;
	--btn-ink: #1a1206;
	--border: #f2f2f2;
	--footer-bg:#0f172a0a;
	--footer-text:#0f172a;
	--footer-muted:#000;
	--footer-link:#247bc7;
	--tdborder:#e1dcdc;
	--h2bordercolor: #f3f3f3;
	--filter:invert(0);
	--kiscard_img: linear-gradient(to bottom, rgb(0 0 0 / 0%) 30% 62%, rgb(255 255 255 / 92%) 104%);
}

/* Sötét mód változók */
html[data-theme="dark"] {
	--bg: #0a0d18;
	--bgsec:#4c4b4b47;
	--panel: #12162a;
	--txt: #f6f7fb;
	--muted: #fff;
	--line: rgba(255, 255, 255, .08);
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--overlayBg: linear-gradient(180deg, rgba(15, 18, 32, .98), rgba(15, 18, 32, .94));
	--inkStrong: #ffffff;
	--hoverBg: rgba(255, 255, 255, .06);
	--btn-ink: #1a1206;
	--border: #181818;
	--footer-bg:#0f172a0a;
	--footer-text:white;
	--footer-muted:#fff;
	--footer-link:#247bc7;
	--tdborder:#3d3b3b;
	--h2bordercolor: gray;
	--filter: invert(1);
	--kiscard_img: linear-gradient(to bottom, rgb(0 0 0 / 0%) 30% 62%, rgb(0 0 0 / 92%) 104%);
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--txt);
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	scroll-behavior: smooth;
	z-index:100
}

body {
    background: url(/images/design.png) no-repeat;
    background-size: contain;
    background-position: 69% var(--bgY, 0px);
    background-attachment: fixed;
    height: 100%;
}

#scrollClock{
	position: fixed;
	top: -35px;
	left: -35px;
	width: 420px;
	height: 420px;
	z-index: 70;
	pointer-events: none;
	transform: scale(.5);
	transform-origin: top left;
	opacity:0.8;
	filter: drop-shadow(2px 4px 6px gray);
}

@media (prefers-reduced-motion: reduce){
	#scrollClock { display:none; }
}

@media (max-width: 900px) {
    #scrollClock {
        opacity: 0.9;
        width: 160px;
        height: 160px;
        top: -8px;
        left: -21px;
        z-index: 100;
    }
}

h1, h2, h3 {
	font-weight: 700;
	color:#d32525;
	background:
		linear-gradient(180deg, #bfc6cf 0%, #7f8791 35%, #e6eef7 50%, #6e7680 65%, #b7bec7 100%);
	-webkit-background-clip:text;
	background-clip:text;
	text-shadow:
		0 1px 0 rgba(255,255,255,.4),
		0 8px 16px rgba(0,0,0,.25);
}

h2, h1:not(.hero-headline) {
	--accent:#d32525;
	--light:#71717199;
	font-size: 2em;
	font-weight: 400;
	position:relative;
	letter-spacing: 1px;
	padding-bottom:.3em;

	text-shadow:
		0 1px 0 var(--light),
		0 3px 6px rgba(0,0,0,.15);

	transition:all 0.5s ease;
}

h2::after, h1:not(.hero-headline)::after {
	content:'';
	position:absolute;
	left:0;
	bottom:0;
	width:0px;
	height:3px;
	background:linear-gradient(90deg, var(--accent) 0%, #6b0808 100%);
	border-radius:2px;
	box-shadow:0 2px 6px rgba(0,0,0,.15);
	transition:width 2s ease;
}

h2:hover, h1:not(.hero-headline):hover {
	color:var(--accent);
	text-shadow:
		0 1px 1px rgba(255,255,255,.6),
		0 6px 14px rgba(0,0,0,.25);
}

h2:hover::after, h1:not(.hero-headline):hover::after {
	width:100%;
}

section a {
    color: inherit;
    text-decoration: none;
    width: 100%;
}

button {
	font: inherit;
}

.navbar {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
	transform: translateY(0);
	transition: transform .4s ease;
	background: var(--bg)
}

header{
	position: relative;
	overflow: hidden;
}

header > *{
	position: relative;
	z-index: 1;
}

.navbar.nav-hide {
	transform: translateY(-110%);
}

.nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	letter-spacing: .4px;
	position:absolute;
}

.brand-badge {
	width: 200px;

}

.nav-links {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	color: var(--txt);
	opacity: .9;
	transition: opacity .25s ease, transform .25s ease;
	position: relative;
	text-decoration:none
}

.nav-links a:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.nav-underline {
	position: absolute;
	left: 0;
	bottom: 5px;
	height: 2px;
	width: 36px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	box-shadow: 0 0 10px var(--ring);
	transform: translateX(0);
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), width .35s;
	pointer-events: none;
}

.nav-cta {
	margin-left: 8px;
	padding: 9px 14px;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--brand), #e39f2a);
	color: var(--btn-ink);
	font-weight: 700;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(245, 182, 76, .25);
	transition: transform .2s ease;
}

.nav-cta:hover {
	transform: translateY(-1px);
}

.theme-toggle {
	margin-left: 4px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--panel);
	box-shadow: var(--shadow);
	cursor: pointer;
}

.theme-toggle:hover {
	filter: brightness(1.03);
}

.theme-toggle:active {
	transform: translateY(10px);
}

.hamb {
	display: none;
	margin-left: auto;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(16, 24, 40, .04);
	border: 1px solid var(--line);
	cursor: pointer;
	position: relative;
	transition: transform .2s ease;
}

.hamb:hover {
	transform: translateY(-1px);
}

.hamb span {
	position: absolute;
	left: 9px;
	right: 9px;
	height: 2px;
	background: var(--inkStrong);
	border-radius: 2px;
	transition: transform .35s, top .35s, opacity .25s;
}

.hamb span:nth-child(1) {
	top: 12px;
}

.hamb span:nth-child(2) {
	top: 20px;
}

.hamb span:nth-child(3) {
	top: 28px;
}

.hamb.active span:nth-child(1) {
	top: 20px;
	transform: rotate(45deg);
}

.hamb.active span:nth-child(2) {
	opacity: 0;
}

.hamb.active span:nth-child(3) {
	top: 20px;
	transform: rotate(-45deg);
}

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: var(--overlayBg);
	backdrop-filter: blur(8px);
	display: grid;
	grid-template-rows: auto 1fr auto;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity .35s ease, transform .35s ease;
	color: var(--txt);
}

.nav-overlay.open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.overlay-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	border-bottom: 1px solid var(--line);
}

.overlay-list {
	padding: 18px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow: auto;
}

.overlay-item {
	opacity: 0;
	transform: translateY(10px);
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: var(--shadow);
	transition: opacity .45s ease, transform .45s ease, background .25s ease;
	cursor: pointer;
}

.overlay-item.show {
	opacity: 1;
	transform: translateY(0);
}

.overlay-item:hover {
	background: var(--hoverBg);
}

.overlay-item > .row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.overlay-item .title {
	font-size: 18px;
	font-weight: 700;
}

.overlay-item .muted {
	color: var(--muted);
	font-size: 13px;
	margin-top: 6px;
}


.overlay-item.open .sub {
	max-height: 300px;
}

.overlay-footer {
	padding: 75px 22px;
	border-top: 1px solid var(--line);
	display: flex;
	gap: 12px;
}

.btn {
	padding: 12px 14px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--txt);
	cursor: pointer;
	    display: inline-block;
}

.btn.brand {
	border: none;
	background: linear-gradient(180deg, var(--brand), #e39f2a);
	color: #1a1206;
	font-weight: 800;
	text-decoration: none;
}

.section {
	margin: 10px auto;
}

.section.active {
	display: block;
}

.section h1:not(.hero-headline) {
	margin: 0 0 20px;
	font-size: clamp(24px, 5vw, 41px);
    border-top: 4px solid var(--h2bordercolor);
    padding-top: 20px;
}

.section h2 {
	margin: 0 0 20px;
	font-size: clamp(24px, 5vw, 40px);
	border-top: 4px solid var(--h2bordercolor);
    padding-top: 20px;
}

.section p {
	color: var(--muted);
	line-height: 1.6;
	white-space: pre-line;
	text-align: justify;
	hyphens: auto;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 20px;
}

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px;
	box-shadow: var(--shadow);
}

.contact-form {
	max-width: 900px;
	margin: 24px 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.contact-form label {
	font-weight: 600;
	color: #101828;
}

.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
	color: var(--txt);
}

.contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-form .full {
	grid-column: 1/-1;
}

.contact-form .actions {
	grid-column: 1/-1;
	display: flex;
	gap: 12px;
	align-items: center;
}

.contact-form .submit {
	padding: 12px 18px;
	border-radius: 12px;
	border: none;
	font-weight: 800;
	cursor: pointer;
	background: linear-gradient(180deg, var(--brand), #e39f2a);
	color: #1a1206;
	box-shadow: var(--shadow);
}

.form-note {
	font-size: 12px;
	color: var(--muted);
}


.dm-switch {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.dm-switch-ui {
	margin-left: 8px;
	width: 64px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, #f6f7fb, #e9edf3);
	display: inline-block;
	position: relative;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: background .25s ease, border-color .25s ease;
}

html[data-theme="dark"] .dm-switch-ui {
	background: linear-gradient(180deg, #0f172a, #0b1224);
}

.dm-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
	transform: translateX(0);
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .25s;
}

html[data-theme="dark"] .dm-knob {
	background: #f2f4f8;
}

.dm-switch:checked + .dm-switch-ui .dm-knob {
	transform: translateX(30px);
}

.nav-inner .dm-switch-ui {
	vertical-align: middle;
}

.menu-social{
	padding:12px 20px 18px;
}

.menu-social h3{
	margin:0 0 10px 0;
	font-size:1rem;
	font-weight:700;
}

.menu-social-row{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	justify-content:flex-start;
	gap:12px 14px;
}

footer .menu-social-row{
	gap:12px 3px;
}

.menu-social-row a{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:44px;
	height:44px;
	border-radius:9999px;
	background:#fff;
	border:1px solid rgba(15,23,42,.12);
	transition:transform .3s ease;
}

.menu-social-row img{
	display:block;
	width:clamp(20px, 5.4vw, 24px);
	height:clamp(20px, 5.4vw, 24px);
	object-fit:contain;
	transform:rotate(0deg) scale(1.4);
	transform-origin:center;
	transition:transform .4s ease-in-out, filter .4s ease-in-out;
	filter:grayscale(1);
	will-change:transform;
}

.menu-social a:hover img,
.menu-social a:focus-visible img,
.footer-social a:hover img,
.footer-social a:focus-visible img{
	filter:grayscale(0);
	transform:rotate(0deg) scale(1.6);
}


@media (prefers-reduced-motion: reduce){
	.menu-social-row img{ transition:none; }
}

.menu-social a img,
.menu-contact p{
	margin:0 !important;
}

.menu-social-row a:focus-visible{
	outline:2px solid #0ea5e9;
	outline-offset:3px;
}

.site-footer{

	color:var(--footer-text);
	border-top:1px solid rgba(15,23,42,.08);
	margin-top:4rem;
}
.site-footer a{ color:var(--footer-link); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }

.footer-wrap{
	max-width:1100px;
	margin:0 auto;
	padding:2.5rem 1.25rem;
	display:flex;
	flex-wrap:wrap;
	gap:2rem;
	align-items:flex-start;
	justify-content:space-between;
}

.footer-col{
	flex:1 1 260px;
	display:flex;
	flex-direction:column;
	gap:.5rem;
}

.footer-title{
	margin:0 0 .5rem 0;
	font-size:1rem;
	font-weight:700;
	color:var(--footer-text);
}

.footer-list{
	list-style:none;
	padding:0;
	margin:0;
	display:flex;
	flex-direction:column;
	gap:.35rem;
}
.footer-list li{ color:var(--footer-muted); }

.footer-bottom{
	border-top:1px dashed rgba(15,23,42,.12);
	text-align:center;
	padding:1rem 1.25rem 1.5rem;
	color:var(--footer-muted);
	font-size:.95rem;
}

.site-footer{
	position:relative;
	overflow:hidden;
	background: url(/images/design.png) no-repeat;
	background-size: cover;
}

@media (min-width: 480px){
	.menu-social-row a{
		width:46px;
		height:46px;
	}
	.menu-social-row img{
		width:clamp(22px, 4.6vw, 26px);
		height:clamp(22px, 4.6vw, 26px);
	}

}

@media (max-width: 640px){
	.footer-wrap{ gap:1.5rem; }
	.footer-col{ flex:1 1 100%; }

}

@media (max-width: 900px) {
	.card-grid {
		grid-template-columns: 1fr;
	}

	.section {
		margin: 10px;
	}

	.navbar {
		background: var(--bg);
	}

	.nav-links {
		display: none;
	}

	.hamb {
		display: block;
	}

	.dm-switch-ui {
		position: absolute;
		right: 30px;
	}

	.themechanger {
		display: none;
	}

	.site-footer {
		background: url(/images/design_footer.png) no-repeat;
		background-size: contain;
		background-position: bottom;
	}

	.brand {
		display: flex;
		align-items: center;
		gap: 0px;
		font-weight: normal;
		letter-spacing: .1px;
		position: absolute;
		margin-left: 20px;
	}
}

@media (max-width: 1200px) {

	.motto {
		display:none
	}	
}
