/*
Theme Name: Stag Promotions
Text Domain: stag-promotions
*/

/* =========================
   Design tokens (AA-friendly)
   ========================= */

:root{
	/* Typography */
	--font-sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "SF Pro Text",
		"Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

	/* Layout */
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 24px);

	/* Radius */
	--radius: 16px;
	--radius-sm: 12px;

	/* Core colors */
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-2: #f8fafc;
	--text: #101828;   /* very dark for legibility */
	--muted: #475467;  /* accessible muted text */
	--border: rgba(16, 24, 40, 0.14);

	/* Brand / interactive */
	--accent: #19427e;
	--accent-hover: #133462;
	--accent-pressed: #0f2a4f;
	--accent-contrast: #ffffff;

	--link: var(--accent);
	--link-hover: var(--accent-hover);

	/* Focus ring */
	--focus: #f59e0b;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(16,24,40,.06);
	--shadow-md: 0 14px 30px rgba(16,24,40,.10);

	/* Tap targets */
	--tap: 44px;

	/* Fixed CTA safe space (improves mobile content visibility) */
	--band-bottom-cta-safe: 110px;
}

/* =========================
   Foundation / primitives
   ========================= */

*{ box-sizing: border-box; }

html{
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body{
	margin: 0;
	font-family: var(--font-sans);
	letter-spacing: -0.01em;
	color: var(--text);
	background: var(--bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; height: auto; display: block; }

p{ margin: 0 0 16px; }

h1,h2,h3{
	line-height: 1.18;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

h1{ font-size: clamp(32px, 4vw, 48px); }
h2{ font-size: clamp(22px, 2.6vw, 32px); }
h3{ font-size: clamp(18px, 2.2vw, 20px); }

.muted{ color: var(--muted); }

.container{
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section{ padding: 56px 0; }
.section--tight{ padding: 28px 0; }

/* Reduce whitespace on single band pages without changing the rest of the site */
.single-bands .section{ padding: 44px 0; }
@media (max-width: 900px){
	.section{ padding: 36px 0; }
	.section--tight{ padding: 22px 0; }
	.single-bands .section{ padding: 34px 0; }
}

/* =========================
   Mobile safety / resilience
   ========================= */

/* Prevent horizontal scrolling from long strings/URLs */
:where(p, li, a, h1, h2, h3, h4, h5, h6){
	overflow-wrap: anywhere;
	word-break: normal;
}

/* Smooth out iOS tap highlight */
a, button{
	-webkit-tap-highlight-color: transparent;
}

/* Make sure embeds/media never overflow */
:where(video, iframe, svg, canvas){
	max-width: 100%;
}

/* WP tables often overflow on mobile: enable horizontal scrolling */
.site-main .wp-block-table{
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.site-main .wp-block-table table{
	width: max-content;
	min-width: 100%;
	border-collapse: collapse;
}

/* Code blocks */
.site-main pre{
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Sticky header: stop anchor links hiding under it */
:where([id], h1, h2, h3, h4, h5, h6){
	scroll-margin-top: 90px;
}
@media (max-width: 700px){
	:where([id], h1, h2, h3, h4, h5, h6){
		scroll-margin-top: 130px; /* header wraps + nav row */
	}
}

/* Prevent accidental sideways scroll on small screens */
html, body{ overflow-x: clip; }
@supports not (overflow: clip){
	html, body{ overflow-x: hidden; }
}

/* Generic grid helper (NO default columns; templates often set inline columns) */
.grid{
	display: grid;
	gap: clamp(16px, 3.5vw, 28px);
	align-items: start;
}

/* Cards */
.card{
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 18px;
	box-shadow: var(--shadow-sm);
}

/* Reduce “end padding” caused by last paragraph margins (big whitespace win) */
.card > :last-child{ margin-bottom: 0; }

.card--padded{ padding: 22px; }

@media (max-width: 520px){
	.card{ padding: 16px; }
	.card--padded{ padding: 18px; }
}

/* A touch tighter on band pages specifically */
.single-bands .card--padded{ padding: 18px; }

/* =========================
   Links + focus (accessible)
   ========================= */

/* Keep layout/branding areas controlled by their own rules */
a{ color: inherit; }

/* Make content links clearly identifiable (without affecting buttons/cards) */
.site-main a:not(.btn):not(.badge):not(.band-card__image):not(.site-branding__link){
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.site-main a:not(.btn):not(.badge):not(.band-card__image):not(.site-branding__link):hover{
	color: var(--link-hover);
}

/* Focus visible for keyboard users */
:focus{ outline: none; }

:focus-visible{
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
	html{ scroll-behavior: auto; }
	*{ scroll-behavior: auto !important; }
}

/* =========================
   Breadcrumbs + "Back to band" link (legible on dark hero)
   ========================= */

/*
These selectors are intentionally broad to catch common breadcrumb plugins
and typical "back" link markup. They are scoped to the band hero / band pages
so normal body links keep their default styling.
*/

.band-hero .breadcrumbs,
.band-hero .breadcrumb,
.band-hero nav.breadcrumb,
.band-hero .yoast-breadcrumb,
.band-hero .rank-math-breadcrumb,
.band-hero .aioseo-breadcrumbs,
.band-hero .breadcrumb-trail,
.band-hero .breadcrumb-trail .trail-items,
.band-hero .crumbs,
.band-hero .back-to-band,
.band-hero a.back-to-band,
.band-hero .band-back,
.band-hero a.band-back{
	color: rgba(255,255,255,.92);
	font-weight: 700;
}

/* Ensure breadcrumb + hero back links stay white (override .site-main link styling) */
.band-hero .breadcrumbs a,
.band-hero .breadcrumb a,
.band-hero nav.breadcrumb a,
.band-hero .yoast-breadcrumb a,
.band-hero .rank-math-breadcrumb a,
.band-hero .aioseo-breadcrumbs a,
.band-hero .breadcrumb-trail a,
.band-hero .crumbs a,
.band-hero a.back-to-band,
.band-hero a.band-back,
.band-hero .band-hero__breadcrumb a,
.band-hero a.band-hero__back{
	color: rgba(255,255,255,.95) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(255,255,255,.35);
	padding-bottom: 1px;
}

.band-hero .breadcrumbs a:hover,
.band-hero .breadcrumb a:hover,
.band-hero nav.breadcrumb a:hover,
.band-hero .yoast-breadcrumb a:hover,
.band-hero .rank-math-breadcrumb a:hover,
.band-hero .aioseo-breadcrumbs a:hover,
.band-hero .breadcrumb-trail a:hover,
.band-hero .crumbs a:hover,
.band-hero a.back-to-band:hover,
.band-hero a.band-back:hover,
.band-hero .band-hero__breadcrumb a:hover,
.band-hero a.band-hero__back:hover{
	color: #ffffff !important;
	border-bottom-color: rgba(255,255,255,.65);
}

.band-hero .breadcrumbs a:focus-visible,
.band-hero .breadcrumb a:focus-visible,
.band-hero nav.breadcrumb a:focus-visible,
.band-hero .yoast-breadcrumb a:focus-visible,
.band-hero .rank-math-breadcrumb a:focus-visible,
.band-hero .aioseo-breadcrumbs a:focus-visible,
.band-hero .breadcrumb-trail a:focus-visible,
.band-hero .crumbs a:focus-visible,
.band-hero a.back-to-band:focus-visible,
.band-hero a.band-back:focus-visible,
.band-hero .band-hero__breadcrumb a:focus-visible,
.band-hero a.band-hero__back:focus-visible{
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-bottom-color: transparent;
}


/* =========================
   Buttons (contrast + touch)
   ========================= */

.btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	min-height: var(--tap);
	padding: 12px 16px;

	border-radius: 999px;
	border: 1px solid var(--border);
	background: transparent;

	text-decoration: none;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;

	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
	will-change: transform;
}

.btn--primary{
	background: var(--accent);
	color: var(--accent-contrast);
	border-color: var(--accent);
}

.btn--outline{
	background: transparent;
	color: var(--accent);
	border-color: rgba(25,66,126,.35);
}

.btn--small{
	min-height: 38px;
	padding: 10px 12px;
	font-size: 0.95rem;
}

.btn--large{
	min-height: 52px;
	padding: 14px 18px;
	font-size: 1.05rem;
}

@media (hover:hover){
	.btn:hover{
		transform: translateY(-1px);
		box-shadow: var(--shadow-md);
	}

	.btn--primary:hover{
		background: var(--accent-hover);
		border-color: var(--accent-hover);
		color: var(--accent-contrast);
	}

	.btn--outline:hover{
		background: rgba(25,66,126,.06);
		border-color: rgba(25,66,126,.55);
		color: var(--accent-hover);
	}
}

/* Pressed */
.btn:active{
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.btn--primary:active{
	background: var(--accent-pressed);
	border-color: var(--accent-pressed);
}

/* Inverted (for dark hero) */
.btn--inverted{
	border-color: rgba(255,255,255,.55);
	color: #ffffff;
}

@media (hover:hover){
	.btn--inverted:hover{
		border-color: rgba(255,255,255,.75);
		background: rgba(255,255,255,.08);
		color: #ffffff;
	}
}

/* =========================
   Badge
   ========================= */

.badge{
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	font-weight: 800;
	font-size: 0.9rem;
	background: var(--surface);
	color: var(--text);
}

.badge--inverted{
	background: rgba(255,255,255,.10);
	border-color: rgba(255,255,255,.28);
	color: #ffffff;
	backdrop-filter: blur(8px);
}

/* =========================
   Key facts list (generic)
   ========================= */

.meta-list{
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.meta-list li{
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.meta-list strong{ color: var(--muted); font-weight: 800; }
.meta-list span{ color: var(--text); }

@media (max-width: 520px){
	.meta-list li{ grid-template-columns: 1fr; }
}

/* =========================
   Video embed wrapper
   ========================= */

.embed{
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: #000;
}

.embed iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Accessible helper */
.screen-reader-text{
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Subtle entrance motion (no JS) */
@media (prefers-reduced-motion: no-preference){
	.site-header,
	.site-footer,
	.site-main,
	.band{
		animation: softIn .35s ease both;
	}
	@keyframes softIn{
		from{ opacity: 0; transform: translateY(6px); }
		to{ opacity: 1; transform: translateY(0); }
	}
}

/* =========================
   Header (Sticky)
   ========================= */

.site-header{
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #050505;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner{
	max-width: var(--container);
	margin: 0 auto;
	padding: 10px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

/* Logo / Branding */
.site-branding__link{
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #fff;
}

.site-branding img,
.site-branding .custom-logo{
	display: block;
	width: auto;
	height: auto;
	max-width: 160px;
	max-height: 48px;
}

/* =========================
   Hardcoded Nav
   ========================= */

.site-nav{ margin-left: auto; }

.site-nav__list{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 22px;
}

.site-nav__item{ margin: 0; padding: 0; }

.site-nav__item a{
	color: #fff;
	text-decoration: none;
	font-weight: 650;
	font-size: 15px;
	line-height: 1;
	padding: 10px 0; /* improves tap height */
}

.site-nav__item a:hover,
.site-nav__item a:focus-visible{
	color: #e7e7e7;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* =========================
   Mobile header/nav
   ========================= */

@media (max-width: 700px){
	.site-header__inner{ flex-wrap: wrap; }
	.site-nav{ width: 100%; }

	/* Avoid awkward wrapping: allow horizontal scroll */
	.site-nav__list{
		gap: 14px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
		scrollbar-width: none;
	}
	.site-nav__list::-webkit-scrollbar{ display: none; }
}

/* =========================
   Footer (contrast-safe)
   ========================= */

.site-footer{
	background: #050505;
	color: #e5e7eb;
	padding: 64px var(--gutter) 0;
	border-top: 1px solid rgba(255,255,255,0.10);
}

.site-footer__inner{
	max-width: var(--container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1fr 1.35fr;
	gap: 32px;
	padding-bottom: 40px;
}

/* Brand */
.site-footer__brand{
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer__logo{
	display: inline-flex;
	align-items: center;
	width: fit-content;
}

.site-footer__logo img{
	max-width: 180px;
	height: auto;
	display: block;
}

.site-footer__tagline{
	margin: 0;
	line-height: 1.65;
	color: rgba(229,231,235,.80);
	max-width: 440px;
}

/* Social */
.site-footer__social{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.site-footer__social a{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.18);
	color: #e5e7eb;
	text-decoration: none;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible{
	transform: translateY(-1px);
	border-color: rgba(255,255,255,0.34);
	background: rgba(255,255,255,0.06);
}

.site-footer__social svg{
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* CTA */
.site-footer__cta{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.20);
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	width: fit-content;
}

.site-footer__cta:hover,
.site-footer__cta:focus-visible{
	background: rgba(255,255,255,0.08);
}

/* Columns */
.site-footer__heading{
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.01em;
}

.site-footer__list{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__list a{
	color: rgba(229,231,235,.88);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.4;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible{
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Contact */
.site-footer__contact-list{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: rgba(229,231,235,.78);
}

.site-footer__contact-list li{
	display: flex;
	gap: 10px;
	align-items: baseline;
}

.site-footer__contact-list a{
	color: rgba(229,231,235,.88);
	text-decoration: none;
}

.site-footer__contact-list a:hover,
.site-footer__contact-list a:focus-visible{
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__divider{
	height: 1px;
	background: rgba(255,255,255,0.12);
	margin: 18px 0;
}

/* Newsletter */
.site-footer__newsletter{
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__newsletter-label{
	font-size: 0.9rem;
	color: #ffffff;
	font-weight: 800;
}

.site-footer__newsletter-row{
	display: flex;
	gap: 10px;
}

.site-footer__newsletter input{
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.22);
	background: rgba(255,255,255,0.06);
	color: #ffffff;
}

.site-footer__newsletter input::placeholder{
	color: rgba(229,231,235,0.70);
}

.site-footer__newsletter button{
	min-height: 42px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.22);
	background: rgba(255,255,255,0.10);
	color: #ffffff;
	font-weight: 800;
	cursor: pointer;
}

.site-footer__newsletter button:hover,
.site-footer__newsletter button:focus-visible{
	background: rgba(255,255,255,0.16);
}

.site-footer__newsletter-note{
	margin: 0;
	font-size: 0.85rem;
	color: rgba(229,231,235,.78);
}

/* Bottom bar */
.site-footer__bottom{
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px 0 26px;
	border-top: 1px solid rgba(255,255,255,0.10);
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.site-footer__copy{
	margin: 0;
	font-size: 0.92rem;
	color: rgba(229,231,235,.78);
}

.site-footer__legal{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.site-footer__legal a{
	font-size: 0.92rem;
	color: rgba(229,231,235,.78);
	text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible{
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =========================
   Responsive (pro layout)
   ========================= */

/* Medium screens: 3 columns */
@media (max-width: 1100px){
	.site-footer__inner{
		grid-template-columns: 1.5fr 1fr 1fr;
	}
}

/* Tablet: 2 columns, left-aligned; Brand + Contact span full width */
@media (max-width: 900px){
	.site-footer{
		padding-top: 56px;
	}

	.site-footer__inner{
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
		text-align: left; /* key change */
		padding-bottom: 32px;
	}

	.site-footer__brand{
		grid-column: 1 / -1;
		padding-bottom: 18px;
		border-bottom: 1px solid rgba(255,255,255,0.10);
	}

	.site-footer__contact{
		grid-column: 1 / -1;
		padding-top: 18px;
		border-top: 1px solid rgba(255,255,255,0.10);
	}

	.site-footer__logo{ margin: 0; }
	.site-footer__tagline{ margin: 0; }

	.site-footer__social{ justify-content: flex-start; }
	.site-footer__cta{ margin: 0; }

	.site-footer__list,
	.site-footer__contact-list{
		align-items: flex-start;
	}

	.site-footer__contact-list li{
		justify-content: flex-start;
	}

	.site-footer__newsletter-row{
		flex-direction: row;
	}

	.site-footer__bottom{
		justify-content: space-between;
		text-align: left;
	}

	.site-footer__legal{
		justify-content: flex-end;
	}
}

/* Mobile: 1 column, comfortable line length, CTA + inputs full width */
@media (max-width: 640px){
	.site-footer__inner,
	.site-footer__bottom{
		max-width: 560px;
		margin-left: auto;
		margin-right: auto;
	}

	.site-footer__inner{
		grid-template-columns: 1fr;
		gap: 22px;
		text-align: left;
	}

	.site-footer__brand{
		border-bottom: 0;
		padding-bottom: 0;
	}

	.site-footer__contact{
		border-top: 0;
		padding-top: 0;
	}

	.site-footer__cta{
		width: 100%;
	}

	.site-footer__newsletter-row{
		flex-direction: column;
	}

	.site-footer__newsletter button{
		width: 100%;
	}

	.site-footer__bottom{
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.site-footer__legal{
		width: 100%;
		justify-content: flex-start;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 16px;
	}
}

/* Very small: legal links to 1 column */
@media (max-width: 380px){
	.site-footer__legal{
		grid-template-columns: 1fr;
	}
}


/* =========================
   Hero (shared)
   ========================= */

.band-hero{
	position: relative;
	background: #0f0f0f; /* fallback if no image */
	color: #ffffff;
}

.band-hero--image{
	background-size: cover;
	background-position: center;
}

.band-hero__overlay{
	padding: 56px 0 34px;
	background:
		linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.72) 100%);
}

/* Tighter hero on band pages */
.single-bands .band-hero__overlay{ padding: 44px 0 26px; }

@media (max-width: 520px){
	.band-hero__overlay{ padding: 42px 0 26px; }
	.single-bands .band-hero__overlay{ padding: 38px 0 22px; }
}

.band-hero__breadcrumb{
	margin: 0 0 12px;
	font-size: 0.95rem;
}

.band-hero__title{
	letter-spacing: -0.03em;
	margin-bottom: 10px;
}

.band-hero__badges{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 12px;
}

.band-hero__tagline{
	margin: 0 0 16px;
	max-width: 68ch;
	color: rgba(255,255,255,.90);
}

.band-hero__cta{
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

@media (max-width: 520px){
	.band-hero__cta .btn{ width: 100%; }
}

/* =========================
   Band single (premium)
   ========================= */

.band-top__grid{
	grid-template-columns: 1.2fr .8fr;
	gap: 20px; /* tighter than default grid gap */
}

@media (max-width: 900px){
	.band-top__grid{ grid-template-columns: 1fr; }
}

.band-top__main{
	display: grid;
	gap: 16px;
	height: 100%;
}

.band-top__main > .card{
	height: 100%;
}

.band-top__lead{
	max-width: 68ch;
	margin-bottom: 12px;
}

.band-top__actions{
	margin-top: 12px;
}

/* Smart bottom CTA banner (fixed to viewport) */
.band-bottom-cta{
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 2147483000; /* above most theme elements */
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
	background: linear-gradient(180deg, rgba(17,24,39,.72) 0%, rgba(17,24,39,.92) 35%, rgba(17,24,39,.96) 100%);
	border-top: 1px solid rgba(255,255,255,.10);
	box-shadow: 0 -18px 50px rgba(0,0,0,.28);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	transform: translateY(120%);
	opacity: 0;
	pointer-events: none;
	transition: transform .18s ease, opacity .18s ease;
}

.band-bottom-cta.is-active{
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.band-bottom-cta__inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.band-bottom-cta__meta{
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.band-bottom-cta__thumb{
	width: 44px;
	height: 44px;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,.18);
	background-size: cover;
	background-position: center;
	box-shadow: 0 10px 24px rgba(0,0,0,.25);
	flex: 0 0 auto;
}

.band-bottom-cta__text{
	display: grid;
	gap: 2px;
	min-width: 0;
}

.band-bottom-cta__name{
	color: #fff;
	font-weight: 900;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.band-bottom-cta__sub{
	color: rgba(255,255,255,.78);
	font-size: .95rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.band-bottom-cta__actions{
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.band-bottom-cta__btn{
	/* conversion-first feel without changing global .btn */
	padding-left: 18px;
	padding-right: 18px;
	box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.band-bottom-cta__close{
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18);
	background: rgba(255,255,255,.10);
	color: #fff;
	font-size: 26px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}

.band-bottom-cta__close:focus-visible{
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

@media (max-width: 700px){
	.band-bottom-cta__inner{
		flex-direction: column;
		align-items: stretch;
	}

	.band-bottom-cta__actions{
		width: 100%;
	}

	.band-bottom-cta__btn{
		width: 100%;
		justify-content: center;
	}

	.band-bottom-cta__close{
		display: none;
	}

	.band-bottom-cta__sub{
		white-space: normal;
	}
}

/* Ensure content isn't hidden behind the banner when active
   FIX: apply spacing to .site-main, NOT body (prevents scrolling past footer) */
:root{ --band-bottom-cta-safe: 96px; }

body.has-band-bottom-cta{
	padding-bottom: 0 !important; /* defensive: avoid extra scroll space */
}

body.has-band-bottom-cta .site-main{
	padding-bottom: calc(var(--band-bottom-cta-safe) + env(safe-area-inset-bottom));
}

@media (max-width: 700px){
	:root{ --band-bottom-cta-safe: 160px; }
}

/* row spacing */
.band-media-row{ margin-top: 14px; }

/* NEW: stacked media row (audio then photos, single column) */
.band-media-stack{
	margin-top: 14px;
	display: grid;
	gap: 16px;
}

/* NEW: centered audio */
.band-listen--center{
	text-align: center;
}

.band-listen--center .band-listen__inner{
	max-width: 760px;
	margin: 0 auto;
}

/* NEW: photo grid (no scrolling). Show max 5 on desktop, fewer on smaller screens. */
.band-gallery{
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, 1fr);
}

.band-gallery__link{
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: #e5e7eb;
	transition: transform .18s ease, box-shadow .18s ease;
	position: relative;
}

.band-gallery__link:focus-visible{
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

@media (hover:hover){
	.band-gallery__link:hover{
		transform: translateY(-1px);
		box-shadow: var(--shadow-md);
	}
}

.band-gallery__img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Desktop: show max 5 */
.band-gallery__link:nth-child(n+6){
	display: none;
}

/* Tablet: show max 3 */
@media (max-width: 900px){
	.band-gallery{
		grid-template-columns: repeat(3, 1fr);
	}
	.band-gallery__link:nth-child(n+4){
		display: none;
	}
}

/* Small screens: show max 2 */
@media (max-width: 520px){
	.band-gallery{
		grid-template-columns: repeat(2, 1fr);
	}
	.band-gallery__link:nth-child(n+3){
		display: none;
	}
}

.band-photos__actions{
	margin-top: 12px;
	display: flex;
	justify-content: center;
}

/* NEW: media row uses the same column grid as top row, keep cards neat */
.band-media__main{
	display: grid;
	gap: 16px;
	height: 100%;
}

.band-media__aside{
	display: grid;
	gap: 16px;
	align-content: start;
	height: 100%;
}

/* Listen + Photos split (legacy - still here, but not used by new markup) */
.band-media-split{
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px){
	.band-media-split{ grid-template-columns: 1fr 1fr; }
}

/* Premium styling for WP audio playlist (scoped to band pages) */
.band-listen .wp-playlist{
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 0;
}

.band .wp-playlist .wp-playlist-current-item{
	margin: 0 0 10px;
	font-weight: 900;
	letter-spacing: -0.01em;
	color: var(--text);
}

.band .wp-playlist .mejs-container{
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
	margin-bottom: 10px;
}

.band .wp-playlist .wp-playlist-tracks{
	margin: 0;
	padding: 10px 0 0;
	border-top: 1px solid var(--border);
	max-height: 220px;
	overflow: auto;
}

.band .wp-playlist .wp-playlist-item{
	padding: 10px 10px;
	border-radius: 12px;
	margin: 6px 0;
}

.band .wp-playlist .wp-playlist-item:hover{
	background: rgba(16,24,40,.04);
}

.band .wp-playlist .wp-playlist-playing{
	background: rgba(16,24,40,.06);
}

/* Right column spacing control */
.band-top__aside{
	display: grid;
	gap: 16px;
	align-content: stretch;
	height: 100%;
}

/* Facts card (justified + fills column height) */
.band-top__aside .band-facts{
	height: 100%;
	display: flex;
	flex-direction: column;
}

.band-facts .meta-list{
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	justify-content: space-between; /* removes “blank bottom” by distributing */
}

.band-facts .meta-list li{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.band-facts .meta-list li:first-child{
	padding-top: 0;
}

.band-facts .meta-list li:last-child{
	border-bottom: 0;
	padding-bottom: 0;
}

.band-facts .meta-list strong{
	font-weight: 800;
}

.band-facts .meta-list span{
	text-align: right;
	font-weight: 800;
}

/* Redesigned Lightbox */
.band-lightbox[hidden]{ display: none; }

.band-lightbox{
	position: fixed;
	inset: 0;
	z-index: 2147483500;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.band-lightbox__overlay{
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.86);
}

.band-lightbox__dialog{
	position: relative;
	width: min(1100px, 96vw);
	height: min(86vh, 760px);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(0,0,0,.45);
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.band-lightbox__figure{
	margin: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.band-lightbox__img{
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	background: #000;
}

.band-lightbox__caption{
	position: absolute;
	left: 12px;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.10);
	border: 1px solid rgba(255,255,255,.16);
	color: rgba(255,255,255,.92);
	font-weight: 800;
}

.band-lightbox__close{
	position: absolute;
	top: 10px;
	right: 12px;
	width: 44px;
	height: 44px;
	line-height: 42px;
	text-align: center;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 26px;
	border: 1px solid rgba(255,255,255,.18);
	cursor: pointer;
	z-index: 2;
}

.band-lightbox__close:focus-visible{
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.band-lightbox__nav{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.18);
	color: #fff;
	font-size: 30px;
	line-height: 46px;
	text-align: center;
	cursor: pointer;
	z-index: 2;
}

.band-lightbox__prev{ left: 12px; }
.band-lightbox__next{ right: 12px; }

@media (hover:hover){
	.band-lightbox__nav:hover,
	.band-lightbox__close:hover{
		background: rgba(255,255,255,.18);
	}
}

/* Stop body scroll when modal open (JS toggles this class) */
body.has-lightbox{ overflow: hidden; }

/* CTA Bars */
.band-cta-bar{
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 14px;
	margin-bottom: 18px;
}

.band-cta-bar--bottom{
	margin-top: 18px;
	margin-bottom: 0;
}

.band-cta-bar__inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

@media (max-width: 700px){
	.band-cta-bar__inner{
		flex-direction: column;
		align-items: stretch;
	}
	.band-cta-bar__inner .btn{ width: 100%; }
}

/* Full-width sections below */
.band-sections .container{
	display: grid;
	gap: 18px;
}

/* Ensure sections don’t end with “empty space” from WP content */
.band-section > :last-child{ margin-bottom: 0; }

/* Setlist grid */
.band-setlist-grid{
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.band-setlist-col{
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.band-setlist-col li{
	position: relative;
	padding-left: 16px;
}

.band-setlist-col li::before{
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	color: rgba(16,24,40,.45);
}

@media (min-width: 800px){
	.band-setlist-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px){
	.band-setlist-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Testimonials / Reviews (best-practice trust styling) */
.band-stars{
	display: inline-flex;
	gap: 3px;
	vertical-align: middle;
}

.band-star{
	width: 16px;
	height: 16px;
	fill: #f59e0b;
}

.band-reviews__summary{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: rgba(16,24,40,.03);
}

.band-reviews__summary-left{
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.band-reviews__stars{
	display: flex;
	align-items: center;
}

.band-reviews__score{
	display: flex;
	align-items: baseline;
	gap: 6px;
	white-space: nowrap;
}

.band-reviews__score-num{
	font-weight: 900;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.band-reviews__score-out{
	color: rgba(16,24,40,.60);
	font-weight: 800;
}

.band-reviews__summary-right{
	display: grid;
	gap: 2px;
	text-align: right;
}

.band-reviews__count{
	font-weight: 900;
}

.band-reviews__trust{
	color: rgba(16,24,40,.60);
	font-weight: 800;
	font-size: .95rem;
}

.band-reviews__schema{ display: none; }

@media (max-width: 700px){
	.band-reviews__summary{
		flex-direction: column;
		align-items: flex-start;
	}
	.band-reviews__summary-right{
		text-align: left;
	}
}

.band-reviews__list{
	display: grid;
	gap: 14px;
}

.band-review{
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
	transition: transform .18s ease, box-shadow .18s ease;
}

@media (hover:hover){
	.band-review:hover{
		transform: translateY(-1px);
		box-shadow: var(--shadow-md);
	}
}

.band-review__top{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.band-review__stars{
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.band-review__quote{
	margin: 0;
}

.band-review__quote p{
	margin: 0;
	color: var(--text);
}

.band-review__byline{
	margin-top: 10px;
	color: rgba(16,24,40,.68);
	font-weight: 900;
}

.band-review__byline-label{
	margin-right: 6px;
	opacity: .8;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
	.band-review,
	.band-gallery__link,
	.band-bottom-cta,
	.band-lightbox__nav{
		transition: none !important;
		transform: none !important;
	}
}


/* =========================
   Booking Layout
   ========================= */

.booking-layout{
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 28px;
	align-items: start;
}

@media (max-width: 900px){
	.booking-layout{ grid-template-columns: 1fr; }
}

/* =========================
   Booking Form (contrast + usability)
   ========================= */

.booking-form{ max-width: 100%; }

.booking-group{ margin-bottom: 28px; }

.booking-group h2{
	margin: 0 0 14px;
	letter-spacing: -0.02em;
}

.booking-help{
	margin: -6px 0 14px;
	color: var(--muted);
	max-width: 60ch;
}

.booking-form label{
	display: grid;
	gap: 8px;
	font-weight: 800;
	margin-bottom: 14px;
}

.booking-form input,
.booking-form select,
.booking-form textarea{
	min-height: var(--tap);
	padding: 12px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-weight: 650;
	box-shadow: inset 0 1px 0 rgba(16,24,40,.02);
}

.booking-form textarea{
	min-height: 120px;
	resize: vertical;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder{
	color: rgba(71,84,103,0.78);
}

.booking-form input:focus-visible,
.booking-form select:focus-visible,
.booking-form textarea:focus-visible{
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.booking-disclaimer{
	margin: 10px 0 18px;
	color: var(--muted);
	font-size: .98rem;
}

/* iOS Safari: avoid focus zoom on form fields */
@media (max-width: 700px){
	input, select, textarea, button{
		font-size: 16px;
	}
}

/* Add-ons */
.booking-addon{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	cursor: pointer;
	margin-bottom: 10px;
}

.booking-addon input{
	width: 18px;
	height: 18px;
	margin-right: 10px;
	accent-color: var(--accent);
}

.addon-price{
	font-weight: 900;
	white-space: nowrap;
	color: var(--text);
}

/* Summary Sidebar */
.booking-summary{
	position: sticky;
	top: 28px;
}

@media (max-width: 900px){
	.booking-summary{
		position: static;
		top: auto;
	}
}

.booking-summary h3{ margin: 0 0 14px; }

.summary-list{
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

.summary-list li{
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.summary-note{
	color: var(--muted);
	font-size: .98rem;
}

/* =========================
   Bands Archive
   ========================= */

.bands-archive__hero{
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	padding: 64px 0 42px;
}

.bands-archive__hero h1{
	margin-bottom: 10px;
	letter-spacing: -0.03em;
}

.bands-archive__intro{
	max-width: 68ch;
	color: var(--muted);
	font-size: 1.05rem;
}

/* =========================
   Filters
   ========================= */

.bands-filters{ padding-top: 0; }

.bands-filters__form{
	display: grid;
	gap: 18px;
}

.bands-filters__grid{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.bands-filters label{
	display: grid;
	gap: 8px;
	font-weight: 800;
	color: var(--text);
}

.bands-filters select{
	min-height: var(--tap);
	padding: 12px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-weight: 650;
}

.bands-filters select:focus-visible{
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.bands-filters__actions{
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 900px){
	.bands-filters__grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px){
	.bands-filters__grid{ grid-template-columns: 1fr; }
	.bands-filters__actions .btn{ width: 100%; }
}

/* =========================
   Bands Grid
   ========================= */

.bands-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 1000px){
	.bands-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
	.bands-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Band Card
   ========================= */

.band-card{
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease;
}

/* Modern: responsive height without fixed pixels */
.band-card__image{
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: #e5e7eb;
	border-bottom: 1px solid var(--border);
}

/* Fallback for older browsers that don't support aspect-ratio (keeps your original behaviour) */
@supports not (aspect-ratio: 1 / 1){
	.band-card__image{ height: 220px; }
	@media (max-width: 600px){
		.band-card__image{ height: 200px; }
	}
}

.band-card__content{
	padding: 18px;
	display: grid;
	gap: 10px;
}

.band-card__title{
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.band-card__title a{
	color: var(--text);
	text-decoration: none;
}

.band-card__tagline{
	margin: 0;
	color: var(--muted);
}

.band-card__genres{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.band-card__footer{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
}

.band-card__price{
	font-weight: 900;
	letter-spacing: -0.01em;
	color: var(--text);
}

@media (hover:hover){
	.band-card:hover{
		transform: translateY(-2px);
		box-shadow: 0 20px 40px rgba(16,24,40,.12);
	}
}

/* Mobile: footer stack for clarity/tap targets */
@media (max-width: 520px){
	.band-card__footer{
		flex-direction: column;
		align-items: stretch;
	}
	.band-card__footer .btn{ width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
	.band-card{ transition: none !important; transform: none !important; }
}

/* =========================
   Home template mobile fixes
   ========================= */

/*
Home template currently sets 3-column grids via inline style:
  style="grid-template-columns:repeat(3,1fr);"
Inline styles override CSS, so on mobile we force a single column with !important.
WP typically adds body classes like:
  .page-template-page-home, .page-template-page-home-php
*/

@media (max-width: 900px){
	.page-template-page-home .site-main .grid,
	.page-template-page-home-php .site-main .grid{
		grid-template-columns: 1fr !important;
	}
}

/* =========================
   Template inline-grid responsiveness (global fix)
   ========================= */

/*
Many templates set columns inline, e.g.:
  <div class="grid" style="grid-template-columns:repeat(3,1fr);">
Inline styles override your stylesheet, so on smaller screens we must override
grid-template-columns with !important.

This targets ONLY grids that have an inline grid-template-columns set,
so your normal component/layout grids (e.g. band-top__grid) are untouched.
*/

/* Tablet-ish: 3-up becomes 2-up, 4-up becomes 2-up, etc. */
@media (max-width: 900px){
	.site-main .grid[style*="grid-template-columns"]{
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Mobile: stack everything */
@media (max-width: 600px){
	.site-main .grid[style*="grid-template-columns"]{
		grid-template-columns: 1fr !important;
	}
}
