/* ============================================================
   D&D Parchet Design SRL
   base.css – Shared reset, design tokens and utilities
   Modern Architectural · Premium · Minimalist
   ============================================================ */

/* ---------- Token defaults (overridden by site.css :root) ---------- */
:root {
  --font-heading: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --color-bg: #f7f5f1;
  --color-surface: #ffffff;
  --color-ink: #1a1714;
  --color-muted: #6b635a;
  --color-line: #e2ddd4;
  --color-accent: #b0522e;
  --color-accent-dark: #8a3e22;
  --color-soft: #efebe3;
  --color-dark: #1a1714;

  --container: 1320px;
  --pad: 24px;
  --spacing-section: clamp(72px, 10vw, 130px);

  /* ---------- Geometrie (modern architectural: muchii drepte) ----------
     Un singur loc de control pentru rotunjiri. Valoarea 0 da limbajul
     vizual arhitectural; se poate reveni la rotunjit schimband aici. */
  --radius-none: 0;
  --radius-card: 0;
  --radius-pill: 0;

  /* ---------- Miscare ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.28s;
}

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

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

body {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  color: var(--color-ink, #1a1a1a);
  background: var(--color-bg, #ffffff);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, 'Archivo', sans-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 var(--pad, 24px);
}

.container--narrow { max-width: 860px; }

/* ---------- A11y helpers ---------- */
.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: #111;
  color: #fff;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--color-accent, #b03a2e);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@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;
  }
}