/**
 * Cocina 51 Event Calculator — standalone landing page styling.
 *
 * Colors sampled directly from cocina51.com and cocina51.com/cocina-51-menu-builder/:
 *   --c51-dark    #1b1b1b  (page/section background)
 *   --c51-orange  #c8421a  (primary buttons, CTAs)
 *   --c51-accent  #e85a2a  (headline accent word — brighter than button orange)
 *   --c51-green   #133e2a  (top announcement-bar green; used sparingly here)
 *   --c51-cream   #f2efe7  (site's own off-white, used only if ever needed on light sections)
 *
 * Scoped under .c51ec-landing-* / .c51ec-landing-panel so it never bleeds
 * into calculator.css's neutral default styling used when the wizard is
 * embedded elsewhere (inline shortcode, Menu Builder modal trigger) —
 * those keep looking exactly as before.
 */

:root {
	--c51-dark: #1b1b1b;
	--c51-dark-2: #262624;
	--c51-orange: #c8421a;
	--c51-accent: #e85a2a;
	--c51-green: #133e2a;
	--c51-cream: #f2efe7;
	--c51-white: #ffffff;
	--c51-muted: #b8b3ac;
}

.c51ec-landing-body {
	background: var(--c51-dark);
	color: var(--c51-white);
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.c51ec-landing-heading-font,
.c51ec-landing-title,
.c51ec-landing-badge,
.c51ec-landing-wordmark {
	font-family: "Archivo Black", "Oswald", "Arial Black", Impact, sans-serif;
}

/* ---- Header ------------------------------------------------------- */

.c51ec-landing-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	max-width: 1100px;
	margin: 0 auto;
}

.c51ec-landing-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--c51-white);
}

.c51ec-landing-logo-img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex: none;
}

.c51ec-landing-logo-img--small {
	width: 32px;
	height: 32px;
}

.c51ec-landing-wordmark {
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.c51ec-landing-wordmark small {
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--c51-muted);
}

.c51ec-landing-back {
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--c51-white);
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.c51ec-landing-back:hover {
	border-color: var(--c51-orange);
	background: rgba(200, 66, 26, 0.12);
}

/* ---- Hero ----------------------------------------------------------- */

.c51ec-landing {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 24px 80px;
}

.c51ec-landing-hero {
	text-align: center;
	padding: 24px 0 40px;
}

.c51ec-landing-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #4f271b;
	border: 1px solid var(--c51-orange);
	color: #f0b48f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 7px 16px;
	border-radius: 999px;
	margin-bottom: 22px;
}

.c51ec-landing-title {
	font-size: clamp(32px, 6vw, 48px);
	line-height: 1.08;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin: 0 0 18px;
	color: var(--c51-white);
}

.c51ec-landing-accent {
	color: var(--c51-accent);
}

.c51ec-landing-subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: var(--c51-muted);
	max-width: 520px;
	margin: 0 auto;
}

/* ---- Wizard panel, brand-themed ------------------------------------- */

.c51ec-landing-panel {
	background: var(--c51-dark-2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.c51ec-landing-panel .c51ec-wizard {
	max-width: none;
	color: var(--c51-white);
}

.c51ec-landing-panel .c51ec-wizard h2 {
	color: var(--c51-white);
	font-family: "Archivo Black", "Oswald", "Arial Black", Impact, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	font-size: 22px;
}

.c51ec-landing-panel .c51ec-wizard label {
	color: var(--c51-muted);
}

.c51ec-landing-panel .c51ec-step input[type="number"],
.c51ec-landing-panel .c51ec-step input[type="text"],
.c51ec-landing-panel .c51ec-step input[type="date"],
.c51ec-landing-panel .c51ec-step select,
.c51ec-landing-panel .c51ec-ai-description,
.c51ec-landing-panel textarea {
	background: #1f1f1d;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--c51-white);
	border-radius: 8px;
}

.c51ec-landing-panel .c51ec-step-dot {
	background: rgba(255, 255, 255, 0.18);
}

.c51ec-landing-panel .c51ec-step-dot.is-active {
	background: var(--c51-orange);
}

.c51ec-landing-panel .c51ec-nav button {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--c51-white);
	border-radius: 6px;
	font-weight: 600;
}

.c51ec-landing-panel .c51ec-primary,
.c51ec-landing-panel #c51ec-use-quantities {
	background: var(--c51-orange) !important;
	border-color: var(--c51-orange) !important;
	color: var(--c51-white) !important;
}

.c51ec-landing-panel .c51ec-primary:hover {
	background: var(--c51-accent) !important;
	border-color: var(--c51-accent) !important;
}

.c51ec-landing-panel .c51ec-food-item {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.c51ec-landing-panel #c51ec-results table,
.c51ec-landing-panel #c51ec-results th,
.c51ec-landing-panel #c51ec-results td {
	border-color: rgba(255, 255, 255, 0.1);
	color: var(--c51-white);
}

.c51ec-landing-panel .c51ec-lang-toggle {
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--c51-white);
	background: transparent;
}

.c51ec-landing-panel .c51ec-error {
	color: #ff8a70;
}

.c51ec-landing-panel .c51ec-plan-meta {
	color: var(--c51-muted);
}

.c51ec-landing-panel .c51ec-suggestions {
	background: #2a2118;
	border-color: #4a3a22;
}
.c51ec-landing-panel .c51ec-suggestions h3 {
	color: var(--c51-white);
}
.c51ec-landing-panel .c51ec-suggestions li {
	color: var(--c51-muted);
}
.c51ec-landing-panel .c51ec-lead-gate {
	background: #1f1f1d;
	border-color: rgba(255, 255, 255, 0.12);
}
.c51ec-landing-panel .c51ec-lead-gate input {
	background: #1a1a18;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--c51-white);
}

.c51ec-landing-extra {
	margin-top: 40px;
	color: var(--c51-muted);
	line-height: 1.7;
}

/* ---- Footer ----------------------------------------------------------- */

.c51ec-landing-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 28px 24px 40px;
	color: var(--c51-muted);
	font-size: 13px;
	text-align: center;
}

.c51ec-landing-footer a {
	color: var(--c51-muted);
}

@media (max-width: 480px) {
	.c51ec-landing-header {
		flex-wrap: wrap;
	}
	.c51ec-landing-panel {
		padding: 20px 16px;
	}
}
