/* ═══════════════════════════════════════════════════════════════════
   ITRC — BASE LAYER (Reset + Typography)
   ═══════════════════════════════════════════════════════════════════
   
   Înlocuiește fostele linii 1-321 din institute.css.
   
   DEPINDE DE: tokens.css (consumă variabile CSS)
   LOAD ORDER: după Bootstrap, FontAwesome, tokens.css
   
   Versiune: 1.0 (17 aprilie 2026)
   ═══════════════════════════════════════════════════════════════════ */


/* ─── RESET (minimal, modern) ───────────────────────────────────── */

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

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	line-height: 1.15;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: var(--font-weight-regular);
	line-height: var(--leading-normal);
	color: var(--color-neutral-900);
	background-color: var(--color-neutral-100);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: -0.01em;
}

/* Reset spacing pe elementele standard */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul, figure,
hr, fieldset, legend {
	margin: 0;
	padding: 0;
}

hr {
	width: 100%;
	border: 0;
	border-top: 1px solid var(--color-neutral-200);
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

input, button, textarea, select {
	font: inherit;
}

button {
	cursor: pointer;
}

ul, ol {
	padding-left: 1.5rem;
}

/* ─── TYPOGRAPHY — HEADINGS ─────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-tight);
	color: var(--color-brand-navy);
	letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-xl);  margin-bottom: var(--space-3); }
h4 { font-size: var(--text-lg);  margin-bottom: var(--space-3); }
h5 {
	font-size: var(--text-base);
	font-family: var(--font-sans);
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--space-2);
}
h6 {
	font-size: var(--text-sm);
	font-family: var(--font-sans);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	margin-bottom: var(--space-2);
}


/* ─── TYPOGRAPHY — TEXT ─────────────────────────────────────────── */

p {
	margin-bottom: var(--space-4);
	line-height: var(--leading-normal);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--color-brand-primary);
	text-decoration: none;
	transition: color var(--duration-fast) var(--ease-out);
}

a:hover,
a:focus-visible {
	color: var(--color-brand-primary-dark);
	text-decoration: underline;
}

strong, b {
	font-weight: var(--font-weight-semibold);
	color: inherit;
}

em, i {
	font-style: italic;
}

small {
	font-size: var(--text-sm);
	color: var(--color-neutral-600);
}

blockquote {
	margin: var(--space-5) 0;
	padding: var(--space-4) var(--space-5);
	border-left: 3px solid var(--color-brand-primary);
	background: var(--color-neutral-50);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: var(--text-lg);
	line-height: var(--leading-snug);
	color: var(--color-neutral-900);
}

code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	padding: 0.1em 0.3em;
	background: var(--color-neutral-100);
	border-radius: var(--radius-sm);
}

pre code {
	background: transparent;
	padding: 0;
}

pre {
	font-family: var(--font-mono);
	margin: var(--space-4) 0;
	padding: var(--space-4);
	background: var(--color-neutral-100);
	border-radius: var(--radius-md);
	overflow-x: auto;
}


/* ─── FOCUS MANAGEMENT (accessibility) ──────────────────────────── */

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--color-brand-primary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}


/* ─── REDUCED MOTION (accessibility) ────────────────────────────── */

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


/* ─── UTILITY CLASSES ───────────────────────────────────────────── */

/* Eyebrow pattern (label mic cu spacing larg deasupra titlurilor) */
.eyebrow {
	display: inline-block;
	font-size: var(--eyebrow-size);
	font-weight: var(--eyebrow-weight);
	letter-spacing: var(--eyebrow-tracking);
	text-transform: var(--eyebrow-transform);
	color: var(--color-brand-primary);
	margin-bottom: var(--space-2);
}

.eyebrow--accent  { color: var(--color-accent); }
.eyebrow--on-dark { color: var(--color-accent); }

/* Skip to content link (accessibility) */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-brand-navy);
	color: var(--color-neutral-0);
	padding: var(--space-2) var(--space-3);
	z-index: var(--z-tooltip);
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}

/* Screen reader only (visually hidden) */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
