/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --accent: #ff6f00;
  --dark: #1a1a2e;
  --dark2: #263238;
  --gray: #f5f5f5;
  --gray2: #e0e0e0;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--white);
}

.logo-text {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--primary-light);
}

nav ul {
  display: flex;
  gap: 5px;
}

nav ul li a {
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--primary);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #1a3a2a 100%);
  color: var(--white);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(46,125,50,0.1);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(46,125,50,0.06);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
}

.hero-badge strong {
  color: var(--primary-light);
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46,125,50,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary);
  margin-left: 15px;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--gray);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid transparent;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-top-color: var(--primary);
}

.service-card .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== FEATURE BOXES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-box {
  text-align: center;
  padding: 40px 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-box .f-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.feature-box h3 {
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-box p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-text h3 {
  color: var(--dark);
  font-size: 1.4rem;
  margin-bottom: 15px;
  margin-top: 30px;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.about-text ul {
  margin: 15px 0;
  padding-left: 0;
}

.about-text ul li {
  padding: 8px 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-text ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-sidebar {
  background: var(--dark);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}

.about-sidebar h3 {
  color: var(--primary-light);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.about-sidebar .stat {
  margin-bottom: 25px;
}

.about-sidebar .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
}

.about-sidebar .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ===== PROIZVODNJA PAGE ===== */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: center;
}

.prod-grid.reverse {
  direction: rtl;
}

.prod-grid.reverse > * {
  direction: ltr;
}

.prod-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prod-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.prod-text h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.prod-text p {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.8;
}

.prod-text ul {
  margin: 10px 0;
  padding-left: 0;
}

.prod-text ul li {
  padding: 6px 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.prod-text ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--dark);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  color: var(--primary-light);
  font-size: 1.4rem;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-item .ci-icon {
  width: 45px;
  height: 45px;
  background: rgba(76,175,80,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item .ci-label {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item .ci-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: white;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 15px;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--primary-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.2rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-grid.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-badges { flex-direction: column; gap: 10px; }
  .btn-outline { margin-left: 0; margin-top: 10px; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 15px 20px;
    gap: 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li a {
    padding: 12px 18px;
  }

  .hamburger {
    display: flex;
  }

  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .section-title h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .container { padding: 0 15px; }
  .contact-info-card { padding: 25px; }
}
