/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fdfdfb;
  color: #333;
}

h1, p {
  text-align: center;
  color: #333;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #2e7d32;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar .logo {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffd700;
}

/* Buton special din meniu */
.nav-links li .btn {
  background: #ffd700;
  color: #2e7d32;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-weight: bold;
}

.nav-links li .btn:hover {
  background: #fff176;
  color: #1b5e20;
}

/* Hamburger pentru mobil */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* ================= HERO ================= */
.hero-produse {
  background: url('https://images.unsplash.com/photo-1598514983674-f151dbb4f3e0?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
}

/* ================= PRODUSE ================= */
.produse-container {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px;
}

.produse-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.produs-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 280px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.produs-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.produs-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.produs-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1e293b;
}

.produs-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* ================= ANIMATIE ================= */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= FOOTER ================= */
.footer {
  background: #2e7d32;
  color: #ffffff;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.footer h1,
.footer h2,
.footer p,
.footer a {
  color: #ffffff;
}

/* ================= SOCIAL ================= */
.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.social-link {
  font-size: 30px;
  color: #333;
  transition: color 0.3s, transform 0.2s;
}

.social-link:hover {
  color: #007bff;
  transform: scale(1.2);
}

/* ================= RESPONSIVE HAMBURGER POPUP ================= */
@media (max-width: 768px) {
  .nav-links {
    display: grid; /* 2x3 grid */
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 10px;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 260px;
    background: #2e7d32;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
    padding: 10px;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  .nav-links li a {
    display: block;
    margin: 5px 0;
    padding: 8px 20px;
    font-size: 16px;
    text-align: center;
    color: #fff;
    background: transparent;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
  }

  .nav-links li a:hover {
    background: #ffd700;
    color: #2e7d32;
  }

  .nav-links li a.active,
  .nav-links li a.btn.active {
    background: #ffd700;
    color: #2e7d32;
    font-weight: bold;
  }

  .nav-links li .btn {
    background: #ffd700;
    color: #2e7d32;
    padding: 10px 0px;
    border-radius: 9999px;
    font-weight: bold;
  }

  .hamburger {
    display: flex;
  }
}
