/* nuvio.ro — profession pages and the /pentru-cine hub (2026-10-06).
   Loaded after nuvio.css on those pages only; everything else (entries, plans, FAQ, device, close band)
   comes from nuvio.css. Three objects live here:
     .pf-hero / .pf-sig   the hero with the trade's signature day column (inline SVG)
     .pf-bens             3-4 benefits, a line icon each
     .pf-biz              the hub's Business card
   Motion: the column's rules draw themselves and the bookings land in order when the figure scrolls in
   (nuvio.js adds .is-on to .rise). The resting frame is the complete drawing: without JS (.no-js) and
   with reduced motion nothing is hidden. */

/* ── Hero with the signature column ───────────────────────────────────── */
.pf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: 28px clamp(32px, 5vw, 72px);
  align-items: center;
}
.pf-hero .hero__lead {
  margin-top: 22px;
}
.pf-hero .hero__actions {
  margin-top: 28px;
}
.pf-hero h1 {
  max-width: 16ch;
}
@media (max-width: 980px) {
  .pf-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pf-sig {
  margin: 0;
  width: 100%;
  max-width: 21rem;
  justify-self: center;
}
@media (max-width: 980px) {
  .pf-sig {
    justify-self: start;
    max-width: 22rem;
  }
}
.pf-sig svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.pf-sig .m {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-variation-settings: "wdth" 85;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.pf-sig .p {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
}

/* The rules draw left to right, then the bookings land in the order the day runs. */
.pf-sig .pf-ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.pf-sig .pf-b {
  transition:
    opacity 480ms var(--ease),
    transform 480ms var(--ease);
  transition-delay: calc(320ms + var(--i, 0) * 110ms);
}
.pf-sig .pf-bar {
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 900ms;
}
html:not(.no-js) .pf-sig.rise:not(.is-on) .pf-ln {
  stroke-dashoffset: 1;
}
html:not(.no-js) .pf-sig.rise:not(.is-on) .pf-b {
  opacity: 0;
  transform: translateY(8px);
}
html:not(.no-js) .pf-sig.rise:not(.is-on) .pf-bar {
  transform: scaleX(0);
}
/* The one loop: the "now" mark breathes, slowly. */
.pf-sig .pf-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pf-pulse 2.8s ease-in-out infinite;
}
@keyframes pf-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.55;
  }
}

/* ── Benefits ─────────────────────────────────────────────────────────── */
.pf-bens {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 1180px) {
  .pf-bens {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pf-ben {
  background: var(--chip);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 20px 20px 22px;
  box-shadow: 0 14px 30px -26px rgba(33, 43, 50, 0.45);
}
.pf-ben__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--blush) 70%, var(--chip));
  color: var(--brass-ink);
}
.pf-ben__icon svg {
  width: 30px;
  height: 30px;
}
.pf-ben__head {
  margin-top: 16px;
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pf-ben__line {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
/* The icons draw themselves with their card. */
.pf-ben__icon svg [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}
html:not(.no-js) .pf-bens.rise:not(.is-on) .pf-ben__icon svg [pathLength] {
  stroke-dashoffset: 1;
}

/* On a phone a benefit is one row: icon beside the words, so four fit on one screen. */
@media (max-width: 640px) {
  .pf-bens {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 26px;
  }
  .pf-ben {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    padding: 16px;
  }
  .pf-ben__icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .pf-ben__icon svg {
    width: 26px;
    height: 26px;
  }
  .pf-ben__head {
    margin-top: 0;
    font-size: 1rem;
  }
  .pf-ben__line {
    margin-top: 3px;
    font-size: 0.875rem;
  }
}

/* ── Hub: the Business card ───────────────────────────────────────────── */
.pf-biz {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  text-decoration: none;
  max-width: 44rem;
  transition: transform 0.22s var(--ease);
}
.pf-biz:hover {
  transform: translateY(-3px);
}
.pf-biz .trade__icon {
  background: rgba(248, 247, 239, 0.1);
  color: var(--brass-lift);
}
.pf-biz .trade__go {
  color: var(--brass-lift);
}
.pf-biz__head {
  display: block;
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
}
.pf-biz__line {
  display: block;
  margin-top: 4px;
  color: rgba(248, 247, 239, 0.78);
  font-size: 0.9375rem;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .pf-biz {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }
  .pf-biz .trade__go {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-sig .pf-ln,
  .pf-sig .pf-b,
  .pf-sig .pf-bar,
  .pf-ben__icon svg [pathLength],
  .pf-biz {
    transition: none !important;
  }
  .pf-sig .pf-ln,
  .pf-ben__icon svg [pathLength] {
    stroke-dashoffset: 0 !important;
  }
  .pf-sig .pf-b {
    opacity: 1 !important;
    transform: none !important;
  }
  .pf-sig .pf-bar {
    transform: none !important;
  }
  .pf-sig .pf-pulse {
    animation: none;
  }
}

/* Hub (/pentru-cine): the hero carries no illustration, so on a phone it is not stretched to one screen;
   the trade grid follows right under the lead. */
@media (max-width: 700px) {
  .pf-hub-hero .hero__body {
    min-height: 0;
    padding-bottom: 8px;
  }
  .pf-hub-hero .hero__eyebrow {
    order: -1;
    margin-bottom: 12px;
  }
}
