/*!
 * LoseSize theme — modern shell styles beyond theme.json.
 * Design language: soft gradients, elevated cards, generous whitespace,
 * teal→cyan accents. Mobile-first breakpoints at 782px / 600px / 400px.
 */

:root {
	--ls-grad: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
	--ls-grad-soft: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
	--ls-teal: #0d9488;
	--ls-teal-dark: #0f766e;
	--ls-ink: #1e293b;
	--ls-muted: #64748b;
	--ls-border: #e2e8f0;
	--ls-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
	--ls-card-shadow-hover: 0 4px 8px rgba(15, 23, 42, 0.06), 0 16px 40px rgba(13, 148, 136, 0.14);
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------- header / brand ---------- */

.ls-site-header {
	border-bottom: 1px solid var(--ls-border);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	position: sticky;
	top: 0;
	z-index: 50;
}

.ls-brand {
	display: flex !important;
	align-items: center;
	gap: 0.625rem;
}

.ls-brand__mark {
	display: inline-flex;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}

.ls-brand__mark svg {
	width: 100%;
	height: 100%;
	border-radius: 9px;
	box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
}

.ls-site-header .wp-block-site-title a {
	color: var(--ls-ink);
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ls-site-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--ls-ink);
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 0.25rem;
}

.ls-site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--ls-teal-dark);
}

/* hamburger: comfortable touch target */
.wp-block-navigation .wp-block-navigation__responsive-container-open {
	padding: 0.5rem;
}

/* ---------- hero ---------- */

.ls-hero {
	text-align: center;
	background:
		radial-gradient(60% 90% at 15% 0%, rgba(13, 148, 136, 0.14) 0%, rgba(13, 148, 136, 0) 60%),
		radial-gradient(50% 80% at 85% 10%, rgba(8, 145, 178, 0.12) 0%, rgba(8, 145, 178, 0) 55%),
		var(--ls-grad-soft);
	border-bottom: 1px solid var(--ls-border);
}

.ls-hero__badge {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ls-teal-dark);
	background: #ffffff;
	border: 1px solid #99f6e4;
	border-radius: 999px;
	padding: 0.375rem 1rem;
	box-shadow: 0 1px 3px rgba(13, 148, 136, 0.12);
}

.ls-hero h1 {
	margin: 1.25rem auto 1rem;
	max-width: 16ch;
	font-size: clamp(2.25rem, 6.5vw, 3.75rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
	background: linear-gradient(120deg, #134e4a 20%, #0f766e 55%, #0e7490 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--ls-ink); /* fallback */
}

.ls-hero__lead {
	margin: 0 auto;
	max-width: 52ch;
	font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
	color: var(--ls-muted);
	line-height: 1.65;
}

.ls-hero__ctas {
	justify-content: center;
	margin-top: 1.75rem;
}

.ls-hero__stats {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2.25rem 0 0;
	padding: 0;
}

.ls-hero__stats li {
	background: #ffffff;
	border: 1px solid var(--ls-border);
	border-radius: 12px;
	padding: 0.625rem 1.25rem;
	min-width: 104px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ls-hero__stats strong {
	display: block;
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--ls-teal-dark);
	letter-spacing: -0.02em;
}

.ls-hero__stats span {
	font-size: 0.75rem;
	color: var(--ls-muted);
}

/* ---------- section headings ---------- */

.ls-sectionhead {
	align-items: baseline;
	margin-bottom: 1.25rem;
}

.ls-sectionhead h2 {
	margin: 0;
	font-size: clamp(1.375rem, 3.5vw, 1.75rem);
	letter-spacing: -0.02em;
}

.ls-sectionhead__link {
	margin: 0;
}

.ls-sectionhead__link a {
	color: var(--ls-teal-dark);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid #99f6e4;
	padding-bottom: 2px;
}

.ls-sectionhead__link a:hover {
	border-bottom-color: var(--ls-teal);
}

/* ---------- content rhythm ---------- */

.ls-main > * + *,
.wp-block-post-content > * + * {
	margin-top: 1.25em;
}

.wp-block-post-content h2,
.wp-block-post-content h3 {
	margin-top: 1.75em;
}

/* Tool pages: calculator/food blocks flow centered inside the constrained
   content column (no breakout hacks — they broke centering on desktop). */

/* ---------- footer ---------- */

.ls-site-footer {
	font-size: 0.875rem;
	background: #0f172a;
	color: #cbd5e1;
}

.ls-site-footer a {
	color: #e2e8f0;
	text-decoration: none;
}

.ls-site-footer a:hover {
	color: #5eead4;
	text-decoration: underline;
}

.ls-site-footer strong {
	color: #ffffff;
}

.ls-site-footer .wp-block-separator {
	margin-top: 2rem;
	margin-bottom: 1.25rem;
	border-color: #1e293b;
	opacity: 1;
}

.ls-site-footer p {
	color: #94a3b8;
}

.ls-site-footer p strong {
	color: #e2e8f0;
}

/* ---------- search ---------- */

.wp-block-search__input {
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 0.625rem 0.875rem;
}

/* ---------- homepage: food preview cards ---------- */

.ls-foodcards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.ls-foodcard {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	background: #ffffff;
	border: 1px solid var(--ls-border);
	border-radius: 14px;
	padding: 0.875rem 1rem;
	text-decoration: none;
	box-shadow: var(--ls-card-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ls-foodcard:hover {
	transform: translateY(-3px);
	box-shadow: var(--ls-card-shadow-hover);
	border-color: #99f6e4;
}

.ls-foodcard__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 13px;
	flex-shrink: 0;
	color: #ffffff;
}

.ls-foodcard__media .ls-ico {
	width: 28px;
	height: 28px;
}

.ls-foodcard__media--fruits { background: linear-gradient(135deg, #f97316, #ef4444); }
.ls-foodcard__media--vegetables { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ls-foodcard__media--grains { background: linear-gradient(135deg, #d97706, #b45309); }
.ls-foodcard__media--protein { background: linear-gradient(135deg, #ef4444, #be123c); }
.ls-foodcard__media--dairy { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.ls-foodcard__media--fats-nuts { background: linear-gradient(135deg, #a16207, #854d0e); }
.ls-foodcard__media--snacks-sweets { background: linear-gradient(135deg, #ec4899, #be185d); }

.ls-foodcard__body {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.ls-foodcard__title {
	font-weight: 700;
	color: var(--ls-ink);
	font-size: 0.9375rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ls-foodcard__meta {
	font-size: 0.75rem;
	color: var(--ls-muted);
}

.ls-foodcard__arrow {
	margin-left: auto;
	color: var(--ls-teal);
	flex-shrink: 0;
	transition: transform 0.18s ease;
}

.ls-foodcard:hover .ls-foodcard__arrow {
	transform: translateX(3px);
}

.ls-foodcard__arrow .ls-ico,
.ls-card__cta .ls-ico {
	width: 18px;
	height: 18px;
}

.ls-quicklinks {
	justify-content: center;
	margin-top: 1.75rem;
	gap: 0.75rem;
}

/* ---------- homepage: steps ---------- */

.ls-how {
	background: #ffffff;
	border-top: 1px solid var(--ls-border);
	border-bottom: 1px solid var(--ls-border);
}

.ls-steps {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	max-width: 1020px;
	margin-left: auto;
	margin-right: auto;
}

.ls-step {
	text-align: center;
	position: relative;
}

.ls-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ls-grad);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.125rem;
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
	margin-bottom: 0.875rem;
}

.ls-step h3 {
	margin: 0 0 0.375rem;
	font-size: 1.0625rem;
}

.ls-step p {
	margin: 0;
	color: var(--ls-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* ---------- homepage: trust band ---------- */

.ls-trustband {
	background: var(--ls-grad-soft);
}

.ls-trustgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	max-width: 1020px;
	margin: 2.5rem auto 0;
}

.ls-trust {
	background: #ffffff;
	border: 1px solid var(--ls-border);
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: var(--ls-card-shadow);
}

.ls-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 1.375rem;
	border-radius: 12px;
	background: #ccfbf1;
	margin-bottom: 0.875rem;
}

.ls-trust h3 {
	margin: 0 0 0.375rem;
	font-size: 1.0625rem;
}

.ls-trust p {
	margin: 0;
	color: var(--ls-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ls-trust a {
	color: var(--ls-teal-dark);
	font-weight: 600;
}

/* ---------- homepage: CTA band ---------- */

.ls-ctaband {
	background: var(--ls-grad);
	color: #ffffff;
	text-align: center;
}

.ls-ctaband h2 {
	color: #ffffff;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	letter-spacing: -0.02em;
}

.ls-ctaband__lead {
	color: rgba(255, 255, 255, 0.92);
	max-width: 52ch;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.0625rem;
}

.ls-ctaband .wp-block-button__link {
	background: #ffffff;
	color: var(--ls-teal-dark);
	font-weight: 700;
}

.ls-ctaband .wp-block-button__link:hover {
	background: #f0fdfa;
}

/* ---------- search ---------- */

.wp-block-search__input {
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	padding: 0.625rem 0.875rem;
}

/* ---------- responsive: tablet ---------- */

@media (max-width: 900px) {
	.ls-foodcards {
		grid-template-columns: repeat(2, 1fr);
	}

	.ls-steps,
	.ls-trustgrid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		max-width: 560px;
	}
}

/* ---------- responsive: mobile ---------- */

@media (max-width: 782px) {
	.ls-site-header .wp-block-group:first-child {
		flex-direction: row;
		align-items: center;
	}
}

@media (max-width: 640px) {
	.ls-hero {
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}

	.ls-hero__stats {
		gap: 0.375rem;
	}

	.ls-hero__stats li {
		flex: 1 1 40%;
		min-width: 0;
	}

	.ls-foodcards {
		grid-template-columns: 1fr;
	}

	.ls-hero__ctas .wp-block-button {
		width: 100%;
	}

	.ls-hero__ctas .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	.ls-quicklinks .wp-block-button {
		width: 100%;
	}

	.ls-quicklinks .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	.ls-ctaband .wp-block-button__link {
		width: 100%;
	}

	.ls-sectionhead {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	/* 44px minimum touch targets */
	.wp-block-navigation .wp-block-navigation-item__content,
	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close {
		min-height: 44px;
		min-width: 44px;
		display: inline-flex;
		align-items: center;
	}
}

/* very small phones */
@media (max-width: 400px) {
	.ls-brand__mark {
		width: 30px;
		height: 30px;
	}
}

/* ---------- print ---------- */

@media print {
	.ls-site-header,
	.ls-site-footer,
	.wp-block-search {
		display: none !important;
	}
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.ls-foodcard,
	.ls-foodcard__arrow,
	.ls-card {
		transition: none;
	}
}
