/* Fonturi găzduite local (licență SIL OFL). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(../fonts/bricolage-normal-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(../fonts/bricolage-normal-latin.woff2) format('woff2'); 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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(../fonts/instrument-normal-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(../fonts/instrument-normal-latin.woff2) format('woff2'); 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; }
/* Fonturi de rezervă cu lățime potrivită, ca textul să nu se rearanjeze când se încarcă fonturile web. */
@font-face { font-family: "Instrument Fallback"; font-weight: 400 500; size-adjust: 102.4%; src: local("Arial"), local("Liberation Sans"), local("Roboto"); }
@font-face { font-family: "Instrument Fallback"; font-weight: 600 700; size-adjust: 97%; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Roboto Bold"); }
@font-face { font-family: "Bricolage Fallback"; font-weight: 400 800; size-adjust: 92%; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Roboto Bold"), local("Arial"); }

:root {
  --paper: #f5f1e8;
  --paper-2: #ebe5d6;
  --sheet: #fffdf8;
  --ink: #15171c;
  --ink-2: #4a4f5a;
  --bright: #ffc629;
  --line: rgba(21, 23, 28, .16);
  --display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --body: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: max(clamp(20px, 5vw, 64px), calc((100vw - 1240px) / 2));
  --fold: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
.i18n-pending body { visibility: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--bright); }
[id] { scroll-margin-top: 84px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 12px 16px; background: var(--ink); color: var(--sheet);
}
.skip:focus { top: 12px; }

/* Antet */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad);
  background: rgba(245, 241, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; margin-right: auto;
  font: 700 1.25rem/1 var(--display); letter-spacing: -.02em; text-decoration: none;
}
.nav { display: none; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  font-weight: 500; text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang { display: flex; border: 1.5px solid var(--ink); }
.lang button {
  min-width: 48px; min-height: 44px; padding: 0 10px;
  border: 0; background: transparent; color: var(--ink);
  font: 600 .875rem/1 var(--body); letter-spacing: .04em; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }

/* Elemente comune */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 10px; background: var(--bright); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 9.2vw, 5.25rem); line-height: .98; }
h2 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.02; }
h3 { font: 700 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
.mark {
  background: linear-gradient(transparent 58%, var(--bright) 58%, var(--bright) 92%, transparent 92%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  border: 2px solid var(--ink);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--ink); color: var(--sheet); box-shadow: 5px 5px 0 var(--bright); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); }
.btn-primary:hover { box-shadow: 8px 8px 0 var(--bright); }
.btn-ghost:hover { box-shadow: 5px 5px 0 var(--ink); }

/* Hero */
.hero {
  display: grid; gap: 36px;
  padding: clamp(40px, 8vw, 96px) var(--pad) 0;
}
.hero-copy { display: grid; gap: 22px; align-content: center; }
.lead { max-width: 34em; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.hero-art { max-width: 420px; width: 100%; margin: 0 auto; }
.hero-art svg { width: 100%; aspect-ratio: 420 / 460; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
  font-size: .9375rem; font-weight: 500;
}
.facts li { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.facts li::before { content: "◤ "; color: var(--ink); font-size: .7em; vertical-align: 2px; }

/* Secțiuni */
.section { padding: clamp(64px, 10vw, 128px) var(--pad); }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-note { color: var(--ink-2); }

/* Servicii: carduri cu colț îndoit */
.cards { display: grid; gap: 18px; }
.card {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 28px 26px 30px;
  background: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}
.card::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: var(--fold); height: var(--fold);
  background: linear-gradient(to top right, var(--bright) 50%, transparent 50%);
}
.card-no { font: 700 .875rem/1 var(--display); letter-spacing: .08em; color: var(--ink-2); }
.card p { color: var(--ink-2); }

/* Proces */
.dark { background: var(--ink); color: var(--sheet); }
.steps { display: grid; gap: 0; counter-reset: none; }
.steps li {
  position: relative; display: grid; gap: 10px;
  padding: 0 0 36px 68px;
}
.steps li::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: 0;
  border-left: 2px dashed rgba(255, 253, 248, .3);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.step-no {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--bright); color: var(--ink);
  font: 800 1.375rem/1 var(--display);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.steps h3 { padding-top: 10px; }
.steps p { color: #c9ccd3; max-width: 30em; }

/* Portofoliu */
.work { display: grid; gap: 28px 22px; }
.work-card { display: grid; gap: 4px; text-decoration: none; }
.work-card svg {
  width: 100%; aspect-ratio: 4 / 3; margin-bottom: 12px;
  border: 2px solid var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover svg, .work-card:focus-visible svg { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--bright); }
.work-kind { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.work-card strong { font: 700 1.5rem/1.15 var(--display); letter-spacing: -.02em; }
.work-card strong::after { content: " →"; }
.work-style { color: var(--ink-2); font-size: .9375rem; }

/* Contact */
.contact { display: grid; gap: 40px; background: var(--bright); }
.contact .eyebrow::before { background: var(--ink); }
.contact-copy { display: grid; gap: 18px; align-content: start; }
.contact-copy > p { max-width: 30em; }
.contact-mail a {
  display: inline-flex; align-items: center; min-height: 48px;
  font: 700 clamp(1.125rem, 4.6vw, 1.75rem)/1.2 var(--display); letter-spacing: -.02em;
  overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.contact-form {
  display: grid; gap: 16px; padding: 26px 22px 28px;
  background: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; }
.contact-form input, .contact-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; box-shadow: 5px 5px 0 var(--paper-2); }
.note { font-size: .875rem; color: var(--ink-2); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding: 22px var(--pad); background: var(--ink); color: #c9ccd3; font-size: .9375rem;
}
.foot a { display: inline-flex; align-items: center; min-height: 48px; margin-left: auto; color: var(--sheet); }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .work { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-bottom: 0; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .facts { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .work { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 68px 0 0; }
  .steps li::before { left: 58px; right: -28px; top: 23px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(255, 253, 248, .3); }
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
