:root {
  --bg: #050814;
  --bg-soft: #0b1020;
  --accent: #ffb347;
  --text: #f5f5f5;
  --muted: #9aa0b5;
  --border: rgba(255,255,255,0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.65);
  --transition: all .25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  position: relative;
}

/* PARALLAX pozadina – Hram Svetog Save */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hram-svetog-save/hram-svetog-save-hero.jpg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.25);
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top,
    rgba(5, 8, 20, 0.15) 0,
    rgba(5, 8, 20, 0.35) 45%,
    rgba(2, 3, 8, 0.55) 100%);
}


/* HERO */

header.hero {
  padding: 24px clamp(16px, 4vw, 40px) 32px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 16px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255,179,71,0.25);
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 16px;
  max-width: 480px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-primary {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #ff7e5f);
  color: #050814;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 40px rgba(0,0,0,0.75);
}

.btn-ghost {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  opacity: .9;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

/* KARUSEL */

.hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #050814;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
  min-height: 260px;
}

.carousel-track {
  display: flex;
  transition: transform .6s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  transform: scale(1.02);
}

.carousel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1));
}

.carousel-content {
  position: relative;
  padding: 18px 20px;
  z-index: 1;
}

.carousel-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #c0c7dd;
  margin-bottom: 6px;
}

.carousel-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.carousel-text {
  font-size: 13px;
  color: #d5d9ea;
  max-width: 90%;
  margin-bottom: 10px;
}

.carousel-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.carousel-cta-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #ff7e5f);
  color: #050814;
  font-weight: 600;
}

.carousel-cta-link {
  cursor: pointer;
  color: var(--accent);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.carousel-nav:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  width: 18px;
  background: var(--accent);
}

/* NAVIGACIJA SEKCIJA */

.section-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5,8,20,0.96), rgba(5,8,20,0.92));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 6px clamp(12px, 4vw, 40px);
}

.section-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  background: rgba(11,16,32,0.95);
}

.chip:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--text);
}

/* SECTIONS */

main {
  flex: 1;
  padding: 24px clamp(16px, 4vw, 40px) 40px;
}

.section {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.section h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* KARTICE LOKACIJA */

.spots-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.spot-card {
  background: radial-gradient(circle at top left, #161b30, #050814);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 14px 14px 12px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.spot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 45px rgba(0,0,0,0.8);
}

.spot-title {
  font-size: 16px;
  font-weight: 600;
}

.spot-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.spot-text {
  font-size: 13px;
  color: #d5d9ea;
}

.spot-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.spot-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111520;
  cursor: pointer;
}

.spot-thumb img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  transition: transform .25s ease;
}

.spot-thumb:hover img {
  transform: scale(1.06);
}

.spot-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.spot-actions button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.spot-actions button:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 14px 20px 20px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  background: #040612;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  background: #050814;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.9);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 101;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

#lightbox-image {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 4px;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active {
  border-color: var(--accent);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    height: 220px;
  }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .carousel-slide { height: 220px; }
}

.carousel-slide img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
}

@media (max-width:768px){
  .carousel-slide img{ height:220px; }
}

body.no-scroll{ overflow:hidden; }

/* Social icons */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

.hero-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Footer layout (ako koristiš varijantu u footer-u) */
footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 10px;
}

/* Ako ti footer nije taman (pa se ne vidi), ovo može pomoći */
footer {
  color: #fff;
}
