/* ==========================================================================
   Homepage — Hero, This Week tabs, Now Booking, About section
   Barbican-inspired: bold typography, generous spacing, dark hero
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--color-bg-dark);
}

@media (min-width: 768px) {
	.hero {
		min-height: 80vh;
	}
}

/* Background image slider */
.hero__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	will-change: opacity, transform;
}

.hero__slide--active {
	opacity: 1;
}

/* Very subtle Ken Burns on the active slide — movement you have to look
   for reads more expensive than movement that's obviously moving. Respects
   reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
	.hero__slide {
		transition: opacity 2.2s ease;
		transform: scale(1.02);
	}
	.hero__slide--active {
		animation: hero-kenburns 20s ease-out forwards;
	}
	@keyframes hero-kenburns {
		from { transform: scale(1.02); }
		to   { transform: scale(1.08); }
	}
}

/* Dark overlay for text readability */
.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.4) 0%,
		rgba(0, 0, 0, 0.2) 40%,
		rgba(0, 0, 0, 0.5) 100%
	);
}

/* Content */
.hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: var(--color-bg);
	padding: var(--space-3xl) var(--container-padding);
}

.hero__title {
	font-family: var(--font-heading);
	font-size: var(--text-4xl);
	font-weight: var(--weight-extrabold);
	line-height: 1.1;
	color: var(--color-bg);
	margin-bottom: var(--space-md);
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.hero__title {
		font-size: var(--text-5xl);
	}
}

@media (min-width: 1024px) {
	.hero__title {
		font-size: 4.5rem;
	}
}

.hero__title-accent {
	display: block;
	color: var(--color-accent);
}

.hero__cta {
	font-size: var(--text-lg);
}

/* Subtle scroll indicator */
.hero::after {
	content: '';
	position: absolute;
	bottom: var(--space-xl);
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: 40px;
	background: rgba(255, 255, 255, 0.4);
	z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
	.hero::after {
		animation: hero-scroll-hint 2s ease-in-out infinite;
	}

	@keyframes hero-scroll-hint {
		0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleY(1); }
		50% { opacity: 0.8; transform: translateX(-50%) scaleY(1.3); }
	}
}

/* --------------------------------------------------------------------------
   2. THIS WEEK — Tabbed section
   -------------------------------------------------------------------------- */

.this-week {
	padding-top: var(--space-3xl);
	padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
	.this-week {
		padding-top: var(--space-4xl);
		padding-bottom: var(--space-4xl);
	}
}

/* Tab list */
.this-week__tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--color-border);
	margin-bottom: var(--space-2xl);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.this-week__tabs::-webkit-scrollbar {
	display: none;
}

.this-week__tab {
	flex-shrink: 0;
	padding: var(--space-md) var(--space-lg);
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--color-text-muted);
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	white-space: nowrap;
	transition: color var(--transition-base), border-color var(--transition-base);
}

@media (min-width: 768px) {
	.this-week__tab {
		font-size: var(--text-xl);
		padding: var(--space-md) var(--space-xl);
	}
}

.this-week__tab:hover {
	color: var(--color-dark);
}

.this-week__tab--active,
.this-week__tab[aria-selected="true"] {
	color: var(--color-dark);
	border-bottom-color: var(--color-primary);
}

.this-week__tab:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: -3px;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Tab panels */
.this-week__panel[hidden] {
	display: none;
}

.this-week__empty {
	text-align: center;
	color: var(--color-text-muted);
	font-size: var(--text-lg);
	padding: var(--space-3xl) 0;
}

/* Visit promo cards inside Plan Your Visit tab */
.visit-promo__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
}

@media (min-width: 768px) {
	.visit-promo__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.visit-promo__card {
	background-color: var(--color-bg-soft);
	border-radius: var(--radius-md);
	padding: var(--space-xl);
	border: 1px solid var(--color-border);
}

.visit-promo__title {
	font-size: var(--text-xl);
	margin-bottom: var(--space-sm);
}

.visit-promo__card p {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   3. NOW BOOKING — Featured events
   -------------------------------------------------------------------------- */

.now-booking__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--space-2xl);
}

.now-booking__title {
	font-size: var(--text-3xl);
}

@media (min-width: 768px) {
	.now-booking__title {
		font-size: var(--text-4xl);
	}
}

.now-booking__cta {
	margin-top: var(--space-2xl);
	text-align: center;
}

/* --------------------------------------------------------------------------
   4. ABOUT SECTION
   -------------------------------------------------------------------------- */

.about-home__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
	align-items: center;
}

@media (min-width: 768px) {
	.about-home__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-3xl);
	}
}

.about-home__heading {
	font-size: var(--text-3xl);
	margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
	.about-home__heading {
		font-size: var(--text-4xl);
	}
}

.about-home__lead {
	font-size: var(--text-lg);
	font-weight: var(--weight-medium);
	color: var(--color-dark);
	line-height: var(--leading-relaxed);
	margin-bottom: var(--space-md);
}

.about-home__content p {
	color: var(--color-text-muted);
	margin-bottom: var(--space-lg);
}

.about-home__cta {
	margin-top: var(--space-sm);
}

/* About image */
.about-home__img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	object-fit: cover;
}

/* Image placeholder — fallback when no image is available */
.about-home__image-placeholder {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.about-home__image-text {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	color: rgba(255, 255, 255, 0.15);
	text-align: center;
	padding: var(--space-xl);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
