/*
 * IRIS SPIRA mobile first-view patch
 * Load this file after the existing styles.css.
 */

.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-menu-panel,
.mobile-hero-product {
  display: none;
}

@media (max-width: 720px) {
  html.mobile-menu-open,
  html.mobile-menu-open body {
    overflow: hidden;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 64px;
    padding: 10px 14px;
    background: linear-gradient(
      180deg,
      rgba(6, 8, 11, 0.92) 0%,
      rgba(6, 8, 11, 0.72) 70%,
      rgba(6, 8, 11, 0) 100%
    );
  }

  .site-header .brand {
    position: relative;
    z-index: 42;
    font-size: 1.06rem;
  }

  .site-header > .main-nav,
  .site-header > .language-switcher,
  .site-header > .sound-toggle {
    display: none;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 42;
    grid-column: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(251, 250, 245, 0.45);
    border-radius: 999px;
    color: var(--pearl);
    background: rgba(6, 8, 11, 0.32);
    backdrop-filter: blur(12px);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 38;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.48);
    transition: opacity 260ms ease, visibility 260ms ease;
  }

  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: min(88vw, 360px);
    padding: 82px 22px 24px;
    visibility: hidden;
    color: var(--pearl);
    background:
      radial-gradient(circle at 100% 0%, rgba(91, 121, 143, 0.22), transparent 36%),
      #080b0f;
    border-left: 1px solid rgba(251, 250, 245, 0.14);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.34);
    transform: translateX(105%);
    transition: transform 300ms cubic-bezier(0.22, 0.72, 0.24, 1), visibility 300ms ease;
    overflow-y: auto;
  }

  .mobile-menu-open .mobile-menu-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu-open .mobile-menu-panel {
    visibility: visible;
    transform: translateX(0);
  }

  .mobile-menu-open .site-header {
    z-index: 43;
    background: transparent;
    pointer-events: none;
  }

  .mobile-menu-open .site-header .brand {
    opacity: 0;
  }

  .mobile-menu-open .mobile-menu-toggle {
    pointer-events: auto;
  }

  .mobile-menu-label {
    margin: 0 0 14px;
    color: var(--gold);
    font-family: Arial, "Yu Gothic", sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-menu-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(251, 250, 245, 0.18);
    border-left: 1px solid rgba(251, 250, 245, 0.18);
  }

  .mobile-menu-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-right: 1px solid rgba(251, 250, 245, 0.18);
    border-bottom: 1px solid rgba(251, 250, 245, 0.18);
    color: var(--pearl);
    font-family: Arial, "Yu Gothic", sans-serif;
    font-size: 0.74rem;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-menu-utilities {
    display: grid;
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
  }

  .mobile-language-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .mobile-language-switcher button,
  .mobile-sound-toggle {
    min-height: 42px;
    border: 1px solid rgba(251, 250, 245, 0.28);
    border-radius: 999px;
    color: rgba(251, 250, 245, 0.74);
    background: rgba(251, 250, 245, 0.04);
    font-family: Arial, "Yu Gothic", sans-serif;
    font-size: 0.68rem;
    cursor: pointer;
  }

  .mobile-language-switcher button[aria-pressed="true"],
  .mobile-sound-toggle[aria-pressed="true"] {
    color: var(--deep);
    background: var(--pearl);
    border-color: var(--pearl);
  }

  .mobile-sound-toggle {
    width: 100%;
    border-radius: 4px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-media {
    transform: none;
    animation: none;
  }

  .hero-media video,
  .hero-media img,
  .hero-media video.is-active,
  .hero-media img.is-active {
    object-position: 58% center;
    transform: none;
  }

  .hero-shade {
    opacity: 1;
    background:
      linear-gradient(180deg, rgba(6, 8, 11, 0.38) 0%, rgba(6, 8, 11, 0.02) 34%, rgba(6, 8, 11, 0.78) 74%, rgba(6, 8, 11, 0.94) 100%),
      linear-gradient(90deg, rgba(6, 8, 11, 0.42), transparent 62%);
    animation: none;
  }

  .mobile-hero-product {
    position: absolute;
    top: 84px;
    right: 16px;
    z-index: 3;
    display: block;
    width: 124px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(251, 250, 245, 0.54);
    border-radius: 4px;
    background: rgba(6, 8, 11, 0.36);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(8px);
  }

  .mobile-hero-product img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .mobile-hero-product figcaption {
    padding: 8px 9px;
    color: var(--pearl);
    font-family: Arial, "Yu Gothic", sans-serif;
    font-size: 0.56rem;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    max-width: none;
    min-height: 0;
    padding: 210px 16px 24px;
  }

  .hero-inner > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-inner .eyebrow {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .hero-wordmark {
    margin-bottom: 8px;
    font-size: clamp(2.25rem, 12.5vw, 3.1rem);
  }

  .hero-lead {
    margin-bottom: 8px;
    font-size: clamp(1.12rem, 5.6vw, 1.42rem);
    line-height: 1.35;
  }

  .hero-copy {
    max-width: 340px;
    margin-bottom: 0;
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .hero-actions .button[href="#concept"] {
    display: none;
  }

  .hero-actions .button[href="#collection"] {
    order: 1;
    color: var(--pearl);
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-actions .store-cta {
    order: 2;
    color: var(--deep);
    background: rgba(251, 250, 245, 0.94);
    border-color: var(--pearl);
    font-size: 0;
  }

  .hero-actions .store-cta::after {
    content: "Everyday Akoya";
    font-size: 0.68rem;
  }

  .hero-strip {
    display: none;
  }
}

@media (max-width: 720px) and (max-height: 720px) {
  .mobile-hero-product {
    top: 76px;
    width: 104px;
  }

  .mobile-hero-product figcaption {
    display: none;
  }

  .hero-inner {
    padding-top: 170px;
    padding-bottom: 16px;
  }

  .hero-inner .eyebrow,
  .hero-copy {
    display: none;
  }

  .hero-wordmark {
    font-size: clamp(2rem, 10.8vw, 2.6rem);
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-top: 10px;
  }
}

@media (min-width: 721px) {
  .mobile-menu-toggle,
  .mobile-menu-backdrop,
  .mobile-menu-panel,
  .mobile-hero-product {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle span,
  .mobile-menu-backdrop,
  .mobile-menu-panel {
    transition: none;
  }
}
