/* =========================================================================
   Twinco Site Header — port of components/ui/SiteHeader.tsx
   ========================================================================= */
.twinco-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	background-color: transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
	font-family: var(--twinco-font-sans);
}
.twinco-header.is-solid,
.twinco-header.twinco-header--solid {
	background-color: rgba(2, 27, 121, 0.85);
	border-bottom-color: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.twinco-header__nav {
	margin-inline: auto;
	display: flex;
	width: 100%;
	max-width: 1440px;
	align-items: center;
	justify-content: space-between;
	padding: 24px 80px;
}

/* ---- Logo ---- */
.twinco-header__logo {
	position: relative;
	height: 30px;
	width: 149.571px;
	flex-shrink: 0;
	display: block;
}
.twinco-header__logo-part {
	position: absolute;
	display: block;
}
/* 0,2,1 so Elementor's `.elementor img{height:auto}` (0,1,1) can't collapse the parts. */
.twinco-header__logo .twinco-header__logo-part img {
	display: block;
	width: 100%;
	height: 100%;
}
.twinco-header__logo-img {
	display: block;
	height: 30px;
	width: auto;
}

/* ---- Desktop links ---- */
.twinco-header__links {
	display: flex;
	align-items: center;
	column-gap: 24px;
	font-size: var(--twinco-text-body);
	line-height: 1;
	word-break: break-word;
}
.twinco-header__link {
	color: var(--twinco-mute);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}
.twinco-header__link:hover {
	color: #fff;
}
.twinco-header__link.is-active {
	color: #fff;
	font-weight: 700;
}

/* ---- Book button ---- */
.twinco-header__btn {
	display: inline-flex;
	height: 40px;
	width: 180px;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	border: 1px solid var(--twinco-steel);
	border-radius: var(--twinco-radius-pill);
	font-size: var(--twinco-text-button);
	font-weight: 600;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	transition: filter 0.2s ease;
}
.twinco-header__btn:hover {
	filter: brightness(1.1);
}

/* ---- Mobile hamburger ---- */
/* Scoped under .twinco-header (0,2,0) so an external `.elementor button` (0,1,1)
   can't force it visible on desktop. */
.twinco-header .twinco-header__burger {
	display: none;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	color: #fff;
	transition: background-color 0.2s ease;
}
.twinco-header__burger:hover {
	background-color: rgba(255, 255, 255, 0.1);
}
.twinco-header__burger-box {
	position: relative;
	display: block;
	height: 16px;
	width: 24px;
}
.twinco-header__burger-bar {
	position: absolute;
	left: 0;
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 2px;
	background: #fff;
	transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}
.twinco-header__burger-bar--1 { top: 0; }
.twinco-header__burger-bar--2 { top: 7px; }
.twinco-header__burger-bar--3 { top: 14px; }
.twinco-header.is-open .twinco-header__burger-bar--1 { top: 7px; transform: rotate(45deg); }
.twinco-header.is-open .twinco-header__burger-bar--2 { opacity: 0; }
.twinco-header.is-open .twinco-header__burger-bar--3 { top: 7px; transform: rotate(-45deg); }

/* ---- Mobile dropdown panel ---- */
.twinco-header__panel {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	border-top: 0 solid rgba(255, 255, 255, 0.1);
	background-color: rgba(2, 27, 121, 0.95);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: max-height 0.3s ease, opacity 0.3s ease;
}
.twinco-header.is-open .twinco-header__panel {
	max-height: 420px;
	opacity: 1;
	border-top-width: 1px;
}
.twinco-header__panel-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	padding: 12px 24px 24px;
}
.twinco-header__panel-link {
	border-radius: 10px;
	padding: 12px 16px;
	font-size: var(--twinco-text-body);
	font-weight: 500;
	color: var(--twinco-mute);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.twinco-header__panel-link:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: #fff;
}
.twinco-header__panel-link.is-active {
	background-color: rgba(255, 255, 255, 0.1);
	font-weight: 700;
	color: #fff;
}
.twinco-header__panel-btn {
	margin-top: 8px;
	display: inline-flex;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--twinco-steel);
	border-radius: var(--twinco-radius-pill);
	font-size: var(--twinco-text-button);
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	transition: filter 0.2s ease;
}
.twinco-header__panel-btn:hover {
	filter: brightness(1.1);
}

/* ---- Responsive flip (desktop nav / mobile menu at 1024) ---- */
@media (max-width: 1023.98px) {
	.twinco-header .twinco-header__links,
	.twinco-header .twinco-header__btn { display: none; }
	.twinco-header .twinco-header__burger { display: flex; }
}
@media (min-width: 1024px) {
	.twinco-header .twinco-header__panel { display: none; }
}
@media (max-width: 767.98px) {
	.twinco-header__nav { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 639.98px) {
	.twinco-header__nav { padding: 16px; }
	.twinco-header__panel-inner { padding-left: 16px; padding-right: 16px; }
}
