/**
 * Mobile refinements + location / maps UI
 */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.btn,
.nav-toggle,
.address-link {
  min-height: 44px;
  min-width: 44px;
}

.btn {
  padding: 0.9rem 1.25rem;
}

.address-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  background-color: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  text-underline-offset: 0.18em;
  cursor: pointer;
  min-height: 0;
  min-width: 0;
  box-shadow: none;
}

.address-link:hover {
  color: var(--bb-wine);
  text-decoration: underline;
}

.address-link--footer {
  color: inherit;
  background: transparent !important;
  background-color: transparent !important;
  text-decoration: none;
}

.address-link--footer:hover {
  color: #fff;
  text-decoration: underline;
}

/* Location layout */
.location-layout {
  display: grid;
  gap: 2rem;
}

.location-copy {
  display: grid;
  gap: 1.5rem;
}

.hours-card {
  background: #fff;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--bb-line);
}

.hours-card h3 {
  font-family: var(--bb-font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
}

.hours-card dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hours-card dt {
  font-weight: 600;
  font-size: 0.92rem;
}

.hours-card dd {
  margin: 0.15rem 0 0;
  color: var(--bb-muted);
}

.location-map {
  display: grid;
  gap: 0.75rem;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 280px;
  height: min(55vh, 420px);
  border-radius: 2px;
  filter: grayscale(0.12) contrast(1.02);
}

.map-caption {
  margin: 0;
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .location-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 2.5rem;
  }

  .map-embed {
    min-height: 480px;
    height: 520px;
    position: sticky;
    top: 5.5rem;
  }
}

/* Maps dialog */
.maps-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
}

.maps-dialog::backdrop {
  background: rgba(12, 11, 10, 0.55);
  backdrop-filter: blur(4px);
}

.maps-dialog__panel {
  position: relative;
  width: min(100%, 420px);
  margin: auto;
  background: #fff;
  color: var(--bb-ink);
  padding: 1.75rem 1.35rem 1.35rem;
  border: 1px solid var(--bb-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.maps-dialog__close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--bb-muted);
  min-width: 44px;
  min-height: 44px;
}

.maps-dialog__title {
  margin: 0 0 0.5rem;
  font-family: var(--bb-font-serif);
  font-weight: 400;
  font-size: 1.65rem;
}

.maps-dialog__address {
  margin: 0 0 1.25rem;
  color: var(--bb-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.maps-dialog__actions {
  display: grid;
  gap: 0.65rem;
}

.maps-dialog__actions .btn {
  width: 100%;
}

.maps-dialog__cancel {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.75rem;
  font: inherit;
  color: var(--bb-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Mobile layout ---------- */
@media (max-width: 959px) {
  .topbar {
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 0.5rem 0.85rem;
  }

  .site-header__inner {
    width: min(100% - 1.25rem, var(--bb-wide));
    padding: 0.4rem 0;
    gap: 0.75rem;
  }

  .site-logo img,
  .custom-logo-link img {
    width: min(150px, 46vw);
  }

  .primary-nav {
    max-height: calc(100svh - 4.5rem);
    overflow-y: auto;
    padding: 0.75rem 1.25rem 1.5rem;
  }

  .primary-nav a {
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--bb-max));
  }

  .section {
    padding: clamp(2.5rem, 10vw, 4rem) 0;
  }

  .page-hero {
    padding: 2.1rem 0 2.5rem;
  }

  .page-hero::before {
    width: min(52vw, 220px);
    height: min(52vw, 220px);
    right: -4%;
    opacity: 0.2;
  }

  .page-hero__inner {
    max-width: 100%;
  }

  .page-hero__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .page-hero__lead {
    font-size: 1.02rem;
    max-width: 34ch;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .form-stack {
    max-width: none;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-row {
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
    margin-top: 1rem;
  }
}

/* Home lookbook mobile */
@media (max-width: 899px) {
  .home-hero__content {
    padding: 0 1.15rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .home-hero__brand {
    width: min(300px, 78vw);
    margin: 0 auto 1.1rem;
  }

  .home-hero__lede {
    margin-left: auto;
    margin-right: auto;
    max-width: 28ch;
  }

  .home-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__actions .btn {
    width: 100%;
  }

  .home-hero__footer {
    width: min(100% - 1.5rem, var(--bb-wide));
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .home-hero__scroll {
    display: none;
  }

  .lookbook__copy,
  .stage__panel {
    padding: 2rem 1.25rem 2.5rem;
  }

  .lookbook__title,
  .stage__title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .stage--end .stage__panel {
    text-align: left;
    justify-self: start;
  }

  .stage--end .cta-row,
  .stage--end .stage__text {
    margin-left: 0;
    justify-content: flex-start;
  }

  .stage::after,
  .stage--end::after {
    background: linear-gradient(180deg, rgba(12, 11, 10, 0.2) 0%, rgba(12, 11, 10, 0.72) 100%);
  }

  .runway__rail {
    scroll-padding-inline: 1.15rem;
    gap: 0.75rem;
  }

  .runway__rail::before,
  .runway__rail::after {
    flex-basis: 1.15rem;
  }

  .runway__card {
    flex-basis: min(85vw, 340px);
  }

  .manifesto__line {
    font-size: clamp(0.8rem, 3.2vw, 1rem);
  }
}

@media (max-width: 480px) {
  .price-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .notice-banner {
    padding: 1rem;
  }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile sticky Order / Event Inquiry */
@media (max-width: 860px) {
  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  /* Homepage: keep the bar off the hero until the visitor scrolls */
  body.is-front:not(.is-mobi-cta-on) {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobi-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bb-ink);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  body.is-front:not(.is-mobi-cta-on) .mobi-cta {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  .mobi-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #fff !important;
  }

  .mobi-cta__btn--order {
    background: #3b3939;
  }

  .mobi-cta__btn--inquire {
    background: var(--bb-ink);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (min-width: 861px) {
  .mobi-cta {
    display: none !important;
  }
}
