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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--lmc-warm-white);
	color: var(--lmc-ink);
	font-family: var(--lmc-font-sans);
	font-size: 1rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	font-family: var(--lmc-font-sans);
}

/* Shared brand colors also cover the legacy contact/catering forms. */
body {
	--theme-text-color: var(--lmc-ink);
	--theme-link-initial-color: var(--lmc-gold-dark);
	--theme-link-hover-color: var(--lmc-black);
	--theme-form-text-initial-color: var(--lmc-ink);
	--theme-form-text-focus-color: var(--lmc-ink);
	--theme-form-field-border-initial-color: var(--lmc-border);
	--theme-form-field-border-focus-color: var(--lmc-gold-dark);
}
body #main input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
body #main select,
body #main textarea {
	color: var(--lmc-ink) !important;
}
body #main input[type=submit],
body #main button[type=submit] {
	background: var(--lmc-gold) !important;
	border-color: var(--lmc-gold) !important;
	color: var(--lmc-black) !important;
}
body #main input[type=submit]:hover,
body #main button[type=submit]:hover {
	background: var(--lmc-gold-bright) !important;
}
body .entry-meta {
	color: var(--lmc-muted);
}

body.archive .entry-meta,
body.search .entry-meta,
body.tax-product_cat .entry-meta,
body.post-type-archive-product .entry-meta {
	display: none !important;
}
body .ct-header-search {
	--theme-icon-color: var(--lmc-gold);
	--theme-icon-hover-color: var(--lmc-gold-bright);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--lmc-ink);
	font-family: var(--lmc-font-display);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

h1 {
	font-size: clamp(2.35rem, 1.55rem + 4vw, 5rem);
}

h2 {
	font-size: clamp(1.85rem, 1.45rem + 2vw, 3.25rem);
}

h3 {
	font-size: clamp(1.3rem, 1.12rem + 0.8vw, 1.8rem);
}

p {
	margin-block: 0 1.25em;
}

a {
	color: var(--lmc-red-dark);
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.16em;
	transition: color var(--lmc-transition), opacity var(--lmc-transition);
}

a:hover {
	color: var(--lmc-gold-dark);
}

.entry-content a:not(.wp-element-button):not(.button):not(.woocommerce-LoopProduct-link),
.woocommerce-product-details__short-description a {
	text-decoration-line: underline;
}

img {
	height: auto;
	max-width: 100%;
}

/*
 * Paginile vechi conțin încă sigla rotundă din 2022 direct în conținut.
 * O înlocuim doar vizual, din tema copil, astfel încât aceeași identitate
 * negru-auriu să apară peste tot fără a modifica logica sau datele paginii.
 */
img[src*="transparent-file-01-logo-la-micutu-2022-ver-2"] {
	aspect-ratio: 2089 / 753;
	background: var(--lmc-black);
	border: 1px solid rgba(245, 197, 66, 0.32);
	border-radius: var(--lmc-radius-md);
	box-sizing: border-box;
	content: url("../images/la-micutu-logo-880.webp");
	display: block;
	height: auto !important;
	margin-inline: auto;
	object-fit: contain;
	padding: clamp(0.8rem, 2vw, 1.4rem);
	width: min(100%, 720px) !important;
}

::selection {
	background: var(--lmc-yellow);
	color: var(--lmc-ink);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--lmc-gold-dark);
	outline-offset: 3px;
}

.entry-content > :where(.alignwide) {
	width: min(calc(100% - 2rem), var(--lmc-container));
}

.entry-content > :where(.alignfull) {
	width: 100%;
}

.lmc-section {
	padding-block: var(--lmc-space-7);
}

.lmc-section--compact {
	padding-block: clamp(2rem, 4vw, 3.75rem);
}

.lmc-kicker {
	color: var(--lmc-red-dark);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	margin-bottom: var(--lmc-space-2);
	text-transform: uppercase;
}

.is-style-lmc-card {
	background: var(--lmc-surface);
	border: 1px solid var(--lmc-border);
	border-radius: var(--lmc-radius-lg);
	box-shadow: var(--lmc-shadow-sm);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.is-style-lmc-highlight {
	background: linear-gradient(135deg, var(--lmc-cream), var(--lmc-yellow-soft));
	border-radius: var(--lmc-radius-lg);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.is-style-lmc-rounded img {
	border-radius: var(--lmc-radius-lg);
	box-shadow: var(--lmc-shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
