* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ========== FONTOVI ========== */
body {
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
}

nav a, nav span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.btn-1, .btn-2, .btn-3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

nav a, .btn-1, .btn-2, .btn-3 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== TIPOGRAFIJA ========== */
p {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ========== NAVIGACIJA ========== */
.nav-logo {
  height: 100px;
  width: auto;
}

nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

nav a.active-link,
#mobile-menu a.active-link {
  color: #113119;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.btn-1:hover, .btn-2:hover, .btn-3:hover {
  text-decoration: none;
}

#nav-menu {
  display: flex;
}

#hamburger {
  display: none;
}

/* ========== DUGMAD ========== */
.btn-1 {
  background-color: #113119;
  border: 2px solid #113119;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-1:hover {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

.btn-2 {
  background-color: #113119;
  border: 2px solid #113119;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-2:hover {
  background-color: #fff;
  border-color: #fff;
  color: #113119;
}

.btn-3 {
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-3:hover {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: #fff;
  color: #fff;
}

/* ========== BOJE ========== */
.bg-brand-green {
  background-color: #113119;
}

.text-brand-green {
  color: #113119;
}

/* ========== HERO ========== */
.hero-text-box {
  background: rgba(0, 0, 0, 0.45);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;
}

.hero-text-box h1 {
  line-height: 1.2;
}

.btn-orange {
  background-color: #ff7700;
  border: 2px solid #ff7700;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-orange:hover {
  background-color: #000;
  border-color: #ff7700;
  color: #fff;
  text-decoration: none;
}

/* ========== HERO OVERLAY ========== */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

/* ========== USLUGE ========== */
.usluga-card {
  transition: transform 0.08s ease;
}

.usluga-card.usluga-card:hover {
  transform: translateY(-16px) scale(1.1);
  cursor: pointer;
}

.usluga-icon {
  display: inline-block;
  position: relative;
}

/* Kanta - sabijanje smeća */
.usluga-card:hover .icon-trash {
  animation: squish-trash 0.5s ease;
  transform-origin: 50% 100%;
}

@keyframes squish-trash {
  0%, 100% {
    transform: scale(1, 1);
  }
  40% {
    transform: scale(1.15, 0.75);
  }
  70% {
    transform: scale(0.95, 1.05);
  }
}

/* Kamion - truljanje motora */
.usluga-card:hover .icon-truck {
  animation: rumble-truck 0.4s ease infinite;
}

@keyframes rumble-truck {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1.5px, 0);
  }
  50% {
    transform: translate(0, -1.5px);
  }
  75% {
    transform: translate(1.5px, 0);
  }
}

/* Znak za reciklažu - rotacija */
.usluga-card:hover .icon-recycle {
  animation: spin-recycle 0.7s ease;
}

@keyframes spin-recycle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========== MAPA ========== */
#mapa {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  z-index: 10;
}

/* ========== KONTAKT ========== */
.kontakt-broj {
  transition: all 0.3s ease;
}

.kontakt-broj:hover {
  color: #113119;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ========== SCROLL TO TOP ========== */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: #ff7700;
  color: #000;
  border: 2px solid #ff7700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
}

#scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top:hover {
  background-color: #113119;
  border-color: #ff7700;
  color: #fff;
}

/* ========== FOOTER ========== */
.footer-link {
  transition: all 0.3s ease;
}

.footer-link:hover {
  text-decoration: none;
}

.footer-link:hover span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#footer .footer-logo {
  height: 100px;
}


/* ========== BREAKPOINTI ========== */

/* Desktop large - 1920px+ */
@media (min-width: 1920px) {
  .hero-text-box {
    padding: 3.5rem 4.5rem;
    max-width: 950px;
  }

  .hero-text-box h1 {
    font-size: 3.5rem;
  }

  p {
    font-size: 1.35rem;
  }
}

@media (max-width: 1400px) {
  .max-w-6xl {
    max-width: 1100px;
  }
}

/* Desktop - 1200px */
@media (max-width: 1200px) {
  .max-w-6xl {
    max-width: 960px;
  }
}

/* Laptop - 1024px */
@media (max-width: 1024px) {
  .nav-logo {
    height: 50px;
  }

  #o-nama .grid-cols-2.sm\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #o-nama .grid-cols-2.sm\:grid-cols-4 > div {
    text-align: center;
  }
}

/* Tablet - 991px */
@media (max-width: 991px) {
  #nav-menu {
    display: flex;
    gap: 1rem;
  }
  .hero-text-box {
    padding: 3.5rem 4rem;
    max-width: 950px;
  }
}

/* Mobilni - 767px */
@media (max-width: 767px) {
  .nav-logo {
    height: 40px;
  }

  nav a:hover,
  #mobile-menu a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  }

  #mobile-menu a.btn-1:hover {
  text-decoration: none;
  }

  .hero-text-box {
    padding: 1rem;
  }

  #nav-menu {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  .nav-btn-desktop {
    display: none;
  }

  section h2,
  section h3,
  section ul li,
  section p,
  section a {
    text-align: center !important;
  }

  footer img {
    margin: 0 auto;
    display: block;
  }

  footer h3,
  footer p {
    text-align: center;
  }

  footer ul {
    align-items: center;
    text-align: center;
  }

  footer .footer-link {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .swiper-slide img {
    height: 400px;
  }
}

/* Swiper navigation arrows */
.swiper-button-prev,
.swiper-button-next {
  color: rgba(255, 119, 0, 0.7);
  transition: color 0.2s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: rgba(255, 119, 0, 1);
}

/* Swiper pagination dots */
.swiper-pagination-bullet {
  background: transparent;
  border: 2px solid rgba(255, 119, 0, 0.7);
  opacity: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.swiper-pagination-bullet:hover,
.swiper-pagination-bullet-active {
  background: rgba(255, 119, 0, 1);
  border-color: rgba(255, 119, 0, 1);
}