/* =========================================================
   Духовне књиге — Јордан Мајсторовић
   Дизајн: православни, тамна основа + злато
   ========================================================= */

:root {
  --navy-900: #081523;
  --navy-800: #0b1a2b;
  --navy-700: #102339;
  --navy-600: #16314f;
  --gold:     #c9a24a;
  --gold-soft:#d9bd78;
  --gold-deep:#a8842f;
  --cream:    #f5efe2;
  --ink:      #e8e3d6;
  --muted:    #a9b3c2;
  --line:     rgba(201,162,74,.28);

  --serif: "Old Standard TT", "PT Serif", Georgia, serif;
  --body:  "PT Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1160px;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; background-color: #081523; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: radial-gradient(130% 90% at 50% -10%, #102339 0%, #0b1a2b 45%, #081523 100%) fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Позадинска анимација (златне честице) */
#bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 108px 0; position: relative; overflow-x: clip; }

.gold { color: var(--gold); }

/* ---------- Headings ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .section-title::after {
  content: ""; display: block; width: 66px; height: 3px; margin: 20px auto 0;
  border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-eyebrow {
  font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px; font-weight: 700;
}
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15;
  margin: 0 0 16px; color: var(--cream);
}
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-family: var(--body);
  letter-spacing: .02em; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  font-size: 1rem;
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #2a1d05; box-shadow: 0 10px 30px rgba(168,132,47,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(168,132,47,.5); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: 9px 0;
  background: rgba(8,21,35,.92);
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled {
  background: rgba(8,21,35,.96);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(0,0,0,.4);
  padding: 6px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Лого: православни крст + назив ---------- */
.brand { display: inline-flex; flex-direction: row; align-items: center; gap: 13px; color: var(--cream); transition: transform .3s ease; }
.brand:hover { transform: translateY(-1px); }
/* Текстуални лого — „Удружење“ изнад, „ЈАГЊЕ“ испод */
.brand-mark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.bm-top {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: .66rem;
  letter-spacing: .36em; text-transform: uppercase; color: var(--ink);
  padding-left: .36em; margin-bottom: 6px;
}
.bm-top::before, .bm-top::after { content: ""; height: 1px; width: 18px; background: linear-gradient(90deg, transparent, var(--gold)); }
.bm-top::after { background: linear-gradient(90deg, var(--gold), transparent); }
.bm-main {
  font-family: var(--serif); font-weight: 700; font-size: 1.9rem;
  letter-spacing: .18em; text-transform: uppercase; padding-left: .18em;
  background: linear-gradient(120deg, var(--gold-soft) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: var(--gold-soft);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.footer-mark .bm-main { font-size: 1.7rem; }
.brand-cross { color: var(--gold); display: inline-flex; flex: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.brand-cross svg { display: block; }
.brand-text {
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1;
  letter-spacing: .02em; text-shadow: 0 2px 22px rgba(0,0,0,.6);
}
.brand-text em { font-style: normal; font-weight: 700; color: var(--gold-soft); }

.nav-list { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nav-list a { font-weight: 700; font-size: .98rem; color: var(--ink); transition: color .2s; letter-spacing: .01em; }
.nav-list a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); border-radius: 999px; padding: 9px 22px; color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: #2a1d05 !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: .3s; border-radius: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--navy-900); }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(8,21,35,.62) 0%, rgba(8,21,35,.34) 34%, rgba(8,21,35,.04) 62%, rgba(8,21,35,0) 80%),
    linear-gradient(180deg,
      rgba(8,21,35,.12) 0%,
      rgba(8,21,35,.18) 20%,
      rgba(8,21,35,.56) 46%,
      rgba(8,21,35,.74) 70%,
      rgba(8,21,35,.97) 100%);
}

.hero-content { position: relative; max-width: 760px; padding-top: 96px; padding-bottom: 96px; }
.hero-eyebrow {
  font-size: .82rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 20px; font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.hero-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1.04;
  margin: 0 0 26px; color: var(--cream);
  text-shadow: 0 2px 4px rgba(0,0,0,.45), 0 6px 30px rgba(0,0,0,.6);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #f1ece1; margin: 0 0 40px; max-width: 600px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Улазне анимације hero секције (на учитавању) */
.hero-eyebrow, .hero-title, .hero-subtitle, .hero-actions {
  opacity: 0; animation: heroRise 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-eyebrow  { animation-delay: .15s; }
.hero-title    { animation-delay: .32s; }
.hero-subtitle { animation-delay: .5s; }
.hero-actions  { animation-delay: .68s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* =========================================================
   INTRO
   ========================================================= */
.intro { background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); text-align: center; }
.intro-inner { max-width: 760px; margin: 0 auto; }
.ornament { color: var(--gold); font-size: 1.7rem; margin-bottom: 20px; letter-spacing: .4em; animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.intro-text { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.65rem); line-height: 1.6; color: var(--cream); margin: 0 0 22px; font-style: italic; }
.intro-sign { color: var(--gold); font-weight: 700; letter-spacing: .04em; margin: 0; }

/* =========================================================
   BOOKS
   ========================================================= */
.books { background: var(--navy-700); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.book-card {
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
  position: relative;
}
.book-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.book-cover {
  position: relative; aspect-ratio: 540 / 760; overflow: hidden;
  background: linear-gradient(180deg, #fbf7ef, #efe7d6);
}
.cover-img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .5s ease; touch-action: pan-y; }
.book-card:hover .cover-img { transform: scale(1.03); }

.cover-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; padding: 0;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(8,21,35,.5); border: 1px solid rgba(8,21,35,.2); color: #fff;
  backdrop-filter: blur(3px); transition: background .2s, color .2s, border-color .2s;
}
.cover-arrow:hover { background: var(--navy-900); color: var(--gold); border-color: var(--gold); }
.cover-prev { left: 9px; }
.cover-next { right: 9px; }
.cover-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 7px; }
.cover-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(8,21,35,.3); box-shadow: 0 0 0 1px rgba(168,132,47,.65); transition: background .2s; }
.cover-dots i.on { background: var(--gold-deep); }

.book-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--gold); color: #2a1d05; font-weight: 700; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.book-badge.soon { background: var(--navy-800); color: var(--gold); border: 1px solid var(--gold); }

.book-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.book-number { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.book-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: var(--cream); margin: 0 0 8px; line-height: 1.15; }
.book-subtitle { color: var(--gold-soft); font-style: italic; font-size: .98rem; margin: 0 0 14px; }
.book-desc { color: var(--muted); font-size: .96rem; margin: 0 0 20px; flex: 1; }

.book-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.book-price { font-family: var(--serif); font-size: 1.25rem; color: var(--cream); font-weight: 700; }
.book-price small { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.book-order { padding: 11px 22px; font-size: .92rem; }

.book-more {
  align-self: flex-start; background: none; border: 0; cursor: pointer;
  color: var(--gold); font-family: var(--body); font-weight: 700; font-size: .92rem;
  letter-spacing: .02em; padding: 0; margin: -6px 0 18px; transition: color .2s, gap .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.book-more:hover { color: var(--gold-soft); gap: 10px; }

/* =========================================================
   AVAILABILITY & CONTACT
   ========================================================= */
.availability { background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); }
.avail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.avail-card {
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: var(--shadow);
  transition: transform .35s ease, border-color .35s ease;
}
.avail-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.avail-grid .avail-card:nth-child(2) { transition-delay: .12s; }
.avail-icon { font-size: 1.9rem; margin-bottom: 14px; line-height: 1; }
.avail-title { font-family: var(--serif); font-size: 1.35rem; color: var(--cream); margin: 0 0 20px; font-weight: 700; }

.avail-locations { list-style: none; margin: 0; padding: 0; }
.avail-locations li {
  color: var(--ink); font-size: 1.05rem; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.avail-locations li:last-child { border-bottom: 0; padding-bottom: 0; }
.avail-locations strong { color: var(--gold-soft); }

.avail-contact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.avail-contact:last-child { border-bottom: 0; padding-bottom: 0; }
.avail-label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.avail-phone {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--gold);
  transition: color .2s; letter-spacing: .01em;
}
.avail-phone:hover { color: var(--gold-soft); }
.avail-person { color: var(--ink); font-size: .95rem; margin-left: 10px; }
.call-hint { display: block; margin-top: 9px; font-size: .84rem; font-weight: 700; color: var(--gold-soft); letter-spacing: .01em; }

.avail-email {
  font-family: var(--serif); font-size: 1.2rem; color: var(--gold); font-weight: 700;
  overflow-wrap: anywhere; transition: color .2s;
}
.avail-email:hover { color: var(--gold-soft); }

/* ---------- Удружење „Јагње“ ---------- */
.udruzenje { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); }
.udruzenje-body { max-width: 720px; margin: 0 auto; text-align: center; }
.udruzenje-emblem { color: var(--gold); margin-bottom: 18px; animation: floaty 5s ease-in-out infinite; }
.udruzenje-emblem svg { margin: 0 auto; }
.udruzenje-body p {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.5vw, 1.5rem); line-height: 1.7;
  color: var(--cream); font-style: italic; margin: 0;
}

/* ---------- Контакт форма ---------- */
.contact-form-wrap { margin-top: 64px; }
.contact-form-wrap .section-head { margin-bottom: 36px; }

/* ---------- Фотографија аутора ---------- */
.author-emblem .author-img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 55% 22%;
  border: 2px solid rgba(201,162,74,.5); box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

/* ---------- Галерија гостовања ---------- */
.gostovanja { background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.gallery-item {
  padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: var(--navy-900); aspect-ratio: 4 / 3; box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.gallery-item:hover { transform: translateY(-5px); border-color: var(--gold); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(4,10,18,.92); backdrop-filter: blur(5px);
}
.lightbox.open { display: flex; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-figure img { max-width: 100%; max-height: 82vh; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lb-counter { color: var(--muted); font-size: .9rem; font-weight: 700; letter-spacing: .1em; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(8,21,35,.6); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: color .2s, border-color .2s, background .2s; z-index: 2;
}
.lb-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--navy-900); }
.lb-close { top: 18px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-btn { width: 42px; height: 42px; }
}

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* =========================================================
   BOOK MODAL
   ========================================================= */
body.modal-locked { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(4,10,18,.82);
  backdrop-filter: blur(4px); animation: fadeIn .25s ease;
}
.modal-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 88vh;
  overflow-y: auto; background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 44px 36px;
  animation: modalIn .3s cubic-bezier(.2,.7,.3,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: sticky; top: 0; float: right; margin: -8px -16px 0 0;
  background: rgba(8,21,35,.6); border: 1px solid var(--line); border-radius: 50%;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); transition: color .2s, border-color .2s, background .2s; z-index: 2;
}
.modal-close:hover { color: var(--gold); border-color: var(--gold); background: var(--navy-900); }

.modal-head { margin-bottom: 22px; }
.modal-eyebrow { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.modal-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--cream); margin: 0; line-height: 1.15; }

.modal-content p { color: var(--ink); font-size: 1.04rem; margin: 0 0 16px; line-height: 1.72; }
.modal-content .modal-subtitle {
  font-family: var(--serif); font-size: 1.15rem; color: var(--gold-soft); font-weight: 700;
  text-transform: none; letter-spacing: .02em; margin: 0 0 18px; font-style: italic;
}
.modal-content .modal-author { color: var(--gold); font-weight: 700; font-size: .98rem; margin: -6px 0 18px; letter-spacing: .02em; }
.modal-content .modal-divider {
  font-family: var(--serif); font-size: 1.2rem; color: var(--cream); font-weight: 700;
  margin: 30px 0 16px; padding-top: 24px; border-top: 1px solid var(--line);
}
.modal-content .modal-emph {
  font-family: var(--serif); font-style: italic; color: var(--cream);
  border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 22px 0;
}
.modal-list { margin: 0 0 18px; padding-left: 0; list-style: none; }
.modal-list li {
  position: relative; color: var(--ink); font-size: 1.02rem; padding: 7px 0 7px 26px; line-height: 1.6;
}
.modal-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .9rem; top: 9px; }

.modal-foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }

/* =========================================================
   AUTHOR
   ========================================================= */
.author { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); }
.author-inner { display: grid; grid-template-columns: 120px 1fr; gap: 44px; align-items: start; max-width: 900px; margin: 0 auto; }
.author-emblem { color: var(--gold); }
.author-emblem svg { animation: floaty 5.5s ease-in-out infinite; }
.author-body p { color: var(--muted); margin: 0 0 16px; font-size: 1.05rem; }
.author-body .section-title { text-align: left; }
.author-body .section-eyebrow { text-align: left; }
.author-body blockquote {
  margin: 26px 0 0; padding: 18px 26px; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--cream); background: rgba(201,162,74,.06);
  border-radius: 0 8px 8px 0;
}

/* =========================================================
   ORDER FORM
   ========================================================= */
.order { background: var(--navy-800); }
.order-form {
  max-width: 760px; margin: 0 auto; background: linear-gradient(180deg, var(--navy-700), var(--navy-600));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.form-row { display: flex; gap: 22px; }
.form-row .field { flex: 1; }
.field { margin-bottom: 22px; display: flex; flex-direction: column; }
.field-grow { flex: 2; }
.field-small { flex: .7; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 8px; letter-spacing: .01em; }
.req { color: var(--gold); }

.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--cream);
  background: rgba(8,21,35,.6); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f7d8f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.15);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9a24a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #d9656a; box-shadow: 0 0 0 3px rgba(217,101,106,.15); }
.error { color: #e89a9d; font-size: .82rem; margin-top: 6px; min-height: 1em; }

.form-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.form-note { color: var(--muted); font-size: .85rem; margin: 0; }
.form-status { margin-top: 20px; text-align: center; font-weight: 700; border-radius: 10px; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.form-status.show { padding: 16px 20px; max-height: 200px; }
.form-status.success { background: rgba(110,180,120,.14); color: #a8e0b0; border: 1px solid rgba(110,180,120,.4); }
.form-status.error { background: rgba(217,101,106,.12); color: #e89a9d; border: 1px solid rgba(217,101,106,.4); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-900); padding: 48px 0; border-top: 1px solid var(--line); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; color: var(--cream); font-weight: 700; }
.footer-brand .brand-cross { color: var(--gold); display: inline-flex; }
.footer-brand em { font-style: normal; color: var(--gold-soft); }
.footer-text { color: var(--muted); margin: 0; font-size: .95rem; }
.footer-contact { margin: 6px 0 0; font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.footer-contact a { color: var(--gold); font-weight: 700; transition: color .2s; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-sep { color: var(--line); }
.footer-copy { color: #5e6b7d; margin: 0; font-size: .85rem; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 22px; margin: 2px 0; }
.footer-nav a { color: var(--ink); font-weight: 700; font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }

/* ---------- Активан мени-линк ---------- */
.nav-list a.active { color: var(--gold); }
.nav-cta.active { background: var(--gold); color: #2a1d05 !important; }

/* ---------- Подстранице ---------- */
.subpage { padding-top: 70px; }
.page-cta { text-align: center; margin-top: 48px; }
.contact-note { color: var(--muted); font-size: 1rem; margin: 0 0 20px; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #2a1d05; box-shadow: 0 10px 26px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1), filter .85s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
/* варијанте анимација */
.rv-up     { transform: translateY(44px); }
.rv-down   { transform: translateY(-38px); }
.rv-left   { transform: translateX(-52px); }
.rv-right  { transform: translateX(52px); }
.rv-scale  { transform: scale(.9); }
.rv-zoom   { transform: scale(1.08); }
.rv-rotate { transform: translateY(32px) rotate(-3deg); }
.rv-blur   { filter: blur(12px); }
/* legacy (више се не користе, остављено ради сигурности) */
.reveal-left  { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-scale { transform: scale(.93); }
.reveal-fade  { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .author-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; justify-items: center; }
  .author-body .section-title, .author-body .section-eyebrow { text-align: center; }
  .author-body blockquote { text-align: left; }
  .avail-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; background: rgba(8,21,35,.98); backdrop-filter: blur(10px);
    border-top: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav.open .nav-list { max-height: 360px; padding: 8px 0; border-top: 1px solid var(--line); }
  .nav-list li { width: 100%; text-align: center; }
  .nav-list a { display: block; padding: 14px 0; }
  .nav-cta { border: 0; border-radius: 0; }
  .nav-cta:hover { background: transparent; color: var(--gold) !important; }
  .nav { position: static; }
  .header-inner { position: relative; }
  .form-row { flex-direction: column; gap: 0; }
  .order-form { padding: 26px 20px; }
  .avail-card { padding: 26px 22px; }
  .modal { padding: 0; }
  .modal-dialog { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; padding: 28px 22px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .ornament, .author-emblem svg { animation: none; }
  .hero-eyebrow, .hero-title, .hero-subtitle, .hero-actions {
    opacity: 1; animation: none;
  }
}

/* ---------- Провидне секције (да позадинска анимација просијава) ---------- */
.intro, .books, .author, .availability, .gostovanja, .udruzenje, .order, .contact { background: transparent; }
