/*
- Tablets and below: 59em = 944px
- Phones: 44em = 704px
- Small phones: 34em = 544px
*/

/* BELOW 944px (TABLETS) */
@media (max-width: 59em) {
  .container {
    padding: 0 3.2rem;
  }

  /* HEADER AND MOBILE MENU */
  .header {
    padding: 1.2rem 2rem;
  }

  .btn-mobile-nav {
    display: flex;
  }

  .nav-left,
  .nav-right .main-nav-list {
    display: none;
  }

  .nav-right {
    gap: 1.6rem;
  }

  .logo-name {
    font-size: 3rem;
  }

  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f6f1ea;
    box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: all 0.3s;
  }

  .nav-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* HERO */
  .section-hero {
    min-height: 48rem;
  }

  .hero {
    padding: 0 3.2rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  /* GRIDS */
  .category-grid,
  .product-grid,
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.4rem;
  }

  .footer .logo {
    align-items: center;
    justify-self: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.4rem;
  }

  .social-list {
    justify-self: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
}

/* BELOW 704px (PHONES) */
@media (max-width: 44em) {
  .container {
    padding: 0 2.4rem;
  }

  .announcement {
    font-size: 1rem;
    letter-spacing: 0.05rem;
  }

  /* HERO */
  .section-hero {
    min-height: 46rem;
    background-image:
      linear-gradient(rgba(33, 28, 25, 0.55), rgba(33, 28, 25, 0.55)),
      url("../images/hero.jpg");
    background-position: 70% center;
  }

  .hero {
    max-width: none;
    padding: 0 2.4rem;
  }

  .heading-primary,
  .heading-page {
    font-size: 3.6rem;
  }

  .heading-card {
    font-size: 2.6rem;
  }

  /* SECTIONS */
  .section-category {
    padding: 4.8rem 0;
  }

  .category {
    height: 20rem;
  }

  .section-page-head {
    padding: 4.8rem 0 2.4rem 0;
  }

  /* PROMO CARDS: text sits over a plain tint so it stays readable */
  .promo .heading-card {
    font-size: 2.6rem;
  }

  .fragrance-edit,
  .brand-story {
    min-height: 26rem;
  }

  .fragrance-edit {
    background-image:
      linear-gradient(rgba(33, 28, 25, 0.75), rgba(33, 28, 25, 0.75)),
      url("../images/fragrance-edit.jpg");
    background-position: center;
  }

  .brand-story {
    background-image:
      linear-gradient(rgba(239, 229, 218, 0.9), rgba(239, 229, 218, 0.9)),
      url("../images/fragrance-edit.jpg");
    background-position: center;
  }

  .fragrance-edit .promo-content,
  .brand-story .promo-content {
    width: 100%;
    padding: 2.4rem;
  }

  /* BANNER */
  .banner {
    padding: 3.2rem 2.4rem;
    background-image:
      linear-gradient(rgba(47, 58, 36, 0.8), rgba(47, 58, 36, 0.8)),
      url("../images/category-roll-ons.jpg");
  }

  /* TRUST STRIP */
  .trust {
    grid-template-columns: 1fr;
  }

  .trust-item {
    justify-content: flex-start;
    padding: 1.6rem 0;
  }

  .trust-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #d8cbbb;
  }

  /* DISTRIBUTOR*/
  .distributor {
    align-items: flex-start;
    padding: 18rem 2.4rem 3.2rem 2.4rem;
  }

  .distributor::after {
    width: 100%;
    height: 15rem;
    background-image:
      linear-gradient(to bottom, rgba(203, 194, 185, 0) 50%, #ccc0b4 100%),
      url("../images/category-gift-sets.jpg");
    background-position: center 15%;
  }

  .distributor .heading-card {
    font-size: 2.6rem;
  }

  /* QUIZ */
  .quiz {
    padding: 2.4rem;
  }

  .quiz-question {
    font-size: 2.6rem;
  }

  .quiz-result {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .quiz-result-name {
    font-size: 3.4rem;
  }

  /* POPUP */
  .modal {
    padding: 4rem 2.4rem;
  }
}

/* BELOW 544px (SMALL PHONES) */
@media (max-width: 34em) {
  .container {
    padding: 0 2rem;
  }

  .header {
    padding: 1rem 1.2rem;
  }

  .logo-name {
    font-size: 2.4rem;
    letter-spacing: 0.3rem;
  }

  .logo-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
  }

  .nav-right {
    gap: 0.8rem;
  }

  .product-grid,
  .journal-grid {
    gap: 1.2rem;
  }

  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-head,
  .cart-body,
  .cart-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
