/* ============================================================
   PROCES.CSS — Naš proces / Agency process page
   Prefix: pr-
   ============================================================ */

html {
  scroll-behavior: auto; /* Lenis handles smoothing */
}


/* ─────────────────────────────────────────────
   SHARED INNER WRAPPER
   ───────────────────────────────────────────── */
.pr-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}


/* ─────────────────────────────────────────────
   SHARED EYEBROW
   ───────────────────────────────────────────── */
.pr-eyebrow {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.pr-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.pr-hero {
  background-color: #0a0a0a;
  background-image: url('/images/heroOglasavanje.png');
  background-image: image-set(
    url('/images/heroOglasavanje.webp') type('image/webp'),
    url('/images/heroOglasavanje.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Dark gradient overlay for legibility + depth */
.pr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,1) 100%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,10,10,0.4) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Nav floats over hero */
.pr-hero .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.pr-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 240px 50px 140px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Entrance animation — fade in only, no movement */
@keyframes pr-hero-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pr-hero__content > * {
  animation: pr-hero-in 1.2s cubic-bezier(0.16,1,0.3,1) both;
}
.pr-hero__content > *:nth-child(1) { animation-delay: 0.06s; }
.pr-hero__content > *:nth-child(2) { animation-delay: 0.22s; }
.pr-hero__content > *:nth-child(3) { animation-delay: 0.38s; }
.pr-hero__content > *:nth-child(4) { animation-delay: 0.54s; }


/* H1 */
.pr-hero__h1 {
  margin: 0 0 28px;
  display: block;
}

.pr-hero__h1-line {
  display: block;
  line-height: 1.04;
}

.pr-h1-mont {
  font-family: var(--font-mont);
  font-size: var(--fs-h1-mont);
  font-weight: var(--fw-regular);
  letter-spacing: -0.055em;
  color: #ffffff;
}

.pr-h1-dutch {
  font-family: var(--font-dutch);
  font-size: var(--fs-h1-dutch);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #ffffff;
}

/* Supporting text */
.pr-hero__sub {
  font-family: var(--font-mont);
  font-size: var(--fs-p);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.48);
  line-height: var(--lh-p);
  letter-spacing: var(--ls-default);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* CTA button — vertical text slide */
.pr-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mont);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-default);
  color: #000000;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 15px 34px;
  cursor: pointer;
  overflow: hidden;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.pr-hero__btn:hover {
  background: rgba(255,255,255,0.88);
}

.pr-hero__btn .btn-track {
  position: relative;
  display: block;
  height: 1.2em;
  overflow: hidden;
}

.pr-hero__btn .btn-track__inner {
  display: block;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.pr-hero__btn .btn-track__inner > span {
  display: block;
  height: 1.2em;
  line-height: 1.2;
}

.pr-hero__btn:hover .btn-track__inner {
  transform: translateY(-1.2em);
}


/* ─────────────────────────────────────────────
   TIMELINE SECTION — PREMIUM
   ───────────────────────────────────────────── */
.pr-timeline {
  background: #0a0a0a;
  width: 100%;
  padding: 160px 0 0;
  position: relative;
  overflow: hidden;
}

.pr-timeline__header {
  text-align: center;
  margin-bottom: 120px;
  position: relative;
  z-index: 1;
}

.pr-timeline__eyebrow {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pr-timeline__eyebrow::before,
.pr-timeline__eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.pr-timeline__title {
  margin: 0;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.pr-timeline__title .te-h2-mont {
  display: block;
  font-family: var(--font-mont);
  font-size: var(--fs-h2-mont);
  font-weight: 400;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.pr-timeline__title .te-h2-dutch {
  display: block;
  font-family: var(--font-dutch);
  font-size: var(--fs-h2-dutch);
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--ls-default);
  color: #ffffff;
}

/* ── TRACK ── */
.pr-timeline__track {
  position: relative;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 50px 200px;
}

/* Static base line (dim) */
.pr-timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.07);
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
}

/* Scroll-driven fill — grows via GSAP */
.pr-timeline__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,0.65) 25%,
    rgba(255,255,255,0.75) 50%,
    rgba(255,255,255,0.65) 75%,
    rgba(255,255,255,0)    100%
  );
}

/* Ambient radial glow — positioned at active step via JS */
.pr-timeline__glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 700px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(155,110,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  will-change: top;
  transition: top 1.1s cubic-bezier(0.16,1,0.3,1);
}

/* ── SINGLE STEP ── */
.pr-step {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: start;
  margin-bottom: 200px;
  position: relative;
  z-index: 1;
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1);
}

.pr-step:last-child { margin-bottom: 0; }

/* Inactive — barely visible */
.pr-step.is-inactive { opacity: 0.22; }
/* Past — readable but receded */
.pr-step.is-past     { opacity: 0.38; }
/* Active — full presence */
.pr-step.is-active   { opacity: 1; }

/* ── DOT COLUMN ── */
.pr-step__dot-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 116px; /* aligns dot with title (below ghost number) */
  position: relative;
  z-index: 2;
}

.pr-step__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: #0a0a0a;
  flex-shrink: 0;
  position: relative;
  transition:
    background 0.5s ease,
    border-color 0.45s ease,
    transform 0.6s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.5s ease;
}

/* Expanding pulse rings */
.pr-step__dot::before,
.pr-step__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.4s ease;
}

.pr-step__dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.55);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.06),
    0 0 20px rgba(255,255,255,0.2),
    0 0 50px rgba(195,165,255,0.12);
}

.pr-step__dot.is-active::before {
  border-width: 0.5px;
  border-color: rgba(255,255,255,0.2);
  animation: dot-ring 2.4s cubic-bezier(0.16,1,0.3,1) 1.2s infinite;
}

.pr-step__dot.is-active::after {
  border-width: 0.5px;
  border-color: rgba(255,255,255,0.2);
  animation: dot-ring 2.4s cubic-bezier(0.16,1,0.3,1) infinite;
}

@keyframes dot-ring {
  0%   { transform: scale(1);   opacity: 1; }
  65%  { transform: scale(2.9); opacity: 0; }
  100% { transform: scale(2.9); opacity: 0; }
}

/* ── CONNECTORS (horizontal line from content to dot) ── */
.pr-step__left {
  padding-right: 120px;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.pr-step__left::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 123px; /* matches dot-col padding-top + half dot */
  width: 52px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
  transition: background 0.5s ease, width 0.5s ease;
}

.pr-step.is-active .pr-step__left::after {
  background: rgba(255,255,255,0.3);
}

.pr-step__right {
  padding-left: 120px;
  display: flex;
  justify-content: flex-start;
  position: relative;
}

.pr-step__right::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 123px;
  width: 52px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
  transition: background 0.5s ease;
}

.pr-step.is-active .pr-step__right::before {
  background: rgba(255,255,255,0.3);
}

.pr-step__empty {}

/* ── STEP CONTENT ── */
.pr-step__content {
  max-width: 460px;
  width: 100%;
  position: relative;
}

/* Ghost number — brightens on active */
.pr-step__num {
  display: block;
  font-family: var(--font-dutch);
  font-style: italic;
  font-size: 120px;
  font-weight: 400;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin-bottom: 12px;
  pointer-events: none;
  user-select: none;
  transition: color 0.9s ease;
}

.pr-step.is-active .pr-step__num {
  color: rgba(255,255,255,0.08);
}

.pr-step__badge {
  display: inline-block;
  font-family: var(--font-mont);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* Title — dim until active */
.pr-step__title {
  font-family: var(--font-mont);
  font-size: 35px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: rgba(255,255,255,0.42);
  transition: color 0.7s cubic-bezier(0.16,1,0.3,1);
}

.pr-step.is-active .pr-step__title {
  color: #ffffff;
}

/* Description — dim until active */
.pr-step__desc {
  font-family: var(--font-mont);
  font-size: var(--fs-p);
  font-weight: var(--fw-regular);
  line-height: var(--lh-p);
  letter-spacing: var(--ls-default);
  color: rgba(255,255,255,0.14);
  margin: 0;
  max-width: 340px;
  transition: color 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s;
}

.pr-step.is-active .pr-step__desc {
  color: rgba(255,255,255,0.52);
}


/* ─────────────────────────────────────────────
   ANIMATION — direction-aware reveal
   ───────────────────────────────────────────── */
.pr-animate {
  opacity: 0;
  transition:
    opacity 1.05s cubic-bezier(0.16,1,0.3,1),
    transform 1.05s cubic-bezier(0.16,1,0.3,1);
}

.pr-step__left .pr-animate  { transform: translateX(-55px); }
.pr-step__right .pr-animate { transform: translateX(55px); }

.pr-animate.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.pr-step:nth-child(2n) .pr-animate {
  transition-delay: 0.04s;
}


/* ─────────────────────────────────────────────
   CTA SECTION
   ───────────────────────────────────────────── */
.pr-cta {
  background: #0a0a0a;
  width: 100%;
  padding: 120px 50px 250px;
  text-align: center;
  position: relative;
  margin-top: -5px;
}

/* Line extension from timeline into CTA heading */
.pr-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 130px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.07), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.pr-cta__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 50px;
}

.pr-cta__eyebrow {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.pr-cta__eyebrow::before,
.pr-cta__eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.pr-cta__title {
  margin: 0 0 36px;
  font-weight: 400;
  line-height: 1.04;
}

.pr-cta__title .pr-h2-mont {
  display: inline;
  font-family: var(--font-mont);
  font-size: var(--fs-h2-mont);
  font-weight: 400;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.pr-cta__title .pr-h2-dutch {
  display: inline;
  font-family: var(--font-dutch);
  font-size: var(--fs-h2-dutch);
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--ls-default);
  color: #ffffff;
}

.pr-cta__sub {
  font-family: var(--font-mont);
  font-size: var(--fs-p);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.38);
  line-height: var(--lh-p);
  letter-spacing: var(--ls-default);
  margin: 0 auto 44px;
  max-width: 480px;
}

/* CTA button — lavender tint */
.pr-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mont);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-default);
  color: #000000;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 15px 36px;
  cursor: pointer;
  overflow: hidden;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.25s ease;
}

.pr-cta__btn:hover {
  background: rgba(255,255,255,0.88);
}

.pr-cta__btn .btn-track {
  position: relative;
  display: block;
  height: 1.2em;
  overflow: hidden;
}

.pr-cta__btn .btn-track__inner {
  display: block;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.pr-cta__btn .btn-track__inner > span {
  display: block;
  height: 1.2em;
  line-height: 1.2;
}

.pr-cta__btn:hover .btn-track__inner {
  transform: translateY(-1.2em);
}

/* Trust signals below CTA button */
.pr-cta__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.pr-cta__trust-item {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.28);
}

.pr-cta__trust-sep {
  color: rgba(255,255,255,0.15);
  font-size: 11px;
  line-height: 1;
  user-select: none;
}


/* ─────────────────────────────────────────────
   FAQ SECTION OVERRIDES (uses global faq.css classes)
   ───────────────────────────────────────────── */
.section-faq--proces {
  background: #f5f5f5;
}


/* ─────────────────────────────────────────────
   RESPONSIVE — TABLET
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pr-timeline__track {
    padding: 0 30px;
  }

  .pr-step__content {
    max-width: 100%;
  }

  .pr-step__left {
    padding-right: 28px;
  }

  .pr-step__right {
    padding-left: 28px;
  }
}
