/**
 * Service page template styles
 */

/* General service hero (not the home page hero) – dark background + slogan */
.service-hero {
	min-height: 40vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	padding: 48px 0;
}

.service-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	width: 100%;
}

.service-hero-content {
	width: 100%;
}

.service-hero-slogan {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	color: #f4a025;
}

.service-hero-slogan-line {
	display: block;
}

/* Hero with video: two columns, slogan left, player right */
.service-hero--with-video .service-hero-content {
	display: flex;
	align-items: center;
	gap: 48px;
	flex-wrap: wrap;
}

.service-hero--with-video .service-hero-text {
	flex: 1 1 280px;
	min-width: 0;
}

.service-hero--with-video .service-hero-video {
	flex: 0 0 auto;
	min-width: 280px;
	width: 100%;
	max-width: 480px;
}

/* Clickable thumbnail: opens video in lightbox */
.service-hero-video-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s, box-shadow 0.2s;
}

.service-hero-video-trigger:hover {
	transform: scale(1.02);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

.service-hero-video-trigger:focus {
	outline: 2px solid #f4a025;
	outline-offset: 2px;
}

.service-hero-video-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
	display: block;
}

.service-hero-video-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.service-hero-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	transition: background 0.2s;
}

.service-hero-video-trigger:hover .service-hero-video-play {
	background: rgba(0, 0, 0, 0.25);
}

.service-hero-video-play i {
	font-size: 4rem;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
	transition: transform 0.2s;
}

.service-hero-video-trigger:hover .service-hero-video-play i {
	transform: scale(1.1);
}

/* Lightbox */
.service-hero-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.service-hero-lightbox[hidden] {
	display: none !important;
}

.service-hero-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	cursor: pointer;
}

.service-hero-lightbox-inner {
	position: relative;
	width: 100%;
	max-width: 900px;
	z-index: 1;
}

.service-hero-lightbox-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	z-index: 2;
	transition: background 0.2s, color 0.2s;
}

.service-hero-lightbox-close:hover {
	background: #fff;
	color: #0e2b5c;
}

.service-hero-lightbox-close:focus {
	outline: 2px solid #f4a025;
	outline-offset: 2px;
}

.service-hero-lightbox-video {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
	aspect-ratio: 16 / 9;
	background: #000;
}

.service-hero-lightbox-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

@media (max-width: 768px) {
	.service-hero {
		min-height: 32vh;
		padding: 32px 0;
	}

	.service-hero--with-video .service-hero-content {
		flex-direction: column;
		gap: 24px;
	}

	.service-hero--with-video .service-hero-video {
		width: 100%;
	}

	.service-hero-video-wrap {
		max-width: 100%;
	}
}

.service-template {
	padding: 0 0 64px;
	background-color: #fff;
}

.service-content-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.service-content-main {
	flex: 1 1 0;
	min-width: 0;
	background-color: #fff;
	padding: 48px 32px 48px 0;
}

/* Right sidebar: featured image + services list */
.service-sidebar {
	flex: 0 0 320px;
	background-color: #f4a025;
	padding: 24px;
}

.service-sidebar-image {
	margin-bottom: 24px;
	overflow: hidden;
}

.service-sidebar-image img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}

.service-sidebar-nav {
	margin: 0;
}

.service-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.service-sidebar-list li {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-sidebar-list li:last-child {
	border-bottom: none;
}

.service-sidebar-list a {
	display: block;
	padding: 12px 0;
	color: #0e2b5c;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9375rem;
}

.service-sidebar-list a::before {
	content: ">";
	display: inline-block;
	margin-right: 8px;
	color: #0e2b5c;
}

.service-sidebar-list a:hover {
	text-decoration: underline;
}

.service-sidebar-list a.current-service {
	background-color: #0e2b5c;
	color: #fff;
	margin: 0 -24px;
	padding: 12px 24px;
}

.service-sidebar-list a.current-service::before,
.service-sidebar-list .current-menu-item > a::before {
	color: #fff;
}
.service-sidebar-list .current-menu-item > a {
	background-color: #0e2b5c;
	color: #fff;
	margin: 0 -24px;
	padding: 12px 24px;
}

.service-template .entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.service-template .entry-content p {
	margin-bottom: 1.25em;
}

.service-template .entry-content h2 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 1.5rem;
	color: #0e2b5c;
}

.service-template .entry-content h3 {
	margin-top: 1.25em;
	margin-bottom: 0.4em;
	font-size: 1.25rem;
	color: #333;
}

.service-template .entry-content ul,
.service-template .entry-content ol {
	margin-bottom: 1.25em;
	padding-left: 1.5em;
}

.service-template .entry-content a {
	color: #f4a025;
	text-decoration: none;
}

.service-template .entry-content a:hover {
	text-decoration: underline;
}

@media (max-width: 992px) {
	.service-content-wrapper {
		flex-direction: column;
	}
	.service-content-main {
		padding: 32px 0 24px;
	}
	.service-sidebar {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.service-template {
		padding: 32px 0 48px;
	}
}
