/* ===============================
   GOOGLE FONTS
================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700&display=swap");

/* ===============================
   GLOBAL RESET + FONTS
================================ */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
}

/* ===============================
   HEADER
================================ */
header {
  background-color: #1f3c88;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid #cd853f;
  color: #d9ae5f;
  box-sizing: border-box;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 60px;
  opacity: 0.85;
  border: none;
  display: block;
}

/* 🔹 NASLOV – MONTSERRAT */
header h1 {
  margin: 0;
  font-size: 42px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #ffcc55;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #d9aa52;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

nav ul li {
  display: inline-block;
}

/* ===============================
   LANGUAGE SWITCHER
================================ */
.language-switcher {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.language-switcher select {
  background-color: #a67a46;
  color: rgb(49, 30, 1);
  border: none;
  padding: 8px 28px 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9em;
  appearance: none;
}

.language-switcher::after {
  content: "▼";
  font-size: 0.65em;
  color: rgb(49, 30, 1);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ===============================
   MAIN LAYOUT
================================ */
main {
  display: flex;
  padding: 0;
  background-color: white;
  flex: 1;
  margin: 0;
  width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
}

main > section {
  background-image: url(./pozadina_web.JPG);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  flex: 3;
  padding: 20px 20px 20px 40px;
  box-sizing: border-box;
  border-bottom: 2px solid #cd853f;
  width: 100%;
}

main > section[data-bg] {
  width: 100%;
}
main > section[data-bg="rep"] {
  background-image: url("./Slike/Pozadina_rep.JPG");
}
main > section[data-bg="per"] {
  background-image: url("./Slike/pozadina_per.jpg");
}
main > section[data-bg="inj"] {
  background-image: url("./Slike/pozadina_inj.JPG");
}
main > section[data-bg="post"] {
  background-image: url("./Slike/pozadina_post.JPG");
}
main > section[data-bg="cont"] {
  background-image: url("./Slike/pozadina_cont.jpg");
}
main > section[data-bg="club"] {
  background-image: url("./Slike/pozadina_club.jpg");
}
main > section[data-bg="brand"] {
  background-image: url("./Slike/pozadina_brand.jpg");
}
main > section[data-bg="scout"] {
  background-image: url("./Slike/pozadina_scout.JPG");
}
main > section[data-bg="int"] {
  background-image: url("./Slike/pozadina_int.JPG");
}
main > section[data-bg="legal"] {
  background-image: url("./Slike/pozadina_legal.JPG");
}

section p {
  font-size: 1.75em;
  margin-bottom: 25px;
  text-align: justify;
}

section h2 {
  font-size: 2em;
}

aside {
  background-color: #1f3c88;
  color: white;
  flex: 1;
  padding: 20px;
  border-bottom: 2px solid #cd853f;
  border-left: 2px solid #cd853f;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===============================
   FOOTER
================================ */
.site-footer {
  width: 100%;
  background-color: #f2e2c4;
  color: rgb(49, 30, 1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 14px;
}

.footer-sponsors {
  min-height: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgb(49, 30, 1);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-instagram img {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-instagram:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

.credits {
  margin: 0;
  font-size: 0.9em;
  white-space: nowrap;
}

/* ===============================
   SERVICES GRID
================================ */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.2rem 1.3rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: #0f766e;
}

.service-link {
  display: inline-block;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 0.4rem;
  color: white;
  position: relative;
  padding-bottom: 0.1rem;
}

.service-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40%;
  height: 2px;
  background-color: #0f766e;
  border-radius: 999px;
  opacity: 0.7;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.service-item:hover .service-link::after {
  width: 100%;
  opacity: 1;
}

.service-excerpt {
  font-size: 20px;
  color: white;
  margin: 0.8rem;
  text-align: left;
  hyphens: auto;
}

/* ===============================
   SERVICE DETAIL
================================ */
.service-detail {
  max-width: 800px;
}

.service-detail h1 {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

.service-detail p {
  margin-bottom: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: white;
  margin-bottom: 0.75rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===============================
   PARTNER
================================ */
.partner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partner-text {
  text-align: justify;
}

.partner-logo {
  width: 60px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  width: 85%;
  height: auto;
  display: block;
}

/* ===============================
   COOKIE BANNER
================================ */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #f2e2c4;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.85em;
  max-width: 340px;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#cookie-banner p {
  margin-bottom: 8px;
  color: #000;
}

.cookie-link {
  color: #7a552c;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-buttons {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#cookie-banner button {
  background: #a67a46;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  transition: opacity 0.2s ease;
}

#cookie-banner button:hover {
  opacity: 0.85;
}

#cookie-banner button:nth-child(2) {
  background: transparent;
  color: #000;
  border: 1px solid #a67a46;
}

#cookie-banner button:nth-child(3) {
  background: transparent;
  color: #7a552c;
  border: 1px solid #7a552c;
}

/* ============================
   COOKIE MODAL
============================ */

#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.cookie-modal-box {
  background: #f2e2c4;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cookie-modal-box h3 {
  margin-bottom: 12px;
  font-size: 1.1em;
}

.cookie-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.9em;
}

.cookie-option input {
  margin-right: 6px;
}

.cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-modal-actions button {
  background: #a67a46;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.cookie-modal-actions button:nth-child(2) {
  background: transparent;
  color: #000;
  border: 1px solid #a67a46;
}

/* ============================
   COOKIE MANAGE BUTTON
============================ */

#cookie-manage {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f2e2c4;
  color: #000;
  border: 1px solid #a67a46;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75em;
  display: none;
  z-index: 900;
}

#cookie-manage:hover {
  opacity: 0.85;
}

/* ===============================
   FORMS
================================ */
form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f2e2c4;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  color: rgb(49, 30, 1);
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="url"],
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}

form input:focus,
form textarea:focus {
  border-color: #b88c4a;
  box-shadow: 0 0 0 2px rgba(184, 140, 74, 0.2);
  outline: none;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

.gdpr-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9em;
}

.gdpr-consent label a {
  color: rgb(49, 30, 1);
  text-decoration: underline;
}

.gdpr-consent input[type="checkbox"] {
  margin-top: 3px;
}

form button[type="submit"] {
  padding: 12px 20px;
  background-color: rgb(184, 140, 74);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

form button[type="submit"]:hover {
  background-color: rgb(160, 120, 60);
}

/* ===============================
   MEDIA GALLERY
================================ */
.media-section {
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
}

.media-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.media-container h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.media-intro {
  font-size: 2em;
  margin-bottom: 40px;
}

/* ===============================
   FILTER BUTTONS
================================ */
.media-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border: 1px solid #b88c4a;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #b88c4a;
  color: #000;
}

/* ===============================
   MEDIA GRID
================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.media-item {
  position: relative;
  overflow: hidden;
}

.media-item img {
  cursor: zoom-in;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-item.hidden {
  display: none;
}

/* ===============================
   LIGHTBOX
================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* ===============================
   COLLABORATION PAGE
================================ */
.collaboration-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.2rem 1.3rem 1.3rem;
  margin-bottom: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}

.collaboration-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: #0f766e;
}

.collaboration-link {
  display: inline-block;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 0.4rem;
  color: white;
  position: relative;
  padding-bottom: 0.1rem;
}

.collaboration-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40%;
  height: 2px;
  background-color: #0f766e;
  border-radius: 999px;
  opacity: 0.7;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.collaboration-item:hover .collaboration-link::after {
  width: 100%;
  opacity: 1;
}

/* contact page*/

.contact a {
  color: white;
  text-decoration: none;
}

section[data-bg="contact"] {
  position: relative;
}

section[data-bg="contact"] .contact {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
================================ */
@media (max-width: 1024px) {
  header h1 {
    font-size: 34px;
  }

  section p {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  @media (max-width: 768px) {
    /* HEADER */

    header {
      height: auto;
      padding: 12px 16px;
      flex-direction: column;
      gap: 10px;
    }

    header .logo {
      position: static;
      transform: none;
      height: 48px;
    }

    .language-switcher {
      text-align: left;
      margin-top: 68x;
    }

    nav ul {
      flex-direction: column; /* linkovi u stupac */
      justify-content: flex-start; /* pomak ulijevo */
      align-items: flex-start; /* poravnanje lijevo */
      margin: 0; /* uklanja centriranje */
      padding: 0; /* uklanja padding */
      gap: 10px;
    }

    nav ul li {
      display: block; /* svaki link u svom retku */
      width: auto; /* zauzima širinu prema sadržaju */
      text-align: left; /* tekst lijevo */
    }
  }

  main {
    flex-direction: column;
  }

  main > section {
    padding: 16px;
  }

  aside {
    border-left: none;
    border-top: 2px solid #cd853f;
  }

  section p {
    font-size: 1.25em;
    text-align: left;
    word-spacing: normal;
    hyphens: auto;
    line-height: 1.5;
  }

  body {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 26px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
.cookie-link {
  color: #d9ae5f;
  text-decoration: underline;
  margin-left: 6px;
}

.cookie-link:hover {
  opacity: 0.8;
}
