/* ###########
   HEADER
################### */

.header {
  flex-wrap: wrap;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 2rem;
  background-color: #A8794C;
  height: 6rem;
  width: 100%;
  transition: height 0.8s ease;
  overflow: visible;
  overflow: visible;
}

.Logo {
  margin-top: 1vh;
  width: 8rem;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.logo-collapsed {
  transform: translateX(-1rem);
}

.Logo.logo-collapsed {
  transform: scale(0.8);
}


/* #######################
   NAVBAR
########################### */

#Information {
  max-height: 10rem;
  overflow-y: auto;
  font-size: 1.1vw;
}

.NavBarButtons,
.ProductsMenu {
  position: relative;
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.NavBarButtons {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.NavBarButtons li button,
.NavBarButtons button {
  margin-top: 6vh;
  background: none;
  color: white;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.NavBarButtons button:hover {
  color: #f5e1ab;
}

.NavBarButtons.fade-out {
  opacity: 0;
  visibility: hidden;
}


/* #######################
   DROPDOWN MENUS
######################## */

.NavBarButtons li {
  position: relative;
}

#ProductsMenu.menu,
#SocialMediasMenu.menu {
  z-index: 10;
  position: absolute;
  top: calc(100% + 2.5rem);
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  min-width: 180px;
  background: #F7F5F2;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}
#ProductsMenu.menu.open,
#SocialMediasMenu.menu.open {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}


#ProductsMenu a,
#SocialMediasMenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  text-decoration: none;
  color: #434240;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

#ProductsMenu a:hover,
#SocialMediasMenu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

#ProductsMenu img,
#SocialMediasMenu img {
  width: 1.5rem;
  height: auto;
  border: none;
}


/* #######################
   BACK / NEXT BUTTONS
######################## */

.OpenBarContent {
  max-width: 50rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.OpenBarContent .buttons-row {
  display: flex;
}

.OpenBarContent button {
  transition: transform 0.5s ease, color 0.3s ease;
  background: none;
  color: white;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.BackButton img,
.NextButton img {
  max-width: 2rem;
  height: auto;
}

.OpenBarContent img {
  max-height: auto;
}

.BackButton:hover,
.NextButton:hover {
  transform: scale(1.1);
}


/* #############################
   EXPANDED BAR CONTENT
############################## */

#BarExpandedContenet.open {
  display: flex;
  opacity: 1;
}

#BarExpandedContenet > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#BarExpandedContenet.open > * {
  opacity: 1;
  transform: translateY(0);
}

.BarExpandedContenet {
  display: none;
  transition: opacity 0.3s ease;
  white-space: pre-line;
  order: 99;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  color: white;
  opacity: 0;
  transform: translateX(0);
}

.BarExpandedContenet.visible {
  opacity: 1;
  pointer-events: auto;
}

.BarExpandedContenet.hidden {
  opacity: 0;
}


/* ##############################
   CONTENT ROW WITH IMAGE
################################### */

.content-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.text-content {
  flex: 1;
}

.BarInformationImg {
  flex-shrink: 0;
  margin-top: 4.5rem;
  width: 15rem;
  height: 15rem;
  background-color: #BA8C5F;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.BarInformationImg img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}


/* ############################
   SCROLL-TO-TOP BUTTON
################################# */

.UpButton {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.UpButton button {
  background: none;
  color: white;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.UpButton button:hover {
  color: #f5e1ab;
}

#UpButtonButton.visible {
  display: block;
  opacity: 1;
}

.UpButtonButton {
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
  position: absolute;
  bottom: 0;
  right: 5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}


/* #########################
   FOOTER
##############################*/

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  color: #434240;
  position: relative;
  border-top: 4px solid #A8794C;
  background-color: #e6e4e3;
}

.FooterLogo {
  width: 11rem;
  height: auto;
  margin-bottom: 2rem;
}

.footerSections {
  display: flex;
  gap: 6rem;
  justify-content: center;
}

.FooterSection {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.FooterSection ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.FooterSection ul li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.FooterSection img {
  max-width: 1.5rem;
  height: auto;
}

.FooterTitles {
  font-weight: bold;
  font-size: 1.2rem;
}

footer a {
  color: #BA8C5F;
  text-decoration: none;
}


/* ########################
   ANIMATIONS
############################ */

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-10px); opacity: 0; }
}

.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}


/* ###########################
   MOBILE 
############################### */

@media (max-width: 768px) {
  #Information {
    max-height: 8rem;
    overflow-y: auto;
    margin-bottom: -3;
    font-size: 2.5vw;
  }

  .OpenBarContent {
    margin-top: -3rem;
  }

  .BarExpandedContenet {
    justify-content: flex-start;
    padding-top: 0;
  }

  .OpenBarContent {
    gap: -3rem;
  }

  .BarInformationImg {
    margin-top: 0;
    width: 8rem;
    height: 8rem;
  }

  .header {
    align-items: center;
    height: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .NavBarButtons {
    display: flex;
    flex-direction: row;    
    justify-content: center;   
    align-items: center;   
    gap: 1.5rem;          
    width: 100%;
    margin: 1rem 0 0 0;       
    padding: 0;
    list-style: none;         
  }

  .NavBarButtons li {
    margin: 0;              
    padding: 0;
  }

  .NavBarButtons li button {
    margin: 0;                
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
  }

  .Logo {
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 8rem;
    margin-top: 1vh;
  }

  body {
    overflow-x: hidden;
  }

  .footerSections {
    flex-direction: column;
    gap: 2rem;
  }

  .content-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .BarInformationImg {
    margin-top: 1rem;
  }
}