@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* === NAVBAR FIXED CU ANIMAȚIE === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  border-bottom: 3px solid #620000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

/* Navbar ascuns la scroll în jos */
.navbar.nav-hidden {
  transform: translateY(-100%);
}

/* Navbar redevine vizibil */
.navbar.nav-visible {
  transform: translateY(0);
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* === LEFT === */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 5rem;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: #0c2340;
  text-transform: uppercase;
}

/* === RIGHT BUTTON === */
.nav-right {
  display: flex;
  align-items: center;
}

.phone-btn {
  background-color: #620000;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.phone-btn:hover {
  background-color: #620000;
}

/* === CENTER MENU === */
.nav-center {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-item {
  position: relative;
  color: #000;
  font-size: 15px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: #620000;
}

/* Linie animată */
.nav-item::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  /* background-color: #620000; */
  transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

/* === DROPDOWN === */
.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 99;
}

.dropdown-content a {
  padding: 10px 14px;
  display: block;
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === MOBILE MENU TOGGLE === */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease;
}

.mobile-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: 0.3s ease;
  border-radius: 2px;
}

/* Hamburger în X */
body.nav-open .mobile-toggle .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .mobile-toggle .bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-toggle .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-center,
  .nav-right {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    flex-direction: column;
    width: 100%;
    background: #fff;
    margin-top: 10px;
  }

  body.nav-open .nav-center,
  body.nav-open .nav-right {
    display: flex;
    max-height: 500px;
    opacity: 1;
  }

  .phone-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}



.whatsapp-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.whatsapp-button {
  background-color: #25d366;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.whatsapp-button:hover {
  transform: scale(1.05);
}

.whatsapp-button img {
  width: 28px;
  height: 28px;
}

/* Textul care apare la hover */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #25d366;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.whatsapp-wrapper:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Pe mobil – nu afișăm textul */
@media (max-width: 768px) {
  .whatsapp-tooltip {
    display: none;
  }
}

