/* Style  */

/* font imports */
@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wght@100;200;300;400;500;600;700;800&display=swap');

/* colors */
:root {
  --font: "Anek Latin";
  --background-color: white;
  --primary-foreground: #000;
  --secondary-foreground: #808080;
}


* {
  box-sizing: border-box;
  font-family: var(--font);
}

ul {
  margin-left: 0;
  padding-left: 0;
}

li {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

/* reset link styling */
a {
  text-decoration: none;
  color: inherit;
}

body {
  margin: 0;
  padding: 0 20px;
  width: 100vw;
}

.body-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 50px;
  margin-bottom: 50px;
}

#header {
  height: fit-content;
  position: sticky;
  top: 0;
  left: 0;
  background: var(--background-color);
  z-index: 1;
  padding: 10px 30px;

  @media only screen and (max-width: 780px) {
    padding: 10px 0;
  }
}

#main-navigation {
  margin: 10px 0;
  padding: 0 5px;
  display: flex;
  flex-direction: row;
}

#main-navigation-logo {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#main-navigation-quicklinks {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0;
  margin: 0;  
}

.main-navigation-quicklink {
  color: var(--secondary-foreground);
  min-width: fit-content;
  padding: 5px 0;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.main-navigation-quicklink::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  transition: all 0.2s ease-in-out;
}

.main-navigation-quicklink:hover {
  color: var(--primary-foreground);
  cursor: pointer;
}

.main-navigation-quicklink:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 1px;
  background: var(--primary-foreground);
}
#header-buttons {
  display: flex;
  flex-direction: row;
  height: 40px;
  margin: 15px 0;
  margin-left: auto;
  padding: 0 0 0 10px;
  width: 310px;
  align-items: right;

  @media only screen and (max-width: 780px) {
    position: fixed;
    bottom: 20px;
    width: calc(100% - 40px);
    margin: 0 auto;
  }

}
.header-button {
  background: var(--background-color);
  line-height: 3;
  border: 1px solid var(--secondary-foreground);
  text-transform: capitalize;
  margin-right: 0;
  background: var(--background-color);
  transition: all 0.4s ease-in-out;
}

.header-button:last-child {
  margin-right: 0;
}

.header-button:hover {
  background-color: var(--primary-foreground);
  color: var(--background-color);
  cursor: pointer;
}

.header-button.action-button {
  position: relative;
  padding-left: 30px;
  padding-right: 20px;
}

.header-button.action-button::before {
  content: "\2196";
  position: absolute;
  left: 15px;
  top: 2px;
  height: 100%;
  aspect-ration: 1/1;
  transition: all 0.1s ease-out;
}

.header-button.action-button:hover::before {
  transform: translateY(-3px)
}

#menu-toggle {
  display: none;
}


.expanded-menu {
  display: none;
  background-color: #202020;
  position: fixed;
  top: 100px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 100px);
  gap: 40px;
  z-index: 1;
  padding: 20px;
  overflow: auto;
  color: var(--background-color);
  /* color: var(--primary-foreground); */
}

#menu-toggle:checked ~ .header {
  background-color: #202020;
}

#menu-toggle:checked ~ .expanded-menu {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}


.menu-category {
  border-top: 2px solid var(--background-color);
  display: flex;
  flex-direction: column;
  padding-top: 10px;

}
.menu-category-header {
  font-size: 0.8em;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: var(--secondary-foreground);
}

.menu-big-link {
  color: var(--background-color);
  font-size: 2em;
  font-weight: 400;
  line-height: 3;
  display: block;
  transition: all 0.2s ease-in-out;

}

.menu-big-link:hover {
  color: var(--secondary-foreground);
  cursor: pointer;
}

.news-items {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.news-item  a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease-in-out;
  color: var(--background-color);
  width: 50%;
}

.news-item > a:hover {
  cursor: pointer;
  transform: translateY(-3px);
}

.news-item-title {
  font-size: 0.8em;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.news-item-image {
  width: 200px;
  aspect-ratio: 16/10;
}

#logo {
  width: 50px;
  aspect-ratio: 1/1;
}

#main-title {
  font-size: clamp(20px, 10vw, 100px);
  font-weight: 400;
}

.main-image-container {
  /* min-width: 100$; */
  width: 100%
  aspect-ratio: 16/10;
  height: max-content;
  margin: 0 20px;
  position: relative;
  padding-bottom: 90px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--primary-foreground);
}

.main-image-container > .main-image {
  width: 100%;
  aspect-ratio: 16/10;
}

.body-title {
  font-size: clamp(1.5rem, 9vw, 3rem);
  font-weight: 400;
  width: clamp(200px, 40vw, 700px);
  margin-left: 10%;
}

.text-wrapper {
  display: flex;
  width: 100%;
  flex-direction: row;

  @media only screen and (max-width: 780px) {
    width: 50%;
    flex-direction: column;
    justify-self: right;
  }
}

.body-subtitle {
  font-size: clamp(1rem, 5vw, 2rem);
  font-weight: 400;
  width: clamp(200px, 40vw, 700px);
  margin-left: 10%;
}

.body-paragraph {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
  width: clamp(200px, 40vw, 700px);
  margin-left: 10%;
}


#products {
  display: grid;
  width: 100%;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(350px, 1fr));

  @media only screen and (max-width: 780px) {
    grid-template-columns: repeat(1, minmax(100%, 1fr));
  }
}

.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
  padding: 0 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.product-image {
  width: 100%;
  aspect-ratio: 18/9;
  object-fit: cover;
}

.product-title {
  text-transform: capitalize;
  font-weight: 300;
  font-size: 1.5rem;
}

.product-link {
  font-size: 1.2rem;
  font-weight: 300;
  width: 50%;
  padding-bottom: 20px;
  padding-right: 30px;
  align-self: flex-end;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.product-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--primary-foreground);
  bottom: 0;
  left: 0;
  transform: translateX(0);
  transition: all 0.2s ease-in-out;
}

.product-link::after {
  content: "\2192";
  position: absolute;
  top: 0;
  right: 10px;
  width: 20px;
  height: 10px;
  transition: all 0.2s ease-in-out;
}

.product-link:hover {
  color: var(--secondary-foreground);
}

.product-link:hover::before {
  transform: translateX(100%);
}

.product-link:hover::after {
  transform: translateX(30%);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 500;
}
.product-description {
  font-size: 1rem;
  font-weight: 400;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 500;
}

#big-heading {
  font-size: clamp(20px, 10vw, 100px);
  font-weight: 400;
}

.half-right {
  width: clamp(400px, 50%, 700px);
  margin-left: auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;



  @media only screen and (min-width: 960px) {
    display: flex;
    flex-direction: row;

  }
}
.half-right > .action-button {
  @media only screen and (min-width: 960px) {
    width: 40%;
    margin-left: 20px;
  }
}

.action-button {
  color: var(--primary-foreground);
  border: 1px solid var(--primary-foreground);
  line-height: 3;
  margin-right: 30px;
  transition: all 0.4s ease-in-out;
  width: 100%;
  
  @media only screen and (min-width: 960px) {
    width: 40%;
    margin-left: 20px;
  }
}

.action-button:hover {
  background-color: var(--primary-foreground);
  color: var(--background-color);
  cursor: pointer;
}

.action-button#non-header {
  position: relative;
  padding-left: 20px;
  padding-right: 30px;
  height: 50px;
}

.action-button#non-header::after {
  content: "\2192";
  position: absolute;
  right: 20%;
  top: 5px;
  aspect-ration: 1/1;
  transition: all 0.1s ease-out;

}
.action-button#non-header:hover::after {
  transform: translateX(3px)
}

footer {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-primary-links {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 3fr));
  gap: 20px;
  width: 100%;
}

.footer-subsection {
  border-top: 1px solid var(--primary-foreground);
  display: flex;
  flex-direction: row;
  padding: 0;
}

.footer-subsection-title {
  width: 50%;
  font-size: 1.2rem;
  font-weight: 200;
}

.footer-subsection-items {
  width: 50%;
  margin: 0;
  padding: 0;
  margin: 0;
  margin-left: auto;
  height: fit-content;
  margin-bottom: 30px;
}

.footer-subsection-items > li {
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.footer-subsection-items > li::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--primary-foreground);
  transform: translateX(0);
  transition: inherit;
}

.footer-subsection-items > li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--secondary-foreground);
  transform: translateX(-100%);
  transition: inherit;
}

.footer-subsection-items > li:hover {
  color: var(--secondary-foreground);
}

.footer-subsection-items > li:hover::before {
  transform: translateX(100%);
}

.footer-subsection-items > li:hover::after {
  transform: translateX(0);
}

.footer-subsection-item {
  line-height: 2.5;
  text-transform: capitalize;
}

.footer-other-links {
  width: 100%;
  display: flex;
  flex-direction: row;

  @media only screen and (max-width: 960px) {
    flex-direction: column;
    gap: 40px;
  }
}

.social-links {
  width: 50%;
  display: flex;
  flex-direction: column;

  @media only screen and (max-width: 960px) {
    width: 100%;
  }
}

.social-icon {
  width: 20px;
  aspect-ratio: 1/1;
  margin: 0 10px;;
}

.other-links {
  width: 50%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  @media only screen and (max-width: 960px) {
    width: 100%;
  }
}

.other-links-title {
  text-transform: uppercase;
  color: var(--secondary-foreground);
  font-size: 0.8rem;
  font-weight: 300;
}

.other-link {
  line-height: 1.2rem;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.other-link::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.other-link:hover {
  color: var(--secondary-foreground);
  padding-left: 1rem;
}

.other-link:hover::before {
  width: 2rem;
}
