/*
 * Signals Stopped Working Repipe Widgets — frontend styles
 * Scoped under .wosw-* classes so they coexist with theme styles.
 */

:root {
	--wosw-color-primary: #34373e;
	--wosw-color-secondary: #88898d;
	--wosw-color-light: #FFFFFF;
	--wosw-color-accent: #4a4e58;
	--wosw-color-text-dark: #222;
	--wosw-font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--wosw-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

	--color-primary: #34373e;
	--color-secondary: #88898d;
	--color-light: #FFFFFF;
	--color-accent: #4a4e58;
	--color-text-dark: #222;
}

.wosw-hero,
.wosw-section,
.faq-footer.wosw-section,
.wosw-image-divider {
	font-family: var(--wosw-font-main);
	color: var(--wosw-color-text-dark);
	line-height: 1.6;
	box-sizing: border-box;
}

.wosw-hero *,
.wosw-section *,
.wosw-image-divider * {
	box-sizing: border-box;
}

.wosw-hero h1,
.wosw-hero h2,
.wosw-section h1,
.wosw-section h2,
.wosw-section h3,
.wosw-section h4 {
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--wosw-color-primary);
}

.wosw-hero p,
.wosw-section p {
	margin-bottom: 1rem;
	font-size: 1.125rem;
	color: #444;
}

/* HERO */
.wosw-hero.hero {
	background-color: var(--wosw-color-primary);
	color: var(--wosw-color-light);
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	position: relative;
	overflow: hidden;
}

.wosw-hero.hero[style*="background-image"] {
	background: var(--wosw-color-primary);
}

.wosw-hero.hero.has-overlay { background-color: var(--wosw-color-primary); }
.wosw-hero.hero.has-overlay > .hero-content { position: relative; z-index: 2; }

.wosw-hero.hero.has-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.7));
	z-index: 1;
}

.wosw-hero.hero:not(.has-overlay)::before,
.wosw-hero.hero:not(.has-overlay)::after {
	content: '';
	position: absolute;
	background: linear-gradient(135deg, rgba(136,137,141,0.2) 0%, rgba(255,255,255,0.05) 100%);
	border-radius: 20px;
	transform: rotate(-15deg) skewX(10deg);
	z-index: 0;
	box-shadow: 0 20px 50px rgba(0,0,0,0.3);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.wosw-hero.hero:not(.has-overlay)::before {
	width: 50vw; height: 50vw;
	top: -20%; right: -10%;
	animation: wosw-float 12s ease-in-out infinite;
}

.wosw-hero.hero:not(.has-overlay)::after {
	width: 40vw; height: 40vw;
	bottom: -15%; left: -10%;
	animation: wosw-float 15s ease-in-out infinite reverse;
}

.wosw-hero .badge {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 100px;
	color: var(--wosw-color-light);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 2rem;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.wosw-hero .hero-content {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.wosw-hero h1 {
	color: var(--wosw-color-light);
	font-size: clamp(3rem, 5vw, 5rem);
	margin-bottom: 2rem;
	letter-spacing: -0.02em;
	text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
	line-height: 1.15;
}

.wosw-hero p,
.wosw-hero .wosw-hero-body p {
	color: rgba(255,255,255,0.9);
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 300;
	max-width: 800px;
	margin: 0 auto 1.5rem;
}

.wosw-hero a { color: #fff; text-decoration: underline; }

.wosw-hero .wosw-hero-body img {
	max-width: 100%; height: auto; display: block;
	margin: 1.5rem auto; border-radius: 14px;
}

/* SECTION */
.wosw-section { padding: 6rem 2rem; position: relative; }

.wosw-section .container,
.faq-footer.wosw-section .container { max-width: 1200px; margin: 0 auto; }

.wosw-section .section-title {
	text-align: center;
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	margin-bottom: 4rem;
	position: relative;
	display: block;
	font-weight: 700;
	max-width: 1000px;
	line-height: 1.15;
	margin-left: auto;
	margin-right: auto;
}

.wosw-section .section-title::after {
	content: '';
	display: block;
	margin: 10px auto 0;
	width: 60%;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--wosw-color-secondary), transparent);
	border-radius: 2px;
}

/* BACKGROUND VARIANTS */
.wosw-section.bg-light,
.wosw-image-divider.bg-light { background-color: #f7f8fa; }

.wosw-section.bg-gradient,
.wosw-image-divider.bg-gradient { background: linear-gradient(135deg, #f7f8fa 0%, #e2e3e6 100%); }

.wosw-section.bg-dark,
.wosw-image-divider.bg-dark {
	background-color: var(--wosw-color-primary);
	color: var(--wosw-color-light);
}

.wosw-image-divider.bg-none { background: transparent; padding: 0; }

.wosw-section.bg-dark p,
.wosw-section.bg-dark h1,
.wosw-section.bg-dark h2,
.wosw-section.bg-dark h3,
.wosw-section.bg-dark h4 { color: var(--wosw-color-light); }

.wosw-section.bg-dark p { color: rgba(255,255,255,0.85); }

/* TEXT BLOCK */
.wosw-section .text-block {
	background: var(--wosw-color-light);
	border-radius: 20px;
	padding: 3rem;
	box-shadow: 0 15px 40px rgba(52,55,62,0.08);
	margin: 0 auto;
	max-width: 900px;
	border-left: 8px solid var(--wosw-color-secondary);
	position: relative;
	overflow: hidden;
}

.wosw-section .text-block img {
	max-width: 100%; height: auto;
	border-radius: 12px; margin: 1rem 0;
	display: block;
}

.wosw-section .text-block a { color: var(--wosw-color-accent); text-decoration: underline; }
.wosw-section.bg-dark .text-block a { color: #fff; }

/* GRID + CARDS */
.wosw-section .grid-3d {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	perspective: 1000px;
}

.wosw-section .card-3d {
	background: var(--wosw-color-light);
	border-radius: 20px;
	padding: 2.5rem;
	box-shadow:
		20px 20px 60px rgba(136,137,141,0.15),
		-20px -20px 60px rgba(255,255,255,0.9);
	transition: var(--wosw-transition);
	transform-style: preserve-3d;
	border: 1px solid rgba(136,137,141,0.1);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wosw-section .card-3d:hover {
	transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
	box-shadow:
		25px 25px 70px rgba(136,137,141,0.2),
		-25px -25px 70px rgba(255,255,255,1);
}

.wosw-section .card-3d h3 {
	color: var(--wosw-color-primary);
	font-size: 1.5rem;
	font-weight: 600;
}

.wosw-section .card-3d p { color: #555; font-size: 1.05rem; line-height: 1.6; }
.wosw-section .card-3d ul { list-style: none; padding: 0; margin: 0; }
.wosw-section .card-3d ul li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.8rem;
	font-size: 1.05rem;
	color: #555;
	line-height: 1.55;
}
.wosw-section .card-3d ul li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wosw-color-secondary);
	font-size: 1.5rem;
	line-height: 1;
}

.wosw-section .card-3d img { max-width: 100%; height: auto; border-radius: 12px; }
.wosw-section .card-3d a { color: var(--wosw-color-accent); text-decoration: underline; }

.wosw-section.bg-dark .card-3d h3,
.wosw-section .card-3d--dark h3,
.wosw-section .card-3d--glass h3 { color: var(--wosw-color-light); }

.wosw-section.bg-dark .card-3d p { color: rgba(255,255,255,0.85); }
.wosw-section .card-3d--dark p,
.wosw-section .card-3d--dark li { color: rgba(255,255,255,0.85); }
.wosw-section .card-3d--dark li::before { color: var(--wosw-color-secondary); }

.wosw-section.bg-dark .card-3d ul li,
.wosw-section .card-3d--glass ul li { color: rgba(255,255,255,0.85); }
.wosw-section.bg-dark .card-3d ul li::before,
.wosw-section .card-3d--glass ul li::before { color: var(--wosw-color-secondary); }

/* SPLIT */
.wosw-section .split-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

/* TIMELINE */
.wosw-section .timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.wosw-section .timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 30px;
	height: 100%;
	width: 4px;
	background: var(--wosw-color-secondary);
	opacity: 0.3;
}

.wosw-section .timeline-item {
	position: relative;
	padding-left: 80px;
	margin-bottom: 3rem;
}

.wosw-section .timeline-item:last-child { margin-bottom: 0; }

.wosw-section .timeline-icon {
	position: absolute;
	left: 10px;
	top: 0;
	width: 44px;
	height: 44px;
	background: var(--wosw-color-primary);
	border: 4px solid var(--wosw-color-light);
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(52,55,62,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wosw-color-light);
	font-weight: bold;
	font-size: 0.9rem;
	z-index: 1;
}

.wosw-section .timeline-content {
	background: var(--wosw-color-light);
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	position: relative;
	transition: var(--wosw-transition);
}

.wosw-section .timeline-content:hover {
	transform: translateX(10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.wosw-section .timeline-content::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 15px;
	width: 20px;
	height: 20px;
	background: var(--wosw-color-light);
	transform: rotate(45deg);
	z-index: 0;
}

.wosw-section .timeline-content h3 {
	margin-bottom: 1rem;
	position: relative;
	z-index: 1;
	font-size: 1.4rem;
	color: var(--wosw-color-primary);
}

.wosw-section .timeline-content p {
	position: relative;
	z-index: 1;
	margin-bottom: 0;
}

/* FAQ FOOTER */
.faq-footer.wosw-section {
	background-color: var(--wosw-color-primary);
	color: var(--wosw-color-light);
	padding: 6rem 2rem 4rem;
}

.faq-footer .faq-container {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq-footer details.faq-item {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 10px;
	overflow: hidden;
	transition: var(--wosw-transition);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.faq-footer details.faq-item[open] {
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.2);
}

.faq-footer details.faq-item summary {
	padding: 1.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wosw-color-light);
	cursor: pointer;
	list-style: none;
	position: relative;
	outline: none;
	margin: 0;
	display: block;
}

.faq-footer details.faq-item summary::after {
	content: '+';
	position: absolute;
	right: 1.5rem;
	font-size: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
	color: var(--wosw-color-secondary);
}

.faq-footer details.faq-item[open] summary::after {
	content: '−';
}

.faq-footer details.faq-item summary::-webkit-details-marker { display: none; }

.faq-footer .faq-content {
	padding: 0 1.5rem 1.5rem;
	color: rgba(255,255,255,0.85);
	font-size: 1.05rem;
	border-top: 1px solid rgba(255,255,255,0.05);
	margin-top: 0.5rem;
	padding-top: 1rem;
}

.faq-footer .faq-content p { color: rgba(255,255,255,0.85); }
.faq-footer .faq-content a { color: #fff; text-decoration: underline; }

.faq-footer .text-block.faq-intro p { color: rgba(255,255,255,0.9); }

/* IMAGE DIVIDER */
.wosw-image-divider { padding: 4rem 2rem; }
.wosw-image-divider.bg-none { padding: 0; }
.wosw-image-divider .wosw-image-divider-inner { max-width: 1200px; margin: 0 auto; }
.wosw-image-divider.layout-full-width .wosw-image-divider-inner { max-width: 100%; }

.wosw-image-figure { margin: 0; text-align: center; }

.wosw-image-figure img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
	display: block;
	margin: 0 auto;
	box-shadow: 0 15px 40px rgba(52,55,62,0.12);
}

.wosw-image-divider.layout-full-width .wosw-image-figure img {
	border-radius: 0;
	width: 100%;
}

.wosw-image-caption {
	margin-top: 1rem;
	font-size: 1rem;
	color: #555;
	font-style: italic;
}

.wosw-image-divider.bg-dark .wosw-image-caption { color: rgba(255,255,255,0.8); }

/* REVEAL */
.wosw-section.reveal,
.wosw-image-divider.reveal,
.wosw-hero.reveal,
.wosw-section .timeline-item.reveal {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.wosw-section.reveal.active,
.wosw-image-divider.reveal.active,
.wosw-hero.reveal.active,
.wosw-section .timeline-item.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

@keyframes wosw-float {
	0%   { transform: translateY(0) rotate(-15deg) skewX(10deg); }
	50%  { transform: translateY(-20px) rotate(-10deg) skewX(12deg); }
	100% { transform: translateY(0) rotate(-15deg) skewX(10deg); }
}

.elementor-editor-active .wosw-section.reveal,
.elementor-editor-active .wosw-image-divider.reveal,
.elementor-editor-active .wosw-hero.reveal,
.elementor-editor-active .wosw-section .timeline-item.reveal {
	opacity: 1;
	transform: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
	.wosw-section .container { max-width: 95%; }
	.wosw-section .split-layout { grid-template-columns: 1fr; gap: 2rem; }
	.wosw-section .grid-3d { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.wosw-section { padding: 4rem 1.5rem; }

	.wosw-hero.hero {
		min-height: auto;
		padding: 5rem 1.2rem;
		display: block;
	}

	.wosw-hero .hero-content { padding-top: 2rem; }

	.wosw-hero h1 {
		font-size: clamp(1.9rem, 7vw, 2.6rem);
		line-height: 1.25;
	}

	.wosw-hero p { font-size: 1.05rem; }

	.wosw-section .grid-3d { grid-template-columns: 1fr; gap: 1.5rem; }
	.wosw-section .card-3d { padding: 2rem; }
	.wosw-section .text-block { padding: 2rem; }

	.wosw-section .timeline::before { left: 20px; }
	.wosw-section .timeline-item { padding-left: 60px; }
	.wosw-section .timeline-icon { left: 4px; width: 36px; height: 36px; font-size: 0.8rem; }

	.faq-footer.wosw-section { padding: 4rem 1.5rem; }
	.faq-footer details.faq-item summary { font-size: 1.1rem; padding: 1.2rem; }
	.faq-footer .faq-content { padding: 0 1.2rem 1.2rem; }
}

@media (max-width: 480px) {
	.wosw-hero h1 { font-size: 1.7rem; line-height: 1.3; }
	.wosw-section .section-title { font-size: 1.7rem; }
	.wosw-section .card-3d h3 { font-size: 1.3rem; }
}
