:root{
  --navcolor: #f7f7f7;
  --navdarkercolor: #d7d7d7;
  --navlightercolor: #d7d7d7;
  --navtextcolor: #5f5b54;
  --text-light: #e4e4e4;
  --text-dark: #333;
--crazyhighlight: #7a2c2c;
}

nav{
  box-sizing: border-box;
  width: 100%;

}

.nav-desktop{
  height: 150px;
  width: 100%;
  background-color: var(--navcolor);
  position: relative;
  font-family:"Poppins";
  color: var(--textcolor);
  z-index: 100;
}

.nav-menu li{
  display: flex;
  flex-basis: 150px;
  flex-direction: row;
  justify-content: center;
  height: 100%;
}

li.exit-cont{
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: .5rem;
  align-items: stretch;
  height: 100%;
  justify-content: center;
  margin: 0 auto;
  padding-inline-start: 0;
 overflow: hidden;
}

.nav-menu a {
  text-decoration: none;
  color: var(--navtextcolor);
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  line-height: 1em;
  text-align: center;
  margin: 0 auto;
  justify-content: center;
}

.nav-menu a:hover{
  background-color: var(--navlightercolor);
  color: var(--textcolor);
  box-shadow: 0 5px 0 0 white inset;
  transition: all .3s ease;
}
.box-shadow{
box-shadow: 5px 5px 15px rgba(0,0,0,.2);
}

.main-nav a{
  flex-basis: 150px;
 flex-grow: 1;
 flex-shrink: 0;
  align-content: center;
  text-align: center;
}

.nav-right{
  position: absolute;
  right: 0;
  top: 0;
  width: 150px;
  display: flex;
  height: 100%;
  align-content: center;
  background-color: var(--crazyhighlight);
}

.nav-right a{
  text-align: center;
 color: white;
 text-shadow: 0 0 3px rgba(0,0,0,1);
transition: all .3s ease;
}
.nav-right a:hover{
 text-shadow: none;
 font-weight: bold;
}

.logo{
  flex-basis: 250px!important;
 max-width: 390px;
 flex-grow: .2;
  background-color: #f7f7f7;
}

.logo a{
  width: 100%;
  padding: 0;
  margin: 0;
}

.logo img{
  margin: 0 auto;
 filter:drop-shadow(-3px 3px 10px rgba(0,0,0,.5));
}
.nav-address{
display: block;
 background-color: #ccc;
 position: relative;
 width: 100%;
 margin: 0 auto;
 text-align: center;
 padding: 10px 0;
 z-index: 10;
}
.nav-address address{
font-family:"lexend deca";
 color: black;
}
/*announcment*/
.announcement {
  background-color: var(--text-dark);
  color: var(--text-light);
  text-align: center;
  font-family: "Poppins";
  font-weight: 700;
  font-size: clamp(.7em, 2.5vw, 1.6em);
  font-variant: all-small-caps;
  box-sizing: border-box;
  padding: 5px 0;
  position: relative;
  z-index: 100;
}

.phone{
  display: inline-block;
  color: rgb(255,255,255);
  transition: transform .3s ease;
}

.phone:hover{
  transform: scale(1.1);
  transition: transform .3s ease;
}

.hide {
  height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: var(--transition);
}

.announcement span,
.announcement button {
  color: var(--text-light);
}

.announcement button {
  position: absolute;
  cursor: pointer;
  height: 100%;
  width: 3em;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(255,255,255,.2);
  border: none;
  transition: all .3s ease;
}

.announcement button:hover{
  background-color: rgba(255,255,255,.3);
  transition: all .3s ease;
}

/* Dropdown (now using opacity for fade) */
.has-dropdown > a::after {
  content: "▾"; /* or use ▼, or a custom SVG via background */
  margin-left: 6px;
  font-size: 0.7em;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warmgrey);
  padding: 0 0; /* remove vertical padding here */
  list-style: none;
  z-index: 100;
  font-family: "Poppins";
  /* Initial collapsed state */
  max-height: 0;
  height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* <— distribute evenly */
  align-items: stretch; /* or center, depending on layout */
  transition: max-height 0.3s ease, opacity .3s ease, height .6s ease;
  visibility: hidden;
box-shadow: 0 10px 15px rgba(0,0,0,.4);
  width: 100%;
  opacity: 0;
}

/* Hover state triggers fade in */
.has-dropdown:hover .dropdown {
  max-height: 300px;
  height: 300px;/* adjust depending on expected content height */
  visibility: visible;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.5rem 0; /* apply padding here instead */
  transition: max-height 0.3s ease, opacity .3s ease, height .3s ease;
}

.has-dropdown a{
  font-weight: 600;
}

.dropdown a:hover{
  box-shadow: none;
  display: flex;
  align-items: center;
  font-weight: bold;
 background-color: white;
}

.dropdown li a {
  padding: 1.5rem 2rem;
  box-sizing: border-box;
  white-space: nowrap;
  color: #333;
  font-weight: 300;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/*hamburger menu integration*/
/* Hide hamburger button on desktop */
.menu-toggle {
  display: none;
  background: none;
  position: absolute;
  right: 0;
  height: 100%;
  border: none;
  font-size: 2rem;
  color: var(--navtextcolor);
  cursor: pointer;
  z-index: 500;
}

/*alt menu*/
.activate{
  top: 0;
  transition: top .5s ease;
}

/* Optional future icon */
.social-icon img {
  height: 50px;
}

/* Footer Styles */
footer {
  display: block;
  background-color: #191818;
  padding-bottom: 40px;
}

footer ul {
  list-style-type: none;
  padding-inline-start: 0;
  display: flex;
  font-family:"Poppins";
  margin-left: 50px;
 margin-top: 0;
}

footer ul li {
  margin: 20px 20px 20px 0;
}

footer a img {
  width: 40px;
}

footer p {
  font-size: small;
  font-family:"Poppins";
  margin-left: 50px;
  color: #e4dfda;
  margin-right: 30px;
}

footer a{
  color: #e4dfda;
}

.contact-button a:hover{
  background-color: transparent;
  box-shadow: none;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%; /* Start position */
  }
  50% {
    background-position: 100% 50%; /* Middle position */
  }
  100% {
    background-position: 0% 50%; /* End position, returning to start */
  }
}

.exit{
  display:none;
}

/* Mobile / Tablet Styles */
@media (max-width: 900px) {

 .nav-desktop{
  height: 90px;
 }
  /* Show hamburger toggle */
  .menu-toggle {
    display: block;
    z-index: 40;
    padding: 0 20px;
  }
.dropdown {
box-shadow: none;
}
  .exit-cont{
    height: 0!important;
    max-height: 0!important;
    display:flex!important;
  }

  .exit{
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    margin: 20px;
  }

  /* Slide-in menu styles */
  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: calc(-100vh - 150px);
    right: 0; /* hide offscreen left */
    width:100%;
    height: 100vh;
    background-color: var(--warmgrey);
    padding-top: 84px; /* height of navbar */
    gap: 0;
    transition: top 0.3s ease;
    z-index: 110;
    overflow-y: auto;
  }

  /* When menu is open, slide in */
  .nav-menu.open {
    top: 0;
    padding-top: 85px;
    transition: top 0.3s ease;
    justify-content: flex-start;
  }

  .logo{
    order: 1;
    flex-grow: 0;
   margin: 0 auto;
  }

  /* Adjust menu items */
  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
    flex-basis: 100px!important;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .nav-right{
    position: relative;
    width: 100%;
  }

  .nav-menu a {
    box-sizing: border-box;
    padding: 1rem 2rem;
    color: white;
  }

  .nav-menu a:hover {
    background-color: var(--extralightblue);
  }

  /* Dropdown inside mobile menu */
  .dropdown {
    position: static; /* no absolute */
    background: transparent;
    border: none;
    padding: 0;
    background-color: transparent;
    opacity: 1 !important; /* always visible on mobile */
    visibility: visible !important;
    transform: none !important;
  }

  .dropdown li a {
    padding-left: 3rem;
    background-color: var(--textblue);
    color: white;
  }

  .has-dropdown{
    display: flex;
    flex-direction: column;
    flex-basis: 100px;
  }

  .nav-right{
    flex-basis: 100px;
    flex-grow: 0;
  }
}

@media screen and (max-width: 480px){
  .alt-menu .logo img {
    height: 40px;
    margin-left: 10px;
  }

  .alt-menu a{
    font-size: smaller;
  }

  .announcement {
    font-size: 0.8em;
  }

  .announcement button {
    right: 15px;
  }

}
