/* ============================================
   AGRO TRIO — Crna Gora
   ============================================ */

:root {
  --bg: #fdfcf8;
  --bg-alt: #f5f1e6;
  --bg-card: #ffffff;
  --border: #e7e1d0;
  --green: #0d7a12;
  --green-dark: #0a5c0e;
  --green-light: #7bc602;
  --orange: #f57023;
  --orange-dark: #d85a12;
  --ink: #22281f;
  --gray: #5c6157;
  --gray-light: #8a8f83;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(34, 40, 31, 0.1);
  --container: 1240px;
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--ink); }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
h2 span { color: var(--green); }
h3 { font-size: 20px; margin-bottom: 8px; }

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  margin-bottom: 10px;
  display: inline-block;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head p { color: var(--gray); font-size: 16px; }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 122, 18, 0.3); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 112, 35, 0.35); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-dark); color: #fff; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; }
.topbar .topbar-phones { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .topbar-phones a:hover { color: var(--green-light); }
.topbar .topbar-loc { display: flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 252, 248, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.logo .logo-agro { color: var(--green); }
.logo .logo-trio { color: var(--orange); }

nav.main-nav ul { display: flex; gap: 22px; }
nav.main-nav a {
  font-weight: 600; font-size: 14px;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--green); border-color: var(--orange); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { padding: 10px 22px; font-size: 13.5px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 3px; background: var(--green); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  background-size: cover; background-position: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,50,10,0.85) 25%, rgba(10,50,10,0.45) 65%, rgba(10,50,10,0.15) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; color: #fff; }
.hero .eyebrow { color: var(--green-light); }
.hero h1 { font-size: clamp(32px, 5.5vw, 54px); color: #fff; margin-bottom: 18px; }
.hero h1 span { color: var(--green-light); }
.hero p.lead { color: #eef4ea; font-size: 18px; margin-bottom: 30px; max-width: 520px; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-small { min-height: 44vh; }
.hero .badge-authorized {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.97); color: var(--ink);
  padding: 12px 22px 12px 12px; border-radius: 50px; font-weight: 800; font-size: 14.5px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 2px solid var(--orange);
}
.hero .badge-authorized img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--orange); flex-shrink: 0; }

/* ---------- Feature strip ---------- */
.feature-strip { background: var(--green); padding: 26px 0; }
.feature-strip .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.feature-strip .feature-item { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; color: #fff; }
.feature-strip .feature-icon {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.feature-strip .feature-text strong { display: block; font-size: 14.5px; }
.feature-strip .feature-text span { color: #dff0d8; font-size: 13px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); }
.card .card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; color: #fff;
}
.card p { color: var(--gray); font-size: 14.5px; margin-bottom: 14px; }
.card .card-link { color: var(--green); font-weight: 700; font-size: 13px; }

.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card .product-body { padding: 22px; }
.product-card h3 { font-size: 19px; }
.product-card p { color: var(--gray); font-size: 14px; margin-bottom: 14px; }
.product-card .checklist li { font-size: 13.5px; margin-bottom: 8px; }

/* ---------- Checklist ---------- */
.checklist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; color: var(--gray); font-size: 15px; }
.checklist li::before {
  content: '✓'; color: #fff; background: var(--green); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; flex-shrink: 0; margin-top: 1px;
}

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  padding: 60px 0; text-align: center; color: #fff;
}
.cta-band .eyebrow { color: var(--green-light); }
.cta-band h2, .cta-band h2 span { color: #fff; }
.cta-band p { color: #e4f2df; margin-bottom: 28px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--green-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step .step-num {
  width: 50px; height: 50px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin: 0 auto 16px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; box-shadow: var(--shadow);
}
.contact-card .c-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--gray); font-size: 14px; }
.contact-card a:hover { color: var(--green); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 380px; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

.location-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.location-card h3 { color: var(--green); font-size: 22px; margin-bottom: 18px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: #cfd4c9; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--green-light); font-size: 14px; margin-bottom: 18px; }
.footer-grid p { color: #b7bcae; font-size: 14px; margin-bottom: 10px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: #b7bcae; font-size: 14px; transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--green-light); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 800; font-size: 20px; }
.footer-logo img { width: 42px; height: 42px; border-radius: 50%; }
.footer-bottom { border-top: 1px solid #3a4034; padding: 20px 0; text-align: center; color: #8b9081; font-size: 13px; }

/* ---------- Preporuke gallery + lightbox ---------- */
.preporuke-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.preporuka-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.preporuka-thumb:hover { transform: translateY(-4px); }
.preporuka-thumb img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; }
.preporuka-thumb .preporuka-label {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 300;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 992px) {
  .preporuke-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .preporuke-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
}
@media (max-width: 480px) {
  .preporuke-grid { grid-template-columns: 1fr 1fr; }
  .preporuka-thumb img { height: 160px; }
}

/* ---------- White phone/contact icon (SVG mask, true white) ---------- */
.icon-phone-white {
  display: inline-block;
  width: 20px; height: 20px;
  background-color: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  vertical-align: middle;
}
.float-call .icon-phone-white { width: 24px; height: 24px; }

/* ---------- Floating call ---------- */
.float-call {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  background: var(--orange); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ---------- Page hero ---------- */
.page-hero { padding: 60px 0 40px; text-align: center; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); }
.page-hero p { color: var(--gray); max-width: 620px; margin: 14px auto 0; }

/* ---------- Category nav (stočna hrana page) ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 10px; }
.cat-nav a {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px;
  padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--gray);
  transition: all 0.2s;
}
.cat-nav a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1150px) {
  nav.main-nav {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--bg); border-left: 1px solid var(--border); padding: 100px 30px 30px;
    transition: right 0.3s ease; z-index: 150;
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; gap: 22px; }
  nav.main-nav a { font-size: 15px; }
  .burger { display: flex; }
  .header-cta .btn-text { display: none; }
}

@media (max-width: 992px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar .topbar-loc { display: none; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .steps { grid-template-columns: 1fr 1fr; }
  .float-call { display: flex; }
  .hero { min-height: 90vh; text-align: left; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
