/* Barberon — baza comună (fonturi, culori, elemente de formular). */

@font-face {
  font-family: 'League Gothic';
  src: url('/fonts/league-gothic-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'League Gothic';
  src: url('/fonts/league-gothic-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0c0c0c;
  --ink-2: #161616;
  --ink-3: #232323;
  --paper: #ffffff;
  --paper-2: #f1f1f0;
  --paper-3: #e4e4e2;
  --line: #dadad8;
  --line-dark: #2c2c2c;
  --muted: #595959;
  --muted-dark: #a6a6a6;
  --danger: #b3261e;
  --danger-dark: #ff8a80;

  --display: 'League Gothic', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #3a3a3a var(--ink);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
}

::selection { background: var(--ink); color: var(--paper); }
.dark ::selection, .dark::selection { background: var(--paper); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border: 2px solid var(--ink); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.dark { color: var(--paper); background: var(--ink); caret-color: var(--paper); }

.num { font-variant-numeric: tabular-nums; }
.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;
}

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: square; stroke-linejoin: miter; }

/* Titluri condensate, ca pe firmele vechi de frizerie */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}

/* Butoane */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.15s var(--ease-out);
}
.btn:hover { --btn-bg: #2b2b2b; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: #dcdcdc; }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --btn-bg: transparent; opacity: 0.75; }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--danger:hover { --btn-bg: #8f1d17; }
.btn--block { width: 100%; }
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--btn-fg); border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Formulare */
.field { display: grid; gap: 0.4rem; align-content: start; } /* căsuțele alăturate rămân aliniate sus */
.field-error:empty { display: none; }
.field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bdbdbb;
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #767676; }
.input:hover { border-color: #8a8a88; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input[aria-invalid='true'] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field-error { color: var(--danger); font-size: 0.8125rem; font-weight: 600; }

.alert {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  background: #fdf3f2;
  font-size: 0.9rem;
  font-weight: 600;
}
.alert .icon { margin-top: 0.15em; }
.alert--info { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
