/* Parent nav styles (unchanged) */
.nav-desktop {
  display: flex;
  justify-content: space-between;
  height: 84px;
  background-color: var(--elementblue);
 font-family: "Poppins";
 font-weight: 500;
  letter-spacing: .061em;
 font-variant-caps: all-small-caps;
filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.1));
position: relative;
 z-index: 100;
}

.logo{
height: 100px;
box-sizing: border-box;
padding: 0 20px;
 margin-right: 20px;
position: relative;
display: flex;
 border-radius: 0 0 20px 0;
 background: var(--elementblue);
 align-items: center;
 flex-shrink: 0;
}
.drippy{
 margin-right: -25px;
 margin-left: -10px;
 filter: none!important;
}
.logo img {
  height: 70px;
  filter: drop-shadow(0 0 5px rgb(255,255,0));
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: .3rem;
 align-items: stretch;
}

.nav-menu li {
  position: relative;
    border-radius: 2px;
 display: flex;
   align-items: stretch;  
 flex-shrink: .3;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
 font-weight: 800;
  padding: 15px;
 display: flex;
align-items: center;
line-height: 1em;
 transition: all .3s ease;
}
.nav-menu a:hover{
background-color: #57d7ff;
box-shadow: 0 5px 0 0 white inset;
transition: all .3s ease;
 color: var(--extradarkblue);
}

/*announcment*/
.announcement {
  background-color: var(--text-dark);
  color: var(--text-light);
  text-align: var(--center-text);
     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: var(--highlightcolor);
    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;
  right: 4rem;
}


/* 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(--elementblue);
  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;
  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;
}


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

}

.generac-symbol{
 display: inline-block;
vertical-align: middle;
 margin-left: 5px;
}
.generac-symbol img{
width: 20px;
}
/*hamburger menu integration*/
/* Hide hamburger button on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/*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;
  margin-left: 50px;
}

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

footer a img {
  width: 40px;
}

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

.contact-button{
 width: 80%;
 min-width: 120px;
 height: 50%;
 align-self: center;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 40px 0 20px;
 background: linear-gradient(to right, #48CEFF, #347EB7);
 background-size: 200%;
 border-radius: 5px;
 border: 2px solid #48CEFF;
 filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.1));
  transition: all .2s ease;
animation: gradientAnimation 5s ease infinite;
}
.contact-button:hover{
   filter: drop-shadow(8px 8px 1px rgba(0, 0, 0, 0.051));
 transform: scale(1.05) translateY(-2px);
 transition: all .3s ease;
}
.contact-button a{
 display: flex; /* key change */
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
  text-decoration: none; /* optional but often wanted for buttons */
line-height: normal;
 position: relative;
 top: -.5px;
}

.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 */
      }
    }
/* Mobile / Tablet Styles */
@media (max-width: 900px) {

  /* Show hamburger toggle */
  .menu-toggle {
    display: block;
    z-index: 112;
   padding: 0 20px;
  }

  /* Slide-in menu styles */
  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: calc(-100vh - 50px);
    right: 0; /* hide offscreen left */
    width:100%;
    height: 100vh;
    background-color: var(--hoverblue);
    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;
   transition: top 0.3s ease;
  }

  /* Adjust menu items */
  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
  }

  .nav-menu a {
    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;
 }

}
@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;
  }

}

