/*
 * Baza: tipografie, container, butoane, piese mici refolosite peste tot.
 */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body.os {
	font-family: var(--os-font);
	font-size: var(--os-fs-body);
	line-height: 1.6;
	color: var(--os-text);
	background: var(--os-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: 'ss01' on, 'cv11' on;
}

.os :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--os-font);
	color: var(--os-ink);
	font-weight: 600;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.os p { text-wrap: pretty; }

.os ::selection {
	background: var(--os-ink);
	color: var(--os-gold-soft);
}

.os :focus-visible {
	outline: 2px solid var(--os-gold);
	outline-offset: 3px;
}

/* ---------- Container ---------- */

.os-container {
	width: 100%;
	max-width: calc(var(--os-container) + 2 * var(--os-gutter));
	margin-inline: auto;
	padding-inline: var(--os-gutter);
}

.os-container--narrow { max-width: calc(880px + 2 * var(--os-gutter)); }

/* ---------- Text ---------- */

.os-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--os-mono);
	font-size: var(--os-fs-xs);
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--os-mute);
}

.os-eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--os-grad-gold);
	box-shadow: 0 0 0 3px rgba(220, 170, 76, .16);
}

.os-display {
	font-size: var(--os-fs-display);
	line-height: .98;
	letter-spacing: var(--os-track-tight);
	font-weight: 600;
	margin: 0;
}

.os-h1 { font-size: var(--os-fs-h1); line-height: 1; letter-spacing: var(--os-track-tight); margin: 0; }
.os-h2 { font-size: var(--os-fs-h2); line-height: 1.02; letter-spacing: var(--os-track-title); margin: 0; }
.os-h3 { font-size: var(--os-fs-h3); line-height: 1.2; letter-spacing: -.02em; margin: 0; }

.os-lead {
	font-size: var(--os-fs-lead);
	line-height: 1.55;
	color: var(--os-text);
	max-width: 58ch;
	margin: 0;
}

/* Cuvântul-cheie din titlu, în aur. Pe fundal deschis, un aur închis — lizibil. */
.os-gold {
	background: var(--os-grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.os-dim { color: var(--os-mute); }

.os-mono {
	font-family: var(--os-mono);
	font-feature-settings: 'zero' on;
	letter-spacing: -.01em;
}

.os-link {
	color: var(--os-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	text-decoration-color: var(--os-line-2);
	transition: text-decoration-color .2s var(--os-ease);
}

.os-link:hover { text-decoration-color: currentColor; }

.os-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Butoane ---------- */

.os .os-btn {
	--btn-bg: var(--os-ink);
	--btn-fg: #fff;
	--btn-bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 52px;
	padding: 0 1.5em;
	border: 1px solid var(--btn-bd);
	border-radius: var(--os-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--os-font);
	font-size: .975rem;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .25s var(--os-ease), color .25s var(--os-ease), border-color .25s var(--os-ease), transform .25s var(--os-ease), box-shadow .25s var(--os-ease);
}

.os .os-btn .os-icon {
	width: 1.1em;
	height: 1.1em;
	transition: transform .3s var(--os-ease-out);
}

.os .os-btn:hover .os-icon:last-child { transform: translateX(3px); }
.os .os-btn:active { transform: scale(.98); }

.os .os-btn--dark:hover { --btn-bg: #26262b; }

.os .os-btn--light { --btn-bg: #fff; --btn-fg: var(--os-ink); }
.os .os-btn--light:hover { --btn-bg: var(--os-gold-soft); }

.os .os-btn--gold {
	--btn-fg: var(--os-ink);
	background: var(--os-grad-gold);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px -12px rgba(220, 170, 76, .55);
}
.os .os-btn--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 40px -12px rgba(220, 170, 76, .7); }

.os .os-btn--ghost { --btn-bg: transparent; --btn-fg: var(--os-ink); --btn-bd: var(--os-line-2); }
.os .os-btn--ghost:hover { --btn-bd: var(--os-ink); }

.os .os-btn--ghost-light { --btn-bg: rgba(255, 255, 255, .04); --btn-fg: var(--os-on-night); --btn-bd: rgba(255, 255, 255, .2); }
.os .os-btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: rgba(255, 255, 255, .4); }

.os .os-btn--sm { min-height: 40px; padding: 0 1.1em; font-size: .875rem; }
.os .os-btn--block { width: 100%; }

.os-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* ---------- Pastile și etichete ---------- */

.os-pill {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	min-height: 40px;
	padding: 0 1.1em;
	border: 1px solid var(--os-line-2);
	border-radius: var(--os-pill);
	background: var(--os-white);
	color: var(--os-ink);
	font-size: .9rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .2s var(--os-ease), background-color .2s var(--os-ease), color .2s var(--os-ease);
}

.os-pill span {
	font-family: var(--os-mono);
	font-size: .75rem;
	color: var(--os-mute);
}

.os-pill:hover { border-color: var(--os-ink); color: var(--os-ink); }

.os-pill.is-active {
	background: var(--os-ink);
	border-color: var(--os-ink);
	color: #fff;
}
.os-pill.is-active span { color: rgba(255, 255, 255, .6); }

.os-tag {
	display: inline-flex;
	align-items: center;
	padding: .3em .7em;
	border-radius: var(--os-pill);
	background: var(--os-paper);
	color: var(--os-ink-2);
	font-family: var(--os-mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .02em;
	white-space: nowrap;
}

/* ---------- Accesibilitate ---------- */

.os-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.os-skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--os-pill);
	background: var(--os-ink);
	color: #fff;
	font-weight: 600;
	transition: top .2s var(--os-ease);
}
.os-skip:focus { top: 12px; color: #fff; }

/* ---------- Apariție la derulare (site.js adaugă .is-in) ---------- */

.os-js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .9s var(--os-ease-out), transform .9s var(--os-ease-out);
	transition-delay: calc(var(--d, 0) * 90ms);
}

.os-js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

.os-eager [data-reveal] { opacity: 1 !important; transform: none !important; }

.os .os-btn--wa { --btn-bg: #25d366; --btn-fg: #0b2e18; }
.os .os-btn--wa:hover { --btn-bg: #1fbe5b; }
.os .os-btn--wa .os-wa__glyph { width: 22px; height: 22px; }
