:root {
  --green: #003f25;
  --dark: #111;
  --white: #fff;

  --font-heading: "Comfortaa", sans-serif;
  --font-body: "Barlow", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  /*background: #111;*/
}

a {
  text-decoration: none;
  color: inherit;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;

  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: white;
  display: block;
}

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-inner {
    justify-content: space-between;
  }
}

/* --------- NAVBAR ------- */

/* --------- NAVBAR ------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    padding 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.navbar.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 24, 18, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.nav-inner {
  width: min(90%, 1380px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  justify-self: start;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-btn {
  justify-self: end;
  padding: 15px 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 110px 10% 60px;
  background: linear-gradient(165deg, rgba(9, 17, 13, 0.98) 0%, rgba(16, 29, 21, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

body.meni-odprt {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-btn {
    display: none;
  }

  .mobile-menu-btn {
    position: relative;
    z-index: 2;
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  .nav-inner {
    width: min(calc(100% - 28px), 1380px);
  }

  .mobile-nav a {
    padding: 18px 4px;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .mobile-nav a:hover,
  .mobile-nav a:active {
    color: #7fb08a;
    padding-left: 12px;
  }

  .mobile-nav a.mobile-nav-btn {
    margin-top: 26px;
    padding: 18px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    padding: 100px 8% 50px;
  }

  .mobile-nav a {
    font-size: 22px;
  }
}

/* --------- FOOTER (skupen za vse podstrani) ------- */

:root{
    --footer-bg: #16261c;
    --footer-bg-2: #101d15;
    --footer-green: #7fb08a;
    --footer-text: #d8e2da;
    --footer-text-dim: #93a397;
    --footer-border: rgba(255,255,255,0.08);
  }

  .site-footer{
    background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-2) 100%);
    color: var(--footer-text);
    padding: 72px 6vw 0;
    font-family: inherit;
  }

  .footer-top{
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 48px;
  }

  .footer-logo{
    height: 42px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
  }

  .footer-text{
    color: var(--footer-text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 0 24px;
  }

  .footer-social{
    display: flex;
    gap: 12px;
  }

  .footer-social a{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .footer-social a:hover{
    background: var(--footer-green);
    border-color: var(--footer-green);
    color: #101d15;
  }

  .footer-col h4{
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a5c38;
    margin: 0 0 20px;
    font-weight: 600;
  }

  .footer-col ul{
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-col > ul > li{
    margin-bottom: 12px;
  }

  .footer-col a{
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
  }

  .footer-col a:hover{
    color: var(--footer-green);
  }

  .footer-contact li{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--footer-text-dim);
  }

  .footer-contact svg{
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--footer-green);
  }

  .footer-contact a{
    color: var(--footer-text-dim);
  }

  .footer-contact a:hover{
    color: var(--footer-green);
  }

  .footer-hours li{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--footer-border);
    color: var(--footer-text-dim);
  }

  .footer-hours li:last-child{
    border-bottom: none;
  }

  .footer-hours strong{
    color: var(--footer-text);
    font-weight: 600;
  }

  .footer-divider{
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--footer-border);
  }

  .footer-bottom{
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--footer-text-dim);
  }

  .footer-legal{
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .footer-legal a{
    color: var(--footer-text-dim);
    text-decoration: none;
  }

  .footer-legal a:hover{
    color: var(--footer-green);
  }

  @media (max-width: 1024px){
    .footer-top{
      grid-template-columns: 1fr 1fr;
      row-gap: 40px;
    }
    .footer-brand{
      grid-column: 1 / -1;
    }
    .footer-text{
      max-width: 100%;
    }
  }

  @media (max-width: 640px){
    .site-footer{
      padding: 56px 6vw 0;
      text-align: center;
    }
    .footer-top{
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .footer-brand{
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .footer-social{
      justify-content: center;
    }
    .footer-contact li{
      justify-content: center;
    }
    .footer-hours li{
      max-width: 260px;
      margin: 0 auto;
    }
    .footer-bottom{
      flex-direction: column;
      text-align: center;
      padding: 24px 0 32px;
    }
  }

/* --------- SCROLL REVEAL (skupno za vse podstrani) ------- */

/* Namenoma "animation", ne "transition": veliko kartic (.specialty-card,
   .partner-card, .news-card ...) ima ZA HOVER že svoj lasten "transition"
   na transform/opacity. Pri enaki specifičnosti bi si dve "transition"
   pravili konkurirali in ena povsem povozila drugo. "animation" je ločen
   mehanizem, ki s tem sploh ne trči, zato hover učinki ostanejo nedotaknjeni. */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
}

.scroll-reveal.is-visible {
  animation: razkrijElement 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes razkrijElement {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* zamik znotraj mrež kartic - postopno prihajanje ena za drugo namesto vseh naenkrat */
.stagger-grid > .scroll-reveal:nth-child(1) { animation-delay: 0s; }
.stagger-grid > .scroll-reveal:nth-child(2) { animation-delay: 0.08s; }
.stagger-grid > .scroll-reveal:nth-child(3) { animation-delay: 0.16s; }
.stagger-grid > .scroll-reveal:nth-child(4) { animation-delay: 0.24s; }
.stagger-grid > .scroll-reveal:nth-child(5) { animation-delay: 0.32s; }
.stagger-grid > .scroll-reveal:nth-child(6) { animation-delay: 0.4s; }
.stagger-grid > .scroll-reveal:nth-child(n+7) { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* --------- LOADING SCREEN (skupno za vse podstrani) ------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
}

.page-loader-logo {
  width: min(140px, 32vw);
  height: auto;
  animation: nalaganjePulz 1.6s ease-in-out infinite;
}

.page-loader-bar {
  width: min(160px, 40vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.page-loader-bar-fill {
  width: 35%;
  height: 100%;
  background: #0a5c38;
  animation: nalaganjeCrta 1.3s ease-in-out infinite;
}

@keyframes nalaganjePulz {
  0%, 100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes nalaganjeCrta {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(310%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-logo,
  .page-loader-bar-fill {
    animation: none;
  }
}

/* --------- PIŠKOTKI (skupno za vse podstrani) ------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: rgba(9, 17, 13, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 680px;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-decline,
.cookie-banner-accept {
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: 0.25s ease;
}

.cookie-banner-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

.cookie-banner-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.cookie-banner-accept {
  background: #0a5c38;
  border-color: #0a5c38;
  color: white;
}

.cookie-banner-accept:hover {
  background: #0f7348;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    padding: 20px 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }

  .cookie-banner-actions {
    justify-content: center;
  }

  .cookie-banner-decline,
  .cookie-banner-accept {
    flex: 1;
  }
}