/**
 * Scoped styles for Unified Product & Solutions Template (page-template-product)
 */

.willus-service-detail {
	background-color: var(--willus-surface, var(--willus-surface));
	color: var(--willus-ink, var(--willus-ink));
	overflow-x: hidden;
}

/* Hero Section */
.willus-service-detail .wp-hero {
	background: radial-gradient(circle at 75% 25%, rgb(var(--willus-secondary-rgb) / 0.09) 0%, transparent 60%),
	            linear-gradient(180deg, var(--willus-primary) 0%, var(--willus-primary) 100%);
	color: #ffffff;
	padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 90px);
	position: relative;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.willus-service-detail .wp-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
}

.willus-service-detail .wp-hero-inner {
	max-width: 880px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.willus-service-detail .wh-eyebrow {
	color: var(--willus-accent, var(--willus-secondary));
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-size: 0.85rem;
	margin-bottom: 16px;
}

.willus-service-detail .wp-hero-title {
	font-size: clamp(2.2rem, 4.5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
}

.willus-service-detail .wp-hero-desc {
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 auto 32px;
	max-width: 760px;
}

.willus-service-detail .wp-hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

/* Shared Header */
.willus-service-detail .wp-section-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto clamp(40px, 6vw, 60px);
}

.willus-service-detail .wp-section-header .wh-eyebrow {
	color: var(--willus-accent, var(--willus-secondary));
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.willus-service-detail .wp-section-title {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 700;
	color: var(--willus-navy, var(--willus-primary));
	margin: 0 0 16px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.willus-service-detail .wp-section-sub {
	font-size: 1.1rem;
	color: var(--willus-muted, var(--willus-muted));
	margin: 0;
	line-height: 1.6;
}

/* Editorial About Section */
.willus-service-detail .wp-about-section {
	padding: clamp(60px, 9vw, 110px) 0;
	background: #ffffff;
}

.willus-service-detail .wp-about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 70px);
	align-items: center;
}

.willus-service-detail .wp-about-copy .wh-eyebrow {
	color: var(--willus-accent, var(--willus-secondary));
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.willus-service-detail .wp-about-text {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--willus-ink, var(--willus-ink));
	margin-bottom: 24px;
}

/* Keep the first section after the hero visually composed and give its CTA a real button treatment. */
.willus-premium.willus-service-detail .wp-about-section {
	position: relative;
	background: #fff;
}

.willus-premium.willus-service-detail .wp-about-copy {
	max-width: 620px;
}

.willus-premium.willus-service-detail .wp-about-copy .wp-section-title {
	margin: 0 0 20px;
	color: var(--willus-primary);
	font-size: clamp(34px, 4vw, 50px);
	font-weight: 550;
	line-height: 1.12;
	letter-spacing: -.04em;
}

.willus-service-detail .wp-about-visual {
	position: relative;
}

.willus-service-detail .wp-visual-frame {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 45px rgb(var(--willus-primary-rgb) / 0.12);
	background: var(--willus-primary);
	aspect-ratio: 4 / 3.2;
}

.willus-service-detail .wp-visual-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Benefits Grid */
.willus-service-detail .wp-benefits-section {
	padding: clamp(60px, 8vw, 100px) 0;
	background: var(--willus-surface, var(--willus-surface));
	border-top: 1px solid rgb(var(--willus-primary-rgb) / 0.06);
}

.willus-service-detail .wp-benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.willus-service-detail .wp-benefit-card {
	background: #ffffff;
	border: 1px solid rgb(var(--willus-primary-rgb) / 0.08);
	border-radius: 16px;
	padding: 34px 26px;
	box-shadow: 0 8px 30px rgb(var(--willus-primary-rgb) / 0.04);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
	display: flex;
	flex-direction: column;
}

.willus-service-detail .wp-benefit-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 45px rgb(var(--willus-primary-rgb) / 0.09);
	border-color: rgb(var(--willus-secondary-rgb) / 0.35);
}

.willus-service-detail .wp-benefit-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: rgb(var(--willus-primary-rgb) / 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--willus-navy, var(--willus-primary));
	margin-bottom: 22px;
	transition: all 0.3s ease;
}

.willus-service-detail .wp-benefit-card:hover .wp-benefit-icon {
	background: var(--willus-navy, var(--willus-primary));
	color: var(--willus-accent, var(--willus-secondary));
}

.willus-service-detail .wp-benefit-icon .willus-icon {
	width: 26px;
	height: 26px;
}

.willus-service-detail .wp-benefit-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--willus-navy, var(--willus-primary));
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.willus-service-detail .wp-benefit-desc {
	font-size: 0.94rem;
	line-height: 1.65;
	color: var(--willus-muted, var(--willus-muted));
	margin: 0;
	flex-grow: 1;
}

/* Solutions Grid */
.willus-service-detail .wp-solutions-section {
	padding: clamp(60px, 9vw, 110px) 0;
	background: #ffffff;
}

.willus-service-detail .wp-solutions-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.willus-service-detail .wp-sol-card {
	background: #ffffff;
	border: 1px solid rgb(var(--willus-primary-rgb) / 0.08);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgb(var(--willus-primary-rgb) / 0.04);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
	display: flex;
	flex-direction: column;
}

.willus-service-detail .wp-sol-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 45px rgb(var(--willus-primary-rgb) / 0.09);
	border-color: rgb(var(--willus-secondary-rgb) / 0.35);
}

.willus-service-detail .wp-sol-visual {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--willus-primary);
}

.willus-service-detail .wp-sol-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.willus-service-detail .wp-sol-card:hover .wp-sol-img {
	transform: scale(1.06);
}

.willus-service-detail .wp-sol-body {
	padding: 26px 24px 30px;
	flex-grow: 1;
}

.willus-service-detail .wp-sol-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--willus-navy, var(--willus-primary));
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

.willus-service-detail .wp-sol-desc {
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--willus-muted, var(--willus-muted));
	margin: 0;
}

/* Structural Components Section */
.willus-service-detail .wp-components-section {
	padding: clamp(70px, 10vw, 120px) 0;
	background: linear-gradient(180deg, var(--willus-primary) 0%, var(--willus-primary) 100%);
	color: #ffffff;
}

.willus-service-detail .wp-header-light .wh-eyebrow {
	color: var(--willus-accent, var(--willus-secondary));
}

.willus-service-detail .wp-header-light .wp-section-title {
	color: #ffffff;
}

.willus-service-detail .wp-header-light .wp-section-sub {
	color: rgba(255, 255, 255, 0.75);
}

.willus-service-detail .wp-components-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.willus-service-detail .wp-comp-card {
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
	display: flex;
	flex-direction: column;
}

.willus-service-detail .wp-comp-card:hover {
	transform: translateY(-5px);
	border-color: rgb(var(--willus-secondary-rgb) / 0.4);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.willus-service-detail .wp-comp-visual {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--willus-primary);
}

.willus-service-detail .wp-comp-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.willus-service-detail .wp-comp-card:hover .wp-comp-img {
	transform: scale(1.05);
}

.willus-service-detail .wp-comp-body {
	padding: 24px;
	flex-grow: 1;
}

.willus-service-detail .wp-comp-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 12px;
}

.willus-service-detail .wp-comp-desc {
	font-size: 0.94rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
}

/* FAQ Accordion */
.willus-service-detail .wp-faq-section {
	padding: clamp(60px, 9vw, 110px) 0;
	background: var(--willus-surface, var(--willus-surface));
}

.willus-service-detail .wp-faq-list {
	width: min(100%, 860px);
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.willus-service-detail .wp-faq-section .willus-container > .wp-section-header {
	width: min(100%, 860px);
	max-width: 860px;
	margin-inline: auto;
	text-align: left;
}

.willus-service-detail .wp-faq-item {
	background: #ffffff;
	border: 1px solid rgb(var(--willus-primary-rgb) / 0.08);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgb(var(--willus-primary-rgb) / 0.03);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.willus-service-detail .wp-faq-item:hover,
.willus-service-detail .wp-faq-item.is-active {
	border-color: rgb(var(--willus-secondary-rgb) / 0.4);
	box-shadow: 0 8px 25px rgb(var(--willus-primary-rgb) / 0.06);
}

.willus-service-detail .wp-faq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 28px;
	background: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	color: var(--willus-navy, var(--willus-primary));
	font-size: 1.12rem;
	font-weight: 600;
	transition: color 0.25s ease;
}

.willus-service-detail .wp-faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgb(var(--willus-primary-rgb) / 0.05);
	flex-shrink: 0;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.willus-service-detail .wp-faq-trigger[aria-expanded="true"] .wp-faq-icon {
	transform: rotate(45deg);
	background: var(--willus-accent, var(--willus-secondary));
	color: #ffffff;
}

.willus-service-detail .wp-faq-icon .willus-icon {
	width: 16px;
	height: 16px;
}

.willus-service-detail .wp-faq-body {
	padding: 0 28px 24px;
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--willus-muted, var(--willus-muted));
	border-top: 1px solid rgb(var(--willus-primary-rgb) / 0.05);
	padding-top: 16px;
}

.willus-service-detail .wp-faq-body p {
	margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
.willus-service-detail .wp-benefits-grid,
	.willus-service-detail .wp-solutions-grid,
	.willus-service-detail .wp-components-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.willus-service-detail .wp-about-grid {
		grid-template-columns: 1fr;
	}
	.willus-service-detail .wp-benefits-grid,
	.willus-service-detail .wp-solutions-grid,
	.willus-service-detail .wp-components-grid {
		grid-template-columns: 1fr;
	}
}

/* Architectural refinement: shared editorial foundation, template-specific composition. */

.willus-premium.willus-service-detail { background:#fff; }
.willus-premium.willus-service-detail .wp-about-section { padding-block:clamp(64px,8vw,110px); }
.willus-premium.willus-service-detail .wp-about-grid { gap:64px; }
.willus-premium.willus-service-detail .wp-visual-frame { border-radius:3px 60px 3px 3px; box-shadow:none; }
.willus-premium.willus-service-detail .wp-benefits-grid { gap:28px; }
.willus-premium.willus-service-detail .wp-benefit-card { background:transparent; border:1px solid var(--willus-line); text-align:left; padding:32px; transition:transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.willus-premium.willus-service-detail .wp-benefit-card:hover { transform:translateY(-6px); border-color:var(--willus-brass); box-shadow:0 16px 45px rgb(var(--willus-primary-rgb) / 0.09); }
.willus-premium.willus-service-detail .wp-benefit-icon { margin-left:0; }
.willus-premium.willus-service-detail .wp-sol-visual { aspect-ratio:4/3; border-radius:0; }
.willus-premium.willus-service-detail .wp-components-section { background:var(--willus-dark); }
.willus-premium.willus-service-detail .wp-comp-card { background:#ffffff06; border-color:#ffffff20; transition:transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.willus-premium.willus-service-detail .wp-comp-card:hover { transform:translateY(-5px); border-color:rgb(var(--willus-secondary-rgb) / 0.4); box-shadow:0 16px 40px rgba(0, 0, 0, 0.3); }
.willus-premium.willus-service-detail .wp-comp-title { color:#fff; }
.willus-premium.willus-service-detail .wp-comp-desc { color:var(--willus-on-dark-muted); }
@media(max-width:800px) { .willus-premium.willus-service-detail .wp-about-grid { gap:32px; } }

/* Shared service section composition. */
.willus-premium.willus-service-detail--sections .wp-hero-actions { margin-bottom:0; }
.willus-premium.willus-service-detail--sections .wp-about-advantages-list { margin:0; padding-left:1.2rem; color:var(--willus-ink); }
.willus-premium.willus-service-detail--sections .wp-about-advantages-list li { padding:.25rem 0; line-height:1.55; }
.willus-premium.willus-service-detail--sections .wp-benefits-section { background:var(--willus-paper); }
.willus-premium.willus-service-detail--sections .wp-benefits-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.willus-premium.willus-service-detail--sections .wp-benefit-card { min-height:190px; padding:24px; background:#fff; border-color:var(--willus-line); }
.willus-premium.willus-service-detail--sections .wp-benefit-icon { width:44px; height:44px; margin-bottom:18px; color:var(--willus-secondary); background:rgb(var(--willus-secondary-rgb) / .10); }
.willus-premium.willus-service-detail--sections .wp-benefit-icon .willus-icon { width:23px; height:23px; }
.willus-premium.willus-service-detail--sections .wp-benefit-title { margin:0; font-size:1.05rem; line-height:1.45; }
.willus-premium.willus-service-detail--sections .wp-benefit-desc { margin-top:10px; }
.willus-premium.willus-service-detail--sections .wp-components-section .wp-section-header { margin-bottom:34px; }
.willus-premium.willus-service-detail--sections .wp-components-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.willus-premium.willus-service-detail--sections .wp-comp-card { min-height:174px; }
.willus-premium.willus-service-detail--sections .wp-comp-body { padding:24px; }
.willus-premium.willus-service-detail--sections .wp-components-section { padding-block:clamp(52px,7vw,80px); }
.willus-premium.willus-service-detail--sections .wp-faq-section .wp-section-header { margin-bottom:32px; }
@media(max-width:700px) {
	.willus-premium.willus-service-detail--sections .wp-benefits-grid,
	.willus-premium.willus-service-detail--sections .wp-components-grid { grid-template-columns:1fr; }
}

/* Optional service sections reuse the service cards, brand colors and accordion. */
.willus-service-detail--sections .ws-section { padding-block:clamp(48px,7vw,90px); background:#fff; }
.willus-service-detail--sections .ws-section--dark { background:var(--willus-primary); color:#fff; }
.willus-service-detail--sections .ws-section--dark .wp-section-title,
.willus-service-detail--sections .ws-section--dark .ws-secondary-title { color:#fff; }
.willus-service-detail--sections .ws-section--dark .wp-section-sub { color:var(--willus-on-dark-muted); }
.willus-service-detail--sections .ws-secondary-title { margin:28px 0 14px; font-size:clamp(1.3rem,2vw,1.65rem); line-height:1.3; }
.willus-service-detail--sections .ws-bullet-list { margin:22px 0 0; padding-left:1.2rem; line-height:1.6; }
.willus-service-detail--sections .ws-bullet-list li { padding-block:5px; }
.willus-service-detail--sections .wp-about-copy .wp-section-header { margin-bottom:0; }
.willus-service-detail--sections .ws-split--text-only { grid-template-columns:1fr; }
.willus-service-detail--sections .ws-card-icon { margin:24px 24px 0; width:48px; height:48px; display:grid; place-items:center; color:var(--willus-secondary); background:rgb(var(--willus-secondary-rgb) / .10); }
.willus-service-detail--sections .ws-card-icon .willus-icon { width:27px; height:27px; }
.willus-service-detail--sections .ws-card--icon .wp-sol-body,
.willus-service-detail--sections .ws-card--icon .wp-comp-body { padding-top:20px; }
.willus-service-detail--sections .ws-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.willus-service-detail--sections .ws-gallery-grid .wp-sol-visual { aspect-ratio:16/10; }
.willus-service-detail--sections .ws-gallery-grid + .ws-points-grid { margin-top:28px; }
.willus-service-detail--sections .wp-faq-section .willus-container { max-width:940px; }
.willus-service-detail--sections .wp-faq-section .wp-section-header,
.willus-service-detail--sections .wp-faq-list { max-width:none; width:100%; margin-inline:0; }
@media (min-width:768px) and (max-width:1023px) {
	.willus-service-detail--sections .wp-benefits-grid,
	.willus-service-detail--sections .wp-components-grid,
	.willus-service-detail--sections .ws-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
	.willus-service-detail--sections .wp-benefits-grid,
	.willus-service-detail--sections .wp-components-grid,
	.willus-service-detail--sections .ws-gallery-grid { grid-template-columns:1fr; }
}

/* Uploaded content icons retain their proportions and sit on the same grid as SVGs. */
.willus-service-detail .ws-custom-icon { display:block; width:28px; height:28px; object-fit:contain; }
.willus-service-detail .wp-benefit-icon .ws-custom-icon { width:28px; height:28px; }
.willus-service-detail .ws-inline-icon { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; flex:0 0 24px; color:var(--willus-secondary); }
.willus-service-detail .ws-inline-icon .willus-icon,
.willus-service-detail .ws-inline-icon .ws-custom-icon { width:21px; height:21px; }
.willus-service-detail--sections .ws-bullet-list:has(.ws-bullet-with-icon) { list-style:none; padding-left:0; }
.willus-service-detail--sections .ws-bullet-with-icon { display:flex; align-items:flex-start; gap:12px; }
.willus-service-detail--sections .ws-bullet-list:has(.ws-bullet-with-icon) li:not(.ws-bullet-with-icon) { margin-left:36px; list-style:disc; }
