@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  font-family: "Lato", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

p {
  line-height: 1.5;
  font-size: 16px;
  padding: 12px 24px;
}

li {
  list-style-type: none;
}

.container {
  padding: 50px 0;
}

button {
  background-color: black;
  color: white;
  padding: 8px 16px;
  font-size: 24px;
  cursor: pointer;
  border: none;
}

/* ===== Navigation Bar ===== */

nav {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* important for mobile menu positioning */
  z-index: 10;
}

img {
  width: 100%;
}

.nav__link--list {
  display: flex;
  align-items: center;
}

.nav__link--anchor {
  margin: 0 12px;
  color: #242424;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.nav__link--anchor:hover {
  text-decoration: underline;
}

.nav__link--anchor-primary {
  background-color: black;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 300ms ease;
}

.nav__link--anchor-primary:hover {
  background-color: #232424;
}

.westuniontowing__logo {
  width: 160px;
}

/* ===== Header ===== */

header {
  min-height: 50vh;
  height: auto;
}

.header__container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header__discription {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 50px;
  color: black;
  margin-bottom: 24px;
  text-align: center;
}

h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 32px;
}

button {
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.btn {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 12px 24px;
  font-size: 20px;
  border-radius: 10px;
  border: none;
  margin-bottom: 35px;
  text-decoration: none;
}

.phone__link {
  color: white;
}

.header__img-wrapper {
  padding: 10px;
  border-style: groove;
  z-index: 1;
}

#landing {
  position: relative;
  z-index: 1;
  padding-bottom: 30px;
}

main {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Shared section padding (no fixed heights!) */
#About,
#services,
#Findus,
#contact,
footer {
  padding: 48px 20px;
}

/* ===== About us ===== */

#About {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  /* give space for wave */
}

#About::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: url("./assets/wave.svg") no-repeat center top;
  background-size: cover;
  transform: rotate(180deg);
  z-index: 0;
  pointer-events: none;
}

.about__info--container {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* on top of wave */
}

.about__westuniontowing {
  font-size: 32px;
  color: black;
  text-align: left;
  margin-left: 20px;
}

.about__info--para {
  font-size: 25px;
}

.about__text--image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.about__image {
  width: 40%;
  max-width: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.about__text {
  flex: 1 1 100%;
}

.media__title {
  font-size: 24px;
  display: flex;
  justify-content: center;
  width: 100%;
}



/* ===== Services ===== */

#services {
  /* no fixed height */
}

.Service__info--container {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
}

.Service__title {
  text-align: left;
  font-size: 32px;
  color: black;
}

.Service__title--icon {
  font-size: 24px;
  text-decoration: none;
  color: black;
}

.Service__list--wrapper {
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.Service__list {
  width: 250px;
  font-size: 24px;
  padding: 12px 0;
}

.Service__list--icon {
  font-size: 8px;
  color: black;
  padding: 0 10px;
}

/* ===== Find Us ===== */

#Findus {
  color: black;
  position: relative;
}

.container__findus {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
}

.findus__title {
  text-align: left;
  font-size: 32px;
}

.findus_para {
  display: flex;
  align-items: center;
  font-size: 24px;
}

.findus_info--list {
  padding: 0 12px;
}

.findus_info {
  display: flex;
  flex-wrap: wrap;
  font-size: 24px;
  padding: 12px 8px;
  align-items: center;
}

.findus_info--icon {
  font-size: 24px;
  color: black;
  padding: 0 5px;
}

.findus--links {
  color: black;
  cursor: pointer;
  text-decoration: underline;
}

.map-container {
  align-items: center;
  width: 90%;
  max-width: 800px;
  margin: 12px auto;
  border-radius: 20px;
  height: 400px;
  overflow: hidden;
}

/* ===== Contact us ===== */

#contact {
  color: black;
  font-size: 24px;
}

.container__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact__title {
  font-size: 32px;
  margin-bottom: 8px;
}

.contact__para {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

input,
textarea {
  margin-bottom: 24px;
  font-size: 20px;
  padding: 6px 12px;
}

form button {
  background-color: black;
  color: white;
  font-size: 20px;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #333;
}

/* ===== Footer ===== */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  padding: 0 16px;
  color: black;
  font-size: 24px;
  text-decoration: none;
}

/* ===== Hamburger button ===== */

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: black;
  border-radius: 2px;
}

/* ===== Mobile Navigation ===== */

@media (max-width: 768px) {
  .nav__link--list {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: white;
    position: absolute;
    top: 100%;
    /* directly under nav */
    right: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }

  .nav__link--list.show {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ===== Smaller Devices ===== */

@media (max-width: 480px) {

  /* Header / Landing */
  header {
    min-height: auto;
    padding: 20px 10px;
  }

  h1 {
    font-size: 28px;
    text-align: center;
  }

  h2 {
    font-size: 20px;
    text-align: center;
  }

  .header__discription {
    gap: 15px;
  }

  .header__img-wrapper img {
    width: 100%;
    height: auto;
  }

  /* About Section */
  #About {
    padding: 100px 10px 40px 10px;
  }

  .about__info--container {
    flex-direction: column;
    gap: 15px;
  }

  .about__westuniontowing {
    font-size: 24px;
    text-align: center;
    margin-left: 0;
  }

  .about__info--para {
    font-size: 16px;
    padding: 10px;
    text-align: center;
  }

  /* Services Section */
  #services {
    padding: 20px 10px;
  }

  .Service__list--wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .Service__list {
    font-size: 18px;
    width: 100%;
  }

  /* Find Us Section */
  #Findus {
    padding: 20px 10px;
  }

  .container__findus {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
  }

  .findus__title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
  }

  .findus_para {
    font-size: 18px;
    text-align: center;
    margin-bottom: 25px;
  }

  .findus_info {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .findus_info--icon,
  .findus--links {
    width: auto;
    display: block;
    text-align: center;
  }

  .map-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
  }

  /* Contact Section */
  #contact {
    padding: 20px 10px;
    font-size: 18px;
  }

  .container__contact {
    width: 100%;
    padding: 0 10px;
  }

  .contact__para {
    font-size: 20px;
  }

  form input,
  form textarea,
  form button {
    font-size: 16px;
  }

  /* Footer */
  footer {
    padding: 20px 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
  }

  .footer-link {
    font-size: 18px;
    text-align: center;
  }
}