/* Mobile off-canvas overrides + motion helpers (Tailwind handles main layout) */

:root {
	--page-shell-max: 1460px;
	--page-shell-gutter: 1.5rem;
}

/* Keep all page sections and nav aligned to one shell width */
.max-w-page {
	max-width: min(var(--page-shell-max), calc(100vw - var(--page-shell-gutter) * 2));
}

/* Only remove horizontal padding for page content area */
main .max-w-page {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.hc-nav-open .pa-mobile-main-logo {
	opacity: 0;
}

.hc-offcanvas-nav {
	font-family: "Blinker", sans-serif;
}

.hc-offcanvas-nav .nav-container,
.hc-offcanvas-nav .nav-wrapper,
.hc-offcanvas-nav ul {
	background: #ffffff;
}

.hc-offcanvas-nav .nav-content > .nav-close:first-child a,
.hc-offcanvas-nav .nav-title + .nav-close a.has-label,
.hc-offcanvas-nav li.nav-close a,
.hc-offcanvas-nav .nav-back a {
	background: #f8fafc;
	border-top: 1px solid rgba(45, 136, 255, 0.15);
	border-bottom: 1px solid rgba(45, 136, 255, 0.15);
}

.hc-offcanvas-nav .nav-item-link,
.hc-offcanvas-nav li.nav-close a,
.hc-offcanvas-nav .nav-back a,
.hc-offcanvas-nav a.nav-next {
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	color: #334155;
}

.hc-offcanvas-nav::after,
.hc-offcanvas-nav .nav-wrapper::after {
	background: rgba(15, 23, 42, 0.35);
}

.hc-nav-trigger span,
.hc-nav-trigger span::before,
.hc-nav-trigger span::after {
	background-color: #1e293b;
}

li.custom-content.pa-mobile-menu-logo {
	position: absolute;
	top: 0;
	padding-left: 15px;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid rgba(45, 136, 255, 0.15);
}

/* Scrolled navbar — frosted backdrop within nav width */
.pa-navbar {
	height: 99px;
	width: min(100%, var(--page-shell-max));
	padding-left: var(--page-shell-gutter);
	padding-right: var(--page-shell-gutter);
}

.pa-navbar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 450ms ease;
}

.pa-navbar.pa-navbar-scrolled::before {
	opacity: 1;
	background: rgba(255, 255, 255, 0.95);
	border: 0.5px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

ul.navbar-nav {
	margin-top: 66px;
	overflow: hidden;
}

@media all and (max-width: 1199px) {
	.pa-navbar .hc-nav-trigger {
		top: 50%;
		margin-top: -12px;
	}
}

@media all and (min-width: 1200px) {
	ul.navbar-nav {
		margin-top: 0;
		overflow: visible;
	}
}

/* Language dropdown */
.lang-switcher__menu {
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lang-switcher.is-open .lang-switcher__chevron {
	transform: rotate(180deg);
}

.pa-navbar .nav-link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 28px;
	width: 0;
	height: 2px;
	background: #2d88ff;
	border-radius: 999px;
	transform: translateX(-50%);
	transition: width 0.35s ease;
	box-shadow: 0 0 10px rgba(45, 136, 255, 0.35);
}

@media all and (min-width: 1200px) {
	.pa-navbar .nav-link:hover::after,
	.pa-navbar .nav-link:focus-visible::after {
		width: 28px;
	}
}

@media all and (min-width: 1200px) {
	li.custom-content.pa-mobile-menu-logo,
	.pa-mobile-main-logo {
		display: none;
	}
}

/* Hero — light frosted mask over video */
.hero-video-mask {
	overflow: hidden;
	background: rgba(255, 255, 255, 0.72);
}

.hero-video-mask::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.88) 0%,
		rgba(255, 255, 255, 0.65) 50%,
		rgba(255, 255, 255, 0.45) 100%
	);
}

.hero-video-mask::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: radial-gradient(circle at 20% 20%, rgba(45, 136, 255, 0.1), transparent 45%);
}

.hero-shine-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	width: 38%;
	pointer-events: none;
	transform: skewX(-12deg);
	background: linear-gradient(
		to right,
		transparent 0%,
		rgba(45, 136, 255, 0.12) 50%,
		transparent 100%
	);
}

.hero-swiper {
	width: auto;
	max-width: min(100vw - 3rem, 56rem);
	height: auto;
}

.hero-swiper .swiper-slide {
	width: auto;
	height: auto;
}

.hero-swiper-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: rgba(15, 23, 42, 0.2);
	opacity: 1;
	transition: transform 0.35s ease, background-color 0.35s ease;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
	background: #2d88ff;
	transform: scale(1.15);
	box-shadow: 0 0 14px rgba(45, 136, 255, 0.4);
}

.hero-placeholder-bg {
	background:
		radial-gradient(circle at 20% 30%, rgba(45, 136, 255, 0.12), transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(45, 136, 255, 0.08), transparent 45%),
		linear-gradient(160deg, #ffffff 0%, #f8fafc 45%, #ffffff 100%);
	background-size: 200% 200%;
	animation: hero-bg-shift 18s ease-in-out infinite alternate;
}

.hero-bg-image__photo {
	opacity: 0.55;
}

.hero-bg-image--detail .hero-bg-image__photo {
	opacity: 0.62;
}

.hero-bg-image__overlay {
	background:
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.08) 0%,
			rgba(248, 250, 252, 0.04) 42%,
			rgba(255, 255, 255, 0.55) 78%,
			#ffffff 100%
		);
}

.hero-bg-image--detail .hero-bg-image__overlay {
	background:
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.06) 0%,
			rgba(248, 250, 252, 0.03) 45%,
			rgba(255, 255, 255, 0.50) 80%,
			#ffffff 100%
		);
}

/* Wide banner heroes (e.g. news 1920×650) — fixed display height, not full section */
.hero-bg-image--banner {
	width: 100%;
	height: clamp(260px, 33.854vw, 650px);
	max-height: 650px;
}

.news-hero .hero-bg-image__photo {
	opacity: 0.72;
	object-fit: cover;
	object-position: center center;
}

.news-hero .hero-bg-image__overlay {
	background:
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.04) 0%,
			rgba(248, 250, 252, 0) 38%,
			rgba(255, 255, 255, 0.45) 68%,
			rgba(255, 255, 255, 0.88) 88%,
			#ffffff 100%
		);
}

.video-card__trigger {
	cursor: pointer;
}

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 20000;
	display: grid;
	place-items: center;
	padding: 1.5rem;
}

.video-modal[hidden] {
	display: none;
}

.video-modal-open {
	overflow: hidden;
}

.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
}

.video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	border-radius: 0.75rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: #0f172a;
	padding: 1rem;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
}

.video-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: inline-flex;
	height: 2.25rem;
	width: 2.25rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.8);
	color: #e2e8f0;
}

.video-modal__media {
	overflow: hidden;
	border-radius: 0.5rem;
	background: #020617;
}

.video-modal__player,
.video-modal__poster {
	display: block;
	width: 100%;
	max-height: min(70vh, 540px);
	object-fit: contain;
	background: #020617;
}

.video-modal__placeholder {
	margin: 0;
	padding: 0.75rem 1rem 1rem;
	font-size: 0.875rem;
	color: #94a3b8;
	text-align: center;
}

.video-modal__title {
	margin: 0.75rem 0 0;
	padding: 0 0.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #e2e8f0;
}

@keyframes hero-bg-shift {
	0% { background-position: 0% 0%; }
	100% { background-position: 100% 100%; }
}

.hero-scroll-hint {
	animation: none;
}

@keyframes hero-scroll-fade {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

.media-placeholder {
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	position: relative;
	overflow: hidden;
}

.media-placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.7;
	background: radial-gradient(circle at 30% 40%, rgba(45, 136, 255, 0.12), transparent 55%);
}

.media-placeholder[data-variant="1"]::before {
	background: radial-gradient(circle at 70% 30%, rgba(45, 136, 255, 0.15), transparent 50%);
}

.media-placeholder[data-variant="2"]::before {
	background: radial-gradient(circle at 50% 60%, rgba(45, 136, 255, 0.1), transparent 45%);
}

.media-placeholder[data-variant="3"]::before {
	background: radial-gradient(circle at 20% 70%, rgba(45, 136, 255, 0.14), transparent 50%);
}

.spotlight-section {
	min-height: 32rem;
}

.spotlight-media .media-placeholder {
	opacity: 0.5;
}

.spotlight-overlay {
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.88) 0%,
		rgba(248, 250, 252, 0.95) 100%
	);
	pointer-events: none;
}

@media (min-width: 1024px) {
	.spotlight-overlay {
		background: linear-gradient(
			to right,
			rgba(255, 255, 255, 0.96) 0%,
			rgba(255, 255, 255, 0.55) 45%,
			rgba(255, 255, 255, 0.96) 100%
		);
	}

	.spotlight-section:nth-child(even) .spotlight-overlay,
	.spotlight-section.spotlight-reverse .spotlight-overlay {
		background: linear-gradient(
			to left,
			rgba(255, 255, 255, 0.96) 0%,
			rgba(255, 255, 255, 0.55) 45%,
			rgba(255, 255, 255, 0.96) 100%
		);
	}
}

.format-tab.is-active,
.case-filter.is-active {
	border-color: rgba(45, 136, 255, 0.6);
	background: rgba(45, 136, 255, 0.12);
	color: #1d4ed8;
}

.product-hero .hero-video-mask {
	opacity: 0.85;
}

.performance-slider {
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(to right, rgba(45, 136, 255, 0.25), rgba(45, 136, 255, 0.75));
	outline: none;
	cursor: pointer;
}

.performance-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #2d88ff;
	border: 2px solid #ffffff;
	box-shadow: 0 0 16px rgba(45, 136, 255, 0.4);
	cursor: pointer;
}

.performance-slider::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #2d88ff;
	border: 2px solid #ffffff;
	box-shadow: 0 0 16px rgba(45, 136, 255, 0.4);
	cursor: pointer;
}

.contact-input {
	min-height: 48px;
	background: #ffffff;
	color: #1e293b;
}

.contact-input::placeholder {
	color: rgba(100, 116, 139, 0.7);
}

select.contact-input option {
	background: #ffffff;
	color: #1e293b;
}

details summary::-webkit-details-marker {
	display: none;
}

.cookie-settings-modal {
	position: fixed;
	inset: 0;
	z-index: 21000;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.cookie-settings-modal[hidden] {
	display: none;
}

.cookie-settings-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
}

.cookie-settings-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(640px, 100%);
	border-radius: 0.75rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: #ffffff;
	padding: 1.25rem;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.cookie-settings-modal__close {
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	height: 2rem;
	width: 2rem;
	border-radius: 9999px;
	border: 1px solid rgba(148, 163, 184, 0.5);
	background: #f8fafc;
	color: #334155;
}

.cookie-settings-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.75rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 0.5rem;
	background: #f8fafc;
}

.cookie-settings-item small {
	display: block;
	margin-top: 0.25rem;
	color: #64748b;
}
