/* ============================================================
   Dolca Creative, temă ÎNTUNECATĂ pe toată pagina (o singură pagină).
   Fundal: o instanță Vanta TOPOLOGY, fixă, cu linii curgătoare
   cyan-verzi (--vanta-line) pe verde-închis (--vanta-bg), la fel în
   hero și în restul paginii. Secțiunile sunt văluri translucide
   peste fundal, deci folosesc rgba, nu culori opace.
   Accentul de acțiune rămâne portocaliu (--accent), complementar
   cu cyanul: portocaliu = butoane, auriu = repere, cyan = fundal.
   ============================================================ */

/* Fonturi găzduite LOCAL (fără request-uri către Google — cerință GDPR
   + mai rapid pe mobil). Instrument Sans (variabil 400-700) + Instrument
   Serif italic, subseturile latin + latin-ext (diacriticele românești). */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-var-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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-var-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 Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-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;
}

:root {
  color-scheme: dark;
  --bg: #101815;
  --ink: #eae6dd;
  --ink-55: rgba(234, 230, 221, .66);
  --ink-65: rgba(234, 230, 221, .74);
  --ink-72: rgba(234, 230, 221, .82);
  --accent: #b3541e;
  --accent-ink: #f7f3ec;
  --gold: #d3a758;
  --gold-soft: rgba(211, 167, 88, .35);
  /* Culorile fundalului animat (citite din js/site.js). O pagină își
     schimbă tema fundalului suprascriind aceste două variabile. */
  --vanta-line: #2ad4b8;
  --vanta-bg: #101815;
  --dark: #101815;
  --cream: #eae6dd;
  --cream-55: rgba(234, 230, 221, .65);
  --line: rgba(234, 230, 221, .14);
  --line-cream: rgba(234, 230, 221, .14);
  --veil: rgba(13, 20, 17, .55);
  --card: rgba(22, 32, 28, .82);
  --nav-h: 78px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

a, button, input, select, .addon, .faq__q { touch-action: manipulation; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Granulație fină peste tot — unifică ceața și conținutul */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; }

img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus-visible { top: 12px; color: var(--bg); }

/* ============================================================
   Fundalul animat — un singur canvas fix în spatele paginii,
   aceeași atmosferă întunecată peste tot (inițializat în js/site.js)
   ============================================================ */
#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}
#vanta-bg canvas { display: block; opacity: .9; }

/* Fallback static (mișcare redusă / JS oprit / eroare de script):
   aceeași atmosferă cyan-verde întunecată, dar nemișcată */
#vanta-bg.bg-fallback {
  background:
    radial-gradient(58% 46% at 16% 20%, rgba(42, 212, 184, .20), transparent 70%),
    radial-gradient(46% 42% at 84% 12%, rgba(28, 168, 150, .26), transparent 72%),
    radial-gradient(64% 52% at 72% 80%, rgba(42, 212, 184, .13), transparent 75%),
    radial-gradient(50% 44% at 28% 86%, rgba(28, 168, 150, .12), transparent 72%),
    var(--bg);
}

/* ============================================================
   Schelet comun
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.section__pad { padding-top: 110px; padding-bottom: 120px; }
#servicii .section__pad,
#proces .section__pad,
#preturi .section__pad { padding-top: 120px; }
.section__pad--quotes { padding-top: 110px; padding-bottom: 110px; }
.section__pad--contact { padding-top: 120px; padding-bottom: 100px; }

.section--line { border-top: 1px solid rgba(234, 230, 221, .1); }

/* Văl discret sub secțiunile cu mult text: liniile animate rămân
   vizibile, dar calme — vii doar în hero, proof bar și footer */
.section--calm { background: rgba(13, 20, 17, .42); }

.section--veil {
  background: var(--veil);
  border-top: 1px solid rgba(234, 230, 221, .1);
  border-bottom: 1px solid rgba(234, 230, 221, .1);
}
.section--veil-top { border-bottom: none; }

/* Ancorele nu se ascund sub bara sticky */
section[id], header[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.kicker {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Reper vizual unificat: kickerele sunt aurii, cu o liniuță aurie —
   auriu = reper de orientare, portocaliu = acțiune */
.kicker,
.section-head__kicker,
.hero__kicker {
  display: flex;
  align-items: center;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.section-head--tight { margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -.025em;
  font-weight: 600;
}
.section-head__kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-sub {
  margin: 0 0 60px;
  font-size: 17.5px;
  color: var(--ink-65);
  max-width: 56ch;
  line-height: 1.6;
}
#proces .section-sub { margin-bottom: 56px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
}

.btn {
  display: inline-block;
  font-size: 15.5px;
  font-weight: 600;
  font-family: "Instrument Sans", sans-serif;
  border: none;
  cursor: pointer;
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 17px 34px;
  transition: transform .2s;
}
.btn--accent:hover { color: var(--accent-ink); transform: translateY(-2px); }
.btn--block { display: block; text-align: center; width: 100%; padding: 16px; margin-top: 24px; }
.btn--sm { padding: 13px 22px; font-size: 14.5px; }

.btn__arrow { display: inline-block; margin-left: 10px; transition: transform .2s; }
.btn--accent:hover .btn__arrow { transform: translateX(3px); }

/* Locuri rezervate pentru imagini reale (SWAP) */
.media-slot {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.media-slot span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(234, 230, 221, .65);
  border: 1px dashed rgba(234, 230, 221, .3);
  padding: 14px 22px;
  max-width: 30ch;
  line-height: 1.6;
}
.media-slot--dark span {
  color: rgba(234, 230, 221, .66);
  border-color: rgba(234, 230, 221, .28);
}

/* Vitrine live: site-urile reale ale proiectelor, încorporate ca
   „ferestre" scalate (iframe la 1280px, micșorat pe lățimea slotului
   — factorul --s e calculat în js/site.js). Necliclabile: sunt
   capturi vii, nu navigare. */
.media-live { position: relative; overflow: hidden; padding: 0; }
.media-live iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  border: 0;
  pointer-events: none;
  transform: scale(var(--s, .3));
  transform-origin: 0 0;
  background: #fff;
}
.project__media.media-live iframe { height: 800px; }

/* ============================================================
   Navigație
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 20, 17, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 230, 221, .12);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand__logo { height: 42px; width: auto; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand__tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a.is-active { color: var(--gold); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
}
.nav__actions { display: flex; align-items: center; gap: 22px; justify-self: end; }
.nav__phone { font-size: 14.5px; font-weight: 500; color: rgba(234, 230, 221, .75); white-space: nowrap; }
.nav__cta {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--accent); color: var(--accent-ink); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) 32px 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__links a {
  color: var(--cream);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.02em;
  padding: 8px 0;
}
.mobile-menu__foot { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu__foot a { color: var(--cream-55); font-size: 16px; }
.mobile-menu__cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  text-align: center;
  padding: 16px;
  font-size: 15.5px;
  font-weight: 600;
}
body.menu-open { overflow: hidden; }

/* ============================================================
   Hero — văl întunecat peste aceeași ceață a paginii
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(13, 20, 17, .28),
    rgba(13, 20, 17, .48) 55%,
    rgba(13, 20, 17, .62));
}
.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 32px 96px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
/* Hero CENTRAT: titlul primește toată lățimea (nu mai e strivit într-o
   coloană), iar oferta e scanabilă instant din pastilele de sub el.
   Fundalul animat ține locul vizualului din dreapta. */
.hero--center .hero__inner {
  display: block;
  max-width: 1000px;
  padding: 104px 32px 84px;
  text-align: center;
  animation: riseIn .7s cubic-bezier(.2, .7, .2, 1) .05s both;
}
.hero--center .hero__kicker { justify-content: center; margin-bottom: 22px; }
.hero--center .hero__title { font-size: clamp(40px, 5.6vw, 74px); margin-bottom: 22px; }
.hero--center .hero__lede {
  max-width: 58ch;
  margin: 0 auto 30px;
  font-size: clamp(17px, 1.7vw, 20px);
}
.hero--center .hero__ctas { justify-content: center; }
.hero--center .hero__note { text-align: center; }

/* Cuvintele-cheie din titlu, în serif auriu: se citesc primele */
.hero__title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* Telefonul lângă CTA: canalul care chiar funcționează acum */
.hero__call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(234, 230, 221, .3);
  text-underline-offset: 5px;
}
.hero__call svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.hero__call:hover { color: var(--gold); text-decoration-color: var(--gold); }

.hero__copy { animation: riseIn .6s cubic-bezier(.2, .7, .2, 1) .05s both; }
.hero__kicker {
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
}
.hero__lede {
  margin: 0 0 40px;
  max-width: 50ch;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(234, 230, 221, .78);
}
.hero__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__ghost {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid rgba(234, 230, 221, .4);
  padding-bottom: 2px;
}
.hero__note { margin: 18px 0 0; font-size: 14.5px; color: var(--cream-55); }

.hero__proof { position: relative; border-top: 1px solid var(--line-cream); }
.hero__proof-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.proof { display: flex; flex-direction: column; gap: 5px; }
.proof__big { font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--cream); }
.proof__small { font-size: 13.5px; color: var(--cream-55); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Proiecte
   ============================================================ */
.project { display: flex; flex-direction: column; gap: 14px; }

.project__media { aspect-ratio: 16 / 10; background: rgba(24, 34, 30, .6); height: auto; border: 1px solid var(--line-cream); }
.project__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.project__name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.project__kind { font-size: 13.5px; color: var(--ink-55); }

/* ============================================================
   Portofoliu (portfolio.html) + banda de trimitere din index
   ============================================================ */
.pf-group { margin-bottom: 76px; }
.pf-group:last-child { margin-bottom: 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.pf-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.pf-grid--3 .project__name { font-size: 16px; }
.project__desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-72); }
.pf-grid--3 .project__desc { font-size: 14.5px; }
.project__link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px;
  font-size: 14.5px; font-weight: 600; color: var(--accent);
  width: max-content;
}
.project__link:hover { color: var(--gold); }
.project__demo {
  margin: 0; font-size: 12.5px; font-style: italic; color: var(--ink-55);
}

/* Blocuri centrate pe pagina de portofoliu (intro + CTA final) */
.pf-teaser { text-align: center; max-width: 760px; margin: 0 auto; }
.pf-teaser .kicker { justify-content: center; }
.pf-teaser h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -.025em; font-weight: 600; text-wrap: balance;
}
.pf-teaser p { margin: 0 auto 26px; max-width: 54ch; font-size: 17.5px; line-height: 1.6; color: var(--ink-65); }

/* Capul secțiunii de proiecte de pe pagina principală (centrat) */
.pf-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.pf-head .kicker { justify-content: center; }
.pf-head h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.025em; font-weight: 600; line-height: 1.1; text-wrap: balance;
}
.pf-head h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400; color: var(--gold);
}
.pf-head p { margin: 0 auto; max-width: 52ch; font-size: 17.5px; line-height: 1.6; color: var(--ink-65); }

/* Vitrinele de pe pagina principală: fiecare proiect într-o ramă de
   browser, ca previzualizarea să se citească drept „produs livrat" */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 46px; }
.show { display: flex; flex-direction: column; }
.show__frame {
  display: block;
  border: 1px solid var(--line-cream);
  background: rgba(13, 20, 17, .75);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .38);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.show__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(9, 15, 13, .92);
  border-bottom: 1px solid var(--line-cream);
}
.show__dots { display: flex; gap: 6px; flex: none; }
.show__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.show__dots i:nth-child(1) { background: #ff5f57; }
.show__dots i:nth-child(2) { background: #febc2e; }
.show__dots i:nth-child(3) { background: #28c840; }
.show__url {
  font-size: 12px; color: var(--ink-55);
  letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.show__shot { display: block; aspect-ratio: 16 / 10; background: rgba(24, 34, 30, .6); }
.show__shot.media-live iframe { height: 800px; }

.show__badge {
  align-self: flex-start;
  margin-top: 22px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 13px;
}
.show__name {
  display: block;
  margin-top: 13px;
  font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
}
.show__desc {
  display: block;
  margin-top: 8px;
  font-size: 15.5px; line-height: 1.6; color: var(--ink-72);
}
@media (hover: hover) {
  .show:hover .show__frame {
    transform: translateY(-4px);
    border-color: var(--gold-soft);
    box-shadow: 0 26px 54px rgba(0, 0, 0, .45);
  }
}
@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .pf-head { margin-bottom: 36px; }
}

.pf-more { display: flex; justify-content: center; }

@media (max-width: 980px) {
  .pf-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .pf-grid, .pf-grid--3 { grid-template-columns: 1fr; }
  .pf-group { margin-bottom: 56px; }
}

/* ============================================================
   Servicii
   ============================================================ */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service { padding: 36px 38px; display: flex; flex-direction: column; gap: 14px; }
.service h3 { font-size: 23px; font-weight: 600; letter-spacing: -.015em; }
.service__desc { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-72); }
.service__fit {
  margin: 6px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.service__fit span { font-weight: 600; color: var(--gold); }

/* Viață la hover: cardurile se ridică ușor, conturul se încălzește */
@media (hover: hover) {
  .service, .project, .fact { transition: transform .2s ease, border-color .2s; }
  .service:hover, .fact:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
  .project:hover { transform: translateY(-3px); }
  .project:hover .project__media { border-color: var(--gold-soft); }
}

/* ============================================================
   Proces
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__icon,
.service__icon { width: 38px; height: 38px; color: var(--gold); margin-bottom: 2px; }
.step__icon svg,
.service__icon svg { width: 100%; height: 100%; display: block; }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(234, 230, 221, .75); }

/* ============================================================
   Prețuri + configurator
   ============================================================ */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.pricing__title {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -.025em;
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
.pricing__lede { margin: 0 0 32px; font-size: 17.5px; line-height: 1.6; color: rgba(234, 230, 221, .7); max-width: 44ch; }
.pricing__includes-intro { margin: 0 0 8px; font-size: 15px; color: rgba(234, 230, 221, .7); }
.pricing__includes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16.5px;
  line-height: 2;
  color: rgba(234, 230, 221, .82);
}

.configurator { padding: 40px; border-color: rgba(234, 230, 221, .15); }
.configurator__pages {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
}
.configurator__pages-title { margin: 0; font-size: 17px; font-weight: 600; }
.configurator__pages-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-55); }
.configurator__pages-count { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
#pages-range { width: 100%; accent-color: var(--accent); cursor: pointer; margin: 0; }

.configurator__addons { margin-top: 28px; }
.addon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}
.addon__box {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
  transition: all .2s;
  border: 1px solid rgba(234, 230, 221, .4);
  background: transparent;
  color: transparent;
}
.addon[aria-checked="true"] .addon__box {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.addon__label { flex: 1; font-size: 15.5px; font-weight: 500; }
.addon__price { font-size: 14.5px; color: rgba(234, 230, 221, .7); font-variant-numeric: tabular-nums; }

.configurator__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid var(--ink);
  margin-top: 8px;
  padding-top: 22px;
}
.configurator__total-label { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.configurator__total-value { font-size: 38px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.configurator__note { margin: 16px 0 0; font-size: 13px; color: rgba(234, 230, 221, .66); text-align: center; }

/* ============================================================
   Fapte, nu promisiuni (banda de încredere; înlocuiește citatele
   placeholder până există păreri reale de la clienți)
   ============================================================ */
.facts__lead {
  margin: 0 0 44px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  max-width: 32ch;
  text-wrap: pretty;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fact__icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 2px; }
.fact__icon svg { width: 100%; height: 100%; display: block; }
.fact h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.fact p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-72); }
.fact a {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(234, 230, 221, .35);
  width: max-content;
  padding-bottom: 2px;
}
.facts__note { margin: 26px 0 0; font-size: 13.5px; font-style: italic; color: var(--ink-55); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}
.faq__title {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.025em;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}
.faq__list { border-bottom: 1px solid rgba(234, 230, 221, .15); }
.faq__item { border-top: 1px solid rgba(234, 230, 221, .15); }
.faq__item h3 { margin: 0; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  text-align: left;
  font-family: "Instrument Sans", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.faq__sign {
  font-size: 22px;
  font-weight: 500;
  color: rgba(234, 230, 221, .65);
  flex: none;
  line-height: 1;
  transition: color .2s;
}
.faq__item.is-open .faq__sign { color: var(--accent); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p {
  margin: 0;
  padding: 0 4px 24px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-72);
  max-width: 64ch;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact .kicker { margin-bottom: 24px; }
.contact__title {
  margin: 0 0 30px;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -.03em;
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}
.contact__lede { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--ink-72); max-width: 44ch; }
.contact__links { display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.contact__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(234, 230, 221, .35);
  width: max-content;
  padding-bottom: 3px;
}
.contact__links svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.contact__reassure { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-55); text-align: center; }

/* Mesajul de eroare: apare doar dacă trimiterea chiar a eșuat */
.contact__error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #d9826a;
  background: rgba(217, 130, 106, .1);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.contact__error a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.contact__submit:disabled { opacity: .65; cursor: progress; }

.contact__form { display: flex; flex-direction: column; gap: 18px; }
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(234, 230, 221, .7);
}
.contact__form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(234, 230, 221, .35);
  border-radius: 0;
  padding: 10px 0;
  font-size: 17px;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.contact__form input:focus { border-color: var(--accent); }
.contact__form input.is-invalid { border-color: #d9826a; }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(234, 230, 221, .5); }

.contact__form textarea {
  background: transparent;
  border: 1px solid rgba(234, 230, 221, .35);
  border-radius: 0;
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.55;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  outline: none;
  min-height: 112px;
  resize: vertical;
  transition: border-color .2s;
}
.contact__form textarea:focus { border-color: var(--accent); }

/* Opțiuni tip „pastilă" — înlocuiesc dropdown-urile native (care se
   stilizează prost pe temă întunecată și deschid popup pe mobil) */
.pills { border: none; margin: 0; padding: 0; }
.pills legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(234, 230, 221, .7);
}
.pills__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; }
.pill-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.pill-opt span {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid rgba(234, 230, 221, .35);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-72);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.pill-opt span:hover { border-color: rgba(234, 230, 221, .7); color: var(--ink); }
.pill-opt input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pill-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.contact__submit { margin-top: 16px; padding: 18px; }

.contact__thanks {
  border: 1px solid rgba(234, 230, 221, .3);
  padding: 48px 40px;
  background: rgba(22, 32, 28, .88);
}
.contact__thanks-title { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.contact__thanks-text { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-72); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: rgba(13, 20, 17, .8); border-top: 1px solid var(--line-cream); color: rgba(234, 230, 221, .7); }
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: rgba(234, 230, 221, .75); padding: 4px 0; }
.footer__links a:hover { color: var(--accent-ink); }

/* Rândul legal obligatoriu (RO/UE) */
.footer__legal { border-top: 1px solid rgba(234, 230, 221, .08); }
.footer__legal-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 13px;
}
.footer__legal-inner a { color: rgba(234, 230, 221, .65); padding: 6px 0; }
.footer__legal-inner a:hover { color: var(--accent-ink); }

/* Pictograma oficială ANPC — SAL (obligatorie), servită local */
.footer__sal { margin-left: auto; padding: 0 !important; flex: none; }
.footer__sal img { display: block; height: 44px; width: auto; }
.footer__sal:hover { opacity: .9; }
.legal-page .footer__sal { margin-left: 0; display: inline-block; border-bottom: none; }
.legal-page .footer__sal img { height: 52px; }

/* ============================================================
   Pagina legală (legal.html)
   ============================================================ */
.legal-page { max-width: 860px; margin: 0 auto; padding: 64px 32px 96px; }
.legal-page h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.025em;
  font-weight: 600;
  margin-bottom: 10px;
  text-wrap: balance;
}
.legal-updated { color: var(--ink-55); font-size: 14px; margin: 0 0 40px; }
.legal-page h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 52px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.legal-page h3 { font-size: 17.5px; font-weight: 600; margin: 24px 0 8px; }
.legal-page p, .legal-page li { font-size: 16.5px; line-height: 1.7; color: var(--ink-72); }
.legal-page p { margin: 0 0 14px; }
.legal-page ul { margin: 0 0 14px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { border-bottom: 1px solid rgba(234, 230, 221, .3); }
.legal-page a:hover { border-color: var(--accent); }
.legal-page strong { color: var(--ink); font-weight: 600; }
.swap-note {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-72);
  margin: 0 0 14px;
}
.nav__back { font-size: 14.5px; font-weight: 500; white-space: nowrap; justify-self: end; }
/* Specificitate mai mare decât regula de sub 980px, ca cele trei
   coloane (brand / înapoi / limbă) să nu se rupă pe telefon */
.nav .nav__inner--legal { grid-template-columns: 1fr auto auto; }

/* ============================================================
   Comutator de limbă RO ⇄ EN
   Auriu, ca reper de navigație, nu ca acțiune (aia rămâne portocalie).
   ============================================================ */
.nav__lang {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 8px 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.nav__lang:hover,
.nav__lang:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* ============================================================
   Reveal la scroll (aplicat din JS, doar sub fold).
   Viața vine din: curbă ease-out pronunțată + durată de ~0.7s,
   elementele frați care intră ÎN CASCADĂ (--rev-delay), iar
   titlurile mari care apar CUVÂNT CU CUVÂNT (.rev-word + --wd).
   ============================================================ */
:root { --rev-ease: cubic-bezier(.22, 1, .36, 1); }

.reveal-init {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--rev-ease), transform .7s var(--rev-ease);
  transition-delay: var(--rev-delay, 0s);
}
.reveal-init.is-in { opacity: 1; transform: none; }

/* Containerul unui titlu revelat pe cuvinte: doar fade, fără urcare,
   ca titlul să nu se miște de două ori (o dată blocul, o dată cuvintele) */
.reveal-init.rev-fadeonly { transform: none; }

/* Titluri: fiecare cuvânt urcă și apare, cu un mic decalaj (--wd) */
.rev-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  transition: opacity .6s var(--rev-ease), transform .6s var(--rev-ease);
  transition-delay: var(--wd, 0s);
}
.rev-words.is-in .rev-word { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1120px) {
  .hero__inner { gap: 48px; }
  .pricing, .contact, .faq { gap: 48px; }
}

@media (max-width: 1024px) {
  .section__pad { padding-top: 84px; padding-bottom: 92px; }
  #servicii .section__pad, #proces .section__pad, #preturi .section__pad { padding-top: 92px; }

  .hero__inner { grid-template-columns: 1fr; padding: 84px 32px 72px; gap: 48px; }
  .hero--center .hero__inner { padding: 84px 32px 72px; }
  .hero__lede { max-width: 60ch; }
  .hero__proof-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 32px; }

  .pricing { grid-template-columns: 1fr; gap: 56px; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}

@media (max-width: 980px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .container, .nav__inner, .hero__inner, .hero__proof-inner, .footer__inner, .footer__legal-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .brand__logo { height: 34px; }
  .hero__inner { padding-top: 64px; padding-bottom: 56px; }
  /* Pe telefon strângem hero-ul, ca butonul să rămână deasupra
     pliului și pe ecrane scurte (iPhone SE / 667px) */
  .hero--center .hero__inner { padding-top: 44px; padding-bottom: 44px; }
  .hero--center .hero__kicker { margin-bottom: 16px; }
  .hero--center .hero__title { font-size: clamp(31px, 8.6vw, 44px); margin-bottom: 16px; }
  .hero--center .hero__lede { margin-bottom: 22px; }
  .hero--center .hero__ctas { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero--center .hero__ctas .btn { text-align: center; }
  .hero__call { justify-content: center; }
  .section__pad { padding-top: 64px; padding-bottom: 72px; }
  #servicii .section__pad, #proces .section__pad, #preturi .section__pad { padding-top: 72px; }
  .steps { grid-template-columns: 1fr; }
  .hero__proof-inner { grid-template-columns: 1fr 1fr; }
  .configurator { padding: 28px 22px; }
  .contact__thanks { padding: 36px 28px; }
  .brand__tag { display: none; }
  .brand__name { font-size: 15px; }
  .brand { gap: 9px; }
  .nav__cta { padding: 9px 11px; font-size: 12.5px; } /* CTA compact, mereu vizibil */
  /* Pe telefon comutatorul rămâne vizibil, dar fără chenar, ca să încapă
     lângă CTA și burger fără să scoată bara din ecran */
  .nav__lang { padding: 14px 5px; border-color: transparent; font-size: 13px; }
  .nav__actions { gap: 8px; }
  .nav__inner { gap: 12px; }
  .mobile-menu {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
  .footer__inner { padding-top: 22px; padding-bottom: 18px; }
  .legal-page { padding-top: 48px; padding-bottom: 72px; }
}

/* ============================================================
   Mișcare redusă — totul rămâne lizibil, nimic nu se mișcă
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
