/* ==========================================================================
   КОРЕНИ СРБИЈЕ — основни стилови
   ========================================================================== */

:root {
  --paper-light: #E9DDC5;
  --paper: #DCCAAA;
  --ink: #251B15;
  --brown: #493429;
  --burgundy: #76251F;
  --gold: #A88343;
  --dark: #171712;
  --muted: #7A6A5B;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --header-height: 108px;

  --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--dark);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Видљив keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--paper-light);
  color: var(--ink);
  padding: 0.8em 1.2em;
  font-family: var(--font-sans);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Header / навигација
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.site-header.is-scrolled {
  background-color: rgba(233, 221, 197, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(73, 52, 41, 0.14);
  box-shadow: 0 8px 24px rgba(23, 23, 18, 0.08);
}

.site-header__inner {
  height: var(--header-height);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-header__logo {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
}

.site-header__subtitle {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.primary-nav__link {
  position: relative;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--ink);
  padding-bottom: 6px;
  transition: color 0.35s ease;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-cinematic);
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: var(--burgundy);
}

.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after,
.primary-nav__link.is-active::after {
  transform: scaleX(1);
}

.primary-nav__link.is-active {
  color: var(--burgundy);
}

/* Hamburger дугме */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  z-index: 110;
}

.nav-toggle__line {
  display: block;
  width: 26px;
  height: 1px;
  background-color: var(--ink);
  transition: transform 0.4s var(--ease-cinematic), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Responsive навигација (mobile)
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    background-color: var(--paper-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.45s var(--ease-cinematic), transform 0.45s var(--ease-cinematic), visibility 0.45s;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav__list {
    flex-direction: column;
    gap: 2.1rem;
    text-align: center;
  }

  .primary-nav__link {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--ink);
  }
}

/* --------------------------------------------------------------------------
   HERO секција
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  isolation: isolate;
  /* без непрозирне позадинске боје — slika ima ugrađen alpha-fade pri dnu
     koji treba da otkrije stvarnu teksturu #ustanak sekcije ispod sebe */
  background-color: transparent;
}

/* Desktop/velike table: artwork se prikazuje u punom, nekropovanom razmeri —
   visina prati širinu po prirodnoj razmeri slike (1683x833), pa se poderana
   ivica pri dnu uvek vidi у целости. min-height је sigurnosni prag koji
   sprečava da tekstualna kolona bude odsečena na užim desktop širinama. */
@media (min-width: 1024px) {
  .hero {
    min-height: 880px;
    aspect-ratio: 1683 / 833;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* само url() слој — без fallback градијента иза њега, јер би он блокирао
     alpha-fade на дну слике и спречио да се #ustanak тестура види кроз њега */
  background-image: url("../images/hero-koreni-srbije.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transform-origin: center;
  will-change: transform;
  transition: transform 2.4s var(--ease-cinematic);
}

@media (min-width: 1024px) {
  .hero__bg {
    /* cover — слика испуњава целу (min-height проширену) кутију, без равног
       остатка боје испод; прихвата се благо хоризонтално кадрирање уместо
       празног пергамента на дну */
    background-size: cover;
    background-position: center top;
  }
}

.hero.is-loaded .hero__bg {
  transform: scale(1);
}

/* Текст композиција — лево поравнато, не центрирано */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  padding: calc(var(--header-height) + 2.5rem + 40px) clamp(1.5rem, 6vw, 5.5rem) 0;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-clip {
  display: block;
  transform: translateY(105%);
}

.hero__lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--brown);
  max-width: 32ch;
  margin-bottom: 1.7rem;
  letter-spacing: 0.01em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color 0.4s ease, color 0.4s ease, gap 0.4s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background-color: var(--burgundy);
  color: var(--paper-light);
  gap: 1.1rem;
}

.hero__cta-arrow {
  transition: transform 0.4s var(--ease-cinematic);
}

.hero__cta:hover .hero__cta-arrow,
.hero__cta:focus-visible .hero__cta-arrow {
  transform: translateX(3px);
}

.hero__intro {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--brown);
  max-width: 36ch;
  margin-top: 1.8rem;
  letter-spacing: 0.01em;
}

.hero__signature {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.hero__signature-line {
  width: 36px;
  height: 1px;
  background-color: var(--gold);
}

.hero__signature-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Веома велики, једва видљив декоративни број у позадини левог дела */
.hero__bignumber {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: clamp(-1rem, 2vw, 2rem);
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 24vw, 26rem);
  line-height: 1;
  color: var(--burgundy);
  opacity: 0.08;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero__location {
  position: absolute;
  left: clamp(1.5rem, 6vw, 5.5rem);
  bottom: clamp(4rem, 9vh, 6.5rem);
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* На desktop-у hero висина је фиксна (min-height/aspect-ratio), не расте са
   висином viewport-а — зато овде користимо фиксну вредност уместо vh, како
   на високим прозорима не би дошло до судара са hero__signature изнад. */
@media (min-width: 1024px) {
  .hero__location {
    bottom: 3.75rem;
  }
}

/* --------------------------------------------------------------------------
   HERO уводна анимација (reveal on load)
   -------------------------------------------------------------------------- */

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease-cinematic), transform 1.1s var(--ease-cinematic);
}

.hero.is-loaded .reveal-item[data-reveal="eyebrow"] {
  transition-delay: 0.3s;
}
.hero.is-loaded .reveal-item[data-reveal="year"] {
  transition-delay: 0.5s;
}
.hero.is-loaded .reveal-item[data-reveal="lead"] {
  transition-delay: 1.15s;
}
.hero.is-loaded .reveal-item[data-reveal="cta"] {
  transition-delay: 1.4s;
}
.hero.is-loaded .reveal-item[data-reveal="intro"] {
  transition-delay: 1.65s;
}
.hero.is-loaded .reveal-item[data-reveal="signature"] {
  transition-delay: 1.85s;
}
.hero.is-loaded .reveal-item[data-reveal="location"] {
  transition-delay: 2.05s;
}

.hero.is-loaded .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.hero.is-loaded .hero__title-clip {
  transition: transform 1.2s var(--ease-cinematic);
}

.hero.is-loaded .hero__title-line:nth-child(1) .hero__title-clip {
  transition-delay: 0.7s;
}

.hero.is-loaded .hero__title-line:nth-child(2) .hero__title-clip {
  transition-delay: 0.85s;
}

.hero.is-loaded .hero__title-clip {
  transform: translateY(0);
}

/* Скрол ефекат — благи parallax и ишчезавање текста */
.hero__content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --------------------------------------------------------------------------
   Responsive HERO
   -------------------------------------------------------------------------- */

/* Tablet: artwork се и даље сече (cover), позиција фокусирана тако да
   Таковски храст, Милош и народ остану у кадру */
@media (max-width: 1023px) {
  .hero__bg {
    background-position: 50% top;
  }
}

@media (max-width: 720px) {
  .hero__bg {
    background-position: 58% top;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__location {
    left: clamp(1.25rem, 6vw, 2rem);
  }
}

/* --------------------------------------------------------------------------
   УСТАНАК секција
   -------------------------------------------------------------------------- */

.ustanak {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: -60px;
  overflow: hidden;
  isolation: isolate;
  padding: 4rem 0;
  /* fallback boja iza pozadine — usklađena sa pergamentom na slici */
  background-color: var(--paper-light);
}

.ustanak__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* веома благ топли overlay при врху — ублажава евентуалну разлику текстуре
     у односу на Hero, не сме деловати као видљив градијент */
  background-image:
    linear-gradient(to bottom, rgba(232, 215, 183, 0.18) 0%, rgba(232, 215, 183, 0) 100%),
    url("../images/ustanak-section-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 82% center;
}

/* Desktop/велике табле: позадина се приказује у пуном односу страница
   (2091x712), па се распоред помера тачно преко празног средишњег дела */
@media (min-width: 1024px) {
  .ustanak {
    padding: 0;
    min-height: 460px;
    aspect-ratio: 2091 / 712;
  }

  .ustanak__bg {
    background-size: contain;
    background-position: center top;
  }
}

/* --------------------------------------------------------------------------
   Grid распоред: [1815+илустрација] [линија] [текст] [фото простор]
   -------------------------------------------------------------------------- */

.ustanak__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
}

@media (min-width: 768px) {
  .ustanak__grid {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) 1px minmax(220px, 1.2fr);
    align-items: center;
    column-gap: 1.5rem;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
  }
}

@media (min-width: 1024px) {
  .ustanak__grid {
    grid-template-columns:
      minmax(200px, 0.9fr)
      1px
      minmax(420px, 1.15fr)
      minmax(220px, 0.9fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  }
}

.ustanak__number-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .ustanak__number-col {
    height: 100%;
  }
}

.ustanak__number {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 0.8;
  color: #74251f;
  user-select: none;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .ustanak__number {
    font-size: clamp(8rem, 12vw, 14rem);
    transform: translateY(-140px);
  }
}

/* Вертикална декоративна линија између броја и текста */
.ustanak__divider {
  display: none;
}

@media (min-width: 768px) {
  .ustanak__divider {
    display: block;
    width: 1px;
    height: 74%;
    background: rgba(168, 131, 67, 0.55);
    justify-self: center;
    align-self: center;
  }
}

.ustanak__content {
  width: 100%;
  max-width: 520px;
}

.ustanak__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #9a7650;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.ustanak__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.3vw, 2.6rem);
  line-height: 1.15;
  color: #2b2018;
  margin-bottom: 1.2rem;
  white-space: nowrap;
}

.ustanak__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1vw, 1.125rem);
  line-height: 1.6;
  color: #342a22;
  margin-bottom: 0;
}

.ustanak__quote {
  margin: 1.75rem 0 0;
  padding: 0;
  border: none;
}

.ustanak__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.1rem, 2.8vw, 3.4rem);
  line-height: 0.95;
  color: #7a2b25;
  margin: 0 0 0.7rem;
}

.ustanak__quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(0.75rem, 1vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #9a7650;
}

.ustanak__photo-col {
  display: none;
}

@media (min-width: 1024px) {
  .ustanak__photo-col {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   ПУТ УСТАНКА секција
   -------------------------------------------------------------------------- */

.put {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background-color: var(--dark);
}

.put__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/bg-put-ustanka.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.put__inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

.put__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.put__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  color: var(--paper-light);
  margin-bottom: 1rem;
}

.put__subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: rgba(233, 221, 197, 0.62);
  line-height: 1.6;
}

/* Timeline */
.put__timeline {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .put__timeline {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .put__timeline::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, rgba(168, 131, 67, 0) 0%, rgba(168, 131, 67, 0.55) 8%, rgba(168, 131, 67, 0.55) 92%, rgba(168, 131, 67, 0) 100%);
  }
}

.put__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 clamp(0.5rem, 1.5vw, 1.25rem);
}

/* Тачка на линији */
.put__item::before {
  display: none;
}

@media (min-width: 900px) {
  .put__item::before {
    content: "";
    display: block;
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--dark);
    z-index: 2;
  }
}

.put__trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

@media (min-width: 900px) {
  .put__trigger {
    height: 100%;
    align-items: center;
    text-align: center;
  }
}

.put__number {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  line-height: 1;
  color: var(--gold);
  margin-top: 2.6rem;
  margin-bottom: 0.8rem;
  transition: color 0.35s ease;
}

@media (min-width: 900px) {
  .put__number {
    margin-top: 3.4rem;
  }
}

.put__trigger:hover .put__number,
.put__trigger:focus-visible .put__number {
  color: var(--burgundy);
}

.put__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--paper-light);
  margin-bottom: 0.6rem;
}

.put__date {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.put__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(233, 221, 197, 0.6);
  margin-bottom: 1.4rem;
}

.put__thumb {
  display: block;
  width: 210px;
  height: 120px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(168, 131, 67, 0.35);
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .put__thumb {
    /* гура thumbnail на дно колоне тако да доња ивица свих пет слика
       увек буде поравната, без обзира на дужину описа изнад */
    margin-top: auto;
  }
}

.put__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-cinematic), filter 0.5s ease;
}

.put__trigger:hover .put__thumb img,
.put__trigger:focus-visible .put__thumb img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.put__trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

/* Fade-up reveal при уласку у viewport */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-cinematic), transform 0.9s var(--ease-cinematic);
}

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

.reveal-up[data-delay="1"] { transition-delay: 0.1s; }
.reveal-up[data-delay="2"] { transition-delay: 0.2s; }
.reveal-up[data-delay="3"] { transition-delay: 0.3s; }
.reveal-up[data-delay="4"] { transition-delay: 0.4s; }
.reveal-up[data-delay="5"] { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   ПУТ УСТАНКА — popup
   -------------------------------------------------------------------------- */

.put__popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.put__popup.is-open {
  opacity: 1;
  visibility: visible;
}

.put__popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.put__popup-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--paper-light);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.4s var(--ease-cinematic);
}

@media (min-width: 760px) {
  .put__popup-panel {
    grid-template-columns: 1.1fr 1fr;
    max-height: 80vh;
  }
}

.put__popup.is-open .put__popup-panel {
  transform: translateY(0) scale(1);
}

.put__popup-image {
  position: relative;
  min-height: 260px;
  background-color: var(--brown);
}

.put__popup-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.put__popup-content {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.put__popup-number {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: #8b2f2f;
  margin-bottom: 0.9rem;
}

.put__popup-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.put__popup-date {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.3rem;
}

.put__popup-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--brown);
  margin-bottom: 1.8rem;
}

.put__popup-close-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.put__popup-close-btn:hover,
.put__popup-close-btn:focus-visible {
  background-color: var(--burgundy);
  color: var(--paper-light);
}

.put__popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 23, 18, 0.55);
  color: var(--paper-light);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.put__popup-close:hover,
.put__popup-close:focus-visible {
  background: rgba(23, 23, 18, 0.8);
}

/* --------------------------------------------------------------------------
   ЈУНАЦИ секција
   -------------------------------------------------------------------------- */

.junaci {
  position: relative;
  width: 100%;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background-color: var(--paper-light);
}

.junaci__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/junaci-section-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.junaci__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* без max-width — фрejm портрета (position:absolute) наслеђује овај
     контејнер као containing block, па он мора да прати пуну ширину
     секције (исту ширину коју background-image користи за cover),
     иначе на широким екранима grid и позадинска мрља не остају усклађени */
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .junaci__inner {
    display: grid;
    grid-template-columns: 42fr 35fr 23fr;
    align-items: stretch;
    gap: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .junaci__inner {
    display: grid;
    grid-template-columns: 40fr 60fr;
    align-items: center;
    column-gap: 2rem;
    row-gap: 2rem;
  }
}

/* ---------------------------------------------------------------------
   Лева зона — портрет
   --------------------------------------------------------------------- */

.junaci__portrait-zone {
  position: relative;
  min-height: 320px;
}

@media (min-width: 768px) {
  .junaci__portrait-zone {
    min-height: 420px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .junaci__portrait-zone {
    grid-row: 1 / 3;
  }
}

/* На desktop-у (3-колонски grid) frame постаје позициониран у односу на
   целу секцију (не само на зону), да би стварно досегао праву доњу ивицу
   секције кроз њен доњи padding. На tablet-у/mobile-у остаје везан за зону. */
@media (min-width: 1024px) {
  .junaci__portrait-zone {
    position: static;
  }
}

.junaci__portrait-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .junaci__portrait-frame {
    /* .junaci има сопствени доњи padding — компензујемо га да би фрејм
       стварно досегао до праве доње ивице секције */
    bottom: calc(-1 * clamp(3rem, 6vw, 4.5rem));
  }
}

.junaci__bignumber {
  display: none;
}

.junaci__portrait-img {
  position: absolute;
  z-index: 1;
  left: 40%;
  bottom: -15px;
  max-width: 90%;
  max-height: 107%;
  width: auto;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.junaci__portrait-img.is-changing {
  opacity: 0;
  transform: translateX(calc(-50% - 12px));
}

/* ---------------------------------------------------------------------
   Средишња зона — текст
   --------------------------------------------------------------------- */

.junaci__content-zone {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
}

.junaci__text {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.junaci__text.is-changing {
  opacity: 0;
  transform: translateX(-8px);
}

.junaci__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: #2b2018;
  margin-bottom: 20px;
}

.junaci__years {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #7a2b25;
  margin-bottom: 11px;
}

.junaci__role {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #342a22;
  margin-bottom: 30px;
}

.junaci__divider {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(154, 118, 80, 0.55);
  margin-bottom: 1.3rem;
}

.junaci__bio {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #342a22;
  max-width: 50ch;
  margin-bottom: 32px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}

.junaci__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: #4a1c17;
  max-width: 44ch;
  margin-bottom: 0;
}

.junaci__arrows {
  display: flex;
  gap: 0.9rem;
  margin-top: 40px;
}

.junaci__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.junaci__arrow:hover,
.junaci__arrow:focus-visible {
  background-color: var(--gold);
  color: var(--paper-light);
}

.junaci__arrow:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------
   Десна зона — списак
   --------------------------------------------------------------------- */

.junaci__list-zone {
  position: relative;
  display: flex;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .junaci__list-zone {
    padding-left: 0;
    grid-column: 2;
  }

  .junaci__list-divider {
    display: none;
  }
}

.junaci__list-divider {
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1px;
  background: rgba(154, 118, 80, 0.55);
}

.junaci__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .junaci__list {
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
}

.junaci__list-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(154, 118, 80, 0.22);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: rgba(52, 42, 34, 0.62);
  transition: color 0.3s ease;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .junaci__list-item {
    width: auto;
    flex-shrink: 0;
    border-bottom: none;
    border: 1px solid rgba(154, 118, 80, 0.3);
    padding: 0.6rem 0.9rem;
  }
}

.junaci__list-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: inherit;
}

.junaci__list-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: inherit;
}

.junaci__list-item:hover {
  color: rgba(122, 43, 37, 0.8);
}

.junaci__list-item[aria-selected="true"] {
  color: #7a2b25;
}

.junaci__list-item:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   НАСЛЕЂЕ секција
   -------------------------------------------------------------------------- */

.nasledje {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--dark);
}

.nasledje__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/junaci-nasledjebg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.nasledje__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 7vw, 5.5rem);
}

/* Мали орнамент — линија / ромб / линија */
.nasledje__ornament {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nasledje__ornament-line {
  width: 34px;
  height: 1px;
  background: rgba(228, 196, 135, 0.6);
}

.nasledje__ornament-dot {
  width: 5px;
  height: 5px;
  background: rgba(228, 196, 135, 0.7);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Горњи блок — леви текст + четири колоне
   --------------------------------------------------------------------- */

.nasledje__top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .nasledje__top {
    flex-direction: row;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

/* Померај нагоре само када viewport висина стварно има простора за то —
   спречава да садржај буде одсечен изнад секције (overflow:hidden) на
   нижим прозорима (нпр. лаптоп екрани ~700-800px висине) */
@media (min-width: 900px) and (min-height: 820px) {
  .nasledje__top {
    margin-top: -230px;
  }
}

@media (min-width: 900px) and (max-height: 819px) {
  .nasledje__top {
    margin-top: -150px;
  }
}

.nasledje__intro {
  max-width: 520px;
  margin-top: -40px;
}

.nasledje__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #e4c487;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.nasledje__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  line-height: 1.12;
  color: #e4c487;
  margin-bottom: 1.3rem;
}

.nasledje__lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: #dbc59b;
  max-width: 42ch;
}

/* ---------------------------------------------------------------------
   Стубови (ДРЖАВНОСТ / ЧАСТ / СЛОБОДА / СЕЋАЊЕ)
   --------------------------------------------------------------------- */

.nasledje__pillars {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  width: 100%;
}

@media (min-width: 620px) {
  .nasledje__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .nasledje__pillars {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.nasledje__pillar {
  position: relative;
  text-align: center;
  padding: 0 clamp(0.75rem, 1.8vw, 1.75rem);
}

@media (min-width: 900px) {
  .nasledje__pillar:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 330px;
    max-height: 90%;
    background: rgba(228, 196, 135, 0.25);
  }
}

.nasledje__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 0 6px rgba(228, 196, 135, 0.35));
}

.nasledje__pillar-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: #e4c487;
  margin-bottom: 0.9rem;
}

.nasledje__pillar .nasledje__ornament {
  justify-content: center;
  margin-bottom: 1.1rem;
}

.nasledje__pillar-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #dbc59b;
  max-width: 26ch;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Доњи блок — велики цитат
   --------------------------------------------------------------------- */

.nasledje__bottom {
  text-align: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.nasledje__bottom .nasledje__ornament {
  justify-content: center;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.nasledje__quote {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
}

.nasledje__quote p {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #d7b06d;
}

.nasledje__quote-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #dbc59b;
}

.nasledje .reveal-up {
  transition-duration: 0.6s;
}

/* --------------------------------------------------------------------------
   О ПРОЈЕКТУ секција
   -------------------------------------------------------------------------- */

.projekat {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  padding: 65px 0 55px;
  background-color: var(--paper-light);
}

.projekat__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/o-projektu-section-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.projekat__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}

/* ---------------------------------------------------------------------
   Компактан хоризонтални grid — 4 колоне
   --------------------------------------------------------------------- */

.projekat__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 2rem 0;
}

/* Tablet: прва колона преко целе ширине, остале три испод у реду */
@media (min-width: 620px) {
  .projekat__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
  }

  .projekat__column--main {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(130, 94, 48, 0.28);
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Desktop: свих четири колоне у једном реду */
@media (min-width: 900px) {
  .projekat__grid {
    grid-template-columns: 2.2fr 1fr 1.2fr 1.5fr;
  }

  .projekat__column--main {
    grid-column: auto;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

.projekat__column {
  padding: 0.75rem 0 0;
}

@media (min-width: 620px) {
  .projekat__column {
    padding: 0 2rem;
    border-left: 1px solid rgba(130, 94, 48, 0.28);
  }

  .projekat__column:first-child,
  .projekat__column--main {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 619px) {
  .projekat__column:not(:first-child) {
    border-top: 1px solid rgba(130, 94, 48, 0.28);
    padding-top: 1.1rem;
  }
}

.projekat__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 0.6rem;
}

.projekat__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--brown);
  max-width: 42ch;
}

.projekat__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

.projekat__value {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--brown);
}

/* --------------------------------------------------------------------------
   Placeholder секције
   -------------------------------------------------------------------------- */

.placeholder-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--paper-light);
  border-top: 1px solid rgba(73, 52, 41, 0.12);
}

.placeholder-section--dark {
  background-color: var(--dark);
}

.placeholder-section--dark .placeholder-section__title {
  color: rgba(233, 221, 197, 0.35);
}

.placeholder-section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.06em;
  color: rgba(37, 27, 21, 0.3);
}

/* --------------------------------------------------------------------------
   Приступачност — reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__bg,
  .nav-toggle__line,
  .primary-nav,
  .primary-nav__link::after,
  .hero__cta,
  .hero__cta-arrow,
  .reveal-item,
  .hero__title-clip,
  .site-header,
  .reveal-up,
  .put__thumb img,
  .put__popup,
  .put__popup-panel,
  .junaci__portrait-img,
  .junaci__text {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal-item,
  .hero__title-clip,
  .reveal-up {
    opacity: 1;
    transform: none;
  }
}
