/* ==========================================================================
   Star Construct Vaslui — foaie de stil principală
   Paletă și limbaj vizual derivate din imaginile de referință.
   Fonturile se încarcă din fonts/fonts.css, legat separat în <head>:
   un @import aici ar serializa descărcările în loc să le paralelizeze.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Culori de brand */
  --orange:       #E89B6C;
  --orange-deep:  #D8875A;
  --black:        #141414;
  --black-soft:   #1E1E1E;
  --cream:        #FAF7F2;
  --beige:        #EAE6D9;
  --mint:         #BEDCDA;
  --rose:         #D9BEBE;
  --white:        #FFFFFF;

  /* Roluri semantice */
  --bg:            var(--cream);
  --surface:       var(--white);
  --fg:            var(--black);
  --fg-muted:      #6B6560;
  --fg-on-dark:    #F5F2EE;
  --fg-on-dark-mut:#A8A29B;
  --border:        #E3DED5;
  --border-dark:   #333030;
  --accent:        var(--orange);
  --danger:        #C0392B;
  --success:       #2E7D5B;
  --ring:          var(--black);

  /* Tipografie — o singură familie, ca în referințele de design.
     Figtree, nu Outfit: în Outfit virgula de la ș/ț coboară de ~1,9 ori mai
     adânc decât un descendent normal și iese din caseta liniei. În Figtree
     stă la aceeași adâncime cu p — esențial pentru titluri în română. */
  --font-display: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Figtree', 'Segoe UI', system-ui, sans-serif;

  /* Spațiere — scală 8pt */
  --space-1: .5rem;   --space-2: 1rem;    --space-3: 1.5rem;
  --space-4: 2rem;    --space-5: 3rem;    --space-6: 4rem;
  --space-7: 6rem;    --space-8: 8rem;

  /* Formă */
  --radius:    4px;
  --radius-lg: 8px;
  --shell:     1180px;

  /* Mișcare */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur:      240ms;

  /* Straturi */
  --z-squares: 2;
  --z-content: 3;
  --z-header:  100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Atributul `hidden` trebuie să învingă orice `display` declarat mai jos. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }

/* ---------- Tipografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3; }
p  { margin: 0 0 var(--space-2); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: .04em;
  margin: 0 0 var(--space-1);
}
.eyebrow-light { color: rgba(255, 255, 255, .75); }
.h2-light { color: var(--fg-on-dark); }
.mt { margin-top: var(--space-4); }

/* ---------- Utilitare ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.section { position: relative; padding-block: clamp(3.5rem, 9vw, var(--space-8)); }
.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;
}
.skip-link {
  position: absolute; top: -100px; left: var(--space-2); z-index: 200;
  background: var(--black); color: var(--white);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius);
  text-decoration: none; transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 2px;
}
.calculator :where(a, button, input, select, textarea):focus-visible,
.realizari :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible { outline-color: var(--orange); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-4), 6vw, var(--space-7));
  align-items: center;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.section-head-note {
  font-size: .875rem; color: var(--fg-muted);
  max-width: 34ch; margin: 0; text-align: right;
}
.note-light { color: var(--fg-on-dark-mut); }

/* ---------- Pătrate decorative (semnătura vizuală) ---------- */
.sq { position: absolute; display: block; z-index: var(--z-squares); pointer-events: none; }
.sq-orange { background: var(--orange); }
.sq-black  { background: var(--black); }
.sq-cream  { background: var(--beige); }
.sq-mint   { background: var(--mint); }
.sq-rose   { background: var(--rose); }
.sq-beige  { background: var(--beige); }
.sq-white  { background: var(--cream); }

.squares { position: absolute; inset: 0; pointer-events: none; z-index: var(--z-squares); }

/* ---------- Butoane ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: .75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-out);
}
.btn-primary { --btn-bg: var(--orange); --btn-fg: var(--black); --btn-bd: var(--orange); }
.btn-primary:hover { --btn-bg: var(--orange-deep); --btn-bd: var(--orange-deep); }

.btn-outline { --btn-bd: var(--black); --btn-fg: var(--black); }
.btn-outline:hover { --btn-bg: var(--black); --btn-fg: var(--white); }

.btn-outline-light { --btn-bd: rgba(255,255,255,.6); --btn-fg: var(--white); }
.btn-outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--white); }

.btn-ghost { --btn-bd: rgba(255,255,255,.5); --btn-fg: var(--white); }
.btn-ghost:hover { --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--white); }
.site-header.is-stuck .btn-ghost { --btn-bd: var(--black); --btn-fg: var(--black); }
.site-header.is-stuck .btn-ghost:hover { --btn-bg: var(--black); --btn-fg: var(--white); }

.btn-quiet {
  --btn-fg: var(--fg-on-dark-mut);
  min-height: 44px; padding: .5rem 0;
  font-size: .8125rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
  align-self: flex-start;
}
.btn-quiet:hover { --btn-fg: var(--fg-on-dark); }
.btn-block { width: 100%; }

.round-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white); color: var(--black);
  transition: background var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--orange); }
.round-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-header);
  transition: background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 500;
  color: var(--white);
  text-decoration: none; letter-spacing: -.02em;
  transition: color var(--dur) var(--ease-out);
}
.logo span { font-weight: 700; }
.logo sup { font-size: .5em; font-weight: 400; }
.site-header.is-stuck .logo { color: var(--black); }

.nav-desktop { display: flex; gap: var(--space-3); margin-inline: auto; }
.nav-desktop a {
  position: relative;
  padding: var(--space-1) 0;
  font-size: .9375rem; font-weight: 500;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav-desktop a:hover::after,
.nav-desktop a.is-current::after { transform: scaleX(1); transform-origin: left; }
.site-header.is-stuck .nav-desktop a { color: var(--fg-muted); }
.site-header.is-stuck .nav-desktop a:hover,
.site-header.is-stuck .nav-desktop a.is-current { color: var(--black); }

.burger {
  display: none;
  width: 48px; height: 48px;
  padding: 12px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--white);
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.site-header.is-stuck .burger span,
.site-header.nav-open .burger span { background: var(--black); }
.site-header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .burger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; /* activat doar în breakpoint-ul mobil */
  flex-direction: column; gap: var(--space-1);
  padding: var(--space-2) var(--space-3) var(--space-4);
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: .875rem 0;
  font-size: 1.0625rem; font-weight: 500;
  text-decoration: none;
}
.nav-mobile .btn { margin-top: var(--space-2); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(92vh, 820px);
  padding-block: calc(76px + var(--space-6)) var(--space-8);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Două straturi. Cel orizontal întunecă partea stângă, unde stă textul:
   fotografia are cer de apus luminos, iar cu un simplu gradient vertical
   contrastul textului alb cădea la limita WCAG și varia cu decuparea
   `object-fit: cover` de la o rezoluție la alta. Dreapta rămâne luminoasă. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,20,.62) 0%, rgba(20,20,20,.32) 50%, rgba(20,20,20,.06) 100%),
    linear-gradient(180deg, rgba(20,20,20,.42) 0%, rgba(20,20,20,.22) 45%, rgba(20,20,20,.58) 100%);
}
.hero-content { position: relative; z-index: var(--z-content); color: var(--white); }
.hero-content h1 { color: var(--white); max-width: 16ch; }
.hero-sub {
  max-width: 52ch;
  margin-block: var(--space-2) var(--space-4);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: rgba(255, 255, 255, .9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Pătratele din hero: bloc în formă de L, lipit în colțul de jos-dreapta.
   Toate se ating — fără sloturi goale în interiorul grupului. */
.squares-hero {
  --s: clamp(56px, 7vw, 92px);
}
.squares-hero .sq { width: var(--s); aspect-ratio: 1; }
.squares-hero .sq-cream  { right: calc(var(--s) * 2); bottom: 0; }
.squares-hero .sq-black  { right: var(--s);           bottom: 0; }
.squares-hero .sq-orange { right: 0;                  bottom: 0; }
.squares-hero .sq-mint   { right: 0;                  bottom: var(--s); }

/* ==========================================================================
   DESPRE
   ========================================================================== */
.collage { position: relative; }
/* Ținta este <picture>, nu <img>: în DOM, <picture> e părintele imaginii,
   deci un selector `.collage > img` nu s-ar potrivi. Fără poziționare și
   z-index aici, fotografia rămâne nepoziționată, iar pătratele — absolute,
   cu z-index 2 — s-ar picta PESTE ea în loc să stea în spate.
   (`display: contents` pe <picture> nu ajută: scoate cutia, dar nu schimbă
   structura DOM pentru selectori.) */
.collage > picture {
  display: block;
  position: relative; z-index: var(--z-content);
}
.collage img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
/* Stau în spatele fotografiei (z-index 2 vs 3), deci partea care se vede
   este doar cât ies în afara ei — de aici decalajele negative generoase. */
.collage-sq-1 { width: 32%; aspect-ratio: 1; left:  -17%; bottom: 9%; }
.collage-sq-2 { width: 26%; aspect-ratio: 1; right: -13%; top:   -7%; }
.collage-sq-3 { width: 22%; aspect-ratio: 1; right: -11%; bottom: 20%; }
.collage-sq-4 { width: 17%; aspect-ratio: 1; left:  -10%; top:    7%; }

.video-wrap {
  position: relative;
  margin-top: clamp(var(--space-5), 8vw, var(--space-7));
  --s: clamp(48px, 6vw, 84px);
}
/* 16:9 — raportul playerului YouTube care înlocuiește miniatura la click. */
.video-frame {
  position: relative; z-index: var(--z-content);
  aspect-ratio: 16 / 9;
  background: var(--black);
  overflow: hidden;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame picture { display: contents; }

.video-embed { cursor: pointer; }
.video-embed img { transition: transform 600ms var(--ease-out), opacity var(--dur) var(--ease-out); }
.video-embed:hover img { transform: scale(1.03); opacity: .9; }

.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-note {
  margin: var(--space-2) 0 0;
  font-size: .78125rem;
  color: var(--fg-muted);
}

/* `left: 0` este marginea shell-ului, la doar 24px de fotografie, deci
   s-ar vedea o simplă dungă. Decalajul negativ le scoate afară pe jumătate;
   pe ecrane înguste ies din pagină, ceea ce e intenționat (body taie surplusul). */
.video-wrap .sq { width: var(--s); aspect-ratio: 1; }
.video-sq-1 { left:  calc(var(--s) * -.45); top:    9%; }
.video-sq-2 { left:  calc(var(--s) * -.45); bottom: 14%; }
.video-sq-3 { right: calc(var(--s) * -.45); top:   26%; }
.video-sq-4 { right: calc(var(--s) * -.45); bottom: 8%; }

.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 68px; height: 68px;
  background: var(--white); color: var(--black);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.play-btn:hover { background: var(--orange); }

/* ==========================================================================
   STATISTICI
   ========================================================================== */
.stats-band {
  position: relative;
  background: var(--rose);
  padding-block: clamp(var(--space-4), 6vw, var(--space-6));
  overflow: hidden;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: clamp(var(--space-3), 4vw, var(--space-5));
}
.stat { display: flex; align-items: baseline; gap: var(--space-2); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600; line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .8125rem; line-height: 1.35; color: #4A4441; }

/* ==========================================================================
   SERVICII
   ========================================================================== */
.grid-2-services { align-items: start; }
.collage-services { margin-top: var(--space-4); }
.collage-services img { aspect-ratio: 10 / 7; }
/* Ancorate pe colțuri opuse, ieșind pe ambele axe. */
.services-sq-1 { width: 24%; aspect-ratio: 1; left:  -9%; bottom: -11%; }
.services-sq-2 { width: 18%; aspect-ratio: 1; right: -7%; top:     -9%; }
.servicii .btn-outline { margin-top: var(--space-1); }

.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item h3 { margin: 0; font-size: inherit; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: 64px;
  padding: var(--space-2) 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 600; text-align: left;
  letter-spacing: -.01em;
  transition: color var(--dur) var(--ease-out);
}
.acc-trigger:hover { color: var(--orange-deep); }
.chev {
  flex: 0 0 auto; width: 20px; height: 20px;
  transition: transform var(--dur) var(--ease-out);
}
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
}
.acc-panel[data-open="true"] { grid-template-rows: 1fr; }
.acc-panel > .acc-panel-inner { overflow: hidden; }
.acc-panel-inner > :first-child { padding-top: 0; }
.acc-panel p { font-size: .9375rem; color: var(--fg-muted); }
.acc-panel[data-open="true"] .acc-panel-inner { padding-bottom: var(--space-3); }

.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li {
  position: relative;
  padding-left: var(--space-2);
  font-size: .9375rem; line-height: 1.9;
}
.dot-list li::before {
  content: ''; position: absolute; left: 0; top: .8em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange);
}

/* ==========================================================================
   PREȚURI
   ========================================================================== */
.price-groups {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
}
.price-card h3 { margin-bottom: var(--space-2); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: .6875rem var(--space-1);
  text-align: left;
  font-size: .9375rem;
  border-bottom: 1px solid var(--border);
}
.price-table thead th {
  font-size: .75rem; font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.price-table tbody th { font-weight: 600; }
.price-table td { color: var(--fg-muted); }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody .num { color: var(--fg); }
.price-table .num b { font-size: 1.0625rem; font-weight: 600; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background var(--dur) var(--ease-out); }
.price-table tbody tr:hover { background: #FBF9F6; }

.notes {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
}
.notes-title { display: flex; align-items: center; gap: var(--space-1); margin-bottom: var(--space-2); }
.notes-title svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--orange-deep); }
.notes-list {
  columns: 2; column-gap: var(--space-4);
  list-style: none; margin: 0; padding: 0;
}
.notes-list li {
  position: relative;
  break-inside: avoid;
  margin-bottom: .6875rem;
  padding-left: var(--space-2);
  font-size: .875rem; line-height: 1.6;
  color: #4A4441;
}
.notes-list li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange-deep);
}
.notes-list strong { color: var(--black); }

/* ==========================================================================
   CALCULATOR
   ========================================================================== */
.calculator { background: var(--black); overflow: hidden; }
.calculator .section-head h2 { color: var(--fg-on-dark); }
.calc-sq-1 { width: clamp(56px, 7vw, 96px); aspect-ratio: 1; right: 0; top: 0; }
.calc-sq-2 { width: clamp(56px, 7vw, 96px); aspect-ratio: 1; left: 0; bottom: 0; }

.calc-grid {
  position: relative; z-index: var(--z-content);
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: var(--space-4);
  align-items: start;
}
.calc-form {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--black-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
}

/* --- Câmpuri de formular --- */
.field { display: flex; flex-direction: column; gap: .4375rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

.field label {
  font-size: .875rem; font-weight: 500;
  color: var(--fg-on-dark);
}
.contact-form .field label { color: var(--fg); }
.req { color: var(--orange); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .6875rem .875rem;
  background: var(--black);
  color: var(--fg-on-dark);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out);
}
.field textarea { min-height: auto; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A29B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  background-size: 18px;
  cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4A4645; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }

.hint { margin: 0; font-size: .78125rem; line-height: 1.45; color: var(--fg-on-dark-mut); }
.contact-form .hint { color: var(--fg-muted); }

.err {
  display: flex; align-items: center; gap: .375rem;
  margin: 0;
  font-size: .78125rem; font-weight: 500;
  color: #F09287;
}
.contact-form .err { color: var(--danger); }
.err::before {
  content: ''; flex: 0 0 auto;
  width: 14px; height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.check { display: flex; align-items: center; gap: .75rem; }
.check input {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  accent-color: var(--orange);
  cursor: pointer;
}
/* Eticheta comută checkbox-ul, deci ea este ținta reală de atingere: min. 44px. */
.check label {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px;
  font-size: .875rem; font-weight: 500;
  color: var(--fg-on-dark);
  cursor: pointer;
}
.check-hint {
  display: block;
  font-weight: 400; font-size: .78125rem;
  color: var(--fg-on-dark-mut);
}

/* --- Panoul de rezultat --- */
.calc-result {
  position: sticky; top: 100px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
}
.calc-result h3 { margin-bottom: var(--space-2); }

.result-lines { margin: 0 0 var(--space-2); }
.result-lines .line {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--space-2);
  padding: .625rem 0;
  border-bottom: 1px solid var(--border);
}
.result-lines dt { font-size: .875rem; color: var(--fg-muted); }
.result-lines dd {
  margin: 0;
  font-size: .9375rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-lines .is-free { color: var(--success); }

.result-total {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--space-2);
  padding-block: var(--space-2);
}
.result-total-label { font-size: .875rem; font-weight: 500; }
.result-total-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-trips {
  margin: 0 0 var(--space-2);
  padding: .625rem .75rem;
  background: var(--beige);
  border-radius: var(--radius);
  font-size: .8125rem; color: #4A4441;
}
.result-trips:empty { display: none; }
.result-disclaimer { font-size: .75rem; line-height: 1.55; color: var(--fg-muted); }
.result-disclaimer a { color: var(--orange-deep); text-underline-offset: 3px; }

/* ==========================================================================
   REALIZĂRI
   ========================================================================== */
.realizari { background: var(--black); color: var(--fg-on-dark); overflow: hidden; }
.real-sq-1 { width: clamp(56px, 7vw, 92px); aspect-ratio: 1; right: clamp(56px, 7vw, 92px); top: 0; }
.real-sq-2 { width: clamp(56px, 7vw, 92px); aspect-ratio: 1; right: 0; top: 0; }
.real-sq-3 { width: clamp(56px, 7vw, 92px); aspect-ratio: 1; right: 0; top: clamp(56px, 7vw, 92px); }

.filters {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  margin-top: var(--space-3);
}
.filter {
  min-height: 44px;
  padding: .5rem 1.125rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 500;
  color: var(--fg-on-dark-mut);
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.filter:hover { color: var(--fg-on-dark); }
.filter.is-active { color: var(--fg-on-dark); border-color: var(--fg-on-dark); }

/* Galeria iese în afara `shell`-ului, dar primul card trebuie să rămână
   aliniat cu titlul. Padding-ul stă pe listă, nu pe containerul de scroll:
   pus pe container, `scroll-snap` l-ar anula și ar lipi cardul de margine. */
.gallery-viewport {
  --gutter: max(var(--space-3), calc((100vw - var(--shell)) / 2 + var(--space-3)));
  margin-top: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-viewport::-webkit-scrollbar { display: none; }

.gallery {
  display: flex; gap: var(--space-3);
  list-style: none; margin: 0;
  padding-inline: var(--gutter);
}
.proj {
  flex: 0 0 clamp(240px, 27vw, 300px);
  scroll-snap-align: start;
}
.proj[hidden] { display: none; }
.proj-img { overflow: hidden; }
.proj-img img {
  width: 100%; aspect-ratio: 9 / 7; object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.proj:hover .proj-img img { transform: scale(1.05); }
.proj-tag {
  margin: var(--space-2) 0 .375rem;
  font-size: .75rem; font-weight: 500;
  color: var(--orange);
  text-decoration: underline; text-underline-offset: 3px;
}
.proj h3 { margin-bottom: .5rem; color: var(--fg-on-dark); }
.proj-desc { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--fg-on-dark-mut); }

.gallery-empty {
  margin: var(--space-5) 0;
  text-align: center;
  color: var(--fg-on-dark-mut);
}
.gallery-nav { display: flex; gap: var(--space-1); margin-top: var(--space-4); }

/* ==========================================================================
   CTA + CONTACT
   ========================================================================== */
.cta-band {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(360px, 46vw, 520px);
  overflow: hidden;
}
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-scrim { position: absolute; inset: 0; background: rgba(20, 20, 20, .5); }
.cta-content { position: relative; z-index: var(--z-content); }
.cta-content h2 { color: var(--white); margin-bottom: var(--space-3); }

.squares-cta .sq { width: clamp(56px, 7vw, 92px); aspect-ratio: 1; }
.squares-cta .sq-white  { right: clamp(56px, 7vw, 92px); top: 0; }
.squares-cta .sq-orange { right: 0; top: 0; }
.squares-cta .sq-mint   { right: 0; bottom: 0; }
.squares-cta .sq-black  { right: clamp(56px, 7vw, 92px); bottom: 0; }

.contact-grid { align-items: start; }
.contact-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.contact-list li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  padding-block: var(--space-2);
  border-top: 1px solid var(--border);
}
.contact-list svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; color: var(--orange-deep); }
.contact-label {
  display: block;
  font-size: .75rem; color: var(--fg-muted);
  letter-spacing: .03em;
}
.contact-list a, .contact-list div > span:last-child {
  font-size: 1rem; font-weight: 500; line-height: 1.5;
  text-underline-offset: 3px;
}
.contact-list a:hover { color: var(--orange-deep); }

.contact-form {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
}
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  /* `background-color`, nu shorthand-ul `background`: acesta ar reseta
     background-repeat/position/size, iar săgeata select-ului s-ar repeta. */
  background-color: var(--cream);
  color: var(--fg);
  border-color: var(--border);
}
.contact-form .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.contact-form .field input:hover,
.contact-form .field select:hover,
.contact-form .field textarea:hover { border-color: #C9C2B6; }
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus { border-color: var(--black); }
.contact-form .field input[aria-invalid="true"],
.contact-form .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.contact-form ::placeholder { color: #A19A91; }

/* Capcana anti-robot. Scoasă din ecran, nu `display:none`:
   roboții buni de tot ignoră câmpurile ascunse prin display. */
.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-status { margin: 0; font-size: .875rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--success); }
.form-status.is-err { color: var(--danger); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--cream); padding-block: var(--space-6) var(--space-3); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.logo-footer { color: var(--black); font-size: 1.25rem; }
.footer-brand p {
  margin-block: var(--space-2);
  font-size: .875rem; color: var(--fg-muted);
  max-width: 30ch;
}
.footer-strong {
  display: block;
  margin-bottom: .375rem;
  font-size: .9375rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
}
.footer-strong:hover { color: var(--orange-deep); }

.footer-col h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .04em;
}
.footer-col a {
  display: block;
  padding-block: .375rem;
  font-size: .875rem; color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.footer-col a:hover { color: var(--black); }
.footer-meta { margin: 0 0 .375rem; font-size: .8125rem; color: var(--fg-muted); }

.footer-bottom {
  display: flex; justify-content: space-between;
  gap: var(--space-2); flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.footer-bottom p { margin: 0; font-size: .78125rem; color: var(--fg-muted); }

/* ==========================================================================
   ANIMAȚII DE INTRARE
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-cta { display: none; }
  .burger { display: flex; }
  .nav-mobile { display: flex; }
  .logo { margin-right: auto; }

  .site-header.nav-open { background: var(--cream); }
  .site-header.nav-open .logo { color: var(--black); }

  /* Pe telefon, `cover` arată doar banda centrală a fotografiei — tocmai
     cerul luminos — iar textul ocupă toată lățimea, deci gradientul
     orizontal nu-l mai acoperă. Trecem pe un scrim vertical, mai apăsat. */
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(20,20,20,.66) 0%, rgba(20,20,20,.60) 42%, rgba(20,20,20,.80) 100%);
  }

  .grid-2 { grid-template-columns: 1fr; }
  .collage { max-width: 460px; margin-inline: auto; }
  /* Colajul ocupă aici toată lățimea, deci decalajele de pe desktop ar
     arunca pătratele în afara ecranului. Ies doar cât să rămână vizibile. */
  .collage-sq-1 { width: 26%; left:  -9%; bottom: 7%; }
  .collage-sq-2 { width: 22%; right: -8%; top:   -5%; }
  .collage-sq-3 { width: 18%; right: -7%; bottom: 18%; }
  .collage-sq-4 { width: 14%; left:  -6%; top:    6%; }

  .price-groups { grid-template-columns: 1fr; }
  .notes-list { columns: 1; }

  .stats { grid-template-columns: 1fr; gap: var(--space-3); }
  .stat { align-items: center; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head-note { text-align: left; }

  /* Pe touch, link-urile de contact și cele din footer devin ținte reale — minim 44px.
     Fac excepție link-urile inline din text curgător (permis de WCAG 2.5.5). */
  .footer-col a { padding-block: .6875rem; }
  .footer-strong { padding-block: .625rem; margin-bottom: 0; }
  .contact-list a { display: inline-block; padding-block: .625rem; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .squares-hero .sq-cream { display: none; }
  .proj { flex-basis: 78vw; }
}

/* ==========================================================================
   MIȘCARE REDUSĂ / PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .gallery-nav, .filters, .play-btn, .squares, .sq { display: none; }
  body { background: #fff; }
  .calculator, .realizari { background: #fff; color: #000; }
}
