/* Styles for the plugin's Elementor widgets. Theme tokens (var(--color-*)) come from the theme. */

.cta-box {
	padding: 3rem 2rem;
	background: var(--color-surface, #f3f4f6);
	border-radius: var(--radius-lg, 16px);
	color: var(--color-text, #1f2937);
}

.cta-box--center {
	text-align: center;
}

.cta-box--left {
	text-align: left;
}

.cta-box__heading {
	margin: 0 0 0.75rem;
}

.cta-box__text {
	max-width: 60ch;
	margin: 0 0 1.5rem;
}

.cta-box--center .cta-box__text {
	margin-inline: auto;
}

/* Fallback button styling when the theme does not provide .button */
.cta-box__button:not(.button) {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: var(--color-accent, #2563eb);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
}

/* ------------------------------------------------------------------------- */
/* Hero slider                                                               */
/* ------------------------------------------------------------------------- */

.hero-slider {
	--hero-min-height: 70vh;
	--hero-overlay-start: rgba(11, 37, 69, 0.92);
	--hero-overlay-end: rgba(11, 37, 69, 0.55);
	--hero-heading-color: #fff;
	--hero-accent-color: var(--color-accent, #d97706);
	--hero-text-color: #d1d5db;
	--hero-content-width: 760px;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--color-primary, #0b2545);
	color: var(--hero-text-color);
}

.hero-slider__slide {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--hero-min-height);
	height: auto;
	overflow: hidden;
}

.hero-slider__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-slider__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--hero-overlay-start) 40%, var(--hero-overlay-end) 100%);
}

.hero-slider__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Slow zoom on the photo of the active slide. */
.hero-slider--zoom .swiper-slide-active .hero-slider__image {
	animation: hero-slider-zoom 9s ease-out forwards;
}

@keyframes hero-slider-zoom {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

.hero-slider__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--container-width, 1200px);
	margin: 0 auto;
	padding: 120px 24px;
	box-sizing: border-box;
}

.hero-slider__content {
	max-width: var(--hero-content-width);
}

.hero-slider__eyebrow {
	margin: 0 0 16px;
	font-family: var(--font-body, inherit);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--hero-accent-color);
}

.hero-slider__heading {
	margin: 0 0 16px;
	font-size: 56px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--hero-heading-color);
}

.hero-slider__subheading {
	margin: 0 0 20px;
	font-family: var(--font-heading, inherit);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hero-accent-color);
}

.hero-slider__text {
	font-size: 18px;
	line-height: 1.6;
	color: var(--hero-text-color);
}

.hero-slider__text p {
	margin: 0 0 1em;
}

.hero-slider__text p:last-child {
	margin-bottom: 0;
}

.hero-slider__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}

/* Buttons: .button comes from the theme; the outline variant is adapted for a dark photo. */
.hero-slider__button--outline,
.hero-slider__button--outline:visited {
	color: #fff;
	background: transparent;
	border-color: #fff;
}

.hero-slider__button--outline:hover,
.hero-slider__button--outline:focus {
	color: var(--color-primary, #0b2545);
	background: #fff;
	border-color: #fff;
}

/* Text of the active slide rises in, one line after another. */
.hero-slider__content > * {
	opacity: 0;
}

.swiper-slide-active .hero-slider__content > * {
	animation: hero-slider-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.swiper-slide-active .hero-slider__content > :nth-child(2) { animation-delay: 0.1s; }
.swiper-slide-active .hero-slider__content > :nth-child(3) { animation-delay: 0.2s; }
.swiper-slide-active .hero-slider__content > :nth-child(4) { animation-delay: 0.3s; }
.swiper-slide-active .hero-slider__content > :nth-child(5) { animation-delay: 0.4s; }

@keyframes hero-slider-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Before Swiper runs (and if JS fails) show the first slide's text. */
.hero-slider:not(.hero-slider--ready) .hero-slider__slide:first-child .hero-slider__content > * {
	opacity: 1;
}

/* Arrows */
.hero-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.hero-slider__arrow svg {
	width: 24px;
	height: 24px;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
	background: var(--color-accent, #d97706);
	border-color: var(--color-accent, #d97706);
	color: #fff;
}

.hero-slider__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hero-slider__arrow--prev {
	left: 24px;
}

.hero-slider__arrow--next {
	right: 24px;
}

.hero-slider__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

/* Dots */
.hero-slider__dots.swiper-pagination {
	position: absolute;
	bottom: 28px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.hero-slider__dots .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 0;
	border-radius: 50%;
	opacity: 0.4;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-slider__dots .swiper-pagination-bullet-active {
	background: var(--color-accent, #d97706);
	opacity: 1;
	transform: scale(1.2);
}

.hero-slider__dots .swiper-pagination-bullet:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	opacity: 1;
}

@media (max-width: 1024px) {
	.hero-slider__heading {
		font-size: 44px;
	}
}

@media (max-width: 767px) {
	.hero-slider {
		--hero-min-height: 0px;
	}

	.hero-slider__inner {
		padding: 72px 20px 88px;
	}

	.hero-slider__heading {
		font-size: 36px;
	}

	.hero-slider__subheading {
		font-size: 20px;
	}

	.hero-slider__text {
		font-size: 16px;
	}

	.hero-slider__actions {
		flex-direction: column;
		align-items: stretch;
	}

	/* Arrows move to the bottom corners so they never sit on top of the text. */
	.hero-slider__arrow {
		top: auto;
		bottom: 16px;
		width: 44px;
		height: 44px;
		transform: none;
	}

	.hero-slider__arrow--prev {
		left: 16px;
	}

	.hero-slider__arrow--next {
		right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slider--zoom .swiper-slide-active .hero-slider__image,
	.swiper-slide-active .hero-slider__content > * {
		animation: none;
	}

	.hero-slider__content > * {
		opacity: 1;
	}
}

