/* ==========================================================================
   Polyshield Homepage — detail & behaviour layer for native Elementor widgets
   Everything visual (text, colours, spacing, images, links) is set in the
   Elementor panel. This file only adds what Elementor's free controls can't:
   sticky-header states, the scrolling category track, the mobile menu
   overlay, small decorative lines, and hover micro-interactions.
   Hook classes are added under Advanced > CSS Classes on each element.
   ========================================================================== */

html { scroll-behavior: smooth; }
body.ps-page {
	background: #F6F6F3;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	margin: 0;
	padding-top: 0 !important; /* theme reserves space for its own header; this page has its own */
}
body.ps-page [id] { scroll-margin-top: 72px; }
body.ps-page .elementor-heading-title { text-wrap: balance; }
body.ps-page .elementor-widget-text-editor p { margin: 0; }
body.ps-page .elementor-widget-text-editor p + p { margin-top: .8em; }
body.ps-page .elementor-widget-text-editor a { text-decoration: none; }
body.ps-page :focus-visible { outline: 2px solid #82A8CC; outline-offset: 3px; }

/* Buttons: small arrow nudges right on hover (logo's forward angle) */
body.ps-page .elementor-button .elementor-button-icon { transition: transform .3s cubic-bezier(.22,.68,0,1); }
body.ps-page .elementor-button:hover .elementor-button-icon { transform: translateX(3px); }
body.ps-page .ps-cat-arrow .elementor-button:hover .elementor-button-icon { transform: none; }

/* ---------- Header ---------- */
.ps-header {
	position: sticky !important;
	top: 0;
	z-index: 100;
	transition: background-color .35s cubic-bezier(.22,.68,0,1), padding .35s cubic-bezier(.22,.68,0,1), border-color .35s cubic-bezier(.22,.68,0,1);
}
body.admin-bar .ps-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ps-header { top: 0; } }
.ps-header.is-solid {
	background-color: rgba(5,5,5,.92) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	--padding-top: 13px !important;
	--padding-bottom: 13px !important;
	border-bottom-color: #292B2F !important;
}
.ps-nav .elementor-icon-list-text { position: relative; }
.ps-nav .elementor-icon-list-text::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
	background: #82A8CC;
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s cubic-bezier(.22,.68,0,1);
}
.ps-nav .elementor-icon-list-item:hover .elementor-icon-list-text::after { transform: scaleX(1); }
.ps-menu-open, .ps-menu-close { cursor: pointer; }

/* ---------- Mobile menu overlay ---------- */
body:not(.elementor-editor-active) .ps-mobile-nav {
	position: fixed !important;
	inset: 0;
	z-index: 200;
	margin: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: 100%;
	overflow-y: auto;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .4s cubic-bezier(.22,.68,0,1), visibility 0s linear .4s;
}
body:not(.elementor-editor-active) .ps-mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform .4s cubic-bezier(.22,.68,0,1), visibility 0s;
}
.ps-mobile-nav .ps-mnav-cta { margin-top: auto !important; }
.ps-mobile-nav .elementor-icon-list-item { width: 100%; }

/* ---------- Hero ---------- */
.ps-eyebrow-line .elementor-heading-title { display: flex; align-items: center; gap: 10px; }
.ps-eyebrow-line .elementor-heading-title::before { content: ''; width: 20px; height: 1px; background: currentColor; flex: none; }
.ps-scroll-cue .elementor-heading-title { display: flex; align-items: center; gap: 12px; }
.ps-scroll-cue .elementor-heading-title::before {
	content: ''; width: 32px; height: 1px; flex: none;
	background: linear-gradient(#82A8CC, #82A8CC) no-repeat, #292B2F;
	background-size: 100% 100%;
	background-position: -32px 0;
	animation: psScrollLine 2.4s cubic-bezier(.22,.68,0,1) infinite;
}
@keyframes psScrollLine { 0% { background-position: -32px 0; } 50% { background-position: 0 0; } 100% { background-position: 32px 0; } }

/* ---------- Protection category carousel ---------- */
.ps-cat-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	width: auto !important;
	max-width: none !important;
	align-self: stretch !important;
	contain: inline-size; /* stops the card row widening the page on phones */
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.ps-cat-track::-webkit-scrollbar { display: none; }
.ps-cat-track > .elementor-element { scroll-snap-align: start; flex-shrink: 0 !important; }
body.elementor-editor-active .ps-cat-track { scroll-snap-type: none; }
.ps-cat-arrow .elementor-button { aspect-ratio: 1 / 1; justify-content: center; }
.ps-cat-arrow.is-disabled { opacity: .35; pointer-events: none; }

/* Aspect-ratio helpers for image/visual panels */
.ps-ar-4-3 { aspect-ratio: 4 / 3; height: auto !important; }
.ps-ar-4-5 { aspect-ratio: 4 / 5; height: auto !important; }

/* ---------- Trust flow: node on the line ---------- */
.ps-trust-step { position: relative; }
.ps-trust-step::before {
	content: '';
	position: absolute; top: -8px; left: 0;
	width: 14px; height: 14px; border-radius: 50%;
	box-sizing: border-box;
	background: #F6F6F3; border: 2px solid #35506E;
	z-index: 1;
}
@media (max-width: 767px) {
	.ps-trust-step::before { top: 0; left: -8px; }
}

/* ---------- Finish selector (Nested Tabs) ---------- */
/* Elementor's tab CSS falls back to the global accent for the active pill; keep it brand white */
.ps-finish { --n-tabs-title-background-color-active: #FFFFFF; --n-tabs-title-background-color-hover: transparent; }
.ps-finish .e-n-tab-title { transition: all .25s cubic-bezier(.22,.68,0,1); }
.ps-finish .e-n-tabs-content > .e-con.e-active,
.ps-finish .e-n-tabs-content > .elementor-element.e-active { animation: psFadeIn .4s cubic-bezier(.22,.68,0,1); }
@keyframes psFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Portal tiles in development ---------- */
.ps-dim { opacity: .62; }

/* ---------- Installer search + newsletter (Polyshield widgets) ---------- */
.ps-finder-search {
	display: flex; gap: 10px; flex-wrap: wrap;
	background: #121214; border: 1px solid #292B2F; border-radius: 10px; padding: 8px;
}
.ps-finder-search input {
	flex: 1; min-width: 180px; background: transparent; border: 0; outline: 0;
	color: #fff; padding: 12px 14px; font: 400 15px/1.4 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.ps-finder-search input::placeholder { color: #7D828A; }
.ps-finder-search select {
	background: #1C1D20; border: 1px solid #292B2F; color: #fff; border-radius: 10px;
	padding: 12px 14px; font: 400 14px/1.4 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.ps-finder-search button, .ps-newsletter button {
	cursor: pointer; border: 1px solid #fff; background: #fff; color: #050505;
	font: 600 14.5px/1.55 'Inter', 'Helvetica Neue', Arial, sans-serif;
	border-radius: 4px; padding: 12px 22px; transition: background .25s;
}
.ps-finder-search button:hover { background: #E7E8E6; border-color: #E7E8E6; }
.ps-form-note { font: 400 12.5px/1.5 'Inter', 'Helvetica Neue', Arial, sans-serif; color: #82A8CC; margin-top: 10px; }
.ps-form-note[hidden] { display: none !important; }
.ps-newsletter { display: flex; gap: 8px; max-width: 340px; }
.ps-newsletter input {
	flex: 1; min-width: 0; background: #121214; border: 1px solid #292B2F; border-radius: 10px;
	padding: 11px 14px; color: #fff; font: 400 13.5px/1.4 'Inter', 'Helvetica Neue', Arial, sans-serif; outline: 0;
}
.ps-newsletter input::placeholder { color: #7D828A; }
.ps-newsletter button { border-radius: 10px; padding: 0 16px; font-size: 13px; }

/* ---------- Scroll reveal: Elementor's "Fade In Up" entrance, tuned to 18px ---------- */
body.ps-page .elementor-element.animated.fadeInUp { animation-name: psRevealUp; }
@keyframes psRevealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ps-hero .elementor-background-video-container { display: none; }
	.ps-scroll-cue .elementor-heading-title::before { animation: none; }
	body.ps-page .elementor-element.animated { animation: none !important; }
	body.ps-page .elementor-invisible { visibility: visible !important; }
}

/* ---------- Coming-soon pages ---------- */
.ps-cs { min-height: 100vh; min-height: 100svh; }
.ps-status-dot { position: relative; }
.ps-status-dot::after {
	content: ''; position: absolute; inset: -4px; border-radius: 50%;
	border: 1px solid #82A8CC; opacity: 0;
	animation: psPulse 2.2s cubic-bezier(.22,.68,0,1) infinite;
}
@keyframes psPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.ps-build-bar { position: relative; }
.ps-build-bar::after {
	content: ''; position: absolute; top: 0; bottom: 0; left: -35%; width: 35%;
	background: linear-gradient(90deg, rgba(130,168,204,0), #82A8CC, rgba(130,168,204,0));
	animation: psBuild 2.6s cubic-bezier(.45,0,.2,1) infinite;
}
@keyframes psBuild { from { left: -35%; } to { left: 100%; } }

@media (prefers-reduced-motion: reduce) {
	.ps-status-dot::after, .ps-build-bar::after { animation: none; }
}
