@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Notch:wght@200..700&display=swap');

/* ===== GLOBAL ===== */
html { scroll-behavior: smooth; }

body {
  font-family: "Stack Sans Notch", sans-serif;
  margin: 0;
  padding: 70px 0 0;
  background-color: #f8f9fa;
}

/*body.has-alert { padding-top: 120px; }*/

section > div { min-height: 1000px; }


#nav-container {
  margin-left: 200px;
  margin-right: 200px;
}

/* ===== LOADER ===== */
#loader-overlay {
  position: fixed;
  inset: 0;
  background: url(../img/border.png) center/cover no-repeat;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity .8s ease, visibility .8s ease;
}

#loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loader-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
}

.loader-content {
  position: relative;
  text-align: center;
  animation: content-pop .8s ease forwards;
}

.loader-logo {
  width: 120px;
  height: 95px;
  margin-bottom: 20px;
}

.dual-spinner {
  width: 50px;
  height: 50px;
  position: relative;
  margin: auto;
}

.spinner {
  position: absolute;
  inset: 0;
  border: 8px solid transparent;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.spinner-black {
  border-top-color: #000;
  border-right-color: #000;
}

.spinner-red {
  border-bottom-color: #a93332;
  border-left-color: #a93332;
  animation-direction: reverse;
}

#page-content { display: none; }

/* ===== NAVBAR ===== */
#navbarNav { margin-top: 8px; }

#navbarNav a {
  font-size: 16px;
  color: #cf2e2e !important;
  text-transform: uppercase;
}

#navbarNav a:hover {
  text-decoration: underline 3px;
  text-underline-offset: 6px;
}

.scrolled {
  background: rgba(255,255,255,.8) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  height: 65px;
}

.scrolled-back {
  background: transparent !important;
  height: 100px;
}

.new-size { transform: scale(.7); }
.new-size-back { transform: scale(1); }

#nav-logo {
  width: 120px;
  height: 80px;
}

/* ===== HERO ===== */
#border {
  margin-top: -150px;
  height: 1015px;
  background: url('../../assets/img/border.png') center/cover no-repeat;
}

#border-content {
  height: 1015px;
  background: rgba(255,255,255,.8);
}

#border-text {
  margin-top: 200px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 40%;
}

#border-logo {
  width: 150px;
  height: 100px;
  margin: 80px 0 10px;
}

#border-header {
  font-size: 3.7rem;
  font-weight: 700;
  color: #cf2e2e;
}

#border-paragraph {
  font-weight: 500;
  border-bottom: 3px solid #000;
}

/* ===== SECTIONS (SPAJANJE DUPLIKATA) ===== */
.section > div {
  padding-top: 100px !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.section-light { background: rgba(255,255,255,.5); }
.section-dark  { background: #a93332; color: #f8f9fa; }

/* ===== FADE ANIMATION ===== */


/* ===== SERVICES ===== */
#about-us-header {
  padding-bottom: 0px !important;
}

.bi-check-all { color: #03ad3c; }

/* ===== CARDS ===== */
.card-hover {
  transition: transform .3s ease, box-shadow .3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ===== TEXT LINES ===== */
.text-line::after,
.text-line-two::after {
  content: '';
  width: 50px;
  height: 1px;
  display: inline-block;
  margin-left: 10px;
}

.text-line::after { background: #a93332; }
.text-line-two::after { background: #fff; }

/* ===== CAPTCHA ===== */
.captcha-text {
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: bold;
  background: #eee;
  padding: 10px;
  display: inline-block;
  user-select: none;
}

#captchaInput {
  margin-top: 10px;
  padding: 6px;
  width: 200px;
}

#captchaText {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 4px;
  background: #eee;
  padding: 10px;
  width: fit-content;
  user-select: none;
  width: 200px;
}

/* ===== REVIEWS ===== */
.review-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

/* ===== MAP ===== */
.map-section {
  height: 750px;
  margin-top: 50px;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 750px;
  border: 1px solid rgba(227,21,21,.2);
}

.map-title {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(227,21,21,.8);
  color: #fff;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 700;
}

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes content-pop {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}


/* ===== FIXED BACKGROUND + MOVING TEXT ===== */
.fixed-bg-section {
  position: relative;
  min-height: 120vh;
  background-image: url('../../assets/img/border.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ključni dio */
  overflow: hidden;
}

/* overlay da tekst bude čitljiv */
.fixed-bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 1;
}

/* tekst se miče */
.fixed-bg-section .moving-text {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-left: 100px;
  max-width: 600px;

  animation: text-move linear;
  animation-timeline: view();       /* scroll-based */
  animation-range: entry 0% exit 100%;
}

@keyframes text-move {
  from {
    transform: translateY(120px);
    opacity: 0;
  }
  to {
    transform: translateY(-80px);
    opacity: 1;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  color: #000;
  padding: 15px 0;
  z-index: 99999;
}

.cookie-banner a {
  color: #0d6efd;
}

.navbar .nav-link.active {
  color: #dc3545; 
  position: relative;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #dc3545;
}

#thumb:focus {
  outline: 2px solid #0d6efd;
}