/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fdfdfb;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER / NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #2e7d32; /* verde consistent */
  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; /* logo auriu pentru contrast */
}

/* ================= NAV LINKS ================= */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* ================= LINKS IN POPUP ================= */
.nav-links li a {
  display: block;
  margin: 5px 0;        /* mai compact */
  padding: 8px 20px;    /* padding mai mic, uniform */
  font-size: 16px;
  text-align: center;
  color: #fff;
  background: transparent;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

/* Hover */
.nav-links li a:hover {
  background: #ffd700;
  color: #2e7d32;
}

/* Buton activ (pagina curentă) */
.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;
}

/* ================= 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; /* sub navbar */
    left: 50%; /* centrat pe mijloc */
    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;
  }
}

/* ================= MAIN CONTACT ================= */
.contact-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1; /* împinge footer-ul jos */
}

.intro h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2em;
  color: #d97706;
}

.intro p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* ================= CONTACT CONTENT ================= */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.contact-form, .contact-info {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form h2, .contact-info h2 {
  margin-bottom: 15px;
  color: #d97706;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background-color: #d97706;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #b45309;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* ================= FOOTER ================= */
.footer {
  background: #2e7d32;
  color: #ffffff;
  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 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; /* sub navbar */
    left: 50%; /* centrat pe mijloc */
    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;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
  }
}
