/**
 * import fonts
 */

@import url("https://fonts.googleapis.com/css2?family=Alata&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

/**
 * define global variables 
 */

:root {
  /* ### Colors */
  --Grey-200: hsl(0, 0.4%, 50.8%);
  --Black: hsl(0, 0%, 0%);
  --White: hsl(0, 0%, 100%);

  /* ### Fonts */
  --Josefin-Sans: "Josefin Sans", sans-serif;
  --Alata: "Alata", sans-serif;

  /* --px: 165px padding right and left */
  /* --mb: 180 margin bottom */

  /* --fs h1 4.7 em */
  /* --fs h2 3.2 em */
  /* --fs h3 2.1 em */
  /* --fs regular 4.7 em */
  /* --fw 300 */
}

/**
 * reset all default styling
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--Alata);
  font-weight: 400;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  display: inline-block;
  color: var(--White);
}

h1,
h2,
h3 {
  font-family: var(--Josefin-Sans);
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main_container {
  max-width: 1440px;
  margin: auto;
  background: var(--White);
}

header {
  background: url(./images/desktop/image-hero.jpg) no-repeat center;
  background-size: cover;
  background-blend-mode: multiply;
  padding: 65px 165px;
  margin-bottom: 180px;
}

.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 120px;
}

nav ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(min-content, min-content));
  gap: 32px;
}

nav ul li {
  position: relative;
}

nav ul li::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: white;
}

nav ul li:hover::after {
  width: 25px;
}

.banner h1 {
  max-width: 650px;
  padding: 20px;
  margin-bottom: 80px;
  border-style: solid;
  color: white;
  font-size: 4.7em;
}

.about {
  position: relative;
  padding: 0px 165px;
  margin-bottom: 180px;
}

.about .img-box img {
  display: block;
}

.about .content-box {
  position: absolute;
  top: 180px;
  left: 50%;
  padding: 95px;
  max-width: 640px;
  background: white;
}

.about .content-box h2 {
  font-size: 3.2em;
  margin-bottom: 30px;
}

.about .content-box p {
  color: var(--Grey-200);
}

.product {
  position: relative;
  padding: 0px 165px;
  margin-bottom: 180px;
}

.product h2 {
  font-size: 3.2em;
  margin-bottom: 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  place-content: center;
  gap: 30px;
}

.product-card {
  position: relative;
  height: 450px;
  cursor: pointer;
}

.product-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, #000b);
}

.product-card:hover::after {
  background: linear-gradient(180deg, #fffa 40%, #555a);
}

.product-card h3 {
  position: absolute;
  bottom: 35px;
  left: 40px;
  font-size: 2.1em;
  color: white;
  z-index: 5;
}

.product-card:hover h3 {
  color: black;
}

.btn-primary {
  position: absolute;
  right: 165px;
  top: 5px;
  padding: 8px 35px;
  letter-spacing: 5px;
  border: 1px solid;
  color: black;
}

.btn-primary:hover {
  color: white;
  background: black;
}

footer {
  background: black;
  padding: 45px 165px;
  display: flex;
  justify-content: space-between;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand img {
  max-width: 140px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: right;
  align-items: right;
}

.social-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: right;
}

.social-links a {
  display: flex;
  margin: 10px;
}

.footer-right p {
  color: var(--Grey-200);
}

.mobile-navbar-brand {
  display: none;
  cursor: pointer;
}

.nav-toggler {
  display: none;
  cursor: pointer;
}

/* media queries */

@media screen and (max-width: 1200px) {
  .about .img-box {
    margin-bottom: 80px;
  }

  .about .img-box img {
    width: 100%;
  }
  .about .content-box {
    position: static;
    max-width: 100%;
    text-align: center;
    padding: 0px 95px;
  }
}

@media screen and (max-width: 992px) {
  .mobile-navbar-brand {
    display: flex;
    position: absolute;
    right: 25px;
    left: 25px;
    top: 40px;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-navbar-brand img {
    max-width: 145px;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: black;
    padding: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 10;
    transition: 0.25s;
  }

  .navbar-nav.active {
    left: 0;
    transition: 0.25s;
  }

  .navbar-nav ul {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .navbar-nav ul li a {
    font-family: var(--Josefin-Sans);
    font-size: 25px;
    font-weight: 300;
    text-transform: uppercase;
  }

  .navbar-nav ul li::after {
    display: none;
  }

  .nav-toggler {
    display: block;
  }

  .banner h1 {
    margin-bottom: 80px;
    border-style: solid;
    color: white;
    font-size: 3em;
  }

  .product h2 {
    text-align: center;
  }

  .btn-primary {
    position: static;
    display: block;
    width: max-content;
    margin: auto;
    margin-top: 80px;
  }

  footer {
    flex-direction: column;
  }

  .footer-left {
    margin-bottom: 30px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-nav ul {
    place-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
  }
}
