* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  transition: overflow 0.3s ease;
}
html {
  scroll-behavior: smooth;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/img/scrap\ metal\ yard.webp");
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.hero-text {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  color: #ffffff;
  position: relative;
  top: 30%;
}
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1;
  transition: top 0.3s;
}
.nav-list {
  display: flex; /* Align nav items in a row */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1; /* Make nav items take the remaining space */
  justify-content: flex-end; /* Evenly space the nav items */
}
/* Hamburger icon styling */
.hamburger {
  display: none; /* Hide hamburger by default */
  flex-direction: column;
  cursor: pointer;
  z-index: 10; /* Ensure hamburger is above nav links */
}

/* Bars of the hamburger */
.bar,
.bar2,
.bar3 {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

.navbar {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.FAQTITLE {
  margin: 80px 0px;
}
.navbar.scrolled-navbar {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(30px);
  padding: 25px;
}
.map {
  padding: 60px 1px;
}
.nav-list li {
  display: inline;
  list-style: none;
  margin: 0px 15px;
}
.nav-link {
  color: #ffffff;
  transition: color 0.3s ease;
}
.nav-link.scrolled {
  color: #ff8c00;
}
.nav-list a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

.nav-list a:hover {
  color: #ff8c00;
  transition: 0.4s;
}

.grid {
  align-items: center;
}

a[href^="tel:"]:hover {
  color: #ff8c00;
}
footer a {
  color: #1d3557;
  font-weight: bold;
}

/* Make sure transition is smooth */
#content-1,
#content-2,
#content-3,
#content-4 {
  transition: max-height 0.3s ease-in-out;
}
.faq {
  margin: 0px 180px;
}

/* SMALL DEVICE SCREEN */
@media screen and (min-width: 300px) and (max-width: 500px) {
  .nav-list {
    display: none; /* Hide the nav items by default on small screens */
    width: 100%;
    flex-direction: column; /* Stack nav items vertically */
    background-color: #1d3557;
    position: absolute;
    top: 60px; /* Adjust this value if needed */
    left: 0;
    z-index: 1;
    padding: 10px 0;
  }
  nav {
    height: 60px;
  }

  .nav-list.active {
    display: flex; /* Show nav items when "active" class is added */
  }
  .nav-list a {
    color: #e5e5e5;
  }
  .nav-list li {
    text-align: center; /* Center the items when stacked vertically */
    margin: 15px 0;
  }

  .hamburger {
    display: flex; /* Show the hamburger on small screens */
    position: absolute; /* Position the hamburger absolutely */
    right: 15px; /* Align it to the right */
    top: 50%;
    transform: translateY(-50%); /* Vertically center the hamburger */
  }

  /* Hamburger icon open state (cross icon) */
  .hamburger.open .bar {
    transform: translate(0, 11px) rotate(-45deg);
    position: relative;
  }

  .hamburger.open .bar2 {
    opacity: 0;
  }

  .hamburger.open .bar3 {
    transform: translate(0, -11px) rotate(45deg);
    position: relative;
  }

  /* Adjust hero text */
  .hero-text h1 {
    font-size: 24px;
    line-height: 1.4;
    color: #ff8c00;
    margin: 0px 10px;
  }

  #responsive-text {
    font-size: 14px; /* Smaller font size for smaller screens */
    line-height: 1.5; /* Adjust line height for better readability */
    margin-top: 20px; /* Reduce top margin */
    padding-left: 25px; /* Adjust padding if necessary */
    padding-right: 25px; /* Adjust padding if necessary */
  }

  .hero-description p {
    font-size: 15px;
    margin: 15px 20px;
  }

  /* Adjust hero image */
  .section img {
    width: 70%;
    height: auto;
  }

  /* Align grid images to center */
  .grid-align img {
    grid-column-start: 1;
  }
  .grid-first {
    display: flex !important;
    flex-direction: column-reverse;
  }
  .grid-last {
    display: flex !important;
    flex-direction: column-reverse;
  }
  /* Reverse flex direction for smaller devices */
  .flex {
    flex-direction: column-reverse;
    text-align: center;
  }

  /* Buttons and CTA */
  .cta-button button {
    font-size: 16px;
    padding: 10px;
    position: relative;
    top: 40px;
  }

  /* Adjust FAQ layout */

  .faq {
    margin: 0px 10px;
  }
}

/* ----------------------END*/

/* Tablet screen */
@media screen and (min-width: 600px) and (max-width: 900px) {
  /* Hero text adjustments */
  .hero-text h1 {
    font-size: 32px;
    text-align: center;
  }
  #responsive-text {
    font-size: 14px; /* Smaller font size for smaller screens */
    line-height: 1.5; /* Adjust line height for better readability */
    margin-top: 20px; /* Reduce top margin */
    padding-left: 25px; /* Adjust padding if necessary */
    padding-right: 25px; /* Adjust padding if necessary */
  }

  .hero-description p {
    font-size: 18px;
    margin: 15px 0;
  }
  .grid-first {
    display: flex !important;
    flex-direction: column-reverse;
  }
  .grid-last {
    display: flex !important;
    flex-direction: column-reverse;
  }
  .faq {
    margin: 10px 40px;
  }
  /* Align images better */
  .section img {
    width: 60%;
    padding-top: 0;
    height: auto;
    margin: 0 auto;
  }
  .section img.grid-img2 {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  /* Button styling */
  .cta-button button {
    font-size: 18px;
    padding: 12px 20px;
  }

  /* Map adjustments */
  .map iframe {
    width: 90%;
    margin: 0 auto;
  }
}

/* ------END --------*/

/* DEVICE */
@media screen and (min-width: 900px) and (max-width: 1100px) {
  /* Adjust hero text for smaller desktops */
  .hero-text h1 {
    font-size: 40px;
    text-align: center;
  }

  .hero-description p {
    font-size: 20px;
  }

  /* Align services section for better readability */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .text-center {
    padding: 20px;
  }

  /* FAQ layout adjustments */
  .faq div {
    font-size: 18px;
  }
  .map iframe {
    width: 100%;
  }
  /* Footer spacing */
  footer {
    padding: 20px;
  }
}

/* END */
