@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #dc775e;
  --primary-color-dark: #bb654f;
  --text-dark: #171717;
  --text-light: #525252;
  --extra-light: #f5f5f5;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 3rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}

.section__description {
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  background: var(--primary-color);
  outline: none;
  border: none;
  cursor: pointer;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.btn:hover {
  background: var(--primary-color-dark);
  box-shadow: 5px 5xp 20px rgba(0, 0, 0, 0.2);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.nav__bar {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--extra-light);
}

.nav__bar a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-color: var(--text-light);
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
  transition: 0.3s;
}

.nav__links a:hover {
  color: var(--primary-color);
}

.header__container {
  padding-top: 6rem;
  display: grid;
  gap: 2rem;
  text-align: center;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 2rem;
}

.header__content h1 span {
  font-size: 2.5rem;
  line-height: 3rem;
  display: block;
}

.header__image {
  max-width: 100%;
  margin: auto;
}

.header__image img {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: auto;
  opacity: 0.85;
  mix-blend-mode: luminosity;
  border-radius: 8px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at left center, transparent 0%, black 40%, black 100%);
  mask-image: radial-gradient(ellipse 70% 80% at left center, transparent 0%, black 40%, black 100%);
}

@keyframes header {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-20px);
  }
  75% {
    transform: translateY(20px);
  }
}

.about {
  background-color: var(--extra-light);
}

.about__container {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.about__image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: auto;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.product__contaainer .section__description {
  max-width: 600px;
}

.product__grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem 1rem;
}

.product__card {
  transition: transform 0.3s ease;
}

.product__card:hover {
  transform: translateY(-5px);
}

.product__card__image {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 8px;
}

.product__card__image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.product__card:hover .product__card__image img {
  transform: scale(1.05);
}

.product__card__icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.product__card__icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.product__card:hover .product__card__icon {
  background: var(--primary-color-dark);
  transform: scale(1.1) rotate(5deg);
}

.product__card h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.product__card p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.product__card a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: 0.3s;
}

.product__card a:hover {
  color: var(--primary-color-dark);
}

.gallery__container {
  display: grid;
  gap: 1rem;
  grid-auto-rows: 300px;
}

.gallery__image {
  position: relative;
  isolation: isolate;
}

.gallery__image img {
  height: 100%;
  object-fit: cover;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery__image__details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  cursor: pointer;
  transition: 0.3s;
}

.gallery__image__details h4 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
}

.gallery__image__details div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery__image__details .btn {
  padding-inline: 1rem;
}

.gallery__image:hover .gallery__image__details {
  opacity: 1;
}

.article {
  background-color: var(--extra-light);
}

.article__grid {
  margin-top: 4rem;
  display: grid;
  gap: 4rem 1rem;
}

.article__card img {
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 1rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.article__card h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.article__card p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.article__card a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: 0.3s;
}

.article__card a:hover {
  color: var(--primary-color-dark);
}

.subscribe__container {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.subscribe__image img {
  max-width: 350px;
  margin: auto;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.subscribe__content form {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  background-color: var(--extra-light);
}

.subscribe__content input {
  width: 100%;
  padding-inline: 1rem;
  font-size: 1rem;
  outline: none;
  border: none;
  background: transparent;
}

.banner {
  background-color: var(--extra-light);
}

.banner__container {
  display: grid;
  gap: 2rem;
}

.banner__card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.banner__card img {
  max-width: 70px;
}

.banner__card h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__container {
  display: grid;
  gap: 2rem;
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.footer__links a {
  font-weight: 500;
  color: var(--text-light);
  transition: 0.3s;
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__bar {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 2px solid var(--extra-light);
}

.footer__bar p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  font-size: 1.2rem;
  color: var(--text-light);
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--primary-color);
}

/* Small phones */
@media (width > 480px) {
  .header__content h1 {
    font-size: 2.2rem;
  }

  .header__content h1 span {
    font-size: 3.5rem;
    line-height: 4rem;
  }

  .section__header {
    font-size: 2rem;
  }
}

/* Tablets and larger phones */
@media (width > 576px) {
  .section__container {
    padding: 4rem 2rem;
  }

  .header__container {
    padding-top: 7rem;
  }

  .header__content h1 {
    font-size: 2.5rem;
  }

  .header__content h1 span {
    font-size: 4rem;
    line-height: 4.5rem;
  }

  .section__header {
    font-size: 2.2rem;
  }

  .section__description {
    font-size: 1rem;
  }

  .product__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .gallery__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__image:nth-child(4) {
    grid-area: 1/2/2/3;
  }

  .article__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner__card {
    justify-content: flex-start;
  }

  .banner__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop and tablets in landscape */
@media (width > 768px) {
  nav {
    padding: 2rem 1rem;
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
  }

  .nav__bar {
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    padding: 0;
    width: unset;
    position: static;
    transform: none;
    flex-direction: row;
    background-color: transparent;
  }

  .nav__links a {
    color: var(--text-dark);
  }

  .header__container {
    padding-top: 5rem;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 3rem;
  }

  .header__content h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .header__content h1 span {
    font-size: 4.5rem;
    line-height: 5rem;
  }

  .header__image {
    grid-area: 1/2/2/3;
  }

  .header__image img {
    max-width: 100%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: left;
  }

  .about__image {
    grid-area: 1/2/2/3;
  }

  .product__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .product__card__icon {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }

  .product__card__icon i {
    font-size: 1.8rem;
  }

  .gallery__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__image:nth-child(1) {
    grid-area: 1/1/3/2;
  }

  .gallery__image:nth-child(2) {
    grid-area: 1/2/2/3;
  }

  .gallery__image:nth-child(3) {
    grid-area: 2/2/3/3;
  }

  .gallery__image:nth-child(4) {
    grid-area: 1/3/3/4;
  }

  .article__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .subscribe__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: left;
  }

  .subscribe__content form {
    margin-inline-start: unset;
  }

  .banner__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bar {
    flex-direction: row;
  }
}

/* Large desktop screens */
@media (width > 1024px) {
  .section__container {
    padding: 5rem 2rem;
  }

  .header__container {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    padding-top: 6rem;
  }

  .header__content h1 {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .header__content h1 span {
    font-size: 5rem;
    line-height: 5.5rem;
  }

  .section__header {
    font-size: 3rem;
  }

  .section__description {
    font-size: 1.1rem;
  }

  .product__grid {
    gap: 3rem 2rem;
  }

  .product__card p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .product__card__image img {
    height: 320px;
  }

  .product__card h4 {
    font-size: 1.6rem;
  }
}