/* ═══════════════════════════════════════════════
   MOBILE OVERLAY — Elite dark architectural menu
   ═══════════════════════════════════════════════ */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface-inverse);
  z-index: 150;
  display: flex;
  align-items: stretch;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
  overflow: hidden;
}

/* Left accent rail */
.mobile-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--olive) 15%,
    var(--olive) 85%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Ambient backdrop word */
.mobile-overlay::after {
  content: "NYC";
  position: absolute;
  bottom: -2%;
  right: -5%;
  font-size: clamp(9rem, 45vw, 22rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.mobile-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay-inner {
  position: relative;
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  box-sizing: border-box;
  z-index: 2;
}

/* ── Top bar ── */
.mobile-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

.mobile-overlay-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.mobile-overlay-brand span {
  color: var(--olive);
}

.mobile-overlay-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  border: 1px solid rgb(var(--accent-rgb) / 0.3);
  padding: 5px 10px;
}

.mobile-overlay-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
  flex-shrink: 0;
  opacity: 0.85;
}

.mobile-menu-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(20px, 4vh, 40px) 0;
}

/* ── Nav links ── */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(24px, 4vh, 40px);
  counter-reset: mobile-nav;
}

.mobile-nav-item {
  counter-increment: mobile-nav;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: clamp(12px, 2.5vh, 18px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.25s ease, padding-left 0.3s ease;
  position: relative;
}

.mobile-nav-item::before {
  content: "0" counter(mobile-nav);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgb(var(--accent-rgb) / 0.55);
  flex-shrink: 0;
  min-width: 20px;
  transition: color 0.25s ease;
}

.mobile-nav-t {
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
  flex: 1;
}

.mobile-nav-d {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.4;
  display: none;
}

@media (min-height: 700px) {
  .mobile-nav-d {
    display: block;
  }
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  padding-left: 8px;
}

.mobile-nav-item:hover .mobile-nav-t,
.mobile-nav-item:focus .mobile-nav-t {
  color: var(--olive);
}

.mobile-nav-item:hover::before {
  color: var(--olive);
}

/* ── CTA row ── */
.mobile-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.mobile-cta-btn {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.mobile-cta-btn.btn-primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.mobile-cta-btn.btn-outline {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.mobile-cta-btn.btn-outline:hover {
  border-color: var(--olive);
  color: var(--olive);
  background: transparent;
}

/* ── Footer strip ── */
.mobile-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: clamp(16px, 3vh, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.mobile-footer-brand {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.mobile-footer-tag {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0;
}

.mobile-social {
  display: flex;
  gap: 20px;
}

.mobile-social a {
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.mobile-social a:hover {
  color: var(--olive);
}

/* ── Close button ── */
.close-overlay {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: var(--gutter);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
  z-index: 10;
  border-radius: 0;
}

.close-overlay:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--olive);
  color: var(--olive);
}

/* iOS Safari */
@supports (-webkit-touch-callout: none) {
  .mobile-overlay {
    min-height: -webkit-fill-available;
  }

  .mobile-overlay-inner {
    min-height: -webkit-fill-available;
  }
}

/* ── Mobile menu tel (keep class available) ── */
.mobile-tel {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.mobile-tel:hover {
  color: var(--olive);
}
