/* ═══════════════════════════════════════════════════════
   SIGNA STUDIO DEV — css/home.css
   Secțiuni specifice paginii principale.
   Referință Figma: frame 1:439 „Landing hero v2".
   ═══════════════════════════════════════════════════════ */


/* === HERO ============================================= */

.hero {
  padding-block: var(--sp-1) var(--sp-10);
}

/* Titlul: „Signa" stânga, „Studio" dreapta (Figma: space-between) */
.hero__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-hero);          /* 132px pe desktop */
  font-weight: var(--fw-bold);
  line-height: 1.35;                  /* 178/132 */
  letter-spacing: var(--ls-hero);     /* +5.28px la 132px */
  color: var(--c-text);
  /* Jumătățile pornesc din afara cadrului la încărcare: tăierea le ține
     înăuntru, ca să nu apară bară de derulare orizontală. */
  overflow: clip;
}

.hero__title-part {
  display: block;
}

/* Cele două jumătăți intră din margini opuse, o singură dată, la
   încărcare. Se animă DOAR transform: titlul e elementul LCP, iar o
   animație de opacitate de la 0 ar amâna măsurătoarea. */
.hero__title--enter .hero__title-part:first-child {
  animation: heroTitleLeft 1500ms cubic-bezier(.16, .84, .34, 1) both;
}

.hero__title--enter .hero__title-part:last-child {
  animation: heroTitleRight 1500ms cubic-bezier(.16, .84, .34, 1) both;
  animation-delay: 180ms;
}

@keyframes heroTitleLeft {
  from { transform: translate3d(-22%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@keyframes heroTitleRight {
  from { transform: translate3d(22%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Pe desktop titlul e mult mai mare, deci parcurge mai multă distanță:
   la aceeași durată părea grăbit. */
@media (min-width: 769px) {
  .hero__title--enter .hero__title-part:first-child,
  .hero__title--enter .hero__title-part:last-child {
    animation-duration: 2300ms;
  }

  .hero__title--enter .hero__title-part:last-child {
    animation-delay: 280ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title--enter .hero__title-part {
    animation: none;
  }
}


/* ── Panoul cu gradient ────────────────────────────────*/
.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 550px;                  /* înălțimea din Figma */
  padding: var(--sp-3) var(--sp-6) var(--sp-5);
  border-radius: var(--r-lg);         /* r:25 */
  /* `clip`, nu `hidden`: un element cu `hidden` rămâne derulabil programatic
     și poate fi derulat de browser când un element dinăuntru primește focus,
     ceea ce deplasează tot conținutul panoului. `clip` interzice derularea. */
  overflow: clip;
  isolation: isolate;
}

/* ── Fundalul panoului ──────────────────────────────
   Gradientul e construit în CSS, nu dintr-o imagine: așa poate fi
   animat pe culori, nu doar mutat. Culorile sunt și variabile
   obișnuite (pentru browserele fără @property, unde fundalul rămâne
   corect, doar static) și înregistrate cu @property în variables.css
   (unde devin interpolabile). */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 88% 6%,
      var(--c-hero-glow) 0%, rgba(243, 230, 255, 0) 55%),
    linear-gradient(var(--hero-angle),
      var(--hero-c1) 0%, var(--hero-c2) 18%, var(--hero-c3) 38%,
      var(--hero-c4) 58%, var(--hero-c5) 78%, var(--hero-c6) 100%);
}

/* Cascada: un gradient repetitiv care traversează panoul de la
   stânga la dreapta. Se repetă, deci bucla nu are salt vizibil.
   Se animă doar transform → rulare pe compozitor, fără repaint. */
.hero__flow {
  position: absolute;
  inset: 0 -60% 0 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(100deg,
    var(--grad-1) 0%,  var(--grad-2) 7%,  var(--grad-3) 14%,
    var(--grad-4) 21%, var(--grad-5) 28%, var(--grad-1) 35%);
  mix-blend-mode: overlay;
  opacity: .7;
  will-change: transform;
  animation: heroFlow 6s linear infinite;
}

/* Hover pe un tab virează întreg fundalul spre culoarea serviciului.
   Tranziția funcționează fiindcă variabilele sunt înregistrate cu
   @property în variables.css — altfel culorile ar sări brusc. */
.hero__bg {
  transition: --hero-c2 .9s ease, --hero-c3 .9s ease, --hero-c4 .9s ease,
              --hero-c5 .9s ease, --hero-c6 .9s ease;
}

/* Site-uri de prezentare → albastru */
.hero__panel[data-svc="1"] .hero__bg {
  --hero-c3: #1B3FC4;
  --hero-c4: #278CFF;
  --hero-c5: #3898EC;
  --hero-c6: #9ED8FF;
}

/* Magazine online → verde */
.hero__panel[data-svc="2"] .hero__bg {
  --hero-c3: #0A5A3C;
  --hero-c4: #1EFB26;
  --hero-c5: #2E964B;
  --hero-c6: #C8FFB0;
}

/* Aplicații custom → ambră */
.hero__panel[data-svc="3"] .hero__bg {
  --hero-c3: #7A1A00;
  --hero-c4: #E9591C;
  --hero-c5: #FF8A00;
  --hero-c6: #FFD361;
}

/* Oprită cât timp hero-ul nu e pe ecran (vezi js/animations.js). */
.hero__flow.is-paused {
  animation-play-state: paused;
}

@keyframes heroFlow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-35%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__flow {
    animation: none;
    opacity: .45;
  }
}


/* ── Tab-urile de servicii din panou ───────────────────*/
.hero__panel-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-inline: var(--sp-8);
}

/* Tab-urile stau peste un gradient care trece de la aproape negru la
   lavandă deschisă: textul alb simplu devenea ilizibil în dreapta.
   Fiecare tab primește propriul fundal închis translucid, deci
   contrastul nu mai depinde de zona pe care cade. */
.hero__tab {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: 1.375;
  letter-spacing: var(--ls-snug);
  color: var(--c-text-on-dark);
  padding: 8px var(--sp-2);
  border-radius: var(--r-pill);
  background: rgba(10, 10, 10, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background var(--t-base), border-color var(--t-base),
              transform var(--t-base);
}

.hero__tab:hover,
.hero__tab:focus-visible {
  opacity: 1;
  background: rgba(10, 10, 10, .82);
  border-color: rgba(255, 255, 255, .42);
  transform: translateY(-2px);
}


/* ── Corpul panoului ───────────────────────────────────*/
.hero__panel-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-top: auto;
}

.hero__lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

/* Tagline: bold în Cabinet Grotesk, restul în Satoshi Light Italic
   (Figma: styleOverrideTable pe nodul de text) */
.hero__tagline {
  font-family: var(--font-main);
  font-size: var(--fs-h4);            /* 32px */
  line-height: 1.25;                  /* 40/32 */
  letter-spacing: var(--ls-tight);
  color: var(--c-text-on-dark);
}

.hero__tagline strong {
  font-family: var(--font-display);   /* Cabinet Grotesk */
  font-weight: var(--fw-bold);        /* 700 */
}

.hero__tagline em {
  font-family: var(--font-main);      /* Satoshi */
  font-weight: 300;
  font-style: italic;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  max-width: 368px;
  text-align: right;
}

.hero__promise {
  font-size: var(--fs-lg);            /* 20px */
  font-weight: var(--fw-medium);
  line-height: 1.35;                  /* 27/20 */
  letter-spacing: var(--ls-tight);
  color: var(--c-text-on-dark);
}

.hero__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Butoanele din hero: pad 16, r:40, text 20/27 (Figma) */
.btn--hero {
  padding: var(--sp-2);
  padding-inline: var(--sp-2);
  border-radius: var(--r-xl);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-tight);
}

.hero__stack {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);            /* 12px */
  line-height: 1.33;
  letter-spacing: var(--ls-snug);
  color: var(--c-text-on-dark);
  text-align: center;
  opacity: 0.85;
}


/* === SERVICII ========================================= */

.services__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-12);
  text-align: center;
}

/* Eticheta cu bulină portocalie (Figma: vector #e9591c) */
.section-label--dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: var(--ls-tight);
  text-transform: none;
  font-weight: var(--fw-medium);
  font-size: var(--fs-md);
}

.section-label--dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-orange);
  flex-shrink: 0;
}

.services__title {
  font-size: var(--fs-h1);            /* 64px */
  font-weight: var(--fw-black);       /* 900 */
  line-height: 1.34;
  letter-spacing: var(--ls-normal);
  color: var(--c-text);
}


/* ── Lista de servicii ─────────────────────────────────*/
.services__list {
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: 323px minmax(0, 404px) 256px;
  gap: var(--sp-5) 140px;             /* gap:140 din Figma */
  align-items: start;
  justify-content: space-between;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.service:first-child {
  border-top: 1px solid var(--c-border);
}

.service__title {
  font-size: var(--fs-h4);            /* 32px */
  font-weight: var(--fw-bold);
  line-height: 1.34;                  /* 43/32 */
  letter-spacing: var(--ls-normal);
  color: var(--c-text);
}

.service__desc {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1.375;
  letter-spacing: var(--ls-wide);
  color: var(--c-text);
}

.service__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.service__cta {
  padding: var(--sp-1) 12px;
  border-radius: var(--r-xl);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}


/* ── Chip-uri (etichete cu bulină verde) ───────────────*/
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-1) 12px;
  border-radius: var(--r-md);         /* r:24 */
  background: var(--c-bg-tint);       /* #EBEBEB */
  font-size: var(--fs-xs);            /* 12px */
  font-weight: var(--fw-medium);
  line-height: 1.33;
  color: var(--c-text);
  white-space: nowrap;
}

.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-green);         /* #1EFB26 */
  flex-shrink: 0;
}


/* === RESPONSIVE SPECIFIC PAGINII ======================
   Regulile generale sunt în css/responsive.css. */

@media (max-width: 1024px) {
  .service {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3) var(--sp-5);
  }

  .service__aside {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .service {
    grid-template-columns: 1fr;
  }

  .hero__panel-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__meta {
    align-items: flex-start;
    text-align: left;
    max-width: none;
  }

  .hero__panel-nav {
    padding-inline: 0;
  }
}


/* ── Chip-uri pe fundal închis (hero) ──────────────────*/
.chips--on-dark .chip {
  padding: var(--sp-1) 10px;
  background: rgba(255, 255, 255, 0.1);   /* #ffffff1a din Figma */
  color: var(--c-text-on-dark);
  font-size: 10px;
  line-height: 1.4;
}


/* === BRANDURI ========================================= */

.trust__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}

.trust__title {
  max-width: 361px;                   /* lățimea din Figma */
  font-size: var(--fs-h3);            /* 36px → scalat */
  font-weight: var(--fw-bold);
  line-height: 1.22;                  /* 44/36 */
  letter-spacing: var(--ls-tight);
}

.trust__intro {
  max-width: 419px;
  font-family: var(--font-display);   /* Cabinet Grotesk */
  font-size: var(--fs-md);
  line-height: 1.25;                  /* 20/16 */
  letter-spacing: var(--ls-wide);
  color: var(--c-text);
}

/* === BANDĂ CU DERULARE CONTINUĂ ==========================
   Lista se dublează din JS, iar banda se deplasează exact cu
   lățimea setului original — așa reluarea e invizibilă, indiferent
   câte logouri sunt. Se animă doar transform. */

.marquee {
  position: relative;
  /* Pe desktop banda doar se animă și se oprește la hover — nu are de ce să
     fie derulabilă, iar `clip` exclude orice bară de derulare. Tragerea cu
     degetul se activează doar pe mobil, mai jos. */
  overflow: clip;
  scrollbar-width: none;
  /* Capătul benzii se stinge în fundal, ca să nu pară tăiat brusc */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee::-webkit-scrollbar {
  display: none;
}

/* Banda nu e derulabilă nici pe mobil: pauza la atingere e suficientă, iar
   un container derulabil în plus înseamnă încă o sursă de bare nedorite. */

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}

/* La hover banda se oprește, ca logoul să poată fi privit. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__track.is-paused {
  animation-play-state: paused;
}

/* Deplasarea e spre dreapta: banda pornește decalat cu un set spre
   stânga și ajunge la zero, apoi bucla o reia — invizibil, fiindcă
   la capăt imaginea e identică cu cea de la început. */
@keyframes marquee {
  from { transform: translate3d(calc(var(--marquee-shift, 50%) * -1), 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Fără padding pe capete: spațierea trebuie să fie identică între toate
   logourile, inclusiv între ultimul și primul la reluarea buclei. */
.trust__logos {
  gap: clamp(var(--sp-6), 10vw, 140px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust__logos li {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
}

.trust__logos img {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--t-base);
}

.trust__logos img:hover {
  opacity: 1;
}


/* === CE AI NEVOIE ===================================== */

.needs__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
  text-align: center;
}

.needs__title {
  font-size: var(--fs-h1);            /* 64px */
  font-weight: var(--fw-bold);
  line-height: 0.94;                  /* 60/64 din Figma */
  letter-spacing: var(--ls-tight);
}

.needs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;                          /* gap:42 din Figma */
  margin-bottom: var(--sp-10);
}

.need {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Imaginea stă într-un cadru care taie, ca să se poată apropia la hover. */
.need__img {
  width: 100%;
  height: auto;
  aspect-ratio: 389 / 263;
  object-fit: cover;
  border-radius: var(--r-sm);         /* r:15 din Figma */
  transition: transform 700ms cubic-bezier(.22, .61, .36, 1);
}

.need {
  transition: transform var(--t-base);
}

.need:hover,
.need:focus-within {
  transform: translateY(-6px);
}

.need:hover .need__img,
.need:focus-within .need__img {
  transform: scale(1.04);
}

.need__link {
  transition: transform var(--t-base);
}

.need:hover .need__link {
  transform: translateX(4px);
}

.need__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Eticheta reia stilul de chip, dar fără bulină */
.need__tag {
  align-self: flex-start;
}

.need__tag::before {
  display: none;
}

.need__title {
  font-size: var(--fs-h5);            /* 24px */
  font-weight: var(--fw-bold);
  line-height: 1.33;
  letter-spacing: var(--ls-snug);
}

.need__desc {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--c-text);
}

.need__criteria-title {
  margin-bottom: var(--sp-1);
  font-family: var(--font-display);   /* Cabinet Grotesk 700 */
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}

.need__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.need__list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);            /* 14px */
  line-height: 1.36;
  color: var(--c-text-muted);
}

.need__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-green);
}

.need__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ── Banda de CTA a secțiunii ──────────────────────────*/
.needs__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);               /* pad:32 din Figma */
  border-radius: var(--r-lg);         /* r:25 */
  background: var(--c-dark);
}

.needs__cta-title {
  font-size: var(--fs-h4);            /* 32px */
  font-weight: var(--fw-bold);
  line-height: 1.34;
  color: var(--c-text-on-dark);
}

.needs__cta-text {
  margin-top: var(--sp-2);
  font-size: var(--fs-lg);            /* 20px */
  line-height: 1.35;
  color: var(--c-text-on-dark);
}

.needs__cta-btn {
  flex-shrink: 0;
  padding: 14px 19px;                 /* pad din Figma */
  border-radius: var(--r-2xl);        /* r:48 */
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
}


/* ── Responsive pentru secțiunile noi ──────────────────*/
@media (max-width: 1024px) {
  .needs__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  .trust__head {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .trust__logos {
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  .needs__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }
}

@media (max-width: 640px) {
  .needs__grid {
    grid-template-columns: 1fr;
  }
}


/* === PORTOFOLIU + DESPRE (bandă închisă full-width) === */

.showcase {
  background: var(--c-dark-soft);      /* #141414 din Figma */
  padding-block: var(--sp-10);
}

.showcase__portfolio {
  padding-bottom: var(--sp-12);
}

.showcase__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-12);
  text-align: center;
}

.showcase__title {
  font-size: var(--fs-h1);            /* 64px */
  font-weight: var(--fw-black);       /* 900 */
  line-height: 1.34;
  color: var(--c-text-on-dark);
}

.showcase__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-10);
}


/* ── Cardurile de proiect ──────────────────────────────*/
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px;                          /* gap:54 din Figma */
}

.project {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Imaginea stă într-un container care taie: la hover se apropie lent,
   fără să depășească colțurile rotunjite. */
.project__media {
  overflow: hidden;
  border-radius: var(--r-lg);         /* r:25 */
}

.project__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 573 / 364;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-lg);         /* r:25 */
  transition: transform 700ms cubic-bezier(.22, .61, .36, 1);
}

.project:hover .project__img,
.project:focus-within .project__img {
  transform: scale(1.05);
}

.project__title,
.project__link {
  transition: transform var(--t-base), color var(--t-base);
}

.project:hover .project__title,
.project:focus-within .project__title {
  transform: translateY(-2px);
}

/* Linia de sub link crește dinspre stânga, în loc să fie mereu acolo. */
.project__link {
  position: relative;
  text-decoration: none;
}

.project__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  /* Vizibilă și în repaus — un link fără niciun semn vizual nu se
     distinge de text. La hover se îngroașă și devine opacă. */
  opacity: .45;
  transform: scaleX(1);
  transform-origin: left;
  transition: opacity var(--t-base), transform var(--t-base);
}

.project:hover .project__link::after,
.project__link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1.06);
}

.project__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.project__title {
  font-size: var(--fs-h4);            /* 32px */
  font-weight: var(--fw-bold);
  line-height: 1.28;                  /* 41/32 */
  color: var(--c-text-on-dark);
}

.project__desc {
  font-size: var(--fs-lg);            /* 20px */
  line-height: 1.6;                   /* 32/20 */
  color: var(--c-text-on-dark-muted);
}

/* Linia vine din .project__link::after (mai sus), care crește la hover —
   de aceea aici nu mai punem text-decoration, altfel s-ar vedea două. */
.project__link {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--c-text-on-dark);
}

/* Chip pe fundal închis */
.chip--on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-text-on-dark);
}

.chip--on-dark::before {
  display: none;
}


/* ── Declarația mare ───────────────────────────────────*/
.showcase__statement {
  padding-top: var(--sp-16);
  border-top: 1px solid var(--c-border-on-dark);
}

.statement {
  max-width: 16ch;
  margin-inline: auto;
  font-size: var(--fs-display);       /* 104px */
  font-weight: var(--fw-black);       /* 900 */
  line-height: 0.9;                   /* 94/104 din Figma */
  letter-spacing: var(--ls-tight);
  color: var(--c-text-on-dark);
  text-align: center;
}


@media (max-width: 1024px) {
  .projects {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .showcase__statement {
    padding-top: var(--sp-10);
  }

  .statement {
    max-width: none;
  }
}


/* === PROCES =========================================== */

.process__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
  text-align: center;
}

.process__title {
  max-width: 20ch;
  font-size: var(--fs-h4);            /* 32px */
  font-weight: var(--fw-bold);
  line-height: 1.34;                  /* 43/32 */
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;                          /* gap:25 din Figma */
}

.process__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pcard {
  position: relative;
  display: flex;
  min-height: 314px;                  /* înălțimea din Figma */
  padding: var(--sp-4);
  border-radius: var(--r-lg);         /* r:25 */
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.pcard:hover,
.pcard:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Imaginile din carduri se apropie ușor odată cu cardul. */
.pcard__img,
.pcard__panel-img {
  transition: transform 800ms cubic-bezier(.22, .61, .36, 1);
}

.pcard:hover .pcard__img,
.pcard:hover .pcard__panel-img {
  transform: scale(1.05);
}

.pcard--dark {
  background: var(--c-dark-deep);     /* #0A0A0A */
  align-items: flex-start;
}

.pcard__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
}

.pcard__title {
  max-width: 12ch;
  font-family: var(--font-display);   /* Cabinet Grotesk 700 */
  font-size: var(--fs-h5);            /* 24px */
  font-weight: var(--fw-bold);
  line-height: 1.25;                  /* 30/24 */
  letter-spacing: var(--ls-tight);
  color: var(--c-text-on-dark);
}

.pcard__btn {
  flex-shrink: 0;
  padding: 12px var(--sp-2);
  border-radius: var(--r-xl);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}

.pcard__img {
  position: absolute;
  right: -8%;
  bottom: -32%;
  width: 62%;
  height: auto;
  pointer-events: none;
}

/* ── Cardul de chat ────────────────────────────────────*/
.pcard--chat {
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
  background: var(--c-sand);
}

.pcard__badge {
  align-self: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--c-text-soft);
  text-align: center;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.chat__msg {
  max-width: 66%;
  padding: 12px var(--sp-2);
  border-radius: var(--r-md);
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
}

.chat__msg p {
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--c-text);
}

.chat__msg--reply {
  align-self: flex-end;
  background: var(--c-dark);
}

.chat__msg--reply p {
  color: var(--c-text-on-dark);
}

/* ── Panoul cu gradient ────────────────────────────────*/
.pcard--panel {
  padding: 0;
  min-height: 652px;
}

.pcard__panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
}


/* === ECHIPA =========================================== */

.team__grid {
  display: grid;
  grid-template-columns: 574px 1fr;
  gap: 60px;                          /* gap:60 din Figma */
  align-items: center;
}

.team__img {
  width: 100%;
  height: auto;
  aspect-ratio: 574 / 403;
  object-fit: cover;
  border-radius: 26px;                /* r:26 din Figma */
  transition: transform 900ms cubic-bezier(.22, .61, .36, 1);
}

.team__grid:hover .team__img {
  transform: scale(1.02);
}

/* Punctele din listă prind un accent colorat la hover. */
.team__list li {
  transition: transform var(--t-base), color var(--t-base);
}

.team__list li:hover {
  transform: translateX(4px);
  color: var(--c-text);
}

.team__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.team__title {
  font-size: var(--fs-h4);            /* 32px */
  font-weight: var(--fw-bold);
  line-height: 1.34;
}

.team__desc {
  font-size: var(--fs-md);
  line-height: 1.375;
  color: var(--c-text);
}

.team__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-block: var(--sp-2);
}

.team__list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-display);   /* Cabinet Grotesk 500 */
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
}

.team__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-orange);        /* #E9591C din Figma */
}


/* === CTA FINAL + FORMULAR ============================= */

.closing__grid {
  display: grid;
  grid-template-columns: 1fr 472px;   /* lățimea cardului din Figma */
  gap: var(--sp-8);
  align-items: center;
}

.closing__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.closing__title {
  max-width: 16ch;
  font-size: var(--fs-h2);            /* 48px */
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
}

/* ── Cardul de formular ────────────────────────────────*/
.form-card {
  position: relative;
  padding: var(--sp-7);               /* pad:60 din Figma ≈ 56 */
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);         /* r:25 */
  background: var(--c-bg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

/* Formular complet: marginile cardului se colorează cu gradientul-semnătură.
   Aceeași tehnică de inel ca la cardul de preț — un pseudo-element din care
   se decupează interiorul prin două măști compuse. `.is-complete` vine din
   js/form.js, când toate câmpurile obligatorii sunt corecte. */
.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2px;                       /* grosimea inelului */
  border-radius: inherit;
  background: conic-gradient(from var(--form-ring-angle),
    #FF6161, #FFD361, #95FFA0, #95B9FF, #D795FF, #FF6161);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}

.form-card.is-complete {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.form-card.is-complete::before {
  opacity: 1;
  animation: formRing 6s linear infinite;
}

@keyframes formRing {
  from { --form-ring-angle: 0deg; }
  to   { --form-ring-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .form-card.is-complete::before {
    animation: none;
  }
}

.form-card__title {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-h5);            /* 24px */
  font-weight: var(--fw-bold);
  line-height: 1.33;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  transform-origin: left center;
  transition: color var(--t-fast), transform var(--t-fast);
}

/* Câmpul activ își evidențiază eticheta. `:has()` primește părintele
   în funcție de starea copilului; unde nu e suportat, nu se întâmplă
   nimic — restul formularului funcționează identic. */
.field:has(.field__input:focus) .field__label {
  color: var(--c-accent);
  transform: translateX(2px);
}

.field__input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);         /* r:15 din Figma */
  background: var(--c-bg);
  font-size: var(--fs-md);
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field__input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(39, 140, 255, 0.15);
}

.field__input--area {
  resize: vertical;
  min-height: 104px;                  /* înălțimea din Figma */
}

.field__input.is-invalid {
  border-color: var(--c-error);
}

/* Câmp completat corect. Verdele închis al temei (#2E964B) trece 4,5:1 pe
   alb; cel deschis (#1EFB26) ar fi doar decorativ, deci rămâne pentru bifă. */
.field__input.is-valid {
  border-color: var(--c-green-deep);
  background-color: rgba(46, 150, 75, 0.04);
}

.field__input.is-valid:focus {
  border-color: var(--c-green-deep);
  box-shadow: 0 0 0 3px rgba(46, 150, 75, 0.18);
}

/* Bifa din dreapta câmpului. `:has()` o pune pe etichetă, ca să nu atingem
   fundalul inputului — unde nu e suportat, câmpul rămâne doar cu chenar verde. */
.field:has(.field__input.is-valid) .field__label {
  color: var(--c-green-deep);
}

.field:has(.field__input.is-valid) .field__label::after {
  content: '✓';
  margin-left: 6px;
  font-weight: var(--fw-bold);
}

/* Selectul are deja o săgeată în background-image; nu-i punem și fundal
   colorat peste ea, doar chenarul. */
select.field__input.is-valid {
  background-color: var(--c-bg);
}

.field__msg {
  display: none;
  font-size: var(--fs-xs);
  color: var(--c-error);
}

.field__msg.is-visible {
  display: block;
}

/* Honeypot — ascuns vizual și pentru cititoarele de ecran */
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form__error {
  display: none;
  padding: 12px var(--sp-2);
  border-left: 3px solid var(--c-error);
  background: var(--c-error-bg);
  font-size: var(--fs-sm);
  color: var(--c-error);
}

.form__error.is-visible {
  display: block;
}

.form__submit {
  align-self: flex-end;
  margin-top: var(--sp-2);
  padding: 14px 19px;                 /* pad din Figma */
  border-radius: var(--r-2xl);        /* r:48 */
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}

.form__submit.is-loading {
  opacity: 0.6;
  cursor: wait;
}

#contactForm.is-hidden {
  display: none;
}

.form__success {
  display: none;
  text-align: center;
}

.form__success.is-visible {
  display: block;
}

.form__success h4 {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-h5);
}

.form__success h4:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}


/* ── Responsive pentru secțiunile finale ───────────────*/
@media (max-width: 1024px) {
  .process__grid,
  .team__grid,
  .closing__grid {
    grid-template-columns: 1fr;
  }

  .pcard--panel {
    min-height: 400px;
  }

  .team__img {
    max-width: 574px;
  }
}

@media (max-width: 640px) {
  .pcard {
    padding: var(--sp-3);
  }

  .pcard__content {
    flex-direction: column;
  }

  .pcard__img {
    right: -20%;
    bottom: -28%;
    width: 80%;
  }

  .form-card {
    padding: var(--sp-4);
  }

  .form__submit {
    align-self: stretch;
  }
}


/* === CIFRE CARE CONTORIZEAZĂ ============================
   Cifrele urcă de la 0 la valoare când intră în ecran. `tabular-nums`
   ține toate cifrele la aceeași lățime, altfel numărul tremură
   orizontal în timp ce se schimbă. */

[data-count-to] {
  font-variant-numeric: tabular-nums;
}


@media (prefers-reduced-motion: reduce) {
  .need,
  .need__img,
  .need__link,
  .pcard,
  .pcard__img,
  .pcard__panel-img,
  .team__img,
  .team__list li {
    transition: none;
  }
}


/* === CARUSEL DE PROIECTE PE MOBIL =======================
   Două carduri mari unul sub altul înseamnă multă derulare pentru
   puțin conținut. Sub 768px devin carusel cu fixare. */

@media (max-width: 768px) {
  .projects {
    display: flex;
    gap: var(--sp-2);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    /* Loc pentru linia de sub „Vezi pagina live", care stă la -4px:
       fără el ar fi tăiată de container. */
    padding-block-end: 6px;
    overflow-x: auto;
    /* Numai pe orizontală. Fără asta, `overflow-y` devine tot `auto`, iar
       animațiile de intrare ale cardurilor (translatate pe verticală) creează
       o derulare verticală înăuntru: apare o bară laterală și, mai rău,
       gestul de derulare a paginii rămâne prins în carusel. */
    overflow-y: hidden;
    /* Degetul poate derula pagina pe verticală chiar dacă pornește de pe carusel */
    touch-action: pan-x pan-y;
    /* Ajuns la capăt, caruselul nu mai transmite gestul mai departe pe orizontală */
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .projects::-webkit-scrollbar {
    display: none;
  }

  .project {
    flex: 0 0 84%;               /* se vede marginea cardului următor */
    scroll-snap-align: start;
  }

  /* În carusel, cardurile nu se mai translatează la intrare: cei câțiva pixeli
     pe verticală ar fi tăiați de container. Rămâne estomparea, care nu ocupă
     spațiu. */
  .projects .reveal {
    transform: none;
  }

}


/* === SERVICII — HOVER (v2.17.0) =======================
   Rândul activ (hover pe desktop, .is-near pe mobil): titlul alunecă
   puțin spre dreapta, iar sub el se desenează linia-semnătură. */
.service__title {
  transition: transform var(--t-base);
}

.service__title::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--grad-signature);
  transition: width var(--t-slow);
}

.service:hover .service__title,
.service.is-near .service__title {
  transform: translateX(8px);
}

.service:hover .service__title::after,
.service.is-near .service__title::after {
  width: 64px;
}

@media (prefers-reduced-motion: reduce) {
  .service__title,
  .service__title::after {
    transition: none;
  }

  .service:hover .service__title,
  .service.is-near .service__title {
    transform: none;
  }
}
