/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

  .desktop-nav {
    gap: 20px;
  }


  .hero-title {
    font-size: 55px;
  }


  .hero-image-wrapper {
    right: -170px;

    width: 660px;
  }


  .feature {
    padding-inline: 12px;

    gap: 9px;
  }


  .feature-icon {
    flex-basis: 39px;

    width: 39px;
    height: 39px;
  }

}


/* ==========================================
   TABLET / MOBILE
========================================== */

@media (max-width: 900px) {

  :root {
    --header-height: 70px;
  }


  .desktop-nav,
  .header-actions {
    display: none;
  }


  .mobile-menu-button {
    display: block;

    margin-left: auto;
  }


  .hero {
    min-height: auto;
  }


  .hero-grid {
    grid-template-columns: 1fr;

    min-height: 0;
  }


  .hero-content {
    padding-block: 42px 30px;
  }


  .hero-title {
    max-width: 700px;

    font-size:
      clamp(
        48px,
        9vw,
        68px
      );
  }


  .hero-subtitle {
    font-size: 22px;
  }


  .hero-visual {
    height: 470px;
  }


  .hero-image-wrapper {
    top: 0;
    right: 0;

    width: 100%;
    height: 470px;

    border-radius: 0;
  }


  .hero-image-overlay {
    background:
      linear-gradient(
        180deg,
        transparent 45%,
        rgba(248, 247, 240, 0.4)
      );
  }


  .fresh-badge {
    right: 60px;
    bottom: 60px;
  }


  .features-section {
    margin-top: -35px;
  }


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


  .feature {
    min-height: 88px;

    border-right:
      1px solid #e8e9e4;

    border-bottom:
      1px solid #e8e9e4;
  }


  .feature:nth-child(2n) {
    border-right: 0;
  }


  .feature:last-child {
    grid-column: 1 / -1;

    border-bottom: 0;
  }


  /* Mobile menu */

  .mobile-menu {
    position: absolute;

    top: calc(100% + 1px);

    left: 16px;
    right: 16px;

    z-index: 200;

    padding: 15px;

    border:
      1px solid var(--color-border);

    border-radius: 16px;

    background: white;

    box-shadow:
      0 15px 40px rgba(20, 50, 20, 0.13);
  }


  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }


  .mobile-menu nav a {
    padding: 13px 8px;

    border-bottom:
      1px solid #f0f1ed;

    font-size: 14px;
    font-weight: 600;
  }


  .mobile-menu-actions {
    display: flex;

    gap: 10px;

    padding-top: 15px;
  }


  .mobile-menu-actions .button {
    flex: 1;
  }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .container {
    width:
      min(
        calc(100% - 32px),
        var(--container-width)
      );
  }


  .logo {
    width: 130px;
  }


  .logo-text {
    font-size: 34px;
  }


  .hero-content {
    padding-top: 34px;
  }


  .hero-badge {
    font-size: 9px;
  }


  .hero-title {
    font-size: 46px;

    letter-spacing: -2.5px;
  }


  .hero-subtitle {
    font-size: 20px;
  }


  .hero-highlight {
    font-size: 12px;
  }


  .hero-description {
    font-size: 11px;
  }


  .hero-buttons {
    gap: 10px;
  }


  .hero-buttons .button {
    padding-inline: 21px;

    font-size: 11px;
  }


  .hero-visual {
    height: 360px;
  }


  .hero-image-wrapper {
    height: 360px;
  }


  .fresh-badge {
    right: 25px;
    bottom: 30px;

    width: 72px;
    height: 72px;
  }


  .features-section {
    margin-top: -20px;
  }


  .features {
    grid-template-columns: 1fr;

    padding: 8px;
  }


  .feature,
  .feature:nth-child(2n),
  .feature:last-child {
    min-height: 80px;

    border-right: 0;

    border-bottom:
      1px solid #e8e9e4;
  }


  .feature:last-child {
    border-bottom: 0;

    grid-column: auto;
  }

}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}