/*
 * Stacked Custom Pages — Homepage hero (hero-only demo)
 * Loaded only on the static front page. Every rule is scoped to
 * body.scp-home or .scph. These rules are copied unchanged from the full
 * homepage stylesheet (1.1.0); the page's own content below is not restyled.
 */

/* No divider under the header, so it flows into the hero. */
body.scp-home .site-header,
body.scp-home .main-header-bar,
body.scp-home .ast-primary-header-bar {
	border-bottom: 0 !important;
	box-shadow: none !important;
}

/* The page's old hero is removed on the server. If it is ever still in the
   markup (e.g. a cached copy), keep it hidden while the new hero is shown. */
body.scp-home:has(#scp-home) .stacked-about-page > .home-new-hero {
	display: none !important;
}

/* ---------- Tokens ---------- */

.scph {
	--scph-gold: var(--ast-global-color-0, #dca54a);
	--scph-gold-deep: var(--ast-global-color-1, #d09a40);
	--scph-cream: var(--ast-global-color-3, #faf5e5);
	--scph-header: #2b2b2b;
	--scph-ink: #1d1d1d;
	--scph-ink-2: #161616;
	--scph-card: #252525;
	--scph-line: rgba(255, 255, 255, 0.09);
	--scph-text: #ffffff;
	--scph-muted: #bdb8ad;
	--scph-display: "Bowlby One SC", "Arial Black", sans-serif;
	--scph-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--scph-wrap: 1200px;
	--scph-gutter: clamp(20px, 4vw, 40px);
	--scph-section: clamp(72px, 9vw, 128px);
	--scph-header-h: 110px;

	position: relative;
	overflow: hidden;
	background: var(--scph-ink);
	color: var(--scph-text);
	font-family: var(--scph-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.scph *,
.scph *::before,
.scph *::after {
	box-sizing: border-box;
}

.scph h1,
.scph h2,
.scph h3,
.scph p,
.scph ul,
.scph dl,
.scph dd {
	margin: 0;
	padding: 0;
}

.scph ul {
	list-style: none;
}

.scph a {
	color: inherit;
	text-decoration: none;
}

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

.scph .scph-wrap {
	position: relative;
	width: 100%;
	max-width: calc(var(--scph-wrap) + var(--scph-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--scph-gutter);
}

.scph .scph-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

/* ---------- Shared type ---------- */

.scph .scph-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	color: var(--scph-gold);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
}

.scph .scph-eyebrow::before {
	content: "";
	width: 32px;
	height: 2px;
	flex: none;
	background: currentColor;
}

.scph .scph-h2 {
	color: var(--scph-text);
	font-family: var(--scph-display);
	font-size: clamp(2rem, 4.2vw, 3.375rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-wrap: balance;
}

.scph p {
	color: var(--scph-muted);
	font-size: clamp(1rem, 1.25vw, 1.0625rem);
	font-weight: 500;
}

.scph p + p {
	margin-top: 16px;
}

.scph .scph-lead {
	color: var(--scph-text);
	font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
	font-weight: 600;
	line-height: 1.5;
}

/* ---------- Buttons & links ---------- */

.scph .scph-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 36px;
}

.scph .scph-actions--center {
	justify-content: center;
}

.scph .scph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 60px;
	padding: 18px 34px;
	border: 2px solid transparent;
	border-radius: 12px;
	background: linear-gradient(180deg, #e6b35e 0%, var(--scph-gold) 55%, var(--scph-gold-deep) 100%);
	color: #17130b;
	font-family: var(--scph-body);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow:
		0 14px 30px -10px rgba(220, 165, 74, 0.55),
		0 1px 0 rgba(255, 255, 255, 0.35) inset;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.scph .scph-btn:hover,
.scph .scph-btn:focus-visible {
	color: #17130b;
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow:
		0 20px 36px -12px rgba(220, 165, 74, 0.65),
		0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.scph .scph-btn .scph-icon {
	transition: transform 0.2s ease;
}

.scph .scph-btn:hover .scph-icon {
	transform: translateX(4px);
}

/* Secondary: outlined, never competes with the gold order button. */
.scph .scph-btn--ghost {
	min-height: 56px;
	padding: 15px 28px;
	border-color: rgba(220, 165, 74, 0.55);
	background: transparent;
	color: var(--scph-text);
	font-size: 0.9375rem;
	box-shadow: none;
}

.scph .scph-btn--ghost:hover,
.scph .scph-btn--ghost:focus-visible {
	border-color: var(--scph-gold);
	background: rgba(220, 165, 74, 0.1);
	color: var(--scph-text);
	filter: none;
	box-shadow: none;
}

.scph .scph-link {
	display: inline-flex;
	align-items: center;
	padding: 6px 0;
	border-bottom: 2px solid var(--scph-gold);
	color: var(--scph-text);
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.scph .scph-link:hover,
.scph .scph-link:focus-visible {
	color: var(--scph-gold);
}

.scph .scph-btn:focus-visible,
.scph .scph-link:focus-visible,
.scph .scph-cat:focus-visible,
.scph .scph-info a:focus-visible,
.scph .scph-visit a:focus-visible,
.scph .scph-final__apps a:focus-visible {
	outline: 3px solid var(--scph-cream);
	outline-offset: 3px;
}

/* ---------- 1. Hero ---------- */

.scph .scph-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	min-height: max(600px, calc(100vh - var(--scph-header-h)));
	min-height: max(600px, calc(100svh - var(--scph-header-h)));
	background: var(--scph-ink-2);
}

.scph .scph-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.scph .scph-hero__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 60% 50%;
	filter: saturate(1.12) contrast(1.06) brightness(1.08);
}

/*
 * Overlays: the top fades out of the header colour (seamless join), the left
 * side darkens behind the copy, and the bottom settles into the next section.
 */
.scph .scph-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, var(--scph-header) 0%, rgba(43, 43, 43, 0.72) 9%, rgba(22, 22, 22, 0) 28%),
		linear-gradient(0deg, var(--scph-ink) 0%, rgba(29, 29, 29, 0.9) 12%, rgba(22, 22, 22, 0) 44%),
		linear-gradient(90deg, rgba(14, 13, 10, 0.94) 0%, rgba(14, 13, 10, 0.8) 30%, rgba(14, 13, 10, 0.32) 58%, rgba(14, 13, 10, 0.08) 100%),
		radial-gradient(60% 70% at 78% 45%, rgba(220, 165, 74, 0.14), transparent 70%);
}

.scph .scph-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: clamp(64px, 9vh, 120px);
	padding-bottom: clamp(32px, 5vh, 56px);
}

.scph .scph-hero__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	max-width: 640px;
}

.scph .scph-hero__title {
	color: var(--scph-text);
	font-family: var(--scph-display);
	font-size: clamp(2.75rem, 6.6vw, 5.75rem);
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.scph .scph-hero__lead {
	margin-top: 22px;
	color: var(--scph-gold);
	font-size: clamp(1.1875rem, 2vw, 1.5rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.scph .scph-hero__text {
	max-width: 520px;
	margin-top: 14px;
	color: #e9e4da;
	font-size: clamp(1rem, 1.35vw, 1.125rem);
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.scph .scph-hero .scph-actions {
	margin-top: 36px;
}

/* Visit strip along the bottom of the hero. */
.scph .scph-info {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px;
	margin-top: clamp(40px, 7vh, 72px);
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.scph .scph-info li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #e9e4da;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.scph .scph-info .scph-icon {
	color: var(--scph-gold);
}

.scph .scph-info a:hover {
	color: var(--scph-gold);
}

/* ---------- Responsive ---------- */

@media (max-width: 921px) {
	/* Astra switches to its mobile header here. */
	.scph {
		--scph-header-h: 104px;
	}
}

@media (max-width: 700px) {
	/* Mobile hero: photo fills the screen, copy sits low on a bottom fade. */
	.scph .scph-hero {
		min-height: max(580px, calc(100svh - var(--scph-header-h)));
	}

	.scph .scph-hero__img {
		object-position: 40% 50%;
	}

	.scph .scph-hero::before {
		background:
			linear-gradient(180deg, var(--scph-header) 0%, rgba(43, 43, 43, 0.6) 8%, rgba(22, 22, 22, 0) 24%),
			linear-gradient(0deg, var(--scph-ink) 0%, rgba(20, 19, 16, 0.94) 30%, rgba(20, 19, 16, 0.6) 58%, rgba(20, 19, 16, 0.1) 100%);
	}

	.scph .scph-hero__inner {
		justify-content: flex-end;
		padding-top: 120px;
		padding-bottom: 28px;
	}

	.scph .scph-hero__content {
		flex: none;
	}

	.scph .scph-hero__title {
		font-size: clamp(2.5rem, 11.5vw, 3.25rem);
	}

	.scph .scph-hero__lead {
		margin-top: 16px;
	}

	.scph .scph-hero .scph-actions {
		width: 100%;
		margin-top: 28px;
		gap: 14px;
	}

	.scph .scph-hero .scph-btn {
		width: 100%;
	}

	.scph .scph-hero .scph-link {
		margin: 0 auto;
	}

	.scph .scph-info {
		flex-direction: column;
		gap: 10px;
		margin-top: 28px;
		padding-top: 18px;
	}

	.scph .scph-info li {
		font-size: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scph *,
	.scph *::before,
	.scph *::after {
		transition: none !important;
	}

	.scph .scph-btn:hover,
	.scph .scph-cat:hover,
	.scph .scph-cat:hover .scph-cat__img {
		transform: none;
	}
}
