/* Menu default state - hidden */
#site-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Menu open state */
[data-menu-open='true'] {
  overflow: hidden;
}
[data-menu-open='true'] #site-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
[data-menu-open='true'] #site-header {
  background-color: #19332f;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-menu-open='true'] .menu-icon-open {
  opacity: 0;
  transform: rotate(-90deg);
}
[data-menu-open='true'] .menu-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* Header scroll states */
#site-header {
  transition: all 0.3s ease-in-out;
}

.header-scrolled {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.header-hidden {
  transform: translateY(-100%) !important;
}

/* Ensure group-hover works properly */
.menu-arrow {
  opacity: 0;
  transform: translateX(-1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu-link:hover .menu-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Menu item animations - start hidden, animate on menu open */
#site-menu .menu-item {
  opacity: 0;
  transform: translateX(-20px);
}

/* Adjust menu container spacing */
#site-menu > div {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Better vertical alignment for menu */
#site-menu .flex-1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  padding-top: 10rem;
  padding-bottom: 3rem;
}

/* Adjust primary menu items spacing */
#site-menu nav > div:first-child {
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  #site-menu nav > div:first-child {
    margin-bottom: 4rem;
  }
}

/* Animate items when menu is open */
[data-menu-open='true'] #site-menu .menu-item {
  animation: slideInFromLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Primary items (first 3) */
[data-menu-open='true'] #site-menu .menu-item:nth-child(1) {
  animation-delay: 0.1s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(2) {
  animation-delay: 0.2s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(3) {
  animation-delay: 0.3s;
}

/* Secondary items in second group */
[data-menu-open='true'] #site-menu .menu-item:nth-child(4) {
  animation-delay: 0.3s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(5) {
  animation-delay: 0.35s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(6) {
  animation-delay: 0.4s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(7) {
  animation-delay: 0.45s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(8) {
  animation-delay: 0.5s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(9) {
  animation-delay: 0.55s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(10) {
  animation-delay: 0.6s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(11) {
  animation-delay: 0.65s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(12) {
  animation-delay: 0.7s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(13) {
  animation-delay: 0.75s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(14) {
  animation-delay: 0.8s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(15) {
  animation-delay: 0.85s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(16) {
  animation-delay: 0.9s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(17) {
  animation-delay: 0.95s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(18) {
  animation-delay: 1s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(19) {
  animation-delay: 1.05s;
}
[data-menu-open='true'] #site-menu .menu-item:nth-child(20) {
  animation-delay: 1.1s;
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Contact section animation */
#site-menu .menu-contact {
  opacity: 0;
}

[data-menu-open='true'] #site-menu .menu-contact {
  animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Contact section text size adjustments */
#site-menu .menu-contact {
  padding-bottom: 3rem;
}

#site-menu .menu-contact h4 {
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* Cookie banner style adjustments */
#CookieDeclaration,
#CookieDeclaration > div {
  color: #000000 !important;
}
#CookieConsent .cookie-popup {
  color: #000000 !important;
}
#CookieConsent .cookie-popup > div {
  color: #000000 !important;
}

/* Form alert messages - Success (green) and Error (red) styles */
#contact-message-alert.bg-green-900\/20,
#newsletter-message-alert.bg-green-900\/20 {
  background-color: rgba(20, 83, 45, 0.2) !important;
  border-color: #5CDF96 !important;
  color: #5CDF96 !important;
}

#contact-message-alert.bg-red-900\/20,
#newsletter-message-alert.bg-red-900\/20 {
  background-color: rgba(127, 29, 29, 0.2) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

#contact-message-alert.text-green-400,
#newsletter-message-alert.text-green-400 {
  color: #5CDF96 !important;
}

#contact-message-alert.text-red-400,
#newsletter-message-alert.text-red-400 {
  color: #fca5a5 !important;
}

#contact-message-alert.border-green-500,
#newsletter-message-alert.border-green-500 {
  border-color: #5CDF96 !important;
}

#contact-message-alert.border-red-500,
#newsletter-message-alert.border-red-500 {
  border-color: #ef4444 !important;
}

/* Footer description text size */
.footer-description p {
  font-size: 12px;
}
