/* =====================================================
   MENIU PRINCIPAL
===================================================== */

.main-menu {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-top: 1px solid #ece7df;
  border-bottom: 1px solid #ece7df;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.menu-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.menu-list,
.mega-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 0;
  color: #2d3748;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  color: #b15b2c;
}

.dropdown-arrow {
  display: inline-block;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

/* =====================================================
   MEGA-MENU
===================================================== */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(960px, calc(100vw - 32px));
  padding-top: 12px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

.mega-menu-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #ece7df;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.mega-menu-column {
  min-width: 0;
}

.mega-menu-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  color: #1a2332;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  border-bottom: 2px solid #e5b33a;
}

.mega-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-menu-link {
  display: block;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.mega-menu-link:hover,
.mega-menu-link:focus-visible {
  color: #b15b2c;
  text-decoration: underline;
  transform: translateX(3px);
}

/* =====================================================
   ACCESIBILITATE
===================================================== */

.menu-link:focus-visible,
.mega-menu-link:focus-visible {
  outline: 3px solid rgba(229, 179, 58, 0.7);
  outline-offset: 3px;
}
