/* ============================================================
   ENHANCE — premium component layer (21st.dev-inspired)
   Built on top of styles.css design tokens. Vanilla, no build.
   · Ethereal beams hero      (muhammad-binsalman)
   · Mega menu                (ln-dev7)
   · Neon button              (cybergaz)
   · Testimonials columns     (efferd)
   · Hero section 5 cues      (tailark)
   ============================================================ */

@property --neon-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ============================================================
   1 · NEON BUTTON
   Dark fill + animated orange light travelling around the border,
   with a soft outer halo that intensifies on hover.
   ============================================================ */
.btn-neon {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #161310, #0a0908);
  color: #fff;
  border: 1px solid rgba(252, 80, 20, .45);
  box-shadow:
    0 0 18px -6px rgba(252, 80, 20, .55),
    inset 0 0 14px -8px rgba(252, 80, 20, .7),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
/* travelling light along the border */
.btn-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--neon-angle),
    transparent 0deg,
    rgba(252, 80, 20, .15) 40deg,
    #FFB37A 70deg,
    #FC5014 88deg,
    transparent 130deg,
    transparent 360deg);
  -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;
  animation: neon-travel 3.4s linear infinite;
  z-index: -1;
}
/* inner moving glow wash */
.btn-neon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 160% at 0% 120%, rgba(252, 80, 20, .35), transparent 55%);
  opacity: .5;
  transition: opacity .3s ease;
  z-index: -1;
}
.btn-neon:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(252, 80, 20, .8);
  box-shadow:
    0 0 30px -4px rgba(252, 80, 20, .8),
    0 12px 40px -14px rgba(241, 96, 1, .8),
    inset 0 0 18px -6px rgba(252, 80, 20, .9);
}
.btn-neon:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes neon-travel { to { --neon-angle: 360deg; } }
}
@media (prefers-reduced-motion: reduce) {
  .btn-neon::before { animation: none; background: linear-gradient(120deg, transparent, #FC5014, transparent); }
}

/* ============================================================
   2 · MEGA MENU
   "Servicii" trigger opens a wide glass panel with service
   cards + a featured promo rail. Hover (desktop) / click + keys.
   ============================================================ */
.nav-links .has-mega { position: static; display: flex; align-items: center; }

.mega-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray);
  padding-block: 4px; transition: color .2s;
}
.mega-trigger:hover, .has-mega.open .mega-trigger, .has-mega.active .mega-trigger { color: var(--white); }
.has-mega.active > .mega-trigger { position: relative; }
.has-mega.active > .mega-trigger::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -6px; width: 16px; height: 2px; border-radius: 2px; background: var(--orange); }
@media (max-width: 900px) { .has-mega.active > .mega-trigger::after { display: none; } }
.mega-trigger .chev { width: 12px; height: 12px; transition: transform .3s ease; }
.has-mega.open .mega-trigger .chev { transform: rotate(180deg); }

.mega-panel {
  position: fixed;
  top: 70px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(940px, 94vw);
  background: linear-gradient(160deg, rgba(22, 19, 17, .96), rgba(10, 9, 8, .97));
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
          backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: 22px;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1), visibility .28s;
  z-index: 120;
}
.mega-panel::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: rgba(22, 19, 17, .96);
  border-left: 1px solid rgba(255, 255, 255, .1); border-top: 1px solid rgba(255, 255, 255, .1);
  border-radius: 3px 0 0 0;
}
.has-mega.open .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) {
  .has-mega:hover .mega-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .has-mega:hover .mega-trigger { color: var(--white); }
  .has-mega:hover .mega-trigger .chev { transform: rotate(180deg); }
}

.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-link {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 14px; border-radius: 14px;
  border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s;
}
.mega-link:hover { background: rgba(255, 255, 255, .04); border-color: rgba(252, 80, 20, .3); transform: translateY(-2px); }
.mega-link .mi {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(160deg, rgba(252, 80, 20, .22), rgba(193, 8, 1, .1));
  border: 1px solid rgba(252, 80, 20, .35);
  display: grid; place-items: center; color: var(--orange);
}
.mega-link .mi svg { width: 20px; height: 20px; }
.mega-link b { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .98rem; letter-spacing: .01em; color: #fff; }
.mega-link span { display: block; font-family: var(--font-body); font-size: .82rem; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--gray-mid); margin-top: 3px; }

.mega-feature {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 22px;
  background: linear-gradient(150deg, #FC5014 0%, #F16001 48%, #C10801 100%);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
}
.mega-feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 80% 0%, rgba(255, 255, 255, .35), transparent 60%); }
.mega-feature > * { position: relative; z-index: 1; }
.mega-feature .tagline { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(0, 0, 0, .55); }
.mega-feature h4 { color: #fff; font-size: 1.5rem; margin-top: 6px; line-height: .98; }
.mega-feature p { font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .9); font-size: .84rem; line-height: 1.5; margin: 8px 0 14px; }
.mega-feature .mf-cta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #000; display: inline-flex; gap: 7px; align-items: center; font-weight: 700; }

@media (max-width: 900px) {
  .mega-panel {
    position: static; transform: none; width: 100%;
    grid-template-columns: 1fr; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    display: none;
  }
  .mega-panel::before { display: none; }
  .nav-links .has-mega { display: block; }
  .has-mega.open .mega-panel { display: grid; transform: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-feature { display: none; }
  .mega-trigger { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
}

/* ============================================================
   3 · ETHEREAL BEAMS (hero background)
   ============================================================ */
.hf-stage::before { z-index: 0; }
.hf-beams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
.hero-forge .hf-photo { z-index: 2; }
.hero-forge .hf-content { z-index: 4; }
.hero-forge .hf-rating { z-index: 5; }
/* Desktop: let the animated beams flow OVER the photo seam, fading out
   before the subject so the photo/dark split blends instead of cutting hard. */
@media (min-width: 901px) {
  .hero-forge .hf-beams {
    z-index: 3;
    -webkit-mask-image: linear-gradient(90deg, #000 0 34%, rgba(0,0,0,0) 72%);
            mask-image: linear-gradient(90deg, #000 0 34%, rgba(0,0,0,0) 72%);
  }
}

/* ============================================================
   4 · HERO SECTION 5 cues — announcement pill + social proof
   ============================================================ */
@property --an-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.announce {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 17px; border-radius: 100px;
  position: relative; isolation: isolate;
  background: rgba(12, 10, 9, .66);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 22px;
  transition: transform .25s, color .25s;
}
.announce::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--an-ang),
    rgba(252,80,20,.08) 0deg, #FC5014 70deg, #FFB37A 100deg, rgba(252,80,20,.08) 160deg, rgba(252,80,20,.08) 360deg);
  -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;
}
@media (prefers-reduced-motion: no-preference) { .announce::before { animation: an-rotate 5s linear infinite; } }
@keyframes an-rotate { to { --an-ang: 360deg; } }
.announce:hover { transform: translateY(-1px); color: #fff; }
.announce .an-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--orange); box-shadow: 0 0 0 0 rgba(252,80,20,.6); }
@media (prefers-reduced-motion: no-preference) { .announce .an-dot { animation: an-pulse 2s ease-out infinite; } }
@keyframes an-pulse {
  0% { box-shadow: 0 0 0 0 rgba(252, 80, 20, .6); }
  70% { box-shadow: 0 0 0 7px rgba(252, 80, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 80, 20, 0); }
}
.announce b { color: #fff; font-weight: 700; }
.announce .an-new { font-size: .56rem; font-weight: 700; letter-spacing: .14em; color: #fff; background: var(--grad-brand); border-radius: 100px; padding: 3px 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.announce .arrow { color: var(--orange); transition: transform .25s; }
.announce:hover .arrow { transform: translateX(3px); }

.social-proof { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 42px; height: 42px; border-radius: 50%; margin-left: -12px;
  border: 2px solid #0a0908; background: var(--surface-3);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .8);
}
.avatars span:first-child { margin-left: 0; }
.avatars span.a1 { background: linear-gradient(150deg, #FC5014, #C10801); }
.avatars span.a2 { background: linear-gradient(150deg, #3a3633, #1a1817); }
.avatars span.a3 { background: linear-gradient(150deg, #D9C5AB, #8a6f4d); color: #1a1209; }
.avatars span.a4 { background: linear-gradient(150deg, #F16001, #7a1a04); }
.social-proof .sp-text { display: flex; flex-direction: column; gap: 2px; }
.social-proof .sp-stars { color: var(--orange); letter-spacing: 2px; font-size: .85rem; }
.social-proof .sp-text small { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; color: var(--gray-mid); text-transform: uppercase; }

/* ============================================================
   5 · TESTIMONIALS COLUMNS (vertical auto-scroll)
   ============================================================ */
.tcols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-height: 720px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.tcol { display: flex; flex-direction: column; gap: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .tcol-track { display: flex; flex-direction: column; gap: 22px; animation: t-scroll var(--dur, 36s) linear infinite; will-change: transform; }
  .tcol:nth-child(2) .tcol-track { animation-duration: var(--dur2, 30s); }
  .tcols:hover .tcol-track { animation-play-state: paused; }
}
@keyframes t-scroll { to { transform: translateY(-50%); } }

.t-quote {
  background: linear-gradient(155deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .025) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px; padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 50px -34px rgba(0, 0, 0, .85);
}
.t-quote .stars { color: var(--orange); letter-spacing: 3px; font-size: .9rem; }
.t-quote p { color: var(--white); font-size: 1rem; line-height: 1.55; margin: 14px 0 18px; }
.t-quote .who { display: flex; align-items: center; gap: 13px; }
.t-quote .who .ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(150deg, #2a2724, #161412);
  border: 1px solid rgba(255, 255, 255, .12);
}
.t-quote .who .ava.brand { background: var(--grad-brand); border-color: transparent; }
.t-quote .who b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: .95rem; letter-spacing: .01em; }
.t-quote .who span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--gray-mid); }

@media (max-width: 860px) { .tcols { grid-template-columns: repeat(2, 1fr); max-height: 640px; } }
@media (max-width: 560px) { .tcols { grid-template-columns: 1fr; max-height: 560px; } .tcol:nth-child(3) { display: none; } }

/* ===== Article / guide prose ===== */
.prose { max-width: 760px; margin-inline: auto; }
.prose > .eyebrow { display: block; }
.prose h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 42px 0 14px; line-height: 1.05; }
.prose h2:first-of-type { margin-top: 14px; }
.prose h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; margin: 28px 0 10px; color: #fff; }
.prose p { color: var(--gray); line-height: 1.7; margin: 0 0 14px; }
.prose em { color: var(--gray-mid); font-style: italic; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { color: var(--gray); line-height: 1.6; display: flex; gap: 10px; align-items: flex-start; }
.prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; margin-top: 9px; }
.prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--gray); line-height: 1.7; display: flex; flex-direction: column; gap: 8px; }
.prose ol li::marker { color: var(--orange); font-family: var(--font-mono); font-weight: 700; }
.prose strong { color: #fff; }
.prose a { color: var(--orange); }
.callout { border: 1px solid rgba(252,80,20,.35); border-radius: 16px; padding: 22px 24px; margin: 24px 0; background: linear-gradient(160deg, rgba(252,80,20,.10), transparent); }
.callout .lbl { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.callout h2.lbl, .callout h3.lbl { font-family: var(--font-mono); font-size: .66rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 0; line-height: 1.2; }
.callout p:last-child { margin-bottom: 0; }
.step-num { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 18px 0; }
.step-num .n { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--orange); line-height: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(252,80,20,.35); border-radius: 12px; }
.article-meta { font-family: var(--font-mono); font-size: .74rem; color: var(--gray-mid); letter-spacing: .04em; margin-top: 14px; }

/* ============================================================
   6 · BEFORE / AFTER TESTIMONIALS (transformation cards)
   Shared by the homepage section and the Rezultate page.
   ============================================================ */
.batest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.batest-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .batest-grid, .batest-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .batest-grid, .batest-grid.cols-2 { grid-template-columns: 1fr; } }

.batest {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.batest:hover { transform: translateY(-4px); border-color: rgba(252,80,20,.45); box-shadow: 0 22px 44px -28px rgba(0,0,0,.8); }
/* Single pre-made before/after photo (no slider) — fixed compact height keeps
   the three-up grid small and uniform. */
.batest-photo { position: relative; overflow: hidden; }
.batest-photo .slot-img, .batest-photo .slot-ph { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.batest-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.batest-result {
  align-self: flex-start; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; padding: 5px 10px; border-radius: 100px;
  background: var(--grad-brand); box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.batest .stars { color: var(--orange); letter-spacing: 2px; font-size: .82rem; }
.batest p { color: var(--white); font-size: .92rem; line-height: 1.5; margin: 0; }
.batest .who { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.batest .who .ava {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .92rem;
  background: linear-gradient(150deg, #2a2724, #161412); border: 1px solid rgba(255,255,255,.12);
}
.batest .who .ava.brand { background: var(--grad-brand); border-color: transparent; }
.batest .who b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: .86rem; letter-spacing: .01em; }
.batest .who span { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .05em; color: var(--gray-mid); }

/* Dedicated Rezultate page shows full quotes inline — give those a bit more room. */
.batest.full .batest-photo .slot-img, .batest.full .batest-photo .slot-ph { aspect-ratio: 4 / 3; }
.batest.full { border-radius: 20px; }
.batest.full .batest-body { padding: 22px 22px 24px; gap: 12px; }
.batest.full p { color: var(--gray); font-size: .98rem; line-height: 1.6; }

/* „Vezi povestea” — accordion cu testimonialul real */
.batest-story { margin-top: 4px; }
.batest-story > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--orange); padding: 8px 13px; border: 1px solid rgba(252,80,20,.45); border-radius: 100px;
  transition: background .25s, border-color .25s, color .25s;
}
.batest-story > summary::-webkit-details-marker { display: none; }
.batest-story > summary:hover { background: rgba(252,80,20,.12); border-color: var(--orange); }
.batest-story > summary .arrow { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.batest-story[open] > summary { color: #fff; border-color: rgba(255,255,255,.18); }
.batest-story[open] > summary .arrow { transform: rotate(90deg); }
.batest-story .stars { color: var(--orange); letter-spacing: 3px; font-size: .9rem; margin-top: 16px; }
.batest-story p { color: var(--gray); font-size: .95rem; line-height: 1.6; margin: 10px 0 0; }
