/* ==========================================================
   Portofoliu proiecte – în stilul site-ului obm.ro
   (aceleași variabile, fonturi, header și footer)
   ========================================================== */

:root {
  --bg: #f3f6f7; --surface: #ffffff; --ink: #122f45; --muted: #4f6970; --line: #d5e0e1;
  --river: #1f6b80; --river-soft: #dfedf1; --reed: #b8861b; --reed-soft: #f5ead2;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; }
p, ol { margin: 0; }
a { color: var(--river); }
:focus-visible { outline: 3px solid var(--reed); outline-offset: 2px; }
.label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header (identic cu obm.ro) ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; background: #fff; border-radius: 10px; padding: 4px; line-height: 0; }
.brand img { display: block; width: 77px; height: auto; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--river); }
nav a[aria-current="page"] { color: var(--river); box-shadow: inset 0 -2px 0 var(--river); }

/* ---------- Hero compact ---------- */
.hero .wrap { padding-block: 44px 32px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 56ch; margin-top: 12px; }
.stat { border-left: 3px solid var(--reed); padding: 4px 0 4px 20px; }
.stat__num { font-family: var(--f-display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--reed); font-variant-numeric: tabular-nums; margin-top: 8px; }

/* ---------- Filtre ---------- */
.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; }
[hidden] { display: none !important; }
.filters { display: grid; gap: 12px; margin-bottom: 36px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--apel { padding-top: 12px; border-top: 1px dashed var(--line); }
.chip { font: 500 .9rem/1.3 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.chip:hover { border-color: var(--river); color: var(--river); }
.chip[aria-pressed="true"] { background: var(--river); border-color: var(--river); color: #fff; }
.chip__n { font-family: var(--f-mono); font-size: .75rem; opacity: .75; }
.chip--sub { font-size: .85rem; padding: 5px 12px; }
.chip--sub[aria-pressed="true"] { background: var(--reed-soft); border-color: var(--reed); color: var(--ink); }
.search input { width: 100%; max-width: 420px; font: 400 .95rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.search input:focus { outline: 2px solid var(--river); outline-offset: 0; border-color: var(--river); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Categorii și apeluri ---------- */
.portfolio { padding-block: 8px 56px; }
.domain + .domain { margin-top: 48px; }
.sec-head { margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; letter-spacing: -.01em; margin-top: 6px; }

.call { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.call + .call { margin-top: 24px; }
.call__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--river-soft), var(--river-soft)) left / 4px 100% no-repeat; }
.call__top h3 { font-size: 1.1rem; font-weight: 700; color: var(--river); }
.call__full { font-size: .8rem; color: var(--muted); margin-top: 4px; max-width: 80ch; }
.call__count { flex: none; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.call__count strong { color: var(--ink); font-weight: 500; }

/* ---------- Lista proiectelor ---------- */
.names { list-style: none; padding: 4px 24px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.names li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.n { flex: none; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--river); width: 2ch; }
.txt { min-width: 0; display: grid; gap: 2px; }
.name { font-size: .9rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.proj { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.names li:hover .name { color: var(--river); }

/* ---------- Footer (identic cu obm.ro) ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { font-weight: 500; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 24px; }
  .call__top { padding: 14px 16px; flex-wrap: wrap; }
  .names { grid-template-columns: 1fr; padding: 0 16px 4px; }
  .filters { padding: 14px; }
}
@media (max-width: 520px) { nav { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
