/* Parent nav styles (unchanged) */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 84px;
  background-color: #a92c29;
box-shadow: 0 5px 10px rgba(0,0,0,.3);
 font-family: "franklin-gothic-atf";
 font-weight: 400;
  letter-spacing: .061em;
 font-variant-caps: all-small-caps;
}

.logo img {
  height: 55px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: .5rem;
}

.nav-menu li {
  position: relative;
    border-radius: 2px;
    
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  padding: 30px;
  display: block;

}
.nav-menu a:hover{
background-color: rgb(215,30,30);
box-shadow: 0 5px 0 0 white inset;

transition: all .3s ease;
}

/* Dropdown (now using opacity for fade) */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 100;
font-family: "franklin-gothic-atf";
  /* Fade effect */
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Hover state triggers fade in */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}
.dropdown a:hover{
background-color: lightgrey;
box-shadow: none;
}
.dropdown li{
background-color: #efefef;
}

.dropdown li a {
  padding: 0.5rem 2rem;
  white-space: nowrap;
  color: #333;
}
.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*/

.alt-menu{
display: flex;
flex-flow: row nowrap;
 align-items: center;
 position: fixed;
 height: 60px;
 padding: 10px;
 top: -65px;
 z-index: 100;
 background: #ffffff;
 width: 100%;
 transition: top .5s ease;
 box-shadow: 0 5px 5px rgba(0,0,0,.4);

}
.activate{
top: 0;
transition: top .5s ease;
}
.menu-info {
  display: flex;
  align-items: center;
 margin-left: auto;
  gap: 20px;
 padding: 0 20px;
}

.alt-menu .logo img {
  height: 40px;
 margin-left: 30px;
}
.alt-menu .logo{
padding: 10px;
}

/* Phone icon + number */
.phone-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-wrapper img {
  height: 20px;
}

.phone-wrapper a {
  font-family: "franklin-gothic-atf";
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
 border: 1px solid #333;
 padding: 5px 10px;
}

.social-icon{
width: 30px;
display: block;
 position: relative;
}
/* Optional future icon */
.social-icon img {
  height: 50px;
}

/* Mobile / Tablet Styles */
@media (max-width: 900px) {
  nav {
    padding: 0 1rem;
  }

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

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

  /* When menu is open, slide in */
  .nav-menu.open {
   right: 0;
  }

  /* 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: rgb(215,30,30);
  }

  /* 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:rgba(169, 44, 41,.8);
    color: white;
  }

}
@media screen and (max-width: 480px){
 .alt-menu .logo img {
  height: 40px;
 margin-left: 10px;
}
 .alt-menu a{
 font-size: smaller;
 }
 .phone-wrapper a{
 min-width: 120px;
  text-align: center;
 }
}

