/* =========================================================================
   Sahara Dune Camp — Global brand tokens
   Loaded site-wide. Sets CSS variables, base typography, and a few helper
   classes so Elementor sections can opt into the brand system.
   ========================================================================= */

:root {
	/* Palette — taken from the approved Sahara Dune Camp design (terracotta scheme) */
	--sdc-sand:       #f4ead9;
	--sdc-sand-2:     #ebdcc1;
	--sdc-cream:      #faf6ec;
	--sdc-terra:      #b85540;
	--sdc-terra-deep: #8a3b2a;
	--sdc-gold:       #c89968;
	--sdc-night:      #0e1530;
	--sdc-night-2:    #1a2247;
	--sdc-ink:        #1a1612;
	--sdc-ink-soft:   #4a3f33;
	--sdc-line:        rgba(26, 22, 18, 0.12);
	--sdc-line-strong: rgba(26, 22, 18, 0.22);

	/* Type stacks — Marcellus is the display serif (ships in 400 only; italics will be browser-synthesized) */
	--sdc-serif: 'Marcellus', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
	--sdc-sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--sdc-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Rhythm */
	--sdc-container-max: 1280px;
	--sdc-container-pad: 32px;
}

/* Body baseline — Hello Elementor sets its own, but these inherit through
   widgets that don't override typography. */
body.sdc-brand,
body {
	font-family: var(--sdc-sans);
	color: var(--sdc-ink);
	background: var(--sdc-cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Helper container — opt in via class, doesn't fight Elementor */
.sdc-container {
	width: 100%;
	max-width: var(--sdc-container-max);
	margin: 0 auto;
	padding: 0 var(--sdc-container-pad);
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.sdc-container { padding: 0 20px; }
}

/* Brand utility classes — use these in Elementor HTML/Heading widgets when you
   want the prototype look without writing CSS at the widget level. */
.sdc-eyebrow,
.sdc-eyebrow .elementor-heading-title,
.elementor-widget-heading.sdc-eyebrow .elementor-heading-title {
	font-family: var(--sdc-mono);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.18em;
	color: var(--sdc-ink-soft);
	font-weight: 500;
	line-height: 1.4;
}

.sdc-display {
	font-family: var(--sdc-serif);
	font-weight: 400; /* Marcellus only ships 400 */
	letter-spacing: -0.02em;
	line-height: 1.02;
}

.sdc-italic-accent {
	font-style: italic;
	color: var(--sdc-terra);
}

.sdc-rule {
	height: 1px;
	background: var(--sdc-line);
	border: 0;
	margin: 0;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* -------- Stripe redirect banner -------- */
/* Renders above the nav after `?booking_confirmed=1` or `?booking_cancelled=1`
   bounces back from Checkout. Self-dismisses on click. */

.sdc-banner {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 80;
	max-width: 92vw;
	padding: 14px 56px 14px 22px;
	background: var(--sdc-cream);
	border: 1px solid var(--sdc-line-strong);
	border-radius: 0;
	box-shadow: 0 10px 30px -12px rgba(14, 21, 48, 0.25);
	font-family: var(--sdc-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sdc-ink);
	animation: sdc-banner-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sdc-banner--success { border-color: var(--sdc-terra); }
.sdc-banner__sub {
	font-family: var(--sdc-sans);
	font-size: 13px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--sdc-ink-soft);
	margin-left: 12px;
}
.sdc-banner__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 0;
	color: var(--sdc-ink-soft);
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}
.sdc-banner__close:hover { color: var(--sdc-ink); }

@keyframes sdc-banner-in {
	from { opacity: 0; transform: translate(-50%, -10px); }
	to   { opacity: 1; transform: translate(-50%,   0  ); }
}

@media (max-width: 720px) {
	.sdc-banner__sub { display: block; margin-left: 0; margin-top: 4px; }
}

/* -------- Thank-you overlay (post-Checkout success) -------- */
/* Full-viewport overlay rendered when the user returns from a successful
   Stripe Checkout with a fetchable session. Card lifts the actual booking
   details into a serif/mono layout — feels like a receipt, not a toast. */

.sdc-thanks {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	animation: sdc-thanks-fade 0.45s ease both;
}
.sdc-thanks__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 21, 48, 0.65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.sdc-thanks__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	background: var(--sdc-cream);
	color: var(--sdc-ink);
	padding: 56px 48px 44px;
	box-shadow: 0 40px 80px -20px rgba(14, 21, 48, 0.45);
	font-family: var(--sdc-sans);
	animation: sdc-thanks-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.sdc-thanks__close {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: 0;
	color: var(--sdc-ink-soft);
	font-size: 26px;
	cursor: pointer;
	line-height: 1;
}
.sdc-thanks__close:hover { color: var(--sdc-ink); }

.sdc-thanks__eyebrow {
	font-family: var(--sdc-mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sdc-terra);
	margin-bottom: 18px;
}
.sdc-thanks__headline {
	font-family: var(--sdc-serif);
	font-size: clamp(34px, 4.5vw, 48px);
	line-height: 1.05;
	font-weight: 400;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	color: var(--sdc-ink);
}
.sdc-thanks__lede {
	font-size: 16px;
	line-height: 1.6;
	color: var(--sdc-ink-soft);
	margin: 0 0 32px;
}
.sdc-thanks__lede strong {
	color: var(--sdc-ink);
	font-weight: 500;
}

.sdc-thanks__details {
	margin: 0 0 32px;
	padding: 24px 0;
	border-top: 1px solid var(--sdc-line);
	border-bottom: 1px solid var(--sdc-line);
}
.sdc-thanks__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 6px 0;
}
.sdc-thanks__row dt {
	font-family: var(--sdc-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sdc-ink-soft);
	margin: 0;
}
.sdc-thanks__row dd {
	margin: 0;
	font-family: var(--sdc-serif);
	font-size: 18px;
	color: var(--sdc-ink);
}
.sdc-thanks__row--total {
	border-top: 1px solid var(--sdc-line);
	margin-top: 8px;
	padding-top: 16px;
}
.sdc-thanks__row--total dd {
	font-size: 24px;
	color: var(--sdc-terra);
}

.sdc-thanks__next {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.sdc-thanks__next p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--sdc-ink-soft);
}

@keyframes sdc-thanks-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes sdc-thanks-rise {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
	.sdc-thanks__card { padding: 44px 28px 32px; }
	.sdc-thanks__headline { font-size: 30px; }
}
