/* Hero Full Width Block */
.hero-full-width {
	position: relative;
	width: 100%;
	margin: 0;
	padding: clamp(160px, 20vw, 320px) clamp(20px, 6vw, 120px);
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	background: var(--Main-Green, #395935);
	color: #fff;
	overflow: hidden;
	min-height: 80vh;
}

/* Hide decorative lines (cross pattern) from .lines-section */
.lines-section .hero-full-width,
.hero-full-width {
	isolation: isolate;
}

/* Use :has() for modern browsers */
.lines-section:has(.hero-full-width)::before,
.lines-section:has(.hero-full-width)::after {
	display: none !important;
}

/* Fallback: hide lines when hero-full-width is direct child */
.lines-section > .hero-full-width ~ *::before,
.lines-section > .hero-full-width ~ *::after {
	display: none !important;
}

/* Ensure no pseudo-elements leak through */
.hero-full-width::before,
.hero-full-width::after {
	display: none !important;
}

/* Force hide any stray close buttons or decorative elements */
.hero-full-width .contact-modal__close {
	display: none !important;
}

/* Background Image */
.hero-full-width__bg {
	position: absolute;
	inset: 0;
	background-image: var(--hero-fw-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

/* Overlay for opacity control */
.hero-full-width__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, var(--hero-fw-overlay-opacity, 0.5));
	z-index: 1;
}

/* Inner container */
.hero-full-width__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--Container-container-large, 1280px);
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Text content - centered on desktop */
.hero-full-width__text {
	display: flex;
	width: min(960px, 100%);
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 36px;
}

/* Heading */
.hero-full-width__heading {
	color: #fff;
	font-family: 'Teachers', 'Inter', system-ui, sans-serif;
	font-size: clamp(48px, 8vw, 112px);
	font-weight: 700;
	line-height: 90%;
	letter-spacing: -1.28px;
	text-transform: none;
}

/* Meta / Location */
.hero-full-width__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.hero-full-width__location {
	color: rgba(255, 255, 255, 0.9);
	font-family: Inter, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	letter-spacing: -0.18px;
	line-height: 90%;
	text-transform: uppercase;
}

/* Tag wrapper */
.hero-full-width__tag-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hero-full-width__tag {
	display: inline-block;
	color: rgba(255, 255, 255, 0.9);
	font-family: Inter, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 90%;
	text-transform: uppercase;
	letter-spacing: -0.18px;
	padding: 0;
	background: transparent;
	border: none;
}

/* Countdown */
.hero-full-width__countdown {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: Inter, system-ui, sans-serif;
	animation: hero-fw-countdown-fade-in 0.6s ease;
}

@keyframes hero-fw-countdown-fade-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-full-width__countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.hero-full-width__countdown-number {
	display: block;
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
}

.hero-full-width__countdown-number--animate {
	animation: hero-fw-countdown-flip 0.4s ease;
}

@keyframes hero-fw-countdown-flip {
	0% {
		transform: scale(1) rotateX(0deg);
		opacity: 1;
	}
	50% {
		transform: scale(1.1) rotateX(90deg);
		opacity: 0.5;
	}
	100% {
		transform: scale(1) rotateX(0deg);
		opacity: 1;
	}
}

.hero-full-width__countdown-label {
	display: block;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hero-full-width__countdown-separator {
	display: block;
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	padding-bottom: 8px;
}

/* CTAs */
.hero-full-width__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.hero-full-width__ctas .site-header__btn {
	text-transform: uppercase;
	font-size: 18px;
	height: 44px;
	padding: 8px 20px;
	display: inline-flex;
}

/* Secondary CTA - white text */
.hero-full-width__ctas .site-header__btn--secondary {
	color: #fff;
	border-color: #fff;
}

.hero-full-width__ctas .site-header__btn--secondary:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.hero-full-width .is-mobile-only {
	display: none;
}

.hero-full-width .is-desktop-only {
	display: inline-flex;
}

/* Animation */
@keyframes hero-fw-intro {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

html.has-scroll-animations .hero-full-width {
	opacity: 0;
	transform: translateY(32px);
	animation: hero-fw-intro 0.7s ease 0.1s forwards;
}

/* Mobile Styles - left-aligned like main-hero */
@media (max-width: 720px) {
	.hero-full-width {
		padding: clamp(80px, 15vw, 160px) clamp(20px, 6vw, 120px);
		min-height: 60vh;
	}

	.hero-full-width__inner {
		justify-content: flex-start;
	}

	.hero-full-width__text {
		align-items: flex-start;
		text-align: left;
	}

	.hero-full-width__meta {
		justify-content: flex-start;
	}

	.hero-full-width__tag-wrapper {
		align-items: flex-start;
		gap: 12px;
	}

	.hero-full-width__tag {
		font-size: 18px;
		letter-spacing: -0.18px;
	}

	.hero-full-width__countdown {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 6px;
	}

	.hero-full-width__countdown-number {
		font-size: 24px;
	}

	.hero-full-width__countdown-label {
		font-size: 10px;
	}

	.hero-full-width__countdown-separator {
		font-size: 24px;
		padding-bottom: 6px;
	}

	.hero-full-width__ctas {
		justify-content: flex-start;
	}

	.hero-full-width .is-mobile-only {
		display: inline-flex;
	}

	.hero-full-width .is-desktop-only {
		display: none;
	}
}

/* CTA visibility rules */
@media (min-width: 721px) {
	.hero-full-width__ctas [data-show-desktop="0"] {
		display: none !important;
	}
	.hero-full-width__ctas [data-show-desktop="1"] {
		display: inline-flex;
	}
}

@media (max-width: 720px) {
	.hero-full-width__ctas [data-show-mobile="0"] {
		display: none !important;
	}
	.hero-full-width__ctas [data-show-mobile="1"] {
		display: inline-flex;
	}
}
