/*
 * Gallery page hero — US-GAL-01
 *
 * Full-bleed dark band: the image-kit photo sits behind a tinted gradient, and
 * the content is an asymmetric 60/40 split (copy | photo strip), per DESIGN.md.
 * Desktop: 60/40 two column, 2x2 tile grid · Tablet (<=1024px): single column
 * with the strip below the copy, tiles in a 4-up row · Mobile (<=640px):
 * stacked, full-width buttons, 2-up tiles.
 *
 * Every colour / type / spacing value comes from assets/css/design-tokens.css.
 */

/*
 * The site header and nav are styled globally in style.css (.amber-header /
 * .amber-nav). This stylesheet must NOT restyle #masthead or body — an ID
 * selector beats those classes and a bare `body` rule drops the theme's own
 * page background, which would make the header and page look different on the
 * Gallery page than on every other page. Everything below is scoped to this
 * page's own containers.
 */

/* ---------- page shell ---------- */
.amber-gallery-page {
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

/* ---------- hero band ---------- */
.amber-hero-gal {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 64vh;
	padding: var(--space-section) 0;
	overflow: hidden;
	background-color: var(--color-bg-dark);
	isolation: isolate;
}

.amber-hero-gal__media {
	position: absolute;
	inset: 0;
	z-index: -3;
	background-color: var(--color-primary-900);
	background-image: var(--amber-hg-image, none);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* the gradient keeps the headline legible over the photograph */
.amber-hero-gal__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: linear-gradient(
			100deg,
			rgba(26, 31, 38, 0.95) 0%,
			rgba(33, 42, 56, 0.88) 48%,
			rgba(45, 56, 74, 0.7) 100%
		);
}

/* ---------- asymmetric 60/40 container ---------- */
.amber-hero-gal__container {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	align-items: center;
	gap: clamp(var(--space-8), 5vw, var(--space-16));
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* ---------- copy column ---------- */
.amber-hero-gal__eyebrow {
	margin: 0 0 var(--space-4);
	color: var(--color-accent-300);
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
}

.amber-hero-gal__heading {
	margin: 0 0 var(--space-5);
	color: var(--color-text-on-dark);
	font-family: var(--font-heading);
	font-size: clamp(var(--text-2xl), 5.5vw, var(--text-4xl));
	font-weight: 700;
	letter-spacing: var(--letter-tighter);
	line-height: var(--leading-tight);
}

.amber-hero-gal__subheading {
	max-width: 50ch;
	margin: 0 0 var(--space-8);
	color: var(--color-text-muted-on-dark);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

/* ---------- buttons ---------- */
.amber-hero-gal__cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	margin: 0 0 var(--space-10);
}

.amber-hero-gal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 var(--space-6);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 600;
	letter-spacing: var(--letter-tight);
	text-decoration: none;
	transition:
		background-color var(--duration-normal) var(--ease-default),
		border-color var(--duration-normal) var(--ease-default),
		color var(--duration-normal) var(--ease-default),
		transform var(--duration-normal) var(--ease-default),
		box-shadow var(--duration-normal) var(--ease-default);
}

.amber-hero-gal__btn--primary {
	background-color: var(--color-accent-500);
	color: var(--color-neutral-900);
	box-shadow: var(--shadow-md);
}

.amber-hero-gal__btn--primary:hover {
	background-color: var(--color-accent-400);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.amber-hero-gal__btn--secondary {
	border-color: var(--color-primary-300);
	background-color: transparent;
	color: var(--color-text-on-dark);
}

.amber-hero-gal__btn--secondary:hover {
	border-color: var(--color-neutral-50);
	background-color: rgba(247, 248, 250, 0.12);
	transform: translateY(-2px);
}

.amber-hero-gal__btn:focus-visible {
	outline: 2px solid var(--color-accent-400);
	outline-offset: 2px;
}

/* ---------- fact chips ---------- */
.amber-hero-gal__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.amber-hero-gal__fact {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-4) var(--space-5);
	border: 1px solid rgba(205, 213, 224, 0.22);
	border-left: 3px solid var(--color-highlight-500);
	border-radius: var(--radius-md);
	background-color: rgba(45, 56, 74, 0.5);
}

.amber-hero-gal__fact-label {
	color: var(--color-text-on-dark);
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 600;
	letter-spacing: var(--letter-tight);
}

.amber-hero-gal__fact-note {
	color: var(--color-text-muted-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
}

/* ---------- photo strip (40% column) ---------- */
.amber-hero-gal__strip {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	padding: var(--space-6);
	border: 1px solid rgba(205, 213, 224, 0.2);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface-dark);
	box-shadow: var(--shadow-xl);
}

.amber-hero-gal__strip-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.amber-hero-gal__strip-title {
	margin: 0;
	color: var(--color-text-on-dark);
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 600;
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.amber-hero-gal__strip-note {
	margin: 0;
	color: var(--color-text-muted-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
}

.amber-hero-gal__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.amber-hero-gal__tile {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-md);
	background-color: var(--color-primary-900);
	box-shadow: var(--shadow-sm);
	transition:
		transform var(--duration-normal) var(--ease-default),
		box-shadow var(--duration-normal) var(--ease-default);
}

.amber-hero-gal__tile:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.amber-hero-gal__tile-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.amber-hero-gal__tile-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: var(--space-4) var(--space-3) var(--space-2);
	background-image: linear-gradient(to top, rgba(26, 31, 38, 0.88), rgba(26, 31, 38, 0));
	color: var(--color-neutral-50);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
}

.amber-hero-gal__strip-credit {
	margin: 0;
	color: var(--color-highlight-300);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
}

/* ---------- optional editor content below the page sections ---------- */
.amber-gallery-page__content {
	padding: var(--space-section) var(--container-padding);
	background-color: var(--color-bg);
	color: var(--color-text);
}

.amber-gallery-page__content-inner {
	max-width: var(--container-narrow);
	margin: 0 auto;
}

.amber-gallery-page__content-inner > :first-child {
	margin-top: 0;
}

.amber-gallery-page__content-inner h2,
.amber-gallery-page__content-inner h3 {
	font-family: var(--font-heading);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.amber-gallery-page__content-inner p,
.amber-gallery-page__content-inner li {
	max-width: var(--measure);
	color: var(--color-text-muted);
}

.amber-gallery-page__content-inner a {
	color: var(--color-primary-700);
	text-decoration-color: var(--color-accent-500);
	text-underline-offset: 3px;
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
	.amber-hero-gal {
		min-height: 0;
	}

	.amber-hero-gal__container {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-10);
	}

	.amber-hero-gal__subheading {
		max-width: var(--measure);
	}

	.amber-hero-gal__tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
	.amber-hero-gal__facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.amber-hero-gal__cta-group {
		flex-direction: column;
		align-items: stretch;
	}

	.amber-hero-gal__btn {
		width: 100%;
	}

	.amber-hero-gal__strip {
		padding: var(--space-5);
	}

	.amber-hero-gal__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- motion: minimal, and none when the visitor opts out ---------- */
@media (prefers-reduced-motion: reduce) {
	.amber-hero-gal__btn,
	.amber-hero-gal__btn:hover,
	.amber-hero-gal__tile,
	.amber-hero-gal__tile:hover {
		transform: none;
		transition: none;
	}
}
