@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  font-family: "Poppins";
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  text-align: center;
}

.container {
  width: 100%;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Serif Display";
}

section {
  min-height: 100vh; /* was height: 100vh */
}

/* Navbar */

nav {
  padding: 16px 64px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 15vh;
  background-color: #0f3252;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo__img {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: top;
  width: 150px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  min-width: 55%;
  transition: all 0.3s ease;
  list-style: none;
}

.nav-link {
  color: #f6c236;
  font-size: 18px;
  font-weight: 500;
  margin-right: 8px;
}

/* hover */

.nav-link:hover {
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* header */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: baseline;
  width: 100%;
  min-height: 85vh; /* was height: 85vh */
  height: auto;
  background-color: #a9c3de;
  background-image: url(./assets/light\ tower\ coastal.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 24px 16px;
}

.header__text-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-center;
  align-items: center;
}

.header__title {
  font-size: 60px;
  color: #0f3252;
}

.header__subtitle {
  font-size: 28px;
  position: absolute;
  bottom: 50px;
  color: #f6c236;
}

.header__btns {
  position: absolute;
  top: 40%;
  height: 75px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;

}

.header__desc {
  position: absolute;
  top: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__desc--text {
  color: #fff;
  font-family: Poppins;
  font-weight: 500;
  text-align: center;
  background-color: #0f3252;
  border-radius: 15px;
  padding: 24px;
}

.header__desc--title {
  color: #0f3252;
  padding-bottom: 8px;
}

.btn {
  font-family: "DM Serif Display";
  font-weight: 300;
  font-size: 45px;
  color: #f6c236;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 16px;
  background-color: #0f3252;
}

.btn:hover {
  color: #fff;
  cursor: pointer;
}

.header__picks {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  translate: 0 -40%;
  gap: 24px;
  margin-top: 25vh

}

.header__pick {
  background-image: url(./assets/lifesaver.png);
  position: relative;
  height: clamp(220px, 30vw, 350px); /* responsive, but same look on desktop */
  width: clamp(220px, 30vw, 350px);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__pick:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: all 0.3s ease;
  background-image: url(./assets/lifesaver\ white.png);
}

.pick__img {
  scale: 1;
}

.pick__title {
  font-size: 36px;
  font-family: Poppins;
  color: #0f3252;
  text-align: center;
}

/* footer */

footer {
  width: 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  padding: 4px;
  background-color: #0f3252;
  position: relative;
}

.footer__links {
  display: flex;
  flex-direction: row;
  list-style: none;
}

.footer__link {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.footer__info {
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  /* margin-left: 32px; */
  /* position: fixed; */
  bottom: 0px;
  right: 0px;
  background-color: #0f3252;
  padding: 8px;
}

.footer__info p {
  text-align: left;
}

/* ----------------------------- */
/* 📱 RESPONSIVE ADJUSTMENTS    */
/* ----------------------------- */

@media (max-width: 900px) {
  nav {
    padding: 12px 24px;
    height: auto;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .nav-link {
    margin-right: 8px;
  }

  .header__title {
    font-size: 44px;
  }

  .header__subtitle {
    font-size: 20px;
    bottom: 24px;
  }

  .header__picks {
    translate: 0;
    flex-wrap: wrap;
    margin-bottom: 100px;
    margin-top: 0px;
  }

  .header__pick {
    height: clamp(200px, 40vw, 280px);
    width: clamp(200px, 40vw, 280px);
  }

  .pick__title {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  .logo__img {
    width: 120px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  header {
    padding: 16px 10px;
    background-position: center;
  }

  .header__title {
    font-size: 34px;
  }


  .header__picks {
    flex-direction: column;
    gap: 20px;
  }

  .header__pick {
    height: 200px;
    width: 200px;
  }

  footer {
    /* position: static; */
  }

  .footer__info {
    font-size: 9px;
    padding: 6px;
  }
}


/* =============================== */
/* 📱 HAMBURGER MENU */
/* =============================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #f6c236;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* When screen is narrow */
@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    flex-direction: column;
    width: 100%;
    background-color: #0f3252;
    padding: 16px 0;
    gap: 20px;
    display: none; /* hidden by default */
  }

  .nav-links.show {
    display: flex;
  }

  nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =============================== */
/* 📱 FIXED RESPONSIVE NAV MENU */
/* =============================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 2001; /* stays visible */
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #f6c236;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 800px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Override your desktop nav-links style */
  .nav-links {
    position: absolute;
    top: 70px;              /* BELOW NAV BAR */
    left: 0;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 20px;
    background-color: #0f3252;
    padding: 20px 0;
    display: none;           /* hidden until opened */
    z-index: 2000;           /* ABOVE the header image */
  }

  /* When menu is open */
  .nav-links.show {
    display: flex !important;
  }

  /* Make nav bar itself shorter */
  nav {
    height: auto !important;
    padding: 16px 24px !important;
    position: relative;
    z-index: 2001;
  }

  /* Make sure links are clickable */
  .nav-link {
    font-size: 20px !important;
    padding: 10px 0;
  }
}

/* HAMBURGER ANIMATION */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(13px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-13px);
}
