/* ========================================
   KK RUDAR 1903 - GLOBAL STYLE
======================================== */

/* ===== 1. VARIJABLE ===== */
:root {
  --dark-green: #014421;
  --black: #000000;
  --white: #ffffff;
  --green-accent: #1db954;
  --gray-light: #f4f4f4;
}

/* ===== 2. RESET / OSNOVA ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--black);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.plain-link {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.plain-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ===== 3. HEADER ===== */
/* ===== 3. HEADER ===== */
header {
  position: relative;
  z-index: 2000;
  width: 100%;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 24px;
  padding: 14px 36px;
  background: rgba(6, 12, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: min(1000px, 70%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(29, 185, 84, 0.7),
    transparent
  );
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 104px;
  width: auto;
  background-color: var(--white);
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
  display: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: transparent;
  transition: transform 0.3s ease;
}

body.menu-open .menu-toggle {
  transform: rotate(90deg);
}

.header-right {
  position: relative;
  justify-self: end;
  z-index: 5;
}

.header-right .logo {
  justify-content: flex-end;
}

/* ===== 4. NAVIGACIJA ===== */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

nav ul li a::after {
  display: none !important;
}

nav ul li:hover > a {
  color: #fff;
  transform: translateY(-1px);
  background: rgba(29, 185, 84, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

nav ul li a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(1, 68, 33, 0.95), rgba(1, 68, 33, 0.75));
  border: 1px solid rgba(29, 185, 84, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* ===== 5. SWITCHER ===== */
.lang-switcher {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: auto;
}

.lang-switcher__item {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  pointer-events: auto;
}

.lang-switcher__item img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.lang-switcher__item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(29, 185, 84, 0.28);
}

.lang-switcher__item:hover img {
  transform: scale(1.05);
}

.lang-switcher__item.active {
  background: linear-gradient(180deg, rgba(1, 68, 33, 0.95), rgba(1, 68, 33, 0.75));
  border: 1px solid rgba(29, 185, 84, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* ===== 6. DROPDOWN ===== */
nav ul li ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  z-index: 999;
}

nav ul li:has(ul)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background: transparent;
}

nav ul li:hover > ul,
nav ul li:focus-within > ul,
nav ul li.show-submenu > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

nav ul li ul li {
  padding: 0;
  white-space: nowrap;
}

nav ul li ul li a {
  width: 100%;
  justify-content: flex-start;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}

nav ul li ul li a:hover {
  color: #fff;
  background: rgba(1, 68, 33, 0.35);
}

/* ===== 6. HERO ===== */
.hero {
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 70px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background-color: #1a1a1a;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../img/POZADINA.jpg");
  background-repeat: no-repeat;
  background-position: 50% 40%;
  background-size: cover;
  }

.hero__content {
  max-width: 900px;
}

.hero__content h1 {
  font-size: clamp(40px, 9vw, 58px);
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero__content p {
  font-size: clamp(18px, 4.5vw, 22px);
  margin-bottom: 18px;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
}

.hero__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 14px;
  background-color: var(--dark-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.hero__btn:hover {
  background-color: #026233;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero__btn:active {
  transform: translateY(0);
}

.hero__tagline {
  margin-top: 14px;
  font-size: 16px;
  opacity: 0.9;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.65);
}

/* ===== 7. FOOTER + SPONSORS ===== */
.site-footer {
  position: relative;
  padding: 70px 24px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(3, 18, 10, 0.98));
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 185, 84, 0.1), transparent 35%),
    radial-gradient(circle at bottom right, rgba(1, 68, 33, 0.18), transparent 35%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.7), transparent);
}

/* sponsors */
.site-footer__sponsors {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto 26px;
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer__sponsors-header {
  text-align: center;
  margin-bottom: 22px;
}

.site-footer__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__sponsors-header h3 {
  font-size: 28px;
  color: #fff;
}

.sponsors-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.site-footer__sponsor-card {
  min-height: 110px;
  padding: 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-footer__sponsor-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.site-footer__sponsor-card img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.92;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.site-footer__sponsor-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.site-footer__sponsor-card img.site-footer__sponsor-kss {
  max-height: 90px;
}

/* top footer */
.site-footer__top {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 34px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer__brand h3,
.site-footer__links h4,
.site-footer__contact h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 18px;
}

.site-footer__brand p,
.site-footer__contact li,
.site-footer__links a,
.site-footer__contact a,
.site-footer__bottom p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__brand p {
  line-height: 1.7;
  max-width: 340px;
}

.site-footer__logo-wrap {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.site-footer__logo {
  height: 80px;
  width: auto;
  background: none;   
  padding: 0;         
  border-radius: 0;   
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.site-footer__links ul,
.site-footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links a,
.site-footer__contact a {
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.site-footer__socials a {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.site-footer__socials a:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(1, 68, 33, 0.95), rgba(1, 68, 33, 0.75));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 22px auto 0;
  padding: 18px 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 14px;
}

/* scroll button */
.scroll-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  display: none; /* 🔥 KLJUČNO */
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(1, 68, 33, 0.96), rgba(1, 68, 33, 0.75));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  transition:
    opacity 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.scroll-to-top__icon {
  width: 24px;
  height: 24px;
}

/* ===== 8. RESPONSIVE ===== */
@media (max-width: 1100px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .sponsors-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 50px 16px 20px;
  }

  .site-footer__sponsors {
    padding: 22px 18px 18px;
    border-radius: 22px;
    margin-bottom: 18px;
  }

  .site-footer__sponsors-header h3 {
    font-size: 22px;
  }

  .sponsors-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .site-footer__sponsor-card {
    min-height: 88px;
    padding: 14px;
    border-radius: 18px;
  }

  .site-footer__sponsor-card img {
    max-height: 42px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 26px;
    border-radius: 22px;
  }

  .site-footer__brand p {
    max-width: 100%;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 16px;
  }

  .scroll-to-top {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .logo img {
    height: 78px;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: static;
    z-index: 5;
  }

  .lang-switcher {
    position: static;
    transform: none;
    margin: 0;
    gap: 8px;
    z-index: 10;
  }

  .lang-switcher__item {
    width: 38px;
    height: 38px;
  }

  .lang-switcher__item img {
    width: 22px;
    height: 22px;
  }

  nav {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    z-index: 1999;
    background: rgba(0, 0, 0, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.menu-open nav {
    display: flex;
  }

  nav ul {
    width: min(560px, 92%);
    margin: 0 auto;
    flex-direction: column;
    gap: 10px;
    border-radius: 18px;
    padding: 12px;
  }

  nav ul li a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
    font-size: 18px;
  }

  nav ul li ul {
    position: static;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    display: none !important;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: none;
  }

  nav ul li.show-submenu > ul {
    display: block !important;
  }

  nav ul li:has(ul)::after {
    display: none;
  }

  .hero {
    background-position: 50% 55%;
    background-size: auto 100%;
    padding: 140px 16px 70px;
  }

  .scroll-to-top {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    display: flex;
  }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

}