/* ===== VARIJABLE ===== */
:root {
  --green-900: #14391f;
  --green-700: #1f6b3a;
  --green-600: #2e8b4f;
  --green-500: #3aa760;
  --green-100: #e8f5ec;
  --earth: #8a6d3b;
  --ink: #1c2620;
  --muted: #5d6b62;
  --bg: #ffffff;
  --bg-alt: #f4f8f5;
  --line: #e2ebe5;
  --shadow: 0 10px 30px rgba(20, 57, 31, 0.10);
  --radius: 16px;
  --maxw: 1140px;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef7f1 0%, #e6f2ec 55%, #dcefe4 100%) fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo-text { font-family: 'Poppins', sans-serif; line-height: 1.2; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px rgba(46,139,79,0.35); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-viber { background: #7360f2; color: #fff; box-shadow: 0 8px 20px rgba(115,96,242,0.35); }
.btn-viber:hover { background: #5e4fd8; }
.btn-block { width: 100%; text-align: center; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; z-index: 1; }
/* zeleni mehurići u zaglavlju */
.header-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.header-fx .mehur {
  position: absolute; bottom: -14px; border-radius: 50%;
  background: rgba(46, 139, 79, 0.28);
  animation: mehurDize linear infinite; will-change: transform, opacity;
}
@keyframes mehurDize {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 0.6; }
  100% { transform: translateY(-86px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .header-fx .mehur { animation: none; opacity: 0.3; } }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.logo-mark { display: flex; }
.logo-mark svg { display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: 0.2px; color: var(--green-700); }
.logo-text small { font-size: 0.72rem; color: #5d8a6a; margin-top: 2px; font-weight: 500; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-weight: 500; color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--green-600); }
.nav-links a.active { color: var(--green-600); }
.nav-links a.nav-cta.active { color: #fff !important; }
.nav-cta { background: var(--green-600); color: #fff !important; padding: 0.5rem 1.1rem; border-radius: 50px; }
.nav-cta:hover { background: var(--green-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--green-700); border-radius: 3px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: #14391f;
}
.hero::before {
  content: ""; position: absolute; inset: -7%; z-index: 0;
  background: url('../assets/images/kosacica-hero.jpg') center center / cover no-repeat;
  transform-origin: 35% 72%;
  animation: hero-dolly 22s ease-in-out infinite;
}
/* kamera kreće izbliza (na kosilici) pa se odmiče unazad i diže prema gore */
@keyframes hero-dolly {
  0%   { transform: scale(1.18) translateY(3.5%); }
  50%  { transform: scale(1.0)  translateY(-3.5%); }
  100% { transform: scale(1.18) translateY(3.5%); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(14,42,26,0.82) 0%, rgba(20,57,31,0.55) 45%, rgba(31,107,58,0.28) 100%);
}
/* Na računaru se vidi cela slika; na mobilnom se kadrira na kosilicu */
@media (max-width: 760px) {
  .hero { min-height: 96vh; }
  .hero::before {
    background-image: url('../assets/images/kosacica-hero-mobile.jpg');
    background-position: center center;
    inset: 0;
    transform: none;
    animation: none;
  }
  .hero-overlay { background: linear-gradient(180deg, rgba(14,42,26,0.50) 0%, rgba(14,42,26,0.35) 45%, rgba(14,42,26,0.70) 100%); }
}
.hero-content { position: relative; z-index: 3; padding: 5rem 0; max-width: 760px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.8rem; font-weight: 600; color: var(--green-100); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; font-family: 'Poppins'; }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ===== SECTIONS ===== */
.section { padding: 5.5rem 0; }
.section-alt { background: transparent; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; font-weight: 700; color: var(--green-600); margin-bottom: 0.6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.7rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-500); }
.card-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--green-900); }
.card p { color: var(--muted); }

/* ===== GALERIJA ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--green-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20,57,31,0.85));
  color: #fff; padding: 1.4rem 1rem 0.9rem; font-weight: 600; font-size: 0.95rem;
}

/* ===== FOLDERI (ALBUMI) ===== */
.albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.album {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--green-100);
  border: none; padding: 0; width: 100%; text-align: left; font: inherit; color: inherit;
}
.album img, .album video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.album:hover img, .album:hover video { transform: scale(1.07); }
.play-badge {
  position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--green-700);
  display: grid; place-items: center; font-size: 1.2rem; padding-left: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3); z-index: 2; pointer-events: none;
}
.album:hover .play-badge { background: #fff; }
.album-ov {
  position: absolute; inset: 0; padding: 1.2rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(transparent 35%, rgba(20,57,31,0.9));
  color: #fff;
}
.album-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.92); color: var(--green-700);
  font-weight: 700; font-size: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 50px;
  margin-bottom: auto;
}
.album-ov h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.album-ov span.open-hint { font-size: 0.82rem; color: rgba(255,255,255,0.85); }
.album:hover .album-badge { background: #fff; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 18, 12, 0.95); backdrop-filter: blur(4px);
  display: none; flex-direction: column;
}
.lightbox.open { display: flex; }
.lb-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; color: #fff; }
.lb-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; }
.lb-counter { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.lb-close {
  margin-left: auto; background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lb-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1rem 1rem; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lb-stage video { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); background: #000; }
.lightbox { touch-action: pan-y; }
.lb-cap { color: #fff; margin-top: 0.9rem; font-size: 0.98rem; text-align: center; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.14); color: #fff; border: none;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s; z-index: 2;
}
.lb-nav:hover { background: rgba(255,255,255,0.3); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 560px) {
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-stage img { max-height: 70vh; }
}

/* ===== VIDEO ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; }
.video-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-item video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--green-100); }
.video-item figcaption { background: #fff; color: var(--muted); padding: 0.8rem 1rem; font-size: 0.9rem; }

/* ===== O MENI ===== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; display: block; background: var(--green-100); }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.4rem 0 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1.2rem; }
.about-list { margin-bottom: 1.6rem; display: grid; gap: 0.5rem; }
.about-list li { font-weight: 500; }

/* ===== KONTAKT ===== */
.contact { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 640px; margin: 0 auto; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-row {
  display: flex; gap: 1rem; align-items: center;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: border-color 0.2s;
}
a.contact-row:hover { border-color: var(--green-500); }
.contact-ic { font-size: 1.5rem; }
.contact-form {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  display: grid; gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-weight: 400; resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--green-500); border-color: transparent; }
.form-note { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

/* ===== FOOTER ===== */
.footer { background: var(--green-900); color: #fff; padding: 3rem 0 8.5rem; text-align: center; position: relative; overflow: hidden; }
.footer-inner { display: grid; gap: 0.6rem; justify-items: center; }
.footer .logo-text b { color: #fff; }
.footer .logo-text small { color: #bfe6cd; }
.footer p { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 0.5rem; }
.footer-credit { font-size: 0.72rem; color: rgba(255,255,255,0.38); margin-top: 0.3rem; }
.footer-credit a { color: rgba(255,255,255,0.55); text-decoration: underline; }

/* ===== TO TOP ===== */
.to-top {
  position: fixed; left: 22px; bottom: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--green-700); }

/* ===== FLOATING "POŠALJI PORUKU" (VIBER) ===== */
.msg-float {
  position: fixed; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--green-600); color: #fff; font-weight: 600;
  padding: 0.8rem 1.25rem; border-radius: 50px;
  box-shadow: 0 8px 24px rgba(46,139,79,0.5); z-index: 41;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.msg-float:hover { transform: translateY(-2px); background: var(--green-700); box-shadow: 0 12px 28px rgba(46,139,79,0.6); }
.msg-float .msg-ic { font-size: 1.25rem; line-height: 1; }

/* ===== REVEAL ANIMACIJE ===== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.22, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero ulazna animacija pri učitavanju */
.hero-eyebrow, .hero h1, .hero-actions, .hero-stats {
  animation: heroIn 0.9s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}
.hero h1 { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.26s; }
.hero-stats { animation-delay: 0.4s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-eyebrow, .hero h1, .hero-actions, .hero-stats { animation: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about-img { order: 2; }
  .nav { position: relative; justify-content: center; }
  .logo { margin: 0 auto; }
  .nav-toggle { display: flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { display: block; padding: 1rem; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0 !important; }
}
@media (max-width: 380px) {
  .logo-text b { font-size: 1rem; }
  .logo-mark svg { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .hero-stats strong { font-size: 1.5rem; }
}

/* ===== POZADINSKE ČESTICE (kroz ceo sajt) ===== */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx .cestica {
  position: absolute; bottom: -24px; border-radius: 50%;
  background: rgba(46, 139, 79, 0.45); opacity: 0;
  animation: cesticaPlovi linear infinite; will-change: transform, opacity;
}
@keyframes cesticaPlovi {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: 0.7; }
  88%  { opacity: 0.5; }
  100% { transform: translate3d(16px, -112vh, 0); opacity: 0; }
}

/* ===== TRAVA U FUTERU ===== */
.footer-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none; z-index: 1; }
.footer-grass .vlat {
  position: absolute; bottom: -4px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
  animation: travaNjihanje ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes travaNjihanje {
  from { transform: rotate(-7deg); }
  to   { transform: rotate(7deg); }
}
.footer-inner { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .bg-fx .cestica { animation: none; opacity: 0.4; }
  .footer-grass .vlat { animation: none; }
}
