/* ===== Reset i osnovne varijable ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f6faf6;
  --text: #0f1f12;
  --text-soft: #4b5b50;
  --muted: #8a9c8e;
  --border: #e3ebe4;
  --border-strong: #cfdcd1;
  --primary: #4a9d4f;
  --primary-600: #3d8b40;
  --primary-700: #2e6b32;
  --primary-900: #1f4a23;
  --accent: #f59e0b;
  --success: #16a34a;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 18, .06), 0 1px 3px rgba(15, 31, 18, .06);
  --shadow-md: 0 14px 30px -14px rgba(15, 31, 18, .22), 0 4px 8px -4px rgba(15, 31, 18, .08);
  --shadow-lg: 0 30px 60px -25px rgba(46, 107, 50, .35), 0 12px 24px -12px rgba(15, 31, 18, .15);
  --shadow-glow: 0 0 0 1px rgba(74, 157, 79, .25), 0 18px 40px -16px rgba(74, 157, 79, .45);
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: var(--bg-soft);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== Pristupačnost ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, var(--surface-alt) 0%, #ffffff 100%);
}
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  margin: 14px 0 14px;
  font-weight: 800;
}
.section-head p { color: var(--text-soft); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-align { align-items: center; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Reveal animacija ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Badge / Pill ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: rgba(74, 157, 79, .1);
  border: 1px solid rgba(74, 157, 79, .2);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.badge-sm { font-size: .72rem; padding: 5px 11px; }
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 157, 79, .25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 157, 79, .25); }
  50% { box-shadow: 0 0 0 8px rgba(74, 157, 79, 0); }
}

/* ===== Gradient text ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary) 60%, #6cc472 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-light {
  background: linear-gradient(135deg, #fff 0%, #d9f5db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 18px -10px rgba(15, 31, 18, .15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-700);
}
.brand-sub {
  font-size: .7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  display: none;
}
@media (min-width: 480px) { .brand-sub { display: inline; } }

.nav { display: none; gap: 32px; }
.nav a {
  position: relative;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s ease;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--primary-700); }
.nav a:hover::after { width: 100%; }
@media (min-width: 820px) { .nav { display: inline-flex; } }

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .25s ease, box-shadow .25s ease, border-color .25s ease;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 50%, var(--primary-700) 100%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background-position: 100% 100%;
  box-shadow: var(--shadow-lg);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  background: rgba(255, 255, 255, .8);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary-700);
}

.btn-white {
  background: #fff;
  color: var(--primary-700);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  box-shadow: var(--shadow-lg);
  background: #f0fdf4;
}

.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-lg .btn-icon { width: 20px; height: 20px; }
.btn-call { display: none; }
@media (min-width: 540px) { .btn-call { display: inline-flex; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 130px) 0 clamp(64px, 9vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #f6faf6 0%, #ffffff 75%);
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(46, 107, 50, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  opacity: .7;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #86d18a 0%, transparent 70%);
  top: -180px;
  right: -120px;
  animation: float 14s ease-in-out infinite;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #fcd34d 0%, transparent 70%);
  bottom: -160px;
  left: -100px;
  opacity: .35;
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-inner {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 60px; }
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 22px;
  font-weight: 800;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: .95rem;
}
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--primary));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px -3px rgba(22, 163, 74, .4);
}

/* Hero card s logom i plutajucim ilustracijama */
.hero-card {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  padding: 16%;
  border: 1px solid rgba(46, 107, 50, .12);
}
.hero-card-glow {
  position: absolute;
  inset: -20% -20% auto auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(74, 157, 79, .35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(46, 107, 50, .25));
}
.hero-floating {
  position: absolute;
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px -16px rgba(15, 31, 18, .25), 0 0 0 1px rgba(46, 107, 50, .08);
  padding: 10px;
  z-index: 3;
  animation: floatY 6s ease-in-out infinite;
}
.hero-floating img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-floating-1 {
  top: 8%;
  left: -8%;
  animation-delay: 0s;
}
.hero-floating-2 {
  bottom: 12%;
  right: -10%;
  animation-delay: -2s;
  width: 100px;
  height: 100px;
}
.hero-floating-3 {
  bottom: -6%;
  left: 14%;
  animation-delay: -4s;
  width: 80px;
  height: 80px;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 559px) {
  .hero-floating-1 { left: -4%; width: 70px; height: 70px; }
  .hero-floating-2 { right: -4%; width: 80px; height: 80px; }
  .hero-floating-3 { left: 10%; width: 64px; height: 64px; }
}

/* ===== Features ===== */
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(74, 157, 79, .12), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(74, 157, 79, .35);
}
.feature:hover::before { opacity: 1; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 157, 79, .18), rgba(74, 157, 79, .04));
  color: var(--primary-700);
  font-size: 28px;
  margin-bottom: 18px;
  transition: transform .3s var(--ease);
}
.feature:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }

.feature--img {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  margin: 0 0 20px;
  transition: transform .4s var(--ease);
}
.feature:hover .feature-img { transform: scale(1.06) translateY(-4px); }

.feature h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; }
.feature p { color: var(--text-soft); }

/* ===== O nama ===== */
.check-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--success), var(--primary));
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px -3px rgba(22, 163, 74, .4);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.stat-img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  margin: 0 0 10px;
  transition: transform .35s var(--ease);
}
.stat:hover .stat-img { transform: scale(1.08); }
.stat-label {
  display: block;
  font-size: .95rem;
  color: var(--text);
  font-weight: 600;
}

/* ===== CTA stripe ===== */
.cta-section {
  padding: clamp(40px, 6vw, 60px) 0;
}
.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border-radius: 28px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(108, 196, 114, .45), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, .25), transparent 50%),
    linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.cta-content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
}
.cta-content p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}
@media (min-width: 820px) {
  .cta-card { flex-direction: row; text-align: left; justify-content: space-between; }
  .cta-content p { margin: 0; }
}

/* ===== Contact ===== */
.contact-grid { gap: 18px; }
.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 157, 79, .35);
  box-shadow: var(--shadow-glow);
}
.contact-card:hover::before { transform: scaleY(1); }
.contact-card--static {
  cursor: default;
}
.contact-card--static:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-card--static:hover::before { transform: scaleY(0); }

.contact-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(46, 107, 50, .5);
  transition: transform .35s var(--ease);
}
.contact-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.contact-card:hover .contact-icon { transform: rotate(-6deg) scale(1.06); }
.contact-card--static:hover .contact-icon { transform: none; }
.contact-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
  letter-spacing: -.01em;
}
.contact-sub {
  display: block;
  font-size: .9rem;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #0f1f12 0%, #061308 100%);
  color: #cfdcd1;
  padding: 44px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 157, 79, .4), transparent);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  font-size: .94rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: brightness(1.1);
  background: #ffffff14;
  border-radius: 12px;
  padding: 6px;
}
.footer-name {
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
  font-size: 1rem;
}
.footer-inner p { margin: 0; }
.footer-right { color: var(--muted); }
.muted { color: var(--muted); font-size: .88rem; }

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-right { text-align: right; }
}
