/*
 * Stacked Custom Pages — Order Online
 * Loaded only on the Order Online page. Every rule is scoped to
 * body.scp-order-online or .scp-order so nothing leaks to other pages.
 */

/* ---------- Astra wrapper resets (this page only) ---------- */

body.scp-order-online {
	background: #1d1d1d;
}

body.scp-order-online #content.site-content,
body.scp-order-online .site-content > .ast-container {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	display: block;
}

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

/* Matches the current page: the "before footer" block is hidden here. */
body.scp-order-online .hfe-before-footer-wrap {
	display: none !important;
}

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

.scp-order {
	--scp-gold: var(--ast-global-color-0, #dca54a);
	--scp-gold-deep: var(--ast-global-color-1, #d09a40);
	--scp-cream: var(--ast-global-color-3, #faf5e5);
	--scp-header: #2b2b2b;
	--scp-ink: #1d1d1d;
	--scp-card: #262626;
	--scp-line: rgba(255, 255, 255, 0.08);
	--scp-text: #ffffff;
	--scp-muted: #bdb8ad;
	--scp-display: "Bowlby One SC", "Arial Black", sans-serif;
	--scp-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--scp-wrap: 1180px;
	--scp-gutter: clamp(18px, 4vw, 40px);

	position: relative;
	overflow: hidden;
	background: var(--scp-ink);
	color: var(--scp-text);
	font-family: var(--scp-body);
	-webkit-font-smoothing: antialiased;
}

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

.scp-order h1,
.scp-order h2,
.scp-order p,
.scp-order ul {
	margin: 0;
	padding: 0;
}

.scp-order a {
	text-decoration: none;
}

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

.scp-order .scp-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

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

.scp-order .scp-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(56px, 8vw, 104px) 0 clamp(150px, 16vw, 210px);
	text-align: center;
	/* Starts on the exact header colour so there is no seam. */
	background:
		radial-gradient(50% 55% at 50% 42%, rgba(220, 165, 74, 0.13), transparent 72%),
		linear-gradient(180deg, var(--scp-header) 0%, #242424 50%, var(--scp-ink) 100%);
}

/* Faint food photo texture, faded out at the top and bottom edges. */
.scp-order .scp-hero__texture {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-position: center;
	background-size: cover;
	opacity: 0.07;
	filter: grayscale(0.5) blur(1px);
	-webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%);
	mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%);
}

/* Fine grain for depth. */
.scp-order .scp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.06;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scp-order .scp-hero__title {
	font-family: var(--scp-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 7vw, 5rem);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--scp-gold);
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.scp-order .scp-hero__subtitle {
	margin-top: clamp(12px, 1.6vw, 18px);
	font-size: clamp(1rem, 2vw, 1.375rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.88);
}

/* Small gold rule under the subtitle as a visual anchor. */
.scp-order .scp-hero__inner::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: clamp(22px, 3vw, 30px) auto 0;
	border-radius: 3px;
	background: var(--scp-gold);
	opacity: 0.85;
}

/* ---------- 2. Direct order (primary) ---------- */

.scp-order .scp-direct {
	position: relative;
	z-index: 1;
	/* Pull the card up into the hero so the CTA shows early. */
	margin-top: clamp(-170px, -13vw, -110px);
	padding-bottom: clamp(64px, 9vw, 112px);
}

.scp-order .scp-direct__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	overflow: hidden;
	border: 1px solid rgba(220, 165, 74, 0.28);
	border-radius: 20px;
	background:
		radial-gradient(80% 90% at 0% 0%, rgba(220, 165, 74, 0.10), transparent 60%),
		linear-gradient(160deg, #2c2c2c 0%, var(--scp-card) 45%, #1f1f1f 100%);
	box-shadow:
		0 40px 80px -30px rgba(0, 0, 0, 0.75),
		0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}

.scp-order .scp-direct__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(32px, 5vw, 64px);
}

.scp-order .scp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border: 1px solid rgba(220, 165, 74, 0.4);
	border-radius: 999px;
	background: rgba(220, 165, 74, 0.1);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--scp-gold);
}

.scp-order .scp-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--scp-gold);
	box-shadow: 0 0 0 4px rgba(220, 165, 74, 0.2);
}

.scp-order .scp-direct__title {
	margin-top: 20px;
	font-family: var(--scp-display);
	font-weight: 400;
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: 0.01em;
	color: var(--scp-text);
}

.scp-order .scp-direct__text {
	margin-top: 18px;
	max-width: 30em;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	font-weight: 500;
	line-height: 1.65;
	color: var(--scp-muted);
}

.scp-order .scp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
	min-height: 60px;
	padding: 18px 34px;
	border-radius: 12px;
	background: linear-gradient(180deg, #e6b35e 0%, var(--scp-gold) 55%, var(--scp-gold-deep) 100%);
	color: #17130b;
	font-family: var(--scp-body);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	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;
}

.scp-order .scp-btn:hover,
.scp-order .scp-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;
}

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

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

.scp-order .scp-perks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 28px;
	list-style: none;
}

.scp-order .scp-perks li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
}

.scp-order .scp-perks .scp-icon {
	color: var(--scp-gold);
}

.scp-order .scp-direct__media {
	position: relative;
	min-height: 420px;
	background: #151515;
}

.scp-order .scp-direct__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 45%;
}

/* Blend the photo into the card on the copy side. */
.scp-order .scp-direct__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, #252525 0%, rgba(37, 37, 37, 0) 22%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, transparent 40%);
}

/* ---------- 3. Delivery apps (secondary) ---------- */

.scp-order .scp-apps {
	padding: 0 0 clamp(72px, 10vw, 120px);
	text-align: center;
}

.scp-order .scp-apps__head {
	max-width: 620px;
	margin: 0 auto;
}

.scp-order .scp-apps__title {
	font-family: var(--scp-body);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--scp-text);
}

.scp-order .scp-apps__text {
	margin-top: 8px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--scp-muted);
}

.scp-order .scp-apps__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	max-width: 640px;
	margin: 28px auto 0;
	list-style: none;
}

.scp-order .scp-app {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
	padding: 14px 14px 14px 14px;
	border: 1px solid var(--scp-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.scp-order .scp-app:hover,
.scp-order .scp-app:focus-visible {
	border-color: rgba(220, 165, 74, 0.45);
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-2px);
}

.scp-order .scp-app__logo {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	height: 60px;
	padding: 0 18px;
	border-radius: 10px;
	background: #fff;
}

.scp-order .scp-app__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 24px;
	object-fit: contain;
}

.scp-order .scp-app__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	border: 1px solid var(--scp-line);
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.scp-order .scp-app:hover .scp-app__go,
.scp-order .scp-app:focus-visible .scp-app__go {
	color: #17130b;
	border-color: var(--scp-gold);
	background: var(--scp-gold);
}

/* ---------- Focus ---------- */

.scp-order .scp-btn:focus-visible,
.scp-order .scp-app:focus-visible {
	outline: 3px solid var(--scp-cream);
	outline-offset: 3px;
}

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

@media (max-width: 900px) {
	.scp-order .scp-direct__card {
		grid-template-columns: 1fr;
	}

	/* Copy (and the CTA) first, photo after. */
	.scp-order .scp-direct__media {
		order: 2;
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.scp-order .scp-direct__media::after {
		background: linear-gradient(180deg, #252525 0%, rgba(37, 37, 37, 0) 25%);
	}
}

@media (max-width: 600px) {
	.scp-order .scp-hero {
		padding-bottom: 130px;
	}

	.scp-order .scp-direct {
		margin-top: -96px;
	}

	.scp-order .scp-direct__card {
		border-radius: 16px;
	}

	.scp-order .scp-btn {
		width: 100%;
		padding: 18px 24px;
	}

	.scp-order .scp-perks {
		flex-direction: column;
		gap: 10px;
	}

	.scp-order .scp-apps__list {
		grid-template-columns: 1fr;
		max-width: 420px;
	}
}

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