/**
 * Section Hero Widget — Preset Styles
 *
 * Presets: classic | editorial | banner | gradient | split
 *
 * @package TAMUK_Foundation
 * @since   1.0.0
 */

/* =============================================================
   BASE
   ============================================================= */

.tamuk-section-hero {
	position: relative;
	background-color: var(--tamuk-blue, #003399);
	padding: var(--space-16, 4rem) var(--space-8, 2rem);
	overflow: hidden;
}

.tamuk-section-hero--has-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Overlay */
.tamuk-section-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--tamuk-blue, #003399);
	opacity: 0.85;
}

/* Content */
.tamuk-section-hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--container-xl, 1280px);
	margin: 0 auto;
	text-align: center;
}

/* Eyebrow */
.tamuk-section-hero__eyebrow {
	display: inline-block;
	font-family: var(--font-body, 'Source Sans 3', sans-serif);
	font-size: var(--text-xs, 0.8125rem);
	font-weight: var(--weight-bold, 700);
	text-transform: uppercase;
	letter-spacing: var(--tracking-widest, 0.1em);
	color: var(--tamuk-gold, #FCC10F);
	margin-bottom: var(--space-3, 0.75rem);
	/* Entrance */
	opacity: 0;
	animation: tamuk-sh-fade-up 0.5s ease 0.2s forwards;
}

/* Heading */
.tamuk-section-hero__heading {
	font-family: var(--font-heading, 'Cinzel', serif);
	font-weight: var(--weight-bold, 700);
	font-size: var(--text-4xl, 3rem);
	color: var(--tamuk-white, #fff);
	letter-spacing: var(--tracking-wider, 0.04em);
	line-height: var(--leading-tight, 1.2);
	margin: 0 0 var(--space-4, 1rem);
	position: relative;
	display: inline-block;
	padding-bottom: var(--space-4, 1rem);
	/* Entrance */
	opacity: 0;
	animation: tamuk-sh-fade-up 0.6s ease 0.3s forwards;
}

.tamuk-section-hero__heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 4rem;
	height: 3px;
	background: var(--tamuk-gold, #FCC10F);
	border-radius: 9999px;
}

/* Description */
.tamuk-section-hero__desc {
	font-family: var(--font-body, 'Source Sans 3', sans-serif);
	font-weight: var(--weight-regular, 400);
	font-size: var(--text-base, 1.0625rem);
	color: var(--tamuk-blue-lightest, #e6edf7);
	line-height: var(--leading-relaxed, 1.75);
	max-width: 750px;
	margin: var(--space-6, 1.5rem) auto 0;
	/* Entrance */
	opacity: 0;
	animation: tamuk-sh-fade-up 0.6s ease 0.5s forwards;
}

.tamuk-section-hero__desc p {
	margin: 0 0 var(--space-4, 1rem);
}

.tamuk-section-hero__desc p:last-child {
	margin-bottom: 0;
}

/* Entrance keyframe */
@keyframes tamuk-sh-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.tamuk-section-hero__eyebrow,
	.tamuk-section-hero__heading,
	.tamuk-section-hero__desc {
		opacity: 1;
		transform: none;
		animation: none;
	}
}


/* =============================================================
   PRESET: Classic — Centered, gold underline (default)
   ============================================================= */

.tamuk-section-hero--classic {
	border-bottom: var(--border-width-4, 4px) solid var(--tamuk-gold, #FCC10F);
}


/* =============================================================
   PRESET: Editorial — Left-aligned, large heading
   ============================================================= */

.tamuk-section-hero--editorial {
	border-bottom: none;
	padding: var(--space-20, 5rem) var(--space-8, 2rem) var(--space-16, 4rem);
}

.tamuk-section-hero--editorial .tamuk-section-hero__content {
	text-align: left;
	max-width: var(--container-xl, 1280px);
}

.tamuk-section-hero--editorial .tamuk-section-hero__eyebrow {
	display: block;
}

.tamuk-section-hero--editorial .tamuk-section-hero__heading {
	font-size: clamp(2.25rem, 5vw, 4rem);
	display: block;
	max-width: 700px;
}

.tamuk-section-hero--editorial .tamuk-section-hero__heading::after {
	left: 0;
	transform: none;
	width: 50px;
}

.tamuk-section-hero--editorial .tamuk-section-hero__desc {
	margin-left: 0;
	margin-right: auto;
	max-width: 580px;
}

/* Subtle gold left border accent */
.tamuk-section-hero--editorial::after {
	content: '';
	position: absolute;
	top: 20%;
	bottom: 20%;
	left: 0;
	width: 4px;
	background: var(--tamuk-gold, #FCC10F);
	z-index: 1;
}


/* =============================================================
   PRESET: Banner — Compact, breadcrumb-style
   ============================================================= */

.tamuk-section-hero--banner {
	padding: var(--space-8, 2rem) var(--space-8, 2rem);
	border-bottom: 3px solid var(--tamuk-gold, #FCC10F);
}

.tamuk-section-hero--banner .tamuk-section-hero__content {
	text-align: left;
	display: flex;
	align-items: center;
	gap: var(--space-6, 1.5rem);
}

.tamuk-section-hero--banner .tamuk-section-hero__eyebrow {
	margin-bottom: 0;
	flex-shrink: 0;
}

.tamuk-section-hero--banner .tamuk-section-hero__heading {
	font-size: var(--text-2xl, 1.875rem);
	padding-bottom: 0;
	margin: 0;
	animation-delay: 0.15s;
}

.tamuk-section-hero--banner .tamuk-section-hero__heading::after {
	content: none;
}

.tamuk-section-hero--banner .tamuk-section-hero__desc {
	font-size: var(--text-sm, 0.9375rem);
	margin: 0;
	max-width: none;
	flex: 1;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	padding-left: var(--space-6, 1.5rem);
	animation-delay: 0.25s;
}


/* =============================================================
   PRESET: Gradient — Blue-to-dark, no image needed
   ============================================================= */

.tamuk-section-hero--gradient {
	background: linear-gradient(135deg, var(--tamuk-blue, #003399) 0%, #001040 50%, #000a24 100%);
	border-bottom: none;
	padding: var(--space-20, 5rem) var(--space-8, 2rem);
}

/* Subtle radial glow */
.tamuk-section-hero--gradient::before {
	content: '';
	position: absolute;
	top: -20%;
	right: -10%;
	width: 60%;
	height: 140%;
	background: radial-gradient(ellipse at center, rgba(252, 193, 15, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.tamuk-section-hero--gradient .tamuk-section-hero__heading {
	font-size: clamp(2rem, 4.5vw, 3.5rem);
}

/* Decorative dots pattern */
.tamuk-section-hero--gradient::after {
	content: '';
	position: absolute;
	bottom: var(--space-6, 1.5rem);
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--tamuk-gold, #FCC10F), transparent);
	border-radius: 2px;
	z-index: 1;
}


/* =============================================================
   PRESET: Split — Text left, image right
   ============================================================= */

.tamuk-section-hero--split {
	display: flex;
	align-items: stretch;
	padding: 0;
	border-bottom: none;
	min-height: 340px;
}

.tamuk-section-hero--split .tamuk-section-hero__overlay {
	display: none;
}

.tamuk-section-hero--split .tamuk-section-hero__content {
	flex: 1;
	text-align: left;
	padding: var(--space-16, 4rem) var(--space-10, 2.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: none;
}

.tamuk-section-hero--split .tamuk-section-hero__heading {
	font-size: clamp(1.875rem, 4vw, 3rem);
	display: block;
}

.tamuk-section-hero--split .tamuk-section-hero__heading::after {
	left: 0;
	transform: none;
	width: 50px;
}

.tamuk-section-hero--split .tamuk-section-hero__desc {
	margin-left: 0;
	max-width: 520px;
}

.tamuk-section-hero__split-image {
	flex: 0 0 45%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* Entrance */
	opacity: 0;
	animation: tamuk-sh-image-enter 0.7s ease 0.3s forwards;
}

@keyframes tamuk-sh-image-enter {
	from { opacity: 0; transform: translateX(20px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* Gold accent between text and image */
.tamuk-section-hero--split .tamuk-section-hero__content::after {
	content: '';
	position: absolute;
	top: 15%;
	bottom: 15%;
	right: 0;
	width: 3px;
	background: var(--tamuk-gold, #FCC10F);
}

@media (prefers-reduced-motion: reduce) {
	.tamuk-section-hero__split-image {
		opacity: 1;
		transform: none;
		animation: none;
	}
}


/* =============================================================
   PRESET: Stacked — Image above, content below

   Image displayed as a visible element (not background).
   Content sits in a solid blue area below with a gradient
   blending up into the bottom of the image.
   ============================================================= */

.tamuk-section-hero--stacked {
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--tamuk-blue, #003399);
	background-image: none;
}

.tamuk-section-hero__stacked-image {
	position: relative;
	width: 100%;
	max-width: 1400px;
	height: 380px;
	overflow: hidden;
}

.tamuk-section-hero__stacked-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* object-position set via inline style from widget control */
}

/* Gradient fade at the bottom of the image into the blue content */
.tamuk-section-hero__stacked-fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100px;
	background: linear-gradient(
		to bottom,
		rgba(0, 51, 153, 0) 0%,
		rgba(0, 51, 153, 0.4) 40%,
		rgba(0, 51, 153, 0.8) 70%,
		var(--tamuk-blue, #003399) 100%
	);
	pointer-events: none;
}

.tamuk-section-hero--stacked .tamuk-section-hero__overlay {
	display: none;
}

.tamuk-section-hero--stacked .tamuk-section-hero__content {
	text-align: center;
	padding: 2rem 2rem 3rem;
}

.tamuk-section-hero--stacked .tamuk-section-hero__eyebrow {
	display: block;
	margin-bottom: var(--space-2, 0.5rem);
}

.tamuk-section-hero--stacked .tamuk-section-hero__heading {
	animation-delay: 0.3s;
}

.tamuk-section-hero--stacked .tamuk-section-hero__desc {
	animation-delay: 0.5s;
}

/* Scroll indicator */
.tamuk-section-hero__scroll-hint {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding-bottom: 1.5rem;
	color: var(--tamuk-gold, #FCC10F);
	opacity: 0.7;
	transition: opacity 0.2s;
}

.tamuk-section-hero__scroll-hint:hover {
	opacity: 1;
}

.tamuk-section-hero__scroll-text {
	font-family: var(--font-body, 'Source Sans 3', sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.tamuk-section-hero__scroll-hint svg {
	animation: tamuk-sh-bounce 2s ease-in-out infinite;
}

@keyframes tamuk-sh-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(4px); }
}

@media (max-width: 768px) {
	.tamuk-section-hero__stacked-image {
		height: 260px;
	}

	.tamuk-section-hero--stacked .tamuk-section-hero__content {
		padding: 1.5rem 1.5rem 2.5rem;
	}

	.tamuk-section-hero__scroll-hint {
		padding-bottom: 1rem;
	}
}


/* =============================================================
   RESPONSIVE — 768px
   ============================================================= */

@media (max-width: 768px) {
	.tamuk-section-hero {
		padding: var(--space-10, 2.5rem) var(--space-6, 1.5rem);
	}

	.tamuk-section-hero__heading {
		font-size: var(--text-3xl, 2.25rem);
	}

	/* Editorial */
	.tamuk-section-hero--editorial {
		padding: var(--space-12, 3rem) var(--space-6, 1.5rem);
	}

	.tamuk-section-hero--editorial::after {
		display: none;
	}

	/* Banner: stack */
	.tamuk-section-hero--banner .tamuk-section-hero__content {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-3, 0.75rem);
	}

	.tamuk-section-hero--banner .tamuk-section-hero__desc {
		border-left: none;
		padding-left: 0;
	}

	/* Split: stack */
	.tamuk-section-hero--split {
		flex-direction: column;
	}

	.tamuk-section-hero--split .tamuk-section-hero__content {
		padding: var(--space-10, 2.5rem) var(--space-6, 1.5rem);
	}

	.tamuk-section-hero--split .tamuk-section-hero__content::after {
		display: none;
	}

	.tamuk-section-hero__split-image {
		flex: none;
		height: 220px;
	}
}


/* =============================================================
   RESPONSIVE — 480px
   ============================================================= */

@media (max-width: 480px) {
	.tamuk-section-hero {
		padding: var(--space-8, 2rem) var(--space-4, 1rem);
	}

	.tamuk-section-hero__heading {
		font-size: var(--text-2xl, 1.875rem);
	}

	.tamuk-section-hero__desc {
		font-size: var(--text-sm, 0.9375rem);
	}

	.tamuk-section-hero--gradient {
		padding: var(--space-12, 3rem) var(--space-4, 1rem);
	}
}
