/* =========================================================
   Kmetija Rožej – oblikovanje
   Barve spremenite tukaj, v :root, in veljajo povsod.
   ========================================================= */
:root {
  --green: #2f5d3a;       /* glavna barva */
  --green-dark: #1f3d27;
  --red: #c0392b;         /* poudarek (jabolko) */
  --cream: #faf6ee;       /* svetlo ozadje */
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; color: var(--green-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .4rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--green); }

.container { width: min(1120px, 92%); margin: 0 auto; }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 600; color: var(--red); margin-bottom: .5rem;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
  border: none; cursor: pointer; font-size: 1rem; transition: transform .2s, background .2s;
}
.btn:hover { background: #a93226; transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.15); border: 1px solid #fff; }
.btn--light:hover { background: #fff; color: var(--green-dark); }
.btn--small { padding: .5rem 1.1rem; font-size: .9rem; }
.btn--full { width: 100%; }

/* ---------- Glava ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-family: "Fraunces", serif; font-size: 1.4rem; text-decoration: none; color: var(--green-dark); }
.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a.btn { color: #fff; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; }

/* ---------- Hero (premikajoča se uvodna slika) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center; color: #fff;
  background: #1f3d27;
}
.hero__bg {
  position: absolute; inset: -5%;
  /* Če slike images/hero.jpg še ni, se pokaže zelen preliv */
  background: url("images/hero.jpg") center/cover, linear-gradient(135deg, #2f5d3a, #6a8f3c, #a3b65a);
  animation: breathe 18s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20,40,25,.75), rgba(20,40,25,.35), rgba(120,40,20,.35));
  background-size: 200% 200%;
  animation: glow 14s ease-in-out infinite alternate;
}
.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; opacity: .9; }
.hero__text { font-size: 1.2rem; margin: 1.2rem 0 2rem; opacity: .95; }
.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Počasno "dihanje" slike: približevanje in rahel premik */
@keyframes breathe {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.14) translate(1%, -2%); }
}
/* Svetloba, ki počasi potuje čez sliko */
@keyframes glow {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Lebdeči listki */
.leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.leaves span {
  position: absolute; top: -10%; font-size: 1.6rem; opacity: .8;
  animation: fall linear infinite;
}
.leaves span:nth-child(1) { left: 8%;  animation-duration: 16s; animation-delay: 0s; }
.leaves span:nth-child(2) { left: 22%; animation-duration: 20s; animation-delay: 4s;  font-size: 1.2rem; }
.leaves span:nth-child(3) { left: 38%; animation-duration: 18s; animation-delay: 8s; }
.leaves span:nth-child(4) { left: 55%; animation-duration: 22s; animation-delay: 2s;  font-size: 1.1rem; }
.leaves span:nth-child(5) { left: 68%; animation-duration: 17s; animation-delay: 6s; }
.leaves span:nth-child(6) { left: 80%; animation-duration: 21s; animation-delay: 10s; font-size: 1.3rem; }
.leaves span:nth-child(7) { left: 90%; animation-duration: 19s; animation-delay: 3s; }
.leaves span:nth-child(8) { left: 47%; animation-duration: 24s; animation-delay: 12s; font-size: 1rem; }
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .85; }
  50%  { transform: translate(60px, 55vh) rotate(180deg); }
  90%  { opacity: .85; }
  100% { transform: translate(-40px, 110vh) rotate(360deg); opacity: 0; }
}

/* Besedilo se ob odprtju strani nežno dvigne */
.fade-up { opacity: 0; animation: fadeUp 1s ease-out forwards; }
.delay-1 { animation-delay: .25s; }
.delay-2 { animation-delay: .5s; }
.delay-3 { animation-delay: .75s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Puščica "pomakni navzdol" */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 2;
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.8); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(18px); }
}

/* Elementi se prikažejo ob pomikanju po strani */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Sekcije ---------- */
.section { padding: 90px 0; scroll-margin-top: 70px; }
.section--tinted { background: var(--cream); }
.section--dark { background: var(--green-dark); color: #e9efe9; }
.section--dark h2 { color: #fff; }
.section--dark a { color: #ffd9a0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split--top { align-items: start; }
.split__image { min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }

.checks { list-style: none; margin-top: 1rem; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.checks li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: bold; }

/* ---------- Slike (zamenjajte datoteke v mapi images) ---------- */
.img-about   { background: url("images/o-nas.jpg") center/cover, linear-gradient(135deg,#7da05a,#2f5d3a); }

/* ---------- Kartice ponudbe ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; margin-top: 2.5rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.card.visible:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.card { transition: opacity .9s ease, transform .4s ease, box-shadow .4s ease; }
.card__image {
  position: relative; height: 180px;
  background-color: #8fb069;            /* barva, dokler ni slike */
  background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.card { display: flex; flex-direction: column; }
.card__icon {
  position: absolute; left: 1rem; bottom: -22px;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: #fff; border-radius: 50%; font-size: 1.5rem; box-shadow: var(--shadow);
}
.card__body { padding: 2rem 1.4rem 1.4rem; }
.card__meta { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Galerija ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
  background: var(--cream); display: block;
}

/* ---------- Kontakt in obrazec ---------- */
.contact-info p { margin-bottom: .6rem; }
.form { background: #fff; color: var(--text); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 1rem; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .75rem .9rem;
  border: 1px solid #d8d8d8; border-radius: 10px; font: inherit; background: #fcfcfc;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }

/* ---------- Noga ---------- */
.footer { background: #142a1b; color: #b9c7bc; padding: 1.5rem 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer p { margin: 0; }
.footer a { color: #fff; }

/* ---------- Telefon / tablica ---------- */
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 1.5rem; gap: 1.2rem; box-shadow: var(--shadow);
    display: none;
  }
  .menu-open .nav { display: flex; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split__image { min-height: 260px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}

/* Za obiskovalce, ki imajo v sistemu izklopljene animacije */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up, .reveal { opacity: 1; transform: none; }
  .leaves { display: none; }
}
