/**
 * Hero section — full viewport, sermon/video style, matches mockup.
 *
 * @package GraceTheme
 */

.hero,
.gt-hero {
	position: relative;
	height: 100vh;
	min-height: 700px;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	overflow: hidden;
}

.gt-has-infobar .hero,
.gt-has-infobar .gt-hero {
	height: calc(100vh - 36px);
}

/* Subpage heroes (non-home): 600–750px height, full width, 16:9-friendly. Home hero unchanged. */
.gt-hero-subpage {
	width: 100%;
	max-width: none;
	height: min(75vh, 750px);
	min-height: 600px;
	max-height: 750px;
	margin-left: 0;
	margin-right: 0;
	border-radius: 0;
}

.gt-hero-subpage .hero-video-bg,
.gt-hero-subpage .gt-hero-bg,
.gt-hero-subpage .hero-overlay,
.gt-hero-subpage .gt-hero-overlay {
	border-radius: 0;
}

/* Mobile: compact (e.g. 360×200) so content stays visible without excessive scrolling */
@media (max-width: 768px) {
	.gt-hero-subpage {
		height: min(50vh, 320px);
		min-height: 200px;
		max-height: 320px;
	}
}

@media (max-width: 480px) {
	.gt-hero-subpage {
		min-height: 200px;
		max-height: 280px;
	}
}

.hero-video-bg,
.gt-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #2C1810 0%, #4A2C1A 40%, #1a0f08 100%);
	overflow: hidden;
}

.hero-video-bg::before,
.gt-hero-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 60% 40%, rgba(193, 105, 79, 0.18) 0%, transparent 70%),
		radial-gradient(ellipse 50% 80% at 20% 80%, rgba(155, 132, 74, 0.12) 0%, transparent 60%);
}

.hero-video-frame,
.gt-hero-play-bg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.25;
}

.hero-video-frame svg,
.gt-hero-play-bg svg {
	width: 120px;
	height: 120px;
	color: var(--terracotta-light);
}

.hero-video-bg::after,
.gt-hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
	opacity: 0.4;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.hero-overlay,
.gt-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(44, 24, 16, 0.95) 0%, rgba(44, 24, 16, 0.4) 50%, rgba(44, 24, 16, 0.1) 100%);
}

.hero-content,
.gt-hero-content {
	position: relative;
	z-index: 2;
	padding: 0 48px 80px;
	max-width: 900px;
	text-align: left;
	animation: fadeUp 1s ease both;
}

.hero-label,
.gt-hero-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--terracotta-light);
	margin-bottom: 20px;
}

.hero-label::before,
.gt-hero-label::before {
	content: '';
	width: 32px;
	height: 1px;
	background: var(--terracotta-light);
}

.hero-title,
.gt-hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.8rem, 6vw, 5rem);
	font-weight: 800;
	line-height: 1.05;
	color: var(--cream);
	margin-bottom: 8px;
}

.hero-title em,
.gt-hero-title em {
	font-style: italic;
	color: var(--terracotta-light);
}

.hero-series,
.gt-hero-series {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(253, 250, 246, 0.55);
	letter-spacing: 0.05em;
	margin-bottom: 28px;
}

.hero-series span,
.gt-hero-series span {
	color: var(--gold-light);
	font-weight: 600;
}

.hero-actions,
.gt-hero-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.btn-primary,
.gt-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--terracotta);
	color: var(--cream);
	padding: 16px 32px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
	border: none;
	cursor: pointer;
}

.btn-primary:hover,
.gt-btn-primary:hover {
	background: var(--terracotta-dark);
	transform: translateY(-1px);
	color: var(--cream);
}

.btn-primary svg,
.gt-btn-primary svg {
	width: 16px;
	height: 16px;
}

.btn-ghost,
.gt-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(253, 250, 246, 0.8);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	border-bottom: 1px solid rgba(253, 250, 246, 0.3);
	padding-bottom: 2px;
	transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover,
.gt-btn-ghost:hover {
	color: var(--cream);
	border-color: var(--cream);
}

.hero-play-indicator,
.gt-hero-play-indicator {
	position: absolute;
	bottom: 80px;
	right: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	z-index: 2;
}

.play-ring,
.gt-play-ring {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1.5px solid rgba(193, 105, 79, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s;
	animation: pulse 2.5s ease-in-out infinite;
}

.play-ring:hover,
.gt-play-ring:hover {
	border-color: var(--terracotta-light);
}

.play-ring svg,
.gt-play-ring svg {
	width: 22px;
	height: 22px;
	fill: var(--cream);
	margin-left: 3px;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.06);
		opacity: 0.8;
	}
}

/* ── Hero sermon / series image ── */
.hero-sermon-image,
.hero-series-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.hero-video-bg.hero-sermon-has-image::before,
.hero-video-bg.hero-series-has-image::before {
	opacity: 0.6;
}

/* ── Hero static image ── */
.hero-static-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.hero-video-bg.hero-static-has-image::before {
	opacity: 0.5;
}

/* ── Hero carousel ── */
.hero-carousel-bg,
.gt-hero-carousel-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

.hero-carousel-slide,
.gt-hero-carousel-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	z-index: 0;
}

.hero-carousel-slide.is-active,
.gt-hero-carousel-slide.is-active {
	opacity: 1;
	z-index: 1;
}

.hero-carousel-fallback {
	background: linear-gradient(135deg, #2C1810 0%, #4A2C1A 40%, #1a0f08 100%);
	opacity: 1;
}

.hero-carousel-fallback::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 60% 40%, rgba(193, 105, 79, 0.18) 0%, transparent 70%),
		radial-gradient(ellipse 50% 80% at 20% 80%, rgba(155, 132, 74, 0.12) 0%, transparent 60%);
}

.hero-carousel-dots,
.gt-hero-carousel-dots {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 2;
}

.hero-carousel-dot,
.gt-hero-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(253, 250, 246, 0.5);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, border-color 0.2s;
}

.hero-carousel-dot:hover,
.gt-hero-carousel-dot:hover {
	border-color: var(--terracotta-light);
}

.hero-carousel-dot.is-active,
.gt-hero-carousel-dot.is-active {
	background: var(--terracotta-light);
	border-color: var(--terracotta-light);
}
