/* ==========================================================================
   UNAPLOD d.o.o. — stilovi
   Paleta izvedena iz logotipa: zelena (kruška), žuto/narandžasti akcenat.
   ========================================================================== */

:root {
  --green: #2e7d32;
  --green-dark: #1f5a25;
  --green-darker: #16401b;
  --accent: #f5a623;
  --ink: #1f2a20;
  --muted: #55645a;
  --line: #e4e9e4;
  --bg: #ffffff;
  --bg-soft: #f6f8f5;
  --maxw: 1100px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 50, 25, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo { height: 40px; width: auto; }

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--green-dark);
}

.brand-suffix { font-weight: 600; color: var(--muted); font-size: 0.9em; }

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { background: var(--bg-soft); color: var(--green-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: url("hero.jpg") center/cover no-repeat;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 40, 20, 0.55) 0%, rgba(15, 40, 20, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px;
  max-width: 760px;
}

.hero-logo {
  height: 130px;
  width: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.hero-title span { font-weight: 600; opacity: 0.9; }

.hero-slogan {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 600;
  color: #ffe8b0;
  margin: 0 0 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 30px;
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #3a2600;
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover { transform: translateY(-2px); background: #ffb733; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

/* Da sticky header ne prekrije vrh sekcije pri skrolanju */
section[id] { scroll-margin-top: 80px; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--green-dark);
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

/* ---------- O nama ---------- */
.about { background: var(--bg-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p { color: var(--muted); margin: 0 0 16px; }

.about-media {
  display: grid;
  gap: 16px;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child { border-bottom: none; }

.contact-label {
  flex: 0 0 120px;
  font-weight: 700;
  color: var(--green-dark);
}

.contact-value { color: var(--ink); }

.contact-value a { text-decoration: none; font-weight: 600; }

.contact-value a:hover { text-decoration: underline; }

/* ---------- Galerija ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Slike iz „O kompaniji“ — samo na mobitelu u galeriji */
.gallery-from-about { display: none; }

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.gallery-grid img:hover { transform: translateY(-4px) scale(1.01); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-darker);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.1rem;
}

.footer-logo { height: 42px; width: auto; }

.footer-info p { margin: 2px 0; }

.footer-info a { color: #ffe8b0; text-decoration: none; }

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

.footer-copy {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */

/* Tablet / uži desktop: tekst punom širinom, dvije slike jednu pored druge */
@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-media {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .about-media img {
    aspect-ratio: 3 / 2;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobitel: samo tekst u „O kompaniji“, slike prelaze u galeriju */
@media (max-width: 760px) {
  .about-media { display: none; }

  .gallery-from-about { display: block; }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-grid img {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
  }

  .section { padding: 48px 0; }
  .section-title { margin-bottom: 20px; }
  .hero { min-height: 520px; }
  .hero-logo { height: 100px; }
  .hero-inner { padding: 64px 16px; }
  .header-inner { flex-direction: column; min-height: 0; padding: 12px 0; gap: 8px; }
  .site-nav { justify-content: center; gap: 4px; }
  .site-nav a { padding: 8px 12px; font-size: 0.95rem; }
  .contact-list li { flex-direction: column; gap: 4px; padding: 16px 18px; }
  .contact-label { flex-basis: auto; }
  .footer-inner { align-items: center; text-align: center; }
}
