/* =========================================================
   TABLET - 1200px
========================================================= */

@media (max-width: 1200px) {
  :root {
    --container-width: 1100px;
  }
  /* 
  .header-inner,
 

  .contact-band,
  .site-footer {
    padding-left: 30px;
    padding-right: 30px;
  } */

  .hero-image {
    height: 570px;
  }

  .collection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-controls {
    width: 100%;
  }
}

/* =========================================================
   TABLET - 991px
========================================================= */

@media (max-width: 991px) {
  /* Header */

  .desktop-navigation {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .mobile-navigation {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    background: var(--color-white);
    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
  }

  .mobile-navigation.is-open {
    max-height: 300px;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .mobile-navigation a,
  .mobile-contact-button {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    color: var(--color-muted);
    text-align: left;
  }

  .mobile-contact-button {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-contact-button svg {
    width: 14px;
    height: 14px;
  }

  /* Hero */

  .hero-section {
    padding-top: 60px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .hero-content,
  .hero-visual {
    width: 100%;
  }

  .hero-title {
    max-width: 800px;
  }

  .hero-description {
    max-width: 600px;
  }

  .hero-image {
    height: 570px;
  }

  .hero-floating-note {
    right: 20px;
  }

  .collection-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .collection-controls {
    width: 100%;
    align-items: flex-start;
  }

  .category-filters {
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Product modal */

  .product-modal-content {
    max-width: 850px;
  }

  .product-content {
    padding: 32px;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-copy,
  .story-body {
    grid-column: auto;
  }
  .mobile-menu-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  .mobile-menu-button span {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    display: block;
    transition:
      transform 0.3s ease,
      opacity 0.2s ease;
  }

  .mobile-menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu-button[aria-expanded="false"] span {
    transform: none;
    opacity: 1;
  }
}

/* =========================================================
   MOBILE - 768px
========================================================= */

@media (max-width: 768px) {
  /* Header */

  .header-inner {
    height: 68px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-navigation {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-description {
    margin-top: 22px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 16px;
  }

  .hero-note {
    margin-top: 36px;
  }

  .hero-image {
    height: 300px;
  }
  .brand-logo img {
    width: auto;
    height: 35px;
  }
  .hero-floating-note {
    display: none;
  }

  .story-section {
    gap: 20px;
  }
  .story-signature {
    margin-top: 20px;
  }
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .collection-heading {
    gap: 20px;
  }
  .collection-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .category-filters {
    width: 100%;
    gap: 6px;
  }

  .category-button {
    padding: 8px 11px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  .collection-heading {
    margin-bottom: 20px;
  }
  .product-image-frame {
    height: 300px;
  }

  .product-info {
    min-height: auto;
    flex-direction: column;
    gap: 8px;
  }

  .product-price {
    padding-top: 0;
  }

  .story-section {
    padding: var(--margin-100) 15px;
  }

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-modal {
    padding: 12px;
  }

  .product-modal-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .product-image-wrapper {
    height: 280px;
    min-height: 280px;
  }

  .product-image {
    height: 280px;
    min-height: 280px;
  }

  .product-content {
    padding: 28px 24px 30px;
  }

  .product-content .product-price {
    margin-top: 20px;
  }

  .contact-us-modal {
    padding: 12px;
  }

  .contact-us-modal-content {
    max-height: calc(100vh - 24px);
    padding: 30px 24px;
  }
}

/* =========================================================
   SMALL MOBILE - 576px
========================================================= */

@media (max-width: 576px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
    justify-content: center;
  }

  .hero-image-caption {
    left: 12px;
    bottom: 12px;
    gap: 8px;
    padding: 10px 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image-frame {
    height: 270px;
  }

  .contact-button {
    width: 100%;
    justify-content: center;
  }

  .product-modal {
    padding: 10px;
  }

  .product-modal-content {
    max-height: calc(100vh - 20px);
    border-radius: 10px;
  }

  .product-image-wrapper,
  .product-image {
    height: 200px;
    min-height: 200px;
    /* width: auto; */
    justify-content: center;
    align-items: center;
    display: flex;
  }

  .product-content {
    padding: 24px 20px 25px;
  }

  .product-description {
    padding-top: 10px;

    line-height: 1.65;
  }

  .product-contact-btn {
    margin-top: 26px;
  }

  .contact-us-modal {
    padding: 10px;
  }

  .contact-us-modal-content {
    max-height: calc(100vh - 20px);
    padding: 28px 20px;
    border-radius: 10px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .product-card,
  .product-image-frame img,
  .product-modal,
  .product-modal-content,
  .contact-us-modal,
  .contact-us-modal-content,
  .product-contact-btn,
  .product-close-btn,
  .view-details-button,
  .contact-submit-btn,
  .contact-modal-close {
    transition: none;
  }
}

@media (max-width: 1200px) {
  :root {
    --font-50: 46px;
    --font-80: 72px;
  }
}

/* ========================================
   991px
======================================== */
@media (max-width: 991px) {
  :root {
    --font-20: 19px;
    --font-22: 21px;
    --font-24: 23px;
    --font-50: 42px;
    --font-80: 62px;
  }
}

/* ========================================
   768px
======================================== */
@media (max-width: 768px) {
  :root {
    --font-18: 17px;
    --font-20: 18px;
    --font-22: 20px;
    --font-24: 22px;
    --font-50: 36px;
    --font-80: 52px;
  }
}

/* ========================================
   576px
======================================== */
@media (max-width: 576px) {
  :root {
    --font-16: 15px;
    --font-18: 16px;
    --font-20: 17px;
    --font-22: 19px;
    --font-24: 21px;
    --font-50: 32px;
    --font-80: 42px;
  }
}

@media (max-width: 1200px) {
  :root {
    --margin-100: 90px;
  }
}

@media (max-width: 991px) {
  :root {
    --margin-100: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --margin-100: 60px;
  }
}

@media (max-width: 576px) {
  :root {
    --margin-100: 45px;
  }
}
