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

@media (max-width: 991.98px) {

  :root {
    --section-space: 4rem;
  }

  .navbar {
    min-height: auto;

    padding-block: 0.75rem;
  }

  .site-logo {
    width: 145px;
  }

  .site-header {
    z-index: 1100;
  }

  .navbar-collapse,
  .navbar-collapse.collapsing {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1090;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    width: min(84vw, 360px);
    height: 100dvh !important;
    padding: 5.5rem 2rem 2rem;
    overflow-y: auto;
    visibility: hidden;
    background: var(--color-cream-light);
    box-shadow: 18px 0 45px rgba(84, 42, 35, 0.2);
    transform: translateX(-100%);
    transition: transform 280ms ease, visibility 280ms ease;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    visibility: visible;
    transform: translateX(0);
  }

  .navbar-toggler {
    z-index: 1100;
    min-width: 44px;
    min-height: 44px;
  }

  body.nav-menu-open {
    overflow: hidden;
  }

  body.nav-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(84, 42, 35, 0.35);
  }

  .navbar-nav {
    align-items: stretch !important;
    width: 100%;

    gap: 0 !important;
  }

  .navbar-nav .nav-link {
    padding: 0.8rem 1rem !important;
    border-radius: 0.75rem;
    text-align: left;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus-visible {
    background: rgba(246, 66, 104, 0.11);
    color: var(--color-primary);
    transform: translateX(0.35rem);
  }

  .navbar-nav .nav-link.active::after {
    width: 40px;
    right: auto;
    left: 1rem;
  }

  .nav-cart-link {
    justify-content: flex-start;
    width: 100%;
    margin-top: 1rem;
    padding-inline: 1rem;
    border-radius: 0.75rem;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .nav-cart-link:hover,
  .nav-cart-link:focus-visible {
    background: rgba(246, 66, 104, 0.11);
    color: var(--color-primary);
    transform: translateX(0.35rem);
  }

  .nav-shop-btn {
    margin-top: 1rem;
  }

  .shop-nav-actions {
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
  }

  .shop-nav-actions .nav-shop-btn {
    margin-top: 0;
  }

  .shop-hero-art {
    min-height: 480px;
  }

  .shop-cookie-back {
    right: 0;
  }

  .shop-cookie-front {
    right: 4rem;
  }

  .baked-stamp {
    width: 150px;
  }


  /* Hero */

  .video-hero,
  .hero-container {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 4rem;
  }


  /* About */

  .about-shell {
    padding: 1rem 0;
  }

  .about-copy {
    max-width: none;
  }

  .about-copy h2 {
    max-width: 10ch;
  }


  /* Testimonial */

  .testimonial-copy {
    padding-top: 2rem;
    padding-left: 0;

    text-align: center;
  }

  .testimonial-copy::before {
    top: 0;
    right: 25%;
    bottom: auto;
    left: 25%;

    width: auto;
    height: 1px;
  }

}


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

@media (max-width: 767.98px) {

  .site-footer {
    padding-top: 3.25rem;
  }

  .site-footer .row > * {
    min-width: 0;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-links li + li {
    margin-top: 0;
  }

  .social-links a {
    width: 44px;
    height: 44px;
  }

  .product-content .btn {
    min-height: 44px;
  }

  .video-hero,
  .hero-container {
    min-height: 660px;
  }

  .hero-video {
    object-position: center center;
  }

  .hero-content {
    width: 100%;

    padding-top: 3.25rem;
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    max-width: 580px;

    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero-description {
    max-width: 420px;
  }

  .hero-actions {
    width: 100%;
  }

  .shop-nav-actions {
    width: 100%;

    justify-content: space-between;
  }

  .shop-hero {
    padding: 0;
    background: #FFADAC;
  }

  .shop-hero::after {
    content: "";
    display: block;
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    background: url("../img/shopimgs/hero-mobile.png") center / contain no-repeat;
  }

  .shop-hero-shell {
    min-height: 0;
    padding-block: 2rem 1rem;
    align-items: flex-start;
  }

  .shop-copy {
    max-width: none;
    width: 100%;
    padding: 0;

    text-align: center;
  }

  .shop-copy p,
  .custom-copy p {
    max-width: none;
  }

  .shop-underline {
    margin-inline: auto;
  }

  .shop-spark-top,
  .shop-spark-left,
  .shop-spark-mid,
  .shop-flower-right,
  .shop-spark-right {
    display: none;
  }

  .shop-hero-art {
    min-height: 360px;
    margin-top: 1rem;
  }

  .shop-wave {
    top: -1rem;
    right: -4rem;

    width: 260px;
    height: 310px;
  }

  .shop-cookie {
    width: min(320px, 88%);
  }

  .shop-cookie-back {
    right: 0.75rem;
  }

  .shop-cookie-front {
    right: 2rem;
    bottom: 0;
  }

  .baked-stamp {
    right: 0;
    bottom: -0.25rem;

    width: 128px;

    font-size: 0.95rem;
  }

  .baked-stamp span {
    font-size: 1.5rem;
  }

  .shop-category-toggle:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    margin-bottom: 1rem;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 1rem;
    background: var(--color-primary-hover);
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .shop-filter-bar {
    display: none;
    gap: 0.75rem;

    align-items: stretch;
    flex-direction: column;

    padding-bottom: 1rem;
  }

  .shop-filter-bar.is-open:not([hidden]) {
    display: flex;
  }

  .shop-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .shop-product-copy h3 {
    font-size: 1.5rem;
  }

  .custom-order-banner {
    padding: 1.5rem;
  }

  .custom-art {
    min-height: 180px;
  }

  .custom-copy,
  .custom-feature {
    text-align: center;
  }

  .custom-feature {
    flex-direction: column;
    align-items: center;
  }


  /* About */

  .about-section {
    min-height: auto;
  }

  .about-shell {
    padding: 0.75rem 0;
  }

  .about-media {
    max-width: 440px;
    margin-inline: auto;
  }

  .about-badge {
    right: 0.75rem;
    bottom: 0.75rem;

    max-width: 180px;
    padding: 0.7rem 0.85rem;

    font-size: 0.72rem;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy h2 {
    max-width: none;

    font-size: clamp(2.2rem, 10vw, 3.25rem);
  }

  .about-lead {
    font-size: 1.15rem;
  }

  .about-heart span {
    width: 130px;
    height: 130px;

    font-size: 3.8rem;
  }

}


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

@media (max-width: 575.98px) {

  .navbar-collapse > .nav-shop-btn {
    width: 100%;
  }

  .shop-nav-actions .nav-shop-btn {
    flex: 1 1 auto;
    width: auto;
  }

  .video-hero,
  .hero-container {
    min-height: 0;
  }

  .hero-container {
    padding-inline: 1.25rem;
  }

  .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-eyebrow {
    gap: 0.4rem;

    font-size: 0.67rem;

    line-height: 1.4;
  }

  .hero-content h1 {
    max-width: 100%;

    font-size: clamp(2.8rem, 14.5vw, 4.25rem);

    line-height: 0.96;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .product-content p {
    min-height: auto;
  }

  .feature-item {
    align-items: flex-start;
  }

  .testimonial-section::before {
    font-size: 10rem;
  }

  .shop-nav-actions {
    gap: 0.75rem;
  }

  .shop-nav-actions .nav-shop-btn {
    min-width: 0;
    width: calc(100% - 56px);
  }

  .shop-hero-shell {
    padding-top: 2rem;
  }

  .shop-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .shop-copy p {
    font-size: 1rem;
  }

  .shop-product-media {
    min-height: 190px;
  }

  .shop-product-media img {
    max-height: 160px;
  }

  .custom-card-stack {
    left: 4rem;

    width: 120px;
    height: 145px;
  }

}


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

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .video-hero {
    background:
      linear-gradient(
        135deg,
        var(--color-pink),
        var(--color-coral),
        var(--color-orange)
      );
  }

}
