/* ==========================================================================
   r-Omenia.ro — Base
   Reset, design tokens (light theme) și tipografie de bază.
   Toate modulele CSS folosesc variabilele din :root de mai jos.
   ========================================================================== */

:root {
  /* Font */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* Suprafațe — gri neutru */
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-subtle: #f2f2f2;
  --bg-hover: #ebebeb;

  /* Borduri */
  --border: #e0e0e0;
  --border-strong: #cfcfcf;

  /* Text — gri închis și deschis, fără negru */
  --text: #3a3a3a;
  --text-strong: #5c5c5c;
  --text-muted: #757575;
  --text-dim: #999999;

  /* Accent — gri închis neutru (monocrom) */
  --accent: #444444;
  --accent-strong: #3a3a3a;
  --accent-soft: #f0f0f0;
  --accent-ring: rgba(0, 0, 0, 0.10);

  /* Semantic — nuanțe discrete, des saturate */
  --success: #56804a;
  --success-soft: #eef3ea;
  --warning: #9a7b2d;
  --warning-soft: #f7f2e3;
  --danger: #a85555;
  --danger-soft: #f8eded;
  --info: #5b7a99;
  --info-soft: #edf1f6;

  /* Efecte */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.28);

  /* Raze */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Tranziții și layout */
  --transition: 0.18s ease;
  --nav-height: 64px;
  --content-max: min(80vw, 1600px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(0, 0, 0, 0.035), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Headere și text bold — gri mediu, nu negru */
h1, h2, h3, h4, h5, h6,
strong, b {
  color: var(--text-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  :root {
    --content-max: 100%;
  }
}
