/* CrosX Rim Protector Redesign — matches the patterns already established
   across the site's other product pages (PPF, homepage): photo hero with
   dark overlay, red as the primary CTA/highlight color, red-bordered
   feature panels, chevron FAQ accordion, circular numbered steps. */

.wl-redesign {
	--wl-black: #00180F;
	--wl-mint: #DCFFEA;
	--wl-text: #7A7A7A;
	--wl-teal: #1B756B;
	--wl-grey: #F9F9F9;
	--wl-white: #FFFFFF;
	--wl-red: #E60000;
	--wl-red-dark: #B30000;
	--wl-red-tint: #FCEAEA;
	--wl-red-tint-strong: #FBDCDC;
	--wl-font-head: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	--wl-font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
	--wl-radius: 16px;
	--wl-radius-pill: 50px;
	--wl-shadow: 0 20px 50px rgba(0, 24, 15, 0.12);

	font-family: var(--wl-font-body);
	color: var(--wl-text);
	background: var(--wl-white);
	overflow-x: hidden;
}

.wl-redesign * { box-sizing: border-box; }
.wl-redesign img { max-width: 100%; display: block; }

/* The site's Elementor Global Kit applies scoped styles (higher specificity
   than a single class) straight to bare h1-h6 and button elements, not just
   its own widgets. The !important declarations below on buttons/headings
   are a deliberate, targeted counter to that — not a general habit — so
   this template renders exactly as designed regardless of the kit's rules. */
.wl-redesign h1,
.wl-redesign h2,
.wl-redesign h3,
.wl-redesign h4,
.wl-redesign h5,
.wl-redesign h6 {
	margin: 0;
	font-family: var(--wl-font-head);
}
.wl-redesign button {
	box-sizing: border-box;
	cursor: pointer;
	font-family: var(--wl-font-body);
	text-align: left;
}

.wl-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.wl-section { padding: 96px 0; }
.wl-section--grey { background: var(--wl-grey); }

.wl-section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.wl-section__head .wl-h2 { margin-top: 12px; }
.wl-section__head .wl-p { max-width: 520px; margin-left: auto; margin-right: auto; }

.wl-text-accent { color: var(--wl-red); }

.wl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wl-font-body);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--wl-red);
	background: var(--wl-red-tint);
	padding: 7px 16px;
	border-radius: var(--wl-radius-pill);
}

.wl-h2 {
	font-family: var(--wl-font-head);
	font-weight: 700;
	font-size: 42px;
	line-height: 1.15;
	color: var(--wl-black);
	margin: 16px 0 0;
}
.wl-h2--light { color: var(--wl-white) !important; }

.wl-p { font-size: 16px; font-weight: 300; line-height: 1.7; margin: 18px 0; }
.wl-p--light { color: rgba(255, 255, 255, 0.72); }

/* Buttons — !important guards against the kit's generic `button{}` rule */
.wl-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--wl-font-body) !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	text-decoration: none;
	border-radius: var(--wl-radius-pill) !important;
	padding: 17px 36px !important;
	border: none;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
	white-space: nowrap;
}
.wl-btn:hover { transform: translateY(-2px); }
.wl-btn--primary { background: var(--wl-red) !important; color: var(--wl-white) !important; }
.wl-btn--primary:hover { background: var(--wl-red-dark) !important; color: var(--wl-white) !important; }
.wl-btn--ghost { background: transparent !important; color: var(--wl-black) !important; border: 2px solid var(--wl-black) !important; }
.wl-btn--ghost:hover { background: var(--wl-black) !important; color: var(--wl-white) !important; }
.wl-btn--ghost-light { background: transparent !important; color: var(--wl-white) !important; border: 2px solid rgba(255,255,255,0.5) !important; }
.wl-btn--ghost-light:hover { background: var(--wl-white) !important; color: var(--wl-black) !important; }
.wl-btn__icon { font-size: 11px; }

/* ============ HERO — full-bleed photo + dark overlay, like the site's other product pages ============ */
.wl-hero {
	position: relative;
	overflow: hidden;
	color: var(--wl-white);
}
.wl-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%;
}
.wl-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(0,10,6,0.94) 0%, rgba(0,10,6,0.82) 45%, rgba(0,10,6,0.55) 100%);
}
/* padding-top is set dynamically in JS to clear the site header's actual
   rendered height (it varies by breakpoint — desktop nav vs mobile
   hamburger) while the image/overlay above still bleed up behind the
   header, matching the transparent-header pattern used on other pages.
   This value is just a safe fallback until JS runs. */
.wl-hero__inner { position: relative; max-width: 720px; padding: 160px 0 64px; }
.wl-hero__title {
	font-family: var(--wl-font-head) !important;
	font-weight: 800 !important;
	font-size: 50px !important;
	line-height: 1.15 !important;
	color: var(--wl-white) !important;
	margin: 20px 0 0 !important;
}
.wl-hero__subtitle {
	font-size: 17px;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.78);
	margin: 22px 0 32px;
	max-width: 520px;
}
.wl-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; position: relative; }

.wl-hero__partners { position: relative; background: rgba(0, 8, 5, 0.55); backdrop-filter: blur(2px); border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; }
.wl-hero__partners-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.wl-hero__partners-row img { height: 24px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }

/* ============ VIDEO SECTION ============ */
.wl-video-section__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.wl-player {
	position: relative;
	border-radius: var(--wl-radius);
	overflow: hidden;
	box-shadow: var(--wl-shadow);
	cursor: pointer;
	aspect-ratio: 16 / 9;
	background: #000;
}
.wl-player__poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s ease; }
.wl-player:hover .wl-player__poster { opacity: 1; }
.wl-player__play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 76px !important; height: 76px !important;
	border-radius: 50% !important;
	background: var(--wl-red) !important;
	color: var(--wl-white) !important;
	border: none !important;
	padding: 0 !important;
	font-size: 22px;
	display: flex !important; align-items: center; justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(230, 0, 0, 0.4);
	transition: transform 0.2s ease;
}
.wl-player__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.wl-player video { width: 100%; height: 100%; object-fit: cover; display: none; }
.wl-player.is-playing .wl-player__poster,
.wl-player.is-playing .wl-player__play { display: none; }
.wl-player.is-playing video { display: block; }

/* ============ ABOUT ============ */
.wl-about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.wl-about__media img { border-radius: var(--wl-radius); box-shadow: var(--wl-shadow); }
.wl-stats { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.wl-stat strong { display: block; font-family: var(--wl-font-head); font-size: 24px; font-weight: 700; color: var(--wl-red); }
.wl-stat span { font-size: 13px; color: var(--wl-text); }

/* ============ PRODUCT ============ */
.wl-product { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.wl-product__media img { border-radius: var(--wl-radius); box-shadow: var(--wl-shadow); max-height: 460px; margin: 0 auto; }
.wl-checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.wl-checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 14px;
	font-size: 15px;
	color: var(--wl-black);
	font-weight: 500;
}
.wl-checklist li::before {
	content: "✓";
	position: absolute; left: 0; top: -1px;
	width: 20px; height: 20px;
	background: var(--wl-red);
	color: var(--wl-white);
	border-radius: 50%;
	font-size: 12px;
	display: flex; align-items: center; justify-content: center;
}

/* ============ GRID / CARDS ============ */
.wl-grid { display: grid; gap: 28px; }
.wl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.wl-card {
	background: var(--wl-white);
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: var(--wl-radius);
	padding: 32px 28px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wl-card:hover { transform: translateY(-4px); box-shadow: var(--wl-shadow); }
.wl-card__icon { font-size: 30px; margin-bottom: 16px; }
.wl-card__title { font-family: var(--wl-font-head) !important; font-size: 18px !important; font-weight: 700 !important; color: var(--wl-black) !important; margin: 0 0 10px !important; }
.wl-card__text { font-size: 14px; line-height: 1.6; margin: 0; }

/* ============ WHY PROFESSIONALS — red-bordered panel, mirrors the site's "Why Choose" pattern ============ */
.wl-panel {
	border: 2px solid var(--wl-red);
	border-radius: 20px;
	padding: 56px 40px;
	background: linear-gradient(180deg, var(--wl-red-tint) 0%, var(--wl-white) 60%);
}
.wl-panel__item { padding: 8px; }
.wl-panel__icon {
	height: 48px;
	width: 48px;
	object-fit: contain;
	padding: 11px;
	background: var(--wl-white);
	border: 1px solid rgba(230,0,0,0.15);
	border-radius: 12px;
	margin-bottom: 18px;
}
.wl-panel__title { font-family: var(--wl-font-head) !important; font-size: 18px !important; font-weight: 700 !important; color: var(--wl-red) !important; margin: 0 0 10px !important; }
.wl-panel__text { font-size: 14px; line-height: 1.6; margin: 0; color: var(--wl-text); }

/* ============ STEPS — circular numbered rows, mirrors the site's "How to Order" pattern ============ */
.wl-how__head { max-width: 560px; margin: 0 auto 48px; text-align: center; }
.wl-how__steps { display: grid; gap: 32px; max-width: 720px; margin: 0 auto; }
.wl-step-row { display: flex; align-items: flex-start; gap: 24px; background: var(--wl-white); border-radius: var(--wl-radius); padding: 28px 32px; box-shadow: var(--wl-shadow); }
.wl-step-row__num {
	flex-shrink: 0;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--wl-red);
	color: var(--wl-white);
	font-family: var(--wl-font-head);
	font-weight: 700;
	font-size: 20px;
	display: flex; align-items: center; justify-content: center;
}
.wl-step-row__title { font-family: var(--wl-font-head) !important; font-size: 18px !important; font-weight: 700 !important; color: var(--wl-black) !important; margin: 4px 0 8px !important; }
.wl-step-row__text { font-size: 14px; line-height: 1.6; margin: 0; color: var(--wl-text); }

/* ============ FAQ — chevron accordion with tinted rows, mirrors the site's FAQ pattern ============ */
.wl-faq__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.wl-faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.wl-accordion__item { background: var(--wl-red-tint); border-radius: 14px; overflow: hidden; transition: background 0.25s ease; }
.wl-accordion__item.is-open { background: var(--wl-red-tint-strong); }
.wl-accordion__q {
	width: 100%;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	text-align: left;
	font-family: var(--wl-font-head) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: var(--wl-black) !important;
	padding: 20px 24px !important;
	cursor: pointer;
}
.wl-accordion__chevron { flex-shrink: 0; font-size: 12px; color: var(--wl-red); transition: transform 0.25s ease; }
.wl-accordion__item.is-open .wl-accordion__chevron { transform: rotate(180deg); }
.wl-accordion__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.wl-accordion__a p { margin: 0 24px 20px; font-size: 15px; line-height: 1.7; }
.wl-accordion__item.is-open .wl-accordion__a { max-height: 300px; }

/* ============ CTA ============ */
.wl-cta { background: var(--wl-black); padding: 80px 0; text-align: center; }
.wl-cta__inner { max-width: 640px; margin: 0 auto; }
.wl-cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ============ MODAL ============ */
.wl-modal {
	position: fixed; inset: 0;
	z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wl-modal.is-active { opacity: 1; visibility: visible; }
.wl-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 8, 5, 0.92); }
.wl-modal__panel {
	position: relative;
	width: min(880px, 92vw);
	background: var(--wl-black);
	border-radius: var(--wl-radius);
	padding: 16px;
	transform: scale(0.94);
	transition: transform 0.3s ease;
}
.wl-modal.is-active .wl-modal__panel { transform: scale(1); }
.wl-modal__close {
	position: absolute;
	top: -44px; right: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.12) !important;
	color: var(--wl-white) !important;
	border: none !important;
	width: 36px !important; height: 36px !important;
	border-radius: 50% !important;
	padding: 0 !important;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.wl-modal__video-wrap { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.wl-modal__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.wl-modal__caption { color: rgba(255,255,255,0.6); font-size: 13px; text-align: center; margin: 14px 0 4px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
	.wl-video-section__inner,
	.wl-about,
	.wl-product { grid-template-columns: 1fr; }
	.wl-grid--3 { grid-template-columns: 1fr; }
	.wl-hero__title { font-size: 38px; }
	.wl-h2 { font-size: 30px; }
	.wl-section { padding: 64px 0; }
	.wl-panel { padding: 40px 24px; }
	.wl-hero__partners-row { gap: 24px; }
}

@media (max-width: 600px) {
	.wl-hero { padding-top: 72px; }
	.wl-hero__title { font-size: 30px; }
	.wl-btn { padding: 15px 28px !important; font-size: 14px !important; }
	.wl-cta__actions { flex-direction: column; align-items: stretch; }
	.wl-step-row { flex-direction: column; gap: 12px; }
}
