/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fdfdfb;
  color: #333;
}

h1, h2 {
  text-align: center;
  color: #000;
}

h1 {
  margin: 30px 0 15px 0;
}

h2 {
  margin: 25px 0 15px 0;
}

/* ================= 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 ================= */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.nav-links li a:hover {
  background: #ffd700;
  color: #2e7d32;
  transform: scale(1.05);
}

.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 0;
  border-radius: 9999px;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.nav-links li .btn:hover {
  background: #fff176;
  color: #1b5e20;
  transform: scale(1.05);
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ================= HERO ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: #1e293b;
}

.hero-text p {
  margin-top: 1rem;
  color: #475569;
}

.actions {
  margin-top: 2rem;
}

/* Butoane */
.btn, .btn-outline {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  margin-right: 1.5rem;
  transition: 0.3s;
}

.btn {
  background: #d97706;
  color: white;
}

.btn:hover {
  background: #b45309;
}

.btn-outline {
  border: 2px solid #d97706;
  color: #d97706;
  background: transparent;
}

.btn-outline:hover {
  background: #fff7ed;
}

/* Hero image */
.hero-img img {
  max-width: 400px;
  border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ================= PRODUSE ================= */
.produse {
  padding: 5rem 3rem; /* puțin mai mult spațiu sus/jos */
  background: #fffefc;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* cărți mai late */
  gap: 3rem; /* mai mult spațiu între cărți */
  margin-top: 3rem;
}

.card {
  background: white;
  padding: 3rem; /* mai mult spațiu interior */
  border-radius: 1.8rem; /* colțuri mai rotunjite */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.price {
  display: block;
  margin-top: 1.5rem;
  color: #d97706;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Index produse mai mari */
.index-produse .produse-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* mai mult spațiu între produse */
  justify-content: center;
}

.index-produse .produs-card {
  width: 250px; /* card mai mare */
  padding: 20px;
}

.index-produse .produs-card img {
  width: 100%;
  height: 180px; /* imagine mai mare */
  object-fit: cover;
  border-radius: 12px;
}

.index-produse .produs-card h3 {
  font-size: 1.2rem; /* titlu mai mare */
  margin: 12px 0 8px 0;
}

.index-produse .produs-card p {
  font-size: 1rem; /* text mai clar */
  line-height: 1.4;
}

.produs-card .pret {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  color: #d97706;
  font-size: 1.2rem;
}

/* ================= RESPONSIVE PRODUSE ================= */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr; /* o carte pe rând */
    gap: 2rem;
  }

  .index-produse .produs-card {
    width: 90%; /* ocupă mai mult pe mobil */
    padding: 15px;
  }

  .index-produse .produs-card img {
    height: 200px; /* imagine mai mare pe mobil */
  }
}


/* ================= GALERIE ================= */
.galerie {
  padding: 4rem 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ================= VIZITA ================= */
.vizita {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 4rem 3rem;
  gap: 2rem;
  background: #fefce8;
}

.vizita-text h2 {
  color: #1e293b;
  font-size: 2rem;
}

.vizita-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ================= FOOTER ================= */
.footer {
  background: #2e7d32;
  color: #cbd5e1;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* ================= 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 ================= */
@media (max-width: 768px) {

  /* Navbar hamburger + 2x3 grid */
  .nav-links {
    display: 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;
  }

  .hamburger {
    display: flex;
  }

  .nav-links li a,
  .nav-links li .btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    text-align: center;
  }

  /* Hero responsive */
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-img img {
    width: 90%;
    margin-bottom: 20px;
  }

  /* Griduri */
  .grid, .galerie-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Butoane responsive */
  .btn, 
  .btn-outline {
    display: block;
    width: 90%;
    margin: 0 auto 1.5rem auto;
    text-align: center;
  }
}
