/* ============================================================
   Batranu' Sas - design system comun (redesign 2026)
   Sursa de adevar: DESIGN.md + PRODUCT.md
   Vanilla CSS, fara build. Folosit de toate paginile.
   ============================================================ */

:root {
  /* canvas inchis */
  --ink: #0E0E0E;
  --black: #111111;
  --surface: #161616;
  --surface-2: #1D1D1D;
  --line-dark: rgba(255,255,255,0.12);
  --line-dark-2: rgba(255,255,255,0.20);

  /* verde */
  --green: #175534;
  --green-2: #103D24;
  --green-light: #1D6840;

  /* rosu semnal */
  --red: #E5231B;
  --red-2: #C41A13;

  /* albastru Wolt: rezervat butoanelor de comanda Wolt */
  --wolt: #00C2E8;
  --wolt-2: #00A6C9;
  --wolt-ink: #06262E;

  /* auriu: rezervat membrilor */
  --gold: #C8A24B;
  --gold-light: #E4C988;
  --gold-deep: #B4865A;

  /* cald / hartie */
  --cream: #FAF7F2;
  --cream-2: #F2EDE4;
  --cream-3: #E8E0D5;
  --paper: #ECE3D2;
  --wood: #241D15;
  --line-light: #E2D9CB;

  /* text */
  --text: #15140F;
  --text-muted: #6B665D;
  --text-on-dark: #F4F0E8;
  --text-on-dark-muted: rgba(244,240,232,0.62);

  /* tipografie */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* forma + spatiu */
  --r: 10px;
  --r-sm: 7px;
  --r-lg: 14px;
  --maxw: 1180px;
  --gutter: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 4px 14px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 22px rgba(0,0,0,0.10), 0 18px 50px rgba(0,0,0,0.07);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--black { background: var(--black); color: var(--text-on-dark); }
.section--green { background: var(--green-2); color: var(--text-on-dark); }
.section--cream { background: var(--cream); color: var(--text); }
.section--paper { background: var(--paper); color: var(--text); }

/* ---------- tipografie ---------- */
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; }
.display {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: clamp(44px, 7.5vw, 104px); line-height: 0.94; letter-spacing: -0.015em;
}
.h2 { font-size: clamp(30px, 4.4vw, 52px); font-style: italic; }
.h3 { font-size: clamp(21px, 2.4vw, 28px); }
.lead { font-size: clamp(16.5px, 1.7vw, 20px); line-height: 1.6; color: var(--text-muted); }
.section--dark .lead, .section--green .lead, .section--black .lead { color: var(--text-on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: 0.8; }
.eyebrow--center { justify-content: center; }
.eyebrow--red { color: var(--red); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(14,14,14,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 2px solid var(--red);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-on-dark); }
.brand img { height: 30px; width: auto; }
.brand__word { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 20px; line-height: 1; color: var(--cream); }
.brand__wordmark { height: 17px !important; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted);
  transition: color 0.16s var(--ease); position: relative; padding: 4px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--gold);
}
.nav__cta {
  background: var(--red); color: #fff !important; padding: 9px 16px; border-radius: var(--r-sm);
  letter-spacing: 0.08em !important; font-weight: 700 !important; transition: background 0.16s var(--ease);
}
.nav__cta:hover { background: var(--red-2); }
/* butonul Wolt: ghost + iconita Wolt (W alb pe patrat cyan #009DE0), la fel ca varianta 1 */
.nav__cta--wolt {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.30); font-weight: 600 !important;
}
.nav__cta--wolt:hover { background: rgba(255,255,255,0.07); border-color: var(--cream); }
.nav__cta--wolt::before, .btn--wolt::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%23009DE0'/%3E%3Ctext x='16' y='23' text-anchor='middle' font-family='Arial Black,Arial,sans-serif' font-size='18' font-weight='900' fill='white'%3EW%3C/text%3E%3C/svg%3E") no-repeat center / contain;
}
.nav-toggle { display: none; color: var(--cream); font-size: 26px; line-height: 1; padding: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 2px solid var(--red); padding: 8px 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px var(--gutter); font-size: 13px; border-top: 0.5px solid var(--line-dark); }
  .nav__cta { margin: 10px var(--gutter); text-align: center; }
}

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-sm);
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; min-height: 48px;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ti { font-size: 18px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(229,35,27,0.30); }
.btn--red:hover { background: var(--red-2); box-shadow: 0 6px 20px rgba(229,35,27,0.40); }
.btn--gold { background: var(--gold); color: #2c2208; }
.btn--gold:hover { background: var(--gold-light); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-light); }
.btn--wolt { background: transparent; color: var(--text); border: 1.5px solid var(--line-light); }
.btn--wolt:hover { border-color: var(--text); background: rgba(0,0,0,0.03); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border: 1.5px solid var(--line-dark-2); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--ghost-dark { background: transparent; color: var(--text); border: 1.5px solid var(--line-light); }
.btn--ghost-dark:hover { border-color: var(--text); }
.btn--sm { padding: 10px 16px; min-height: 40px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- chip / tag ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: var(--r-sm); white-space: nowrap;
}
.chip--dark { background: var(--surface); color: var(--text-on-dark); border: 0.5px solid var(--line-dark); }
.chip--paper { background: #fff; color: var(--green); border: 0.5px solid var(--line-light); }
.chip--green { background: var(--green); color: var(--cream); }
.member-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-light); background: rgba(200,162,75,0.12);
  border: 0.5px solid rgba(200,162,75,0.42); padding: 7px 12px; border-radius: var(--r-sm);
}

/* ---------- motive: topo + diagonala ---------- */
.topo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.topo svg { width: 100%; height: 100%; }
.topo path { fill: none; stroke: var(--cream); stroke-opacity: 0.07; stroke-width: 1; }
.diagonal {
  position: absolute; top: -18%; width: 30px; height: 136%;
  background: var(--red); transform: rotate(20deg); z-index: 1; pointer-events: none; opacity: 0.42;
}
.has-layers { position: relative; }
.has-layers > .container, .has-layers > .layer-content { position: relative; z-index: 2; }

/* ---------- kraft label ---------- */
.kraft-label {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--paper); color: var(--text); border-radius: var(--r-sm);
  padding: 9px 13px; box-shadow: var(--shadow-sm); font-family: var(--font-mono);
}
.kraft-label__k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.kraft-label__v { font-size: 14px; font-weight: 700; }

/* ---------- placeholder tile (pana vin pozele) ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 9px; background: var(--wood); color: var(--gold-light);
  border: 0.5px solid rgba(200,162,75,0.22); border-radius: var(--r); padding: 22px;
  min-height: 160px;
}
.ph .ti { font-size: 28px; color: var(--gold); opacity: 0.85; }
.ph__name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ph__hint { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--text-on-dark-muted); }
.media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--wood); }
/* pozele sunt mereu vizibile (opacity:1): nu depind de niciun JS, eveniment sau
   ceas de animatie ca sa apara. Intrarea lina vine de la reveal-ul cardului/sectiunii
   care le contine. Asa o poza nu poate ramane niciodata invizibila. */
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- card ---------- */
.card {
  background: #fff; border: 0.5px solid var(--line-light); border-radius: var(--r-lg);
  overflow: hidden; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--dark { background: var(--surface); border-color: var(--line-dark); color: var(--text-on-dark); }
.card__body { padding: 18px 20px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- forme: input ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select {
  font: inherit; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-light); background: #fff; color: var(--text); min-height: 48px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,35,27,0.14); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark); padding: 64px 0 28px; position: relative; }
.site-footer a { color: var(--text-on-dark-muted); transition: color 0.16s var(--ease); }
.site-footer a:hover { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; font-size: 14px; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 0.5px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-on-dark-muted); font-family: var(--font-mono); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion (IntersectionObserver + tranzitie CSS) ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
/* daca JS nu ruleaza, continutul ramane vizibil (no-js e scos sincron de site.js) */
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- utilitare ---------- */
.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; }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

/* ---------- pattern interrupt (banda foto full-bleed) ---------- */
.interrupt { position: relative; min-height: 56vh; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.interrupt .media { position: absolute; inset: 0; border-radius: 0; }
.interrupt__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.55) 52%, rgba(8,8,8,0.15) 100%); }
.interrupt__content { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 52px; }
.interrupt__kicker { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: inline-block; margin-bottom: 16px; }
.interrupt__statement { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(31px, 7.5vw, 80px); line-height: 1.0; color: var(--cream); max-width: 660px; }
