/* ============================================
   MENUS - About Page ("Degustacioni meni")
   Struktura: hero-korica -> manifest -> brojke ->
   horizontalni meni usluga -> marquee -> demo ->
   FAQ (stavke menija) -> rezervacija mesta.
   Sve animacije su gate-ovane iza html.abjs (JS
   prisutan) i prefers-reduced-motion.
   ============================================ */

.about-page {
  overflow-x: clip;
}

/* --- Shared primitives --- */
.ab-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-4);
}

.ab-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.ab-title em {
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-primary);
}

/* ── Scroll progress hairline ─────────────────────────────────────── */
.ab-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1200;
  pointer-events: none;
}

.ab-progress__bar {
  display: block;
  height: 100%;
  background: var(--color-primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ══════════════════════════════════════════════════════════════════
   HERO — korica menija
   ══════════════════════════════════════════════════════════════════ */
.ab-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 4rem) 0 0;
  overflow: hidden;
  background-color: #ECE1CC; /* = boja poda u videu (video je kolor-korigovan na ovo) */
}

/* Scena lokala ispod teksta; gornji deo (zid/lusteri) se pretapa u pozadinu
   i ulazi ispod teksta, ljudi ostaju čisti */
.ab-hero__scene {
  display: block;
  order: 2; /* u DOM-u je pre teksta */
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: -13vw;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
  pointer-events: none;
}

.ab-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-inline: var(--space-6);
}

.ab-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}

.ab-hero__eyebrow-rule {
  display: block;
  width: clamp(2rem, 6vw, 4.5rem);
  height: 1px;
  background: var(--color-accent);
}

.ab-hero__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.6vw, 6.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--color-fg);
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}

.ab-hero__title em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: var(--color-primary);
}

/* Line-mask reveal */
.ab-line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em; /* keep descenders/ascenders inside the mask */
}

.ab-line__in {
  display: block;
}

.ab-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.185rem);
  color: var(--color-fg);
  opacity: 0.72;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto clamp(1.75rem, 4vh, 2.75rem);
}

.ab-hero__cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.ab-hero__cta .btn {
  padding: 0.9rem 2.2rem;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
}

/* Kompaktan tekst nad scenom (desktop/tablet) */
.ab-hero .ab-hero__eyebrow { margin-bottom: clamp(0.9rem, 2vh, 1.4rem); }
.ab-hero .ab-hero__title {
  font-size: clamp(2.1rem, 3.7vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: clamp(0.8rem, 1.8vh, 1.2rem);
}
.ab-hero .ab-hero__lead {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.6;
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: clamp(1rem, 2.4vh, 1.6rem);
}

/* Outline dugme stoji preko scene: puna pozadina da se crtež ne vidi kroz njega */
.ab-hero__cta .btn-outline { background-color: #ECE1CC; }

/* Mobilni: manji preklop, scena isečena na deo sa ljudima */
@media (max-width: 768px) {
  .ab-hero { padding-top: var(--space-8); }
  .ab-hero__inner { padding-inline: var(--space-4); }
  .ab-hero__scene {
    aspect-ratio: 16 / 7;
    object-position: center 88%;
    margin-top: calc(-1 * var(--space-4));
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  }
  .ab-hero .ab-hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
}

/* Scroll cue */
.ab-hero__scrollcue {
  position: absolute;
  bottom: clamp(2.2rem, 5vh, 3.2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}

.ab-hero__scrollcue-line {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--color-accent);
  position: relative;
  overflow: hidden;
}

.ab-hero__scrollcue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent-deep);
  transform: translateY(-100%);
  animation: ab-cue-drip 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes ab-cue-drip {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ── Hero entrance choreography (JS + motion allowed) ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  html.abjs .ab-hero__scene {
    opacity: 0;
    transition: opacity 1.2s ease;
  }
  html.abjs .ab-hero.is-loaded .ab-hero__scene { opacity: 1; }

  /* Non-title elements rise into place */
  html.abjs .ab-hero-seq--1,
  html.abjs .ab-hero-seq--5,
  html.abjs .ab-hero-seq--6,
  html.abjs .ab-hero-seq--7 {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Title lines slide out of their masks */
  html.abjs .ab-hero-seq--2,
  html.abjs .ab-hero-seq--3,
  html.abjs .ab-hero-seq--4 {
    transform: translateY(112%);
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.abjs .ab-hero-seq--1 { transition-delay: 0.15s; }
  html.abjs .ab-hero-seq--2 { transition-delay: 0.35s; }
  html.abjs .ab-hero-seq--3 { transition-delay: 0.47s; }
  html.abjs .ab-hero-seq--4 { transition-delay: 0.59s; }
  html.abjs .ab-hero-seq--5 { transition-delay: 0.85s; }
  html.abjs .ab-hero-seq--6 { transition-delay: 1.00s; }
  html.abjs .ab-hero-seq--7 { transition-delay: 1.35s; }

  html.abjs .ab-hero.is-loaded .ab-hero-seq--1,
  html.abjs .ab-hero.is-loaded .ab-hero-seq--5,
  html.abjs .ab-hero.is-loaded .ab-hero-seq--6,
  html.abjs .ab-hero.is-loaded .ab-hero-seq--7 {
    opacity: 1;
    transform: translateY(0);
  }

  html.abjs .ab-hero.is-loaded .ab-hero-seq--2,
  html.abjs .ab-hero.is-loaded .ab-hero-seq--3,
  html.abjs .ab-hero.is-loaded .ab-hero-seq--4 {
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════════
   MANIFEST — kinetički tekst (reč po reč na skrol)
   ══════════════════════════════════════════════════════════════════ */
.ab-manifest {
  position: relative;
}

html.abjs .ab-manifest--pin {
  height: 240vh;
}

.ab-manifest__sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--space-24) var(--space-6);
}

html.abjs .ab-manifest--pin .ab-manifest__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding-block: 0;
}

.ab-manifest__kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-8);
}

.ab-manifest__text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1.42;
  letter-spacing: 0.005em;
  color: var(--color-fg);
  max-width: 1000px;
}

/* JS-split words */
.ab-manifest__text .mw {
  display: inline-block;
  opacity: 0.13;
  transition: opacity 0.35s linear;
}

.ab-manifest__text .mw.on {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   BROJKE
   ══════════════════════════════════════════════════════════════════ */
.ab-stats {
  border-block: 1px solid var(--color-border);
  background: var(--color-muted);
}

.ab-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ab-stat {
  padding: clamp(2.25rem, 5vw, 4rem) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ab-stat + .ab-stat {
  border-left: 1px solid var(--color-border);
}

.ab-stat__number {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--color-accent-deep);
  letter-spacing: -0.02em;
}

.ab-stat__number sup {
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0.08em;
  vertical-align: super;
  margin-left: 0.15em;
  color: var(--color-primary);
}

.ab-stat__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted-text);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════════
   USLUGE — degustacioni meni, horizontalni skrol
   ══════════════════════════════════════════════════════════════════ */
.ab-courses {
  position: relative;
  /* Visinu na desktopu postavlja JS (pin efekat) */
}

.ab-courses__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3.5vh, 3rem);
  padding-block: clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}

html.abjs .ab-courses--pinned .ab-courses__pin {
  position: sticky;
  top: 0;
  height: 100vh; /* JS postavlja tačan px (visina se ne menja na URL-bar resize) */
  padding-block: clamp(1.25rem, 3vh, 2.5rem);
}

.ab-courses__head {
  text-align: center;
  padding-inline: var(--space-6);
  padding-block: clamp(2.5rem, 6vh, 4.5rem) 0;
}

.ab-courses__head .ab-eyebrow { margin-bottom: var(--space-3); }

.ab-courses__title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.1;
}

.ab-courses__title em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: var(--color-primary);
}

.ab-courses__hint {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-text);
}

.ab-courses__viewport {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: var(--space-2);
}

.ab-courses__viewport::-webkit-scrollbar { display: none; }

/* Kada je sekcija pinovana, JS vozi translateX pa native skrol gasimo */
html.abjs .ab-courses--pinned .ab-courses__viewport {
  overflow-x: hidden;
  scroll-snap-type: none;
}

.ab-courses__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-inline: max(var(--space-6), calc((100vw - var(--container-max)) / 2 + var(--space-6)));
  width: max-content;
  will-change: transform;
}

.ab-course {
  flex: 0 0 auto;
  width: min(440px, 82vw);
  scroll-snap-align: center;
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease;
}

.ab-course:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

/* Entrance animacija kartica — fade + blagi scale, bez vertikalnog
   pomeranja (kartice ne smeju da skaču gore-dole tokom travel-a).
   `scale`/`opacity` ne diraju hover `transform`. */
@media (prefers-reduced-motion: no-preference) {
  html.abjs .ab-course {
    opacity: 0;
    scale: 0.94;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s ease,
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                scale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.abjs .ab-course.is-in {
    opacity: 1;
    scale: 1;
  }
}

/* Giant roman numeral, engraved */
.ab-course__num {
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(4.5rem, 7vw, 6.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135, 94, 54, 0.22);
  pointer-events: none;
  user-select: none;
}

.ab-course__gang {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ab-course__gang::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--color-accent);
}

.ab-course__soon {
  padding: 0.15rem 0.6rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.ab-course__name {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

.ab-course__lead {
  font-size: var(--text-sm);
  color: var(--color-fg);
  opacity: 0.65;
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.ab-course__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.ab-course__list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 1.4rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-fg);
  line-height: 1.5;
}

.ab-course__list li + li {
  border-top: 1px dashed var(--color-border);
}

.ab-course__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
}

.ab-course--coming {
  background: var(--color-muted);
  border-style: dashed;
  justify-content: flex-start;
}

/* Course progress hairline */
.ab-courses__progress {
  height: 2px;
  background: var(--color-border);
  margin-inline: max(var(--space-6), calc((100vw - var(--container-max)) / 2 + var(--space-6)));
  position: relative;
  overflow: hidden;
}

.ab-courses__progress-bar {
  position: absolute;
  inset: 0;
  background: var(--color-accent-deep);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ══════════════════════════════════════════════════════════════════
   KINETIČKA TRAKA — linije vezane za skrol (bez auto-petlje)
   Pomeraju se suprotno dok korisnik skroluje; skew prati brzinu.
   ══════════════════════════════════════════════════════════════════ */
.ab-band {
  overflow: hidden;
  background: var(--color-fg);
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ab-band__line {
  white-space: nowrap;
  text-align: center;
  will-change: transform;
}

.ab-band__skew {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--color-bg);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ab-band__line--b .ab-band__skew {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 245, 226, 0.55);
  font-size: clamp(1.5rem, 4vw, 3.2rem);
}

.ab-band__skew em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}

.ab-band__line--a .ab-band__skew em {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .ab-band__line {
    white-space: normal;
  }
}

/* ══════════════════════════════════════════════════════════════════
   DEMO
   ══════════════════════════════════════════════════════════════════ */
.ab-demo {
  padding-block: clamp(5rem, 12vh, 9rem);
}

.ab-demo__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.ab-demo__lead {
  font-size: var(--text-base);
  color: var(--color-fg);
  opacity: 0.68;
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.ab-demo__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-8);
}

.ab-demo__list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 1.6rem;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-fg);
}

.ab-demo__list li + li {
  border-top: 1px dashed var(--color-border);
}

.ab-demo__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
}

.ab-demo__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease;
}

.ab-demo__btn:hover {
  background: var(--color-accent-deep);
  color: var(--color-white);
}

.ab-demo__btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.ab-demo__btn:hover svg {
  transform: translateX(5px) rotate(-45deg);
}

/* Visual: curtain reveal + tilt */
.ab-demo__visual {
  position: relative;
  will-change: transform;
}

.ab-demo__img-reveal {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 4.6;
}

.ab-demo__img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  html.abjs .ab-demo__img-reveal {
    clip-path: inset(0 100% 0 0 round var(--radius-xl));
    transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  }

  html.abjs .ab-demo__img-reveal img {
    transform: scale(1.18);
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  }

  html.abjs .ab-demo__visual.is-revealed .ab-demo__img-reveal {
    clip-path: inset(0 0 0 0 round var(--radius-xl));
  }

  html.abjs .ab-demo__visual.is-revealed .ab-demo__img-reveal img {
    transform: scale(1);
  }
}

/* Table-number stamp */
.ab-demo__badge {
  position: absolute;
  top: -28px;
  right: -20px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-md);
}

.ab-demo__badge-num {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-deep);
}

.ab-demo__badge-txt {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Demo varijante: naizmenični raspored + široki screenshotovi */
.ab-demo--flip .ab-demo__text { order: 2; }
.ab-demo--flip .ab-demo__visual { order: 1; }

.ab-demo__img-reveal--wide {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  --radius-xl: 0px; /* i clip-path reveal koristi ovu vrednost */
}

/* Laptop mockup: transparentan PNG bez kartice */
.ab-demo__img-reveal--bare {
  aspect-ratio: auto;
  border-radius: 0;
  --radius-xl: 0px;
  box-shadow: none;
}

.ab-demo__img-reveal--bare img {
  height: auto;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════════
   FAQ — stavke menija sa tačkastim vođicama
   ══════════════════════════════════════════════════════════════════ */
.ab-faq {
  background: var(--color-muted);
  border-block: 1px solid var(--color-border);
  padding-block: clamp(5rem, 12vh, 8rem);
}

.ab-faq__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vh, 4rem);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question__no {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.7;
  flex-shrink: 0;
}

.faq-question__text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.35;
  transition: color var(--transition-base);
}

.faq-question:hover .faq-question__text {
  color: var(--color-primary);
}

/* Dotted leader, kao u štampanom meniju */
.faq-question__leader {
  flex: 1;
  min-width: 24px;
  align-self: center;
  height: 4px;
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1.4px);
  background-size: 8px 4px;
  background-repeat: repeat-x;
  background-position: bottom;
  opacity: 0.7;
}

/* Plus/minus toggle */
.faq-question__toggle {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-self: center;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  transition: background-color var(--transition-base), border-color var(--transition-base), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question__toggle::before,
.faq-question__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--color-accent-deep);
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-base);
}

.faq-question__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-question__toggle {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
  transform: rotate(180deg);
}

.faq-item[open] .faq-question__toggle::before,
.faq-item[open] .faq-question__toggle::after {
  background: var(--color-white);
}

.faq-item[open] .faq-question__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  overflow: hidden;
  transition: height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-fg);
  opacity: 0.68;
  line-height: 1.8;
  padding: 0 var(--space-2) var(--space-6) calc(var(--space-4) + 1.6rem);
  max-width: 700px;
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT — rezervacija mesta
   ══════════════════════════════════════════════════════════════════ */
.ab-contact {
  padding-block: clamp(5rem, 12vh, 9rem);
}

.ab-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.ab-contact__lead {
  font-size: var(--text-base);
  color: var(--color-fg);
  opacity: 0.68;
  line-height: 1.8;
  max-width: 420px;
}

.ab-contact__alt {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px dashed var(--color-border);
}

.ab-contact__alt p {
  font-size: var(--text-sm);
  color: var(--color-muted-text);
  margin-bottom: var(--space-3);
}

.ab-contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent-deep);
  text-decoration: none;
  transition: color var(--transition-base);
}

.ab-contact__email:hover {
  color: var(--color-primary);
}

.ab-contact__email svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Form kao rezervaciona kartica: dupli ram kao na hero korici */
.contact-form {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-form::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(135, 94, 54, 0.18);
  border-radius: 4px;
  pointer-events: none;
}

.contact-form__heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-form__heading::before,
.contact-form__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-fg);
  opacity: 0.8;
}

.form-group .input.has-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}

.form-error:not(:empty) {
  display: block;
}

.input--textarea {
  resize: vertical;
  min-height: 110px;
  border-radius: var(--radius-md);
  line-height: 1.6;
}

.form-label-optional {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-fg);
  opacity: 0.4;
  margin-left: var(--space-1);
}

.form-submit {
  margin-top: var(--space-2);
}

.form-submit .btn {
  width: 100%;
  height: 52px;
  position: relative;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: ab-spin 0.7s linear infinite;
  position: absolute;
}

.btn.loading .btn-label { opacity: 0; }
.btn.loading .btn-spinner { display: block; }

@keyframes ab-spin {
  to { transform: rotate(360deg); }
}

.form-message {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-message svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-message.visible {
  display: flex;
}

.form-message--success {
  background: rgba(39, 174, 96, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(39, 174, 96, 0.25);
}

.form-message--error {
  background: rgba(231, 76, 60, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Premium focus */
.contact-form .input {
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.contact-form .input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(135, 94, 54, 0.12);
  outline: none;
}

.contact-form .form-group:focus-within label {
  color: var(--color-primary);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   SCROLL REVEAL (generic)
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  html.abjs .ab-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.abjs .ab-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════════
   CUSTOM CURSOR (samo desktop, pointer: fine)
   ══════════════════════════════════════════════════════════════════ */
.ab-cursor {
  display: none;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.abjs .ab-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1300;
    pointer-events: none;
  }

  .ab-cursor__dot,
  .ab-cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .ab-cursor__dot {
    width: 7px;
    height: 7px;
    background: var(--color-accent-deep);
  }

  .ab-cursor__ring {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-primary);
    opacity: 0.5;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                background-color 0.3s ease;
  }

  html.abjs .ab-cursor.is-hover .ab-cursor__ring {
    width: 58px;
    height: 58px;
    opacity: 0.9;
    background: rgba(177, 145, 113, 0.12);
  }

  html.abjs .ab-cursor.is-drag .ab-cursor__ring {
    width: 66px;
    height: 66px;
    opacity: 0.9;
  }

  html.abjs .ab-cursor.is-down .ab-cursor__ring {
    width: 26px;
    height: 26px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ab-demo__inner,
  .ab-contact__inner {
    grid-template-columns: 1fr;
  }

  .ab-demo__visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .ab-demo--flip .ab-demo__text,
  .ab-demo--flip .ab-demo__visual {
    order: initial;
  }

  .ab-demo__badge {
    right: -6px;
  }
}

/* Na nižim viewport-ima cue nema mesta ispod centriranog sadržaja */
@media (max-height: 900px) {
  .ab-hero__scrollcue {
    display: none;
  }
}

@media (max-width: 768px) {
  .ab-hero__scrollcue {
    display: none;
  }

  .ab-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ab-stat:nth-child(3) {
    border-left: none;
  }

  .ab-stat:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
  }

  .faq-question__no {
    display: none;
  }

  .faq-answer p {
    padding-left: var(--space-2);
  }

  .ab-demo__badge {
    width: 86px;
    height: 86px;
    top: -18px;
  }

  .ab-demo__badge-num { font-size: 1.5rem; }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .faq-question__leader {
    display: none;
  }
}

/* ── Kompaktne course kartice na malim telefonima ─────────────────────
   Kartica mora da stane u pin viewport zajedno sa naslovom sekcije. */
@media (max-width: 600px) {
  .ab-courses__hint {
    display: none;
  }

  .ab-courses__title {
    font-size: 1.85rem;
  }

  .ab-courses__head .ab-eyebrow {
    margin-bottom: var(--space-2);
  }

  .ab-course {
    width: 86vw;
    padding: 1.15rem 1.25rem;
  }

  .ab-course__num {
    font-size: 3rem;
    top: 0.3rem;
    right: 1rem;
  }

  .ab-course__gang {
    margin-bottom: var(--space-3);
  }

  .ab-course__name {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
  }

  .ab-course__lead {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: var(--space-3);
  }

  .ab-course__list li {
    padding: 0.45rem 0 0.45rem 1.1rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .ab-course__list li::before {
    top: 0.75rem;
    width: 6px;
    height: 6px;
  }

  /* Sigurnosna mreža: ako je kartica i dalje viša od pin viewporta,
     skroluje se unutar sebe umesto da bude odsečena. */
  html.abjs .ab-courses--pinned .ab-courses__viewport {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center; /* track (auto visina) vertikalno centriran */
  }

  /* Track auto visine: kartice se po flex defaultu rastežu na najvišu
     karticu -> sve jednake visine; max-height čuva od prelivanja. */
  html.abjs .ab-courses--pinned .ab-courses__track {
    max-height: 100%;
  }

  html.abjs .ab-courses--pinned .ab-course {
    max-height: 100%;
    overflow-y: auto;
  }
}

/* ══════════════════════════════════════════════════════════════════
   REDUCED MOTION — sve mirno, sadržaj odmah vidljiv
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ab-hero__scrollcue-line::after {
    animation: none;
  }

  .ab-progress {
    display: none;
  }

  .faq-answer {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   KORISNICI — scroll-scrub video (telefon putuje kroz kadar)
   Sekcija se pinuje; skrol premotava video (JS postavlja currentTime).
   Bez JS-a / uz reduced-motion: video se pušta sam, bez pina.
   ══════════════════════════════════════════════════════════════════ */
.ab-users {
  background: var(--color-bg);
}

.ab-users__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  padding: clamp(3rem, 8vh, 5rem) var(--space-6);
  text-align: center;
}

/* Pinned varijanta: JS postavlja visinu sekcije, pin je sticky */
html.abjs .ab-users--pinned .ab-users__pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.ab-users__head .ab-eyebrow { margin-bottom: var(--space-3); }
.ab-users__head .ab-title   { margin-bottom: var(--space-2); }

.ab-users__hint {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* Telefon = nebo iznad teksta; tekst je protagonista */
.ab-users__stage {
  position: relative;
  width: 100%;
  height: clamp(200px, 32vh, 340px);
  overflow: visible;
  pointer-events: none;
}

.ab-users__stage video {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 130%;
  width: auto;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Poglavlja dana — smenjuju se dok skrol tera sunce */
.ab-users__chapters {
  position: relative;
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
  min-height: 15rem;
}

.ab-uchapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.ab-uchapter.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ab-uchapter__time {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-4);
}

.ab-uchapter__time span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.ab-uchapter__title {
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.ab-uchapter__title em {
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-primary);
}

.ab-uchapter__text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-fg);
  opacity: 0.72;
  max-width: 540px;
}

/* Bez pina (reduced-motion / bez JS): poglavlja teku normalno */
.ab-users:not(.ab-users--pinned) .ab-users__chapters { min-height: 0; }
.ab-users:not(.ab-users--pinned) .ab-uchapter {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ab-users:not(.ab-users--pinned) .ab-uchapter + .ab-uchapter { margin-top: var(--space-8); }

@media (max-width: 768px) {
  .ab-users__pin { padding-inline: var(--space-4); }
  .ab-users__stage { height: clamp(160px, 24vh, 240px); }
  .ab-users__chapters { min-height: 19rem; }
}
