/* ── HPZ Theme — base, topbar, header, mobile menu, footer ── */

:root {
	--pad-x: clamp(20px, 4.5vw, 56px);
	--maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
mark { background: transparent; color: inherit; }
.hpz-container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── Shared "photo" wrapper used by hero / team-photo ── */
.photo { position: relative; overflow: hidden; background: var(--wp--preset--color--bg-soft); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	padding: 11px 22px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bg);
	cursor: pointer;
	transition: all .2s ease;
	white-space: nowrap;
	text-decoration: none;
}
.btn:hover { background: transparent; color: var(--wp--preset--color--ink); transform: translateY(-1px); }
.btn.btn-accent { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: #fff; }
.btn.btn-accent:hover { background: transparent; color: var(--wp--preset--color--accent); }
.btn.btn-ghost { background: transparent; color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--line); }
.btn.btn-ghost:hover { border-color: var(--wp--preset--color--ink); }
.btn.btn-light { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink); }
.btn.btn-light:hover { background: var(--wp--preset--color--accent); color: #fff; border-color: var(--wp--preset--color--accent); }
.btn-lg { padding: 14px 24px; font-size: 14.5px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; display: block; }

/* ── Status dot + badge (topbar + hero) ── */
.hpz-status { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.62 0.21 145); box-shadow: 0 0 0 3px oklch(0.62 0.21 145 / 0.22); display: inline-block; flex-shrink: 0; }
.dot.closed { background: oklch(0.62 0.18 30); box-shadow: 0 0 0 3px oklch(0.62 0.18 30 / 0.18); }

/* ── Topbar ── */
.topbar { background: var(--wp--preset--color--ink); color: oklch(0.86 0.008 60); font-size: 14px; }
.topbar strong { color: #fff; font-weight: 500; }
.topbar .hpz-row { display: flex; justify-content: space-between; align-items: center; height: 52px; gap: 24px; white-space: nowrap; }
.topbar .left { display: flex; gap: 22px; align-items: center; min-width: 0; }
.topbar .right { display: flex; gap: 14px; align-items: center; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-addr { font-size: 14px; }
.topbar-sep { width: 1px; height: 14px; background: oklch(1 0 0 / 0.15); }
@media (max-width: 760px) { .topbar .topbar-tel { display: none; } }
@media (max-width: 540px) { .topbar .topbar-addr, .topbar .topbar-sep { display: none; } }

/* ── Header ── */
.site-header { position: relative; border-bottom: 1px solid var(--wp--preset--color--line-soft); z-index: 59; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.brand { display: inline-flex; align-items: center; gap: 14px; background: #fff; padding: 16px 28px; border: 1px solid var(--wp--preset--color--line-soft); border-radius: 16px; box-shadow: 0 16px 38px -18px oklch(0.2 0.02 40 / 0.45); transform: translateY(14px); }
.brand img { height: 92px; width: auto; display: block; }
@media (max-width: 899px) { .brand { padding: 12px 20px; border-radius: 13px; transform: translateY(11px); } .brand img { height: 66px; } }
@media (max-width: 520px) {
    .brand img {
        height: 52px;
    }
	    .brand {
        padding: 10px 15px;
        border-radius: 12px;
        transform: translateY(9px);
    }
}
.nav { display: none; align-items: center; gap: 32px; font-size: 14px; }
.nav > .nav-item { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--wp--preset--color--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link { color: var(--wp--preset--color--ink-soft); padding: 10px 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: color .15s; white-space: nowrap; text-decoration: none; }
.nav-link:hover { color: var(--wp--preset--color--ink); }
.site-header.scrolled { box-shadow: 0 8px 24px -18px oklch(0.2 0.02 30 / 0.35);
	position: fixed;
    width: 100%;
    background-color: var(--wp--preset--color--bg);
    top: 52px; 
}
.topbar.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 60;
}
@media (min-width: 900px) { .nav { display: flex !important; } .menu-toggle { display: none !important; } }
@media (max-width: 899px) { .nav { display: none !important; } .btn-termin-desktop { display: none; } }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { width: 42px; height: 42px; border: 1px solid var(--wp--preset--color--line); border-radius: 50%; position: relative; background: transparent; cursor: pointer; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--wp--preset--color--ink); transition: transform .25s, top .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 20.5px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.open span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 20.5px; transform: rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--wp--preset--color--bg); padding: 96px var(--pad-x) 40px; display: flex; flex-direction: column; transform: translateY(-110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); overflow-y: auto; }
.mm-close {
	position: absolute;
	top: 20px;
	right: var(--pad-x);
	width: 42px;
	height: 42px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--card);
	transition: border-color .15s ease, color .15s ease;
}
.mm-close:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.mm-close svg { width: 18px; height: 18px; }
.mobile-menu.open { transform: translateY(0); }
.mm-group { border-top: 1px solid var(--wp--preset--color--line-soft); padding: 4px 0; }
.mm-head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.012em; padding: 18px 0; cursor: pointer; user-select: none; color: var(--wp--preset--color--ink); text-decoration: none; }
.mm-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ── Footer ── */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--wp--preset--color--line-soft); background: var(--wp--preset--color--bg); font-size: 13.5px; color: var(--wp--preset--color--ink-mute); }
.site-footer .ft-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media (min-width: 760px) { .site-footer .ft-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.site-footer .ft-brand img { height: 50px; width: auto; max-width: 100%; }
.site-footer .ft-brand .custom-logo-link { display: inline-block; }
.site-footer .ft-brand p { margin-top: 14px; max-width: 36ch; line-height: 1.6; }
.site-footer h4 { font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--ink-mute); margin: 0 0 14px; }
.site-footer .footer-nav-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.site-footer .footer-nav-list li { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-nav-list a { display: block; padding: 5px 0; color: var(--wp--preset--color--ink-soft); font-size: 14px; transition: color .15s; text-decoration: none; }
.site-footer .footer-nav-list a:hover { color: var(--wp--preset--color--accent); }
.site-footer .row-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--line-soft); font-size: 12.5px; }

/* ── Generic fallback page wrapper (Fusion/Elementor content) ── */
.generic-page-inner { padding: 48px var(--pad-x); max-width: var(--maxw); margin: 0 auto; }
.generic-page .page-title { margin-bottom: 24px; }

/* ── Language switcher (topbar) — backed by WPML ── */
.flag-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 15px;
	padding: 0 4px;
	border-radius: 3px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	opacity: 0.85;
}
.topbar-flag-ch {
	color: var(--wp--preset--color--line-soft, #dcd6cf);
	margin-right: -22px;
	margin-bottom: -12px;
}
.lang-switcher { position: relative; z-index: 65; font-family: var(--font); font-weight: 500; }
.lang-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 5px 22px 5px 10px;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
}
.lang-caret { width: 13px; height: 13px; transition: transform .2s ease; }
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	left: auto;
	min-width: 160px;
	background: var(--wp--preset--color--card);
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--line-soft);
	box-shadow: 0 20px 50px -16px oklch(0.2 0.02 30 / 0.35);
	padding: 6px;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.lang-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.topbar .lang-option {
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 5px;
	padding: 10px 14px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--wp--preset--color--ink-soft);
	text-decoration: none;
}
.topbar .lang-option:hover { background: var(--wp--preset--color--accent-tint);color:var(--wp--preset--color--accent) !important; }
.topbar .lang-option.is-active {
	display: flex;
	/* justify-content: space-between;
	gap: 10px; */
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}
.lang-check { font-weight: 700;margin-left: auto; }

/* ── Cookie Notice plugin — restyled as a floating card (plugin injects
   its own inline styles, hence !important throughout) ── */
#cookie-notice {
	position: fixed !important;
	left: 14px !important;
	right: 14px !important;
	bottom: 14px !important;
	top: auto !important;
	width: auto !important;
	min-width: 0 !important;
	background: var(--wp--preset--color--card) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 5px !important;
	box-shadow: 0 22px 50px -16px oklch(0.2 0.02 40 / 0.25) !important;
	padding: 18px 20px !important;
	line-height: 1.6 !important;
	z-index: 46 !important;
}
@media (min-width: 760px) {
	#cookie-notice { left: auto !important; right: 22px !important; bottom: 22px !important; max-width: 440px !important; }
}
.cookie-notice-container {
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
	color: var(--wp--preset--color--ink-soft) !important;
	font-family: var(--wp--preset--font-family--dm-sans) !important;
	font-size: 13.5px !important;
	line-height: 1.6 !important;
	padding: 0 !important;
	text-align: left !important;
	width: 100% !important;
}
#cookie-notice.cookie-notice-hidden .cookie-notice-container { display: none !important; }
#cookie-notice.cookie-notice-hidden.cookie-revoke-hidden { display: none !important; }
.cn-text-container { margin: 0 !important; display: block !important; }
#cn-notice-text strong { color: var(--wp--preset--color--ink) !important; font-weight: 500 !important; }
.cn-buttons-container { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; justify-content: flex-start !important; }
.cn-button { margin: 0 !important; }
#cn-accept-cookie, #cn-refuse-cookie {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	height: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	vertical-align: middle !important;
	font-family: var(--wp--preset--font-family--dm-sans) !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	padding: 0 16px !important;
	border-radius: 999px !important;
	cursor: pointer !important;
	transition: all .2s ease !important;
	white-space: nowrap !important;
}
#cn-accept-cookie {
	background: var(--wp--preset--color--accent) !important;
	border: 1px solid var(--wp--preset--color--accent) !important;
	color: #fff !important;
}
#cn-accept-cookie:hover { background: transparent !important; color: var(--wp--preset--color--accent) !important; }
#cn-refuse-cookie {
	background: transparent !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	color: var(--wp--preset--color--ink) !important;
}
#cn-refuse-cookie:hover { border-color: var(--wp--preset--color--ink) !important; }
#cn-close-notice { display: none !important; }
