/* Phone / tablet menu (the hamburger menu below 992px).
 *
 * Replaces the Webflow original, a grey sheet of plain text links where
 * Create, Operate and Brands each slid away to a separate "Back" screen.
 * Now: a dark panel in the site's own black-and-red, every section open on
 * arrival (tap a section heading to fold or unfold it), and every link
 * carries a picture of its page on the right -- the same photos (and brand
 * logos) the desktop dropdown uses.
 *
 * Markup: ../scripts/mobile_menu.py. Images: ../scripts/mobile_menu_assets.py.
 * Loaded after the Webflow stylesheet, so equal-specificity rules win.
 */

.menu_wrap.vm {
  --vm-red: #d92027;
  --vm-line: rgba(255, 255, 255, 0.08);
  --vm-muted: rgba(255, 255, 255, 0.58);
  flex-direction: column;
  padding: 0;
  color: #fff;
  background-color: #050506;
  background-image:
    radial-gradient(130% 42% at 100% 0%, rgba(217, 32, 39, 0.30) 0%, rgba(217, 32, 39, 0) 62%),
    radial-gradient(110% 38% at 0% 100%, rgba(63, 87, 135, 0.38) 0%, rgba(63, 87, 135, 0) 70%);
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-family: Manrope, Arial, sans-serif;
}

.vm-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 52px;
  padding: 0 1.25rem;
  background-color: #050506;
}

/* Rows fade out under the header instead of sliding behind the logo. */
.vm-head::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(#050506, rgba(5, 5, 6, 0));
  pointer-events: none;
}

.vm-logo {
  display: block;
  width: 112px;
  height: auto;
}

.vm-panel {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  padding: 0.75rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

/* A row: title (+ one-line description) on the left, picture on the right. */
.vm-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--vm-line);
  -webkit-tap-highlight-color: transparent;
}

.vm-row:focus-visible,
.vm-toggle:focus-visible,
.vm-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 12px;
}

.vm-txt {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.vm-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.vm-top .vm-title {
  font-size: 1.375rem;
}

.vm-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--vm-muted);
  font-size: 0.78125rem;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vm-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #17171a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.vm-top .vm-thumb {
  width: 96px;
  height: 68px;
}

.vm-row:active .vm-thumb {
  transform: scale(0.96);
}

/* The page you are on: red title and a red edge on its picture. */
.vm-row[aria-current="page"] .vm-title {
  color: #ff5a5f;
}

.vm-row[aria-current="page"] .vm-thumb {
  box-shadow: 0 0 0 2px var(--vm-red), 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Create / Operate / Brands: open on arrival, the heading folds them. */
.vm-group {
  margin: 0.875rem 0 0.25rem;
  padding: 0 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.04);
}

.vm-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vm-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background-color: var(--vm-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.vm-chev {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.09);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

.vm-chev svg {
  width: 12px;
  height: 12px;
}

.vm-group.is-open .vm-chev {
  transform: rotate(180deg);
  background-color: rgba(255, 255, 255, 0.14);
}

.vm-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-group:not(.is-open) .vm-body {
  grid-template-rows: 0fr;
}

.vm-inner {
  min-height: 0;
  overflow: hidden;
}

/* Folded links are not reachable by keyboard or screen reader. */
.vm-group:not(.is-open) .vm-inner {
  visibility: hidden;
  transition: visibility 0s 0.32s;
}

.vm-inner .vm-row:first-child {
  border-top: 1px solid var(--vm-line);
}

.vm-inner .vm-row:last-child {
  margin-bottom: 0.375rem;
  border-bottom: 0;
}

.vm-groups-end {
  height: 0.5rem;
}

/* Talk to an Expert: the one call to action, in brand red. */
.vm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 1.125rem 1.375rem;
  border-radius: 999px;
  background-color: var(--vm-red);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(217, 32, 39, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.vm-cta svg {
  width: 18px;
  height: 18px;
}

.vm-cta:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .vm-body,
  .vm-chev,
  .vm-thumb {
    transition: none;
  }
}
