/* ============================================================
   Balkan Nexus - landing page styles
   Palette: espresso background, gold + crimson accents
   Fonts: Lora (headings), Inter (body)
   ============================================================ */

:root {
  --bg: #0f0b09;
  --ink: #f4ece2;
  --muted: #b2a89c;
  --faint: #7e7165;
  --gold-1: #f5d98a;
  --gold-2: #d4a24e;
  --gold-3: #b07d2e;
  --gold-soft: #e2b85a;
  --crimson: #8e1f2e;
  --crimson-2: #7e1a2a;
  --crimson-3: #5e1220;
  --crimson-deep: #2c0a12;
  --rose: #e68393;
  --glass-bg: rgba(244, 236, 226, 0.035);
  --glass-border: rgba(244, 236, 226, 0.09);
  --grad-gold: linear-gradient(150deg, #f5d98a 0%, #d4a24e 52%, #b07d2e 100%);
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  font-family: inherit;
}

.page {
  position: relative;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}

main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Keyframes ---------- */

@keyframes bnFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes bnFloat2 {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(10px);
  }
}
@keyframes bnPhoneTurn {
  0%,
  100% {
    transform: rotateY(-9deg) rotateX(3deg);
  }
  50% {
    transform: rotateY(9deg) rotateX(1deg);
  }
}
@keyframes bnPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
/* Disk domovine na mobilnoj mapi je 25% širine viewBox-a (desktop hub je 3.4%),
   pa bnPulse ne može da posluži oba - na 2.6x bi se raširio preko cele mape.
   U mirovanju (reduced-motion) ostaje zlatni prsten tačno na ivici diska. */
@keyframes bnPulseDisc {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}
@keyframes bnDash {
  to {
    stroke-dashoffset: -240;
  }
}
@keyframes bnGlowShift {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes bnEq {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes bnLive {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Fixed background: canvas + orbs ---------- */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  top: -180px;
  left: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(142, 31, 46, 0.34) 0%,
    rgba(142, 31, 46, 0) 68%
  );
  filter: blur(30px);
  animation: bnGlowShift 9s ease-in-out infinite;
}
.orb-2 {
  top: 420px;
  right: -220px;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(226, 184, 90, 0.14) 0%,
    rgba(226, 184, 90, 0) 66%
  );
  filter: blur(34px);
  animation: bnGlowShift 12s ease-in-out 2s infinite;
}
.orb-3 {
  top: 38%;
  left: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(226, 184, 90, 0.1) 0%,
    rgba(226, 184, 90, 0) 65%
  );
  filter: blur(30px);
}
.orb-4 {
  top: 62%;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(
    circle,
    rgba(142, 31, 46, 0.28) 0%,
    rgba(142, 31, 46, 0) 68%
  );
  filter: blur(32px);
  animation: bnGlowShift 11s ease-in-out 1s infinite;
}
.orb-5 {
  top: 84%;
  left: 10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(226, 184, 90, 0.12) 0%,
    rgba(226, 184, 90, 0) 66%
  );
  filter: blur(30px);
}

/* ---------- Navigacija ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 14px 20px;
}

.nav {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border-radius: 18px;
  background: rgba(18, 13, 11, 0.72);
  border: 1px solid rgba(244, 236, 226, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Pozadina ostaje ovde (jedno mesto za izmenu), a SVG unutra crta samo mrežu
   čvorova i „BN" - tako nema dupliranih gradient id-jeva na dva mesta u DOM-u. */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(150deg, #7e1a2a 0%, #2c0a12 100%);
  border: 1px solid rgba(245, 217, 138, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--gold-1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--grad-gold);
  color: var(--crimson-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(212, 162, 78, 0.35);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.nav-cta:hover {
  box-shadow: 0 6px 26px rgba(212, 162, 78, 0.55);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(244, 236, 226, 0.06);
  border: 1px solid rgba(244, 236, 226, 0.12);
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}

.nav-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 20px;
  right: 20px;
  z-index: 49;
  border-radius: 18px;
  background: rgba(18, 13, 11, 0.94);
  border: 1px solid rgba(244, 236, 226, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.nav-menu.open {
  display: flex;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 14px;
  border-radius: 12px;
}
.nav-menu a:hover {
  background: rgba(244, 236, 226, 0.06);
}

.nav-menu .nav-menu-cta {
  margin-top: 8px;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--grad-gold);
  color: var(--crimson-deep);
  font-size: 15px;
  font-weight: 600;
}
.nav-menu .nav-menu-cta:hover {
  background: var(--grad-gold);
}
/* Druga prodavnica u mobilnom meniju - ista veličina, tiši stil. */
.nav-menu .nav-menu-cta.is-alt {
  margin-top: 6px;
  background: rgba(244, 236, 226, 0.06);
  border: 1px solid rgba(244, 236, 226, 0.18);
  color: var(--ink);
}
.nav-menu .nav-menu-cta.is-alt:hover {
  background: rgba(244, 236, 226, 0.12);
}

/* Prag je podignut sa 920px kad je u navigaciju dodat šesti link („Gradovi
   dijaspore"): ispod ~1080px se red prelamao u dva. Mora da prati `initNav`
   u js/main.js, koji na resize zatvara meni. */
@media (max-width: 1079.98px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-burger {
    display: grid;
  }
}
@media (min-width: 1080px) {
  .nav-menu {
    display: none !important;
  }
}

/* ---------- Sekcije: zajedničko ---------- */

.section {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 24px;
  scroll-margin-top: 90px;
}

.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.h2 {
  margin: 0 0 16px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}
.h2:last-child {
  margin-bottom: 0;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.section-head.is-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#funkcije .section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
#aplikacija .section-head {
  max-width: 660px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
#kako-radi .section-head {
  margin-bottom: clamp(44px, 5vw, 64px);
}
#zajednica .section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 56px);
}
#utisci .section-head {
  margin-bottom: clamp(40px, 5vw, 56px);
}

/* ---------- Dugmad ---------- */

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  background: var(--grad-gold);
  color: var(--crimson-deep);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(212, 162, 78, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 162, 78, 0.55);
}

.btn-gold.btn-md {
  gap: 9px;
  padding: 13px 24px;
  border-radius: 13px;
  font-size: 15px;
  box-shadow: 0 6px 24px rgba(212, 162, 78, 0.3);
}
.btn-gold.btn-md:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 162, 78, 0.3);
}

.btn-gold.btn-lg {
  padding: 16px 30px;
  font-size: 16.5px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
.btn-gold.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  background: rgba(244, 236, 226, 0.05);
  border: 1px solid rgba(244, 236, 226, 0.16);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-ghost:hover {
  background: rgba(244, 236, 226, 0.1);
}

.pill-soon {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(142, 31, 46, 0.35);
  border: 1px solid rgba(245, 217, 138, 0.35);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.pill-soon.sm {
  padding: 3px 9px;
  font-size: 9.5px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  /* svh ne računa traku sa adresom, pa se visina ne trza pri skrolu na telefonu */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 24px 80px;
  scroll-margin-top: 90px;
}

.hero-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
  align-items: center;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(226, 184, 90, 0.09);
  border: 1px solid rgba(226, 184, 90, 0.28);
  margin-bottom: 26px;
}
.badge-live > span:last-child {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: bnLive 2.2s ease-in-out infinite;
}

.hero-title {
  margin: 0 0 22px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.text-gold {
  font-style: italic;
  background: linear-gradient(120deg, #f5d98a 0%, #d4a24e 60%, #e2b85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 34px;
  max-width: 520px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border-radius: 13px;
  background: rgba(18, 13, 11, 0.6);
  border: 1px solid rgba(244, 236, 226, 0.18);
  text-decoration: none;
  transition: border-color 0.2s;
}
a.store:hover {
  border-color: rgba(245, 217, 138, 0.5);
}

.store-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-eyebrow {
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.store-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.hero-phone {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone-turn {
  animation: bnPhoneTurn 14s ease-in-out infinite;
  transform-style: preserve-3d;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
}
.scroll-cue > span:first-child {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(#e2b85a, transparent);
}

/* ---------- Telefoni (okviri, ekrani, tabbar) ---------- */

.phone {
  background: #1d1713;
}

.phone-lg {
  width: min(320px, 82vw);
  border-radius: 46px;
  border: 1px solid rgba(244, 236, 226, 0.16);
  padding: 11px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(212, 162, 78, 0.12),
    inset 0 1px 0 rgba(244, 236, 226, 0.1);
}

.phone-md {
  width: 250px;
  border-radius: 38px;
  border: 1px solid rgba(244, 236, 226, 0.14);
  padding: 9px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(212, 162, 78, 0.08);
}

.phone-sm {
  width: 176px;
  border-radius: 28px;
  border: 1px solid rgba(244, 236, 226, 0.13);
  padding: 7px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.screen {
  position: relative;
  overflow: hidden;
  background: #f7f1e8;
  color: #2b2422;
  box-sizing: border-box;
}
.phone-lg .screen {
  border-radius: 36px;
  height: 640px;
}
.phone-md .screen {
  border-radius: 30px;
  height: 508px;
}
.phone-sm .screen {
  border-radius: 22px;
  height: 360px;
}
.screen.dark {
  background: #141110;
  color: var(--ink);
}

.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffdf9;
  border-top: 1px solid #efe7da;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.phone-lg .tabbar {
  padding: 9px 6px 14px;
}
.phone-md .tabbar {
  padding: 7px 4px 11px;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #b3a89e;
  font-weight: 600;
}
.phone-lg .tab {
  gap: 3px;
  font-size: 8.5px;
}
.phone-md .tab {
  gap: 2px;
  font-size: 7px;
}
.tab.active {
  color: #8e1f2e;
  font-weight: 700;
}

.tab-plus {
  position: relative;
}
.tab-plus > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(150deg, #8e1f2e 0%, #5e1220 100%);
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid #fffdf9;
}
.phone-lg .tab-plus > span {
  top: -22px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-weight: 400;
  box-shadow: 0 6px 18px rgba(72, 12, 22, 0.45);
}
.phone-md .tab-plus > span {
  top: -20px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  box-shadow: 0 5px 14px rgba(72, 12, 22, 0.45);
}

/* ---------- Statistike ---------- */

.stats-section {
  position: relative;
  padding: 10px 24px 40px;
}

.stats-card {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  text-align: center;
}

.stat-num {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--gold-1);
}

.stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Funkcije ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.feature-card {
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 26px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 217, 138, 0.4);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(212, 162, 78, 0.08);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(142, 31, 46, 0.25);
  border: 1px solid rgba(230, 131, 147, 0.3);
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.features-banner {
  margin-top: 18px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(142, 31, 46, 0.32) 0%,
    rgba(44, 10, 18, 0.5) 100%
  );
  border: 1px solid rgba(230, 131, 147, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(26px, 4vw, 38px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.features-banner-copy {
  max-width: 640px;
}

.features-banner h3 {
  margin: 0 0 8px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.features-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #d9cfc2;
}

/* ---------- App showcase ---------- */

.showcase-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 48px);
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  /* Vezano za širinu telefona da dugačak natpis ne razvuče stavku i ne
     izbaci četvrti telefon u novi red. */
  width: 250px;
  flex: none;
}
.showcase-item.is-offset {
  margin-top: clamp(0px, 3vw, 44px);
}

/* Sa 4 telefona jedan red staje tek iznad ~1190px; u međuzoni prelomi 2+2
   umesto neuravnoteženog 3+1. */
@media (min-width: 900px) and (max-width: 1191px) {
  .showcase-row {
    max-width: 600px;
    margin: 0 auto;
  }
}

.showcase-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- Kako funkcioniše ---------- */

.steps-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline-track {
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(244, 236, 226, 0.1);
  border-radius: 2px;
}

.timeline-fill {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 2px;
  height: 0%;
  background: linear-gradient(#f5d98a, #b07d2e);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(226, 184, 90, 0.5);
  transition: height 0.2s linear;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.step {
  position: relative;
}

.step-num {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1d1713;
  border: 2px solid var(--gold-2);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-1);
  box-sizing: border-box;
}

.step-card {
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 18px 22px;
}

.step-title {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.step-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-text {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}

.step.is-final .step-num {
  background: linear-gradient(150deg, #f5d98a, #b07d2e);
  border: 2px solid #f5d98a;
  color: var(--crimson-deep);
}
.step.is-final .step-card {
  background: linear-gradient(
    135deg,
    rgba(142, 31, 46, 0.32) 0%,
    rgba(44, 10, 18, 0.5) 100%
  );
  border: 1px solid rgba(230, 131, 147, 0.25);
}
.step.is-final .step-text {
  color: #d9cfc2;
}

/* ---------- Zajednica / mapa ---------- */

.map-panel {
  border-radius: 26px;
  background: rgba(244, 236, 226, 0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(14px, 3vw, 30px);
  overflow: hidden;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(244, 236, 226, 0.07);
  margin-top: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 12px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

/* display mora biti ovde, a ne u inline style-u na samom <svg> - inline bi
   pobedio pravilo koje ga sakriva na mobilnom. */
.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobilna varijanta mape - vodoravni SVG je nečitljiv ispod ~920px (tekst padne
   na ~3px). Isti sadržaj, ali radijalno: disk domovine sa zracima ka dijaspori,
   u portretnom viewBox-u koji koristi visinu telefona. Prebacivanje je u
   mobilnom bloku na dnu.

   display mora biti ovde iz istog razloga kao kod .map-svg gore. */
.map-svg-mobile {
  display: none;
  width: 100%;
  /* bez ovoga bi se sunce nategnulo preko celog tableta na 900px */
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

/* ---------- Utisci ---------- */

.testimonials-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.testimonial-card {
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid rgba(244, 236, 226, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.t-quote {
  margin: 0 0 24px;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 620px;
  text-wrap: pretty;
}

.t-person {
  display: flex;
  align-items: center;
  gap: 13px;
}

.t-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(150deg, #7e1a2a, #2c0a12);
  border: 1px solid rgba(245, 217, 138, 0.4);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-1);
}

.t-meta {
  text-align: left;
}
.t-name {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.t-loc {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.t-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.t-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(244, 236, 226, 0.05);
  border: 1px solid rgba(244, 236, 226, 0.14);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.t-btn:hover {
  border-color: rgba(245, 217, 138, 0.5);
  color: var(--gold-1);
}

.t-dots {
  display: flex;
  gap: 8px;
  padding: 0 8px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 236, 226, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.t-dot.active {
  width: 26px;
  background: linear-gradient(150deg, #f5d98a, #d4a24e);
}

/* ---------- Galerija ekrana ---------- */

.gallery-section {
  position: relative;
  padding: clamp(50px, 7vw, 90px) 0;
  overflow: hidden;
}

.gallery-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(36px, 4vw, 52px);
  padding: 0 24px;
}

.gallery-h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.gallery-track {
  display: flex;
  gap: 26px;
  padding: 20px 40px;
  width: max-content;
  will-change: transform;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}

/* ---------- CTA ---------- */

.cta-section {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 24px;
  scroll-margin-top: 90px;
}

.cta-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 30px;
  background: linear-gradient(140deg, #7e1a2a 0%, #480c16 55%, #2c0a12 100%);
  border: 1px solid rgba(245, 217, 138, 0.3);
  padding: clamp(44px, 7vw, 90px) clamp(24px, 5vw, 70px);
  text-align: center;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
}
.cta-blob-1 {
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(245, 217, 138, 0.22),
    transparent 65%
  );
}
.cta-blob-2 {
  bottom: -140px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(230, 131, 147, 0.16),
    transparent 65%
  );
}

.cta-inner {
  position: relative;
}

.cta-inner h2 {
  margin: 0 auto 18px;
  max-width: 720px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

.cta-inner p {
  margin: 0 auto 36px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: #e8d9c5;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Sekundarno dugme u završnom CTA-u (App Store) - uz zlatno za Google Play. */
.btn-ghost.btn-lg {
  padding: 16px 30px;
  font-size: 16.5px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid rgba(244, 236, 226, 0.08);
  padding: clamp(44px, 6vw, 70px) 24px 36px;
  background: rgba(12, 9, 8, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(244, 236, 226, 0.05);
  border: 1px solid rgba(244, 236, 226, 0.12);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
}
.socials a:hover {
  color: var(--gold-1);
  border-color: rgba(245, 217, 138, 0.4);
}

.footer-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}

.footer-links a,
.footer-link-btn {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--gold-1);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
}
.footer-mail:hover {
  color: var(--gold-1);
}

.footer-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 236, 226, 0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Modal: pravni tekstovi ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 5, 4, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] {
  display: none;
}

.modal {
  max-width: 620px;
  width: 100%;
  max-height: 78vh;
  overflow: auto;
  border-radius: 22px;
  background: #1a1310;
  border: 1px solid rgba(244, 236, 226, 0.14);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.modal-head h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.modal-close {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(244, 236, 226, 0.06);
  border: 1px solid rgba(244, 236, 226, 0.14);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:hover {
  border-color: rgba(245, 217, 138, 0.5);
  color: var(--gold-1);
}

.modal-date {
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 18px;
}

.modal-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.modal-mail {
  margin: 8px 0 0;
  font-size: 14px;
  color: #d9cfc2;
}
.modal-mail a {
  color: var(--gold-1);
  text-decoration: none;
}

/* ---------- Pristupačnost: smanjene animacije ---------- */

/* ---------- Mobilno ---------- */

/* Prag 920px je isti kao navigacioni gore, radi doslednosti. */
@media (max-width: 919.98px) {
  /* Mapa: vodoravni SVG ustupa mesto radijalnoj varijanti. Legenda ostaje -
     objašnjava dve boje tačaka, koje su sada jedini nosilac te podele. */
  .map-svg {
    display: none;
  }
  .map-svg-mobile {
    display: block;
  }

  /* Galerija: skrol-vezani pan se gasi (na uskom ekranu je 2.3x brži nego na
     desktopu), traka postaje običan horizontalni swipe. JS ne dira transform
     ispod ovog praga. */
  #gallery-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  #gallery-wrap::-webkit-scrollbar {
    display: none;
  }
  .gallery-track {
    transform: none !important;
    padding: 20px 24px;
  }
  .gallery-item {
    scroll-snap-align: center;
  }

  .showcase-row {
    gap: 28px;
  }
  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  /* 5 brojki u jednu kolonu je ~500px prazne visine - na dve kolone */
  .stats-card {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 22px;
  }
  .stats-card > div:last-child {
    grid-column: 1 / -1;
  }
  .stat-num {
    font-size: clamp(26px, 7vw, 42px);
  }
  .stat-label {
    font-size: 12px;
  }

  /* Veća meta za prst */
  .features-banner .btn-gold {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  /* Na 320px telefonu padding sekcije + panela ostavlja mapi samo ~244px, pa
     natpisi u SVG-u padnu na ~8.5px. Sužavamo padding samo ovoj sekciji i samo
     na najužim ekranima - mapa dobije ~280px i natpisi se vrate na ~9.5px. */
  #zajednica.section {
    padding-left: 14px;
    padding-right: 14px;
  }
  #zajednica .map-panel {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
