/* Layout Styles
======================================= */
:root {
  --card-background: #f5f5f5;
  --card-background-hover: rgba(255, 182, 0, 0.2);
  --summer-color-1: #ffb600;
  --summer-color-2: #ec1328;
  --summer-gradient: linear-gradient(90deg, #ec1328, #ffb600, #ec1328);
  --summer-gradient-hover: linear-gradient(90deg, #ffb600, #ec1328, #ffb600);
}

.hn-button-primary {
  display: inline-block;
  background: var(--summer-color-1);
  padding: 1em;
  margin-top: 24px;
  color: #000;
  border-radius: 4px;
  border: 1px solid var(--summer-color-1);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1em;
  text-align: center;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.hn-button-primary:hover {
  opacity: 90%;
}

.hn-main-container,
.hn-content-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hn-content-container {
  position: relative;
}

.hn-content-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--summer-gradient);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 20%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 0%
  );
}

.hn-content-container > * {
  position: relative;
  z-index: 1;
}

.hn-hero-banner {
  width: 100%;
  height: 400px;
  background: var(--summer-gradient);
  color: #ffffff;
  padding: 64px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 0;
}

.hn-hero-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
  text-align: center;

  h1 {
    font-size: 3rem !important;
    line-height: 1 !important;
    font-style: italic;
    color: #fff;
  }
}

.hn-sublead-img {
  flex: 1;
  text-align: center;

  overflow: hidden;

  img {
    transition: transform 0.3s ease;
  }

  img:hover {
    transform: scale(1.03);
  }
}

.hn-text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: 32px 16px 64px;
}

.hn-hero-banner-content {
  span {
    background: #fff;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 32px;
    font-size: 1.2rem;
    display: inline-block;
    clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%);
  }
}

.hn-text-section * {
  max-width: 900px;
}

.hn-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hn-category-carousel {
  position: relative;
}

.hn-carousel-button {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  scale: 0.97;
  opacity: 95%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);

  &:hover {
    scale: 1;
    opacity: 1;
  }
}

.hn-button-left {
  left: -24px;
}

.hn-button-right {
  right: -24px;
}

.hn-category-carousel-button span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hn-category-carousel-button svg {
  width: 24px;
  height: 24px;
  color: #000;
}

.hn-category-carousel-content {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;

  &::-webkit-scrollbar {
    display: none;
  }
}

.hn-category-card {
  margin: 8px 0;
  width: calc((100% - 2 * 16px) / 3);
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-background);
  transition: background 0.3s ease;
  user-select: none;

  .hn-category-label {
    margin: 16px 0;
    padding: 0 16px;
    opacity: 0.9;
    transition:
      scale 0.3s ease,
      transform 0.3s ease;
  }

  img {
    scale: 0.975;
    transition:
      scale 0.3s ease,
      transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
  }

  h3 {
    text-transform: uppercase;
    font-weight: 800;
    font-size: .8rem !important;
  }

  &:hover {
    background: var(--card-background-hover);

    img {
      scale: 1;
      transform: rotate(1deg);
    }

    .hn-category-label {
      opacity: 1;
    }
  }

  &:last-child {
    scroll-snap-align: end;
  }
}

.hn-text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: 32px 16px 64px;
}

.hn-text-section * {
  max-width: 780px;
}

.hn-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hn-store-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
}

/* Font Styles
======================================= */
.hn-main-container {
  body {
    font-size: 16px;
    line-height: 1.4;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  } /* 32px */
  h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  } /* 28px */
  h3 {
    font-size: 1.5rem;
    line-height: 1.2;
  } /* 24px */
  h4 {
    font-size: 1.25rem;
    line-height: 1.2;
  } /* 20px */
  h5 {
    font-size: 1.125rem;
    line-height: 1.2;
  } /* 18px */
  h6 {
    font-size: 1rem;
    line-height: 1.2;
  } /* 16px */

  @media (min-width: 768px) {
    h1 {
      font-size: 2.5rem;
    } /* 40px */
    h2 {
      font-size: 2rem;
    } /* 32px */
    h3 {
      font-size: 1.75rem;
    } /* 28px */
    h4 {
      font-size: 1.5rem;
    } /* 24px */
    h5 {
      font-size: 1.25rem;
    } /* 20px */
    h6 {
      font-size: 1rem;
    } /* 16px */
  }
}

/* Media Queries
======================================= */
@media screen and (min-width: 768px) {
  .hn-hero-banner {
    flex-direction: row;
  }

  .hn-hero-banner-content h1 {
    font-size: 7rem !important;
  }

  .hn-flex {
    flex-direction: row;
  }

  .hn-category-card {
    width: calc((100% - 3 * 16px) / 4);

    h3 {
      font-size: 1.4rem !important;
    }

    .hn-category-label {
      margin-bottom: 24px;
    }
  }

  .hn-store-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
