/* SWC Hero Slider — frontend
   Brand: Sheffield Wellness Clinic (teal + gold) */

.swc-hero {
	--swc-primary: #0d9488;
	--swc-primary-hover: #0f766e;
	--swc-accent: #fcc824;
	--swc-overlay: 0.6;
	--swc-height: 100svh;

	position: relative;
	width: 100%;
	height: var(--swc-height);
	min-height: 480px;
	overflow: hidden;
	background: #042f2e;
	font-family: inherit;
}

.swc-hero__track,
.swc-hero__slide {
	position: absolute;
	inset: 0;
}

.swc-hero__slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s ease;
	z-index: 1;
}

.swc-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.swc-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1);
}

.swc-hero__slide.is-active .swc-hero__bg {
	animation: swc-kenburns 9s ease-out forwards;
}

@keyframes swc-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.07); }
}

.swc-hero .swc-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg,
			rgba(4, 47, 46, calc(var(--swc-overlay) + 0.25)) 0%,
			rgba(4, 47, 46, var(--swc-overlay)) 45%,
			rgba(4, 47, 46, calc(var(--swc-overlay) * 0.45)) 100%);
}

.swc-hero__inner {
	position: relative;
	z-index: 3;
	height: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
}

.swc-hero__content {
	max-width: 620px;
	color: #fff;
}

.swc-hero__slide.is-active .swc-hero__content {
	animation: swc-rise 0.8s ease 0.15s both;
}

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

.swc-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--swc-accent);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.swc-hero__eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: var(--swc-accent);
}

.swc-hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(2.1rem, 5vw, 3.8rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.swc-hero__text {
	margin: 0 0 32px;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.65;
	max-width: 540px;
}

.swc-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.swc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 32px;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
	cursor: pointer;
}

.swc-btn:active {
	transform: scale(0.98);
}

.swc-btn--primary {
	background: var(--swc-primary);
	color: #fff !important;
	border: 2px solid var(--swc-primary);
}

.swc-btn--primary:hover,
.swc-btn--primary:focus {
	background: var(--swc-primary-hover);
	border-color: var(--swc-primary-hover);
	color: #fff !important;
	text-decoration: none;
}

.swc-btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(4px);
}

.swc-btn--ghost:hover,
.swc-btn--ghost:focus {
	background: rgba(255, 255, 255, 0.18);
	border-color: #fff;
	color: #fff !important;
	text-decoration: none;
}

/* Restore controls hidden by the inline critical CSS until this file loads */
.swc-hero .swc-hero__arrow,
.swc-hero .swc-hero__dots {
	opacity: 1;
}

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

.swc-hero__arrow svg {
	width: 22px;
	height: 22px;
}

.swc-hero__arrow:hover {
	background: var(--swc-primary);
	border-color: var(--swc-primary);
}

.swc-hero__arrow--prev { left: 22px; }
.swc-hero__arrow--next { right: 22px; }

/* Dots */
.swc-hero__dots {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	gap: 10px;
}

.swc-hero__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background-color 0.25s ease, width 0.25s ease;
}

.swc-hero__dot.is-active {
	width: 34px;
	background: var(--swc-accent);
}

/* Tablet & mobile: move arrows to the bottom corners so they
   never overlap the heading, text, or CTAs. */
@media (max-width: 1024px) {
	.swc-hero .swc-hero__arrow {
		top: auto;
		bottom: 20px;
		transform: none;
		width: 44px;
		height: 44px;
	}

	.swc-hero .swc-hero__arrow--prev { left: 20px; }
	.swc-hero .swc-hero__arrow--next { right: 20px; }

	.swc-hero .swc-hero__arrow svg {
		width: 18px;
		height: 18px;
	}

	/* Keep content clear of the bottom controls (arrows + dots). */
	.swc-hero__inner {
		padding-bottom: 96px;
	}

	.swc-hero__dots {
		bottom: 34px;
	}
}

/* Mobile */
@media (max-width: 782px) {
	.swc-hero__inner {
		padding-left: 20px;
		padding-right: 20px;
		text-align: left;
	}

	.swc-btn {
		padding: 13px 24px;
		font-size: 0.95rem;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.swc-hero__slide,
	.swc-hero__slide.is-active .swc-hero__bg,
	.swc-hero__slide.is-active .swc-hero__content {
		animation: none !important;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}
}
