/* Premium shared navigation -------------------------------------------------
   This layer intentionally loads after apple-premium.css. It uses only
   compositor-friendly transform/opacity motion and has a reduced-motion path.
*/

:root {
  --nav-blue: #087cf0;
  --nav-blue-deep: #0065d4;
  --nav-ink: #17171a;
  --nav-line: rgba(20, 24, 32, .10);
  --nav-ease: cubic-bezier(.2, .75, .25, 1);
}

.site-header {
  min-height: 64px !important;
  grid-template-columns: minmax(104px, auto) minmax(330px, 1fr) auto !important;
  grid-template-areas: "brand nav actions" !important;
  gap: clamp(12px, 2vw, 28px) !important;
  padding-inline: max(16px, calc((100vw - 1420px) / 2)) !important;
  border-bottom-color: rgba(20, 24, 32, .085) !important;
  background: #fafafc !important;
  box-shadow: 0 12px 34px -32px rgba(9, 18, 34, .72) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: min-height .24s var(--nav-ease), background-color .24s ease,
    border-color .24s ease, box-shadow .24s ease !important;
}

.site-header.is-solid {
  min-height: 58px !important;
  background: rgba(250, 250, 252, .985) !important;
  box-shadow: 0 16px 34px -30px rgba(9, 18, 34, .58) !important;
}

.site-header .brand {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-block: 6px !important;
}

.site-header .brand-logo {
  height: 44px !important;
  max-width: 128px;
}

.site-header .site-nav {
  position: relative;
  display: flex !important;
  justify-self: center;
  align-items: center;
  gap: 3px !important;
  min-width: 0;
  padding: 4px !important;
  border: 1px solid rgba(20, 24, 32, .075) !important;
  border-radius: 999px !important;
  background: rgba(236, 238, 242, .72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

.site-header .site-nav a {
  position: relative;
  min-height: 36px !important;
  padding-inline: clamp(10px, 1.15vw, 17px) !important;
  border-radius: 999px !important;
  color: rgba(23, 23, 26, .72) !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
  letter-spacing: -.005em;
  transition: color .18s ease, background-color .18s ease,
    box-shadow .18s ease, transform .18s ease !important;
}

.site-header .site-nav a:hover {
  color: var(--nav-ink) !important;
  background: rgba(255, 255, 255, .76) !important;
}

.site-header .site-nav a:active { transform: scale(.97); }

.site-header .site-nav a[aria-current] {
  color: #005fc5 !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(23, 38, 64, .09), inset 0 0 0 1px rgba(0, 113, 227, .08) !important;
}

.site-header .site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.site-header .header-actions {
  position: relative;
  z-index: 2;
  gap: 7px !important;
  min-width: 0;
}

.site-header .header-call {
  position: relative;
  isolation: isolate;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--nav-blue), var(--nav-blue-deep));
  box-shadow: 0 8px 22px -10px rgba(0, 105, 220, .88), inset 0 1px 0 rgba(255, 255, 255, .28);
  white-space: nowrap;
  transition: transform .2s var(--nav-ease), box-shadow .2s ease, filter .2s ease;
}

.site-header .header-call::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  border: 2px solid rgba(17, 132, 246, .5);
  border-radius: inherit;
  pointer-events: none;
  animation: nav-call-wave 2.4s var(--nav-ease) infinite;
}

.site-header .header-call:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 13px 28px -12px rgba(0, 105, 220, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.site-header .header-call:active { transform: translateY(0) scale(.98); }

.header-call-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
  font-size: .92rem;
  line-height: 1;
  transform: rotate(-8deg);
}

.header-call-copy {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.header-call-copy strong {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .01em;
}

.header-call-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .8);
  font-size: .58rem;
  font-weight: 600;
}

.site-header .request-bag {
  min-height: 38px !important;
  gap: 6px !important;
  padding: 5px 8px 5px 10px !important;
  border: 1px solid var(--nav-line);
  background: rgba(255, 255, 255, .58);
  font-size: .72rem !important;
  font-weight: 650 !important;
}

.site-header .request-bag:hover {
  background: #fff !important;
  box-shadow: 0 5px 14px rgba(23, 38, 64, .08);
}

.site-header .request-bag .request-bag-label {
  min-width: 0;
  height: auto;
  display: inline !important;
  padding: 0;
  margin: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.site-header .request-bag .request-bag-count {
  min-width: 20px;
  height: 20px;
  margin: 0;
  padding-inline: 5px;
  background: #17171a;
  font-size: .62rem;
}

.site-header .header-cta {
  min-height: 38px !important;
  padding: .48rem .88rem !important;
  border: 1px solid var(--nav-line) !important;
  color: var(--nav-ink) !important;
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: 0 4px 12px rgba(23, 38, 64, .055) !important;
  font-size: .71rem !important;
  font-weight: 650 !important;
  white-space: nowrap;
}

.site-header .header-cta:hover {
  color: #005fc5 !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(23, 38, 64, .10) !important;
}

.header-cta-short { display: none; }

.site-header .nav-toggle {
  align-items: center;
  gap: 7px;
}

.nav-toggle-icon {
  position: relative;
  width: 15px;
  height: 12px;
  display: inline-block;
}

.nav-toggle-icon i {
  position: absolute;
  left: 0;
  width: 15px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
  transition: top .2s var(--nav-ease), transform .2s var(--nav-ease);
}

.nav-toggle-icon i:first-child { top: 3px; }
.nav-toggle-icon i:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child { top: 6px; transform: rotate(-45deg); }

.nav-scrim {
  position: fixed;
  z-index: 78;
  inset: 0;
  background: rgba(5, 8, 14, .34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

body.nav-panel-open .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* The dark home hero keeps the same component hierarchy, with lighter chrome. */
.apple-site .site-header.is-hero-mode {
  border-color: rgba(255, 255, 255, .12) !important;
  background: #0a0b0d !important;
  box-shadow: none !important;
}

.apple-site .site-header.is-hero-mode .site-nav {
  border-color: rgba(255, 255, 255, .10) !important;
  background: rgba(255, 255, 255, .075) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.apple-site .site-header.is-hero-mode .site-nav a { color: rgba(255, 255, 255, .73) !important; }
.apple-site .site-header.is-hero-mode .site-nav a:hover { color: #fff !important; background: rgba(255, 255, 255, .10) !important; }
.apple-site .site-header.is-hero-mode .site-nav a[aria-current] {
  color: #fff !important;
  background: rgba(255, 255, 255, .14) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10) !important;
}
.apple-site .site-header.is-hero-mode .request-bag {
  color: rgba(255, 255, 255, .88) !important;
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .08);
}
.apple-site .site-header.is-hero-mode .request-bag:hover { color: #fff !important; background: rgba(255, 255, 255, .14) !important; }
.apple-site .site-header.is-hero-mode .request-bag-count { background: #fff; color: #101217; }
.apple-site .site-header.is-hero-mode .header-cta {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .10) !important;
  box-shadow: none !important;
}
.apple-site .site-header.is-hero-mode .header-cta:hover { background: rgba(255, 255, 255, .17) !important; }

@keyframes nav-call-wave {
  0%, 46% { opacity: 0; transform: scale(.96); }
  58% { opacity: .62; }
  100% { opacity: 0; transform: scale(1.16, 1.32); }
}

@keyframes dock-call-wave {
  0%, 42% { opacity: 0; transform: scale(.9); }
  56% { opacity: .5; }
  100% { opacity: 0; transform: scale(1.16); }
}

@media (max-width: 1160px) and (min-width: 981px) {
  .site-header {
    grid-template-columns: minmax(90px, auto) minmax(300px, 1fr) auto !important;
    gap: 9px !important;
    padding-inline: 12px !important;
  }
  .site-header .brand-logo { max-width: 105px; }
  .site-header .site-nav a { padding-inline: 9px !important; }
  .header-call-copy small { display: none; }
  .site-header .header-call { padding-right: 10px; }
}

@media (max-width: 980px) {
  .site-header,
  .site-header.is-solid {
    min-height: 64px !important;
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr) !important;
    grid-template-areas: "brand actions" !important;
    gap: 8px !important;
    padding-inline: 12px !important;
  }

  .site-header .site-nav {
    position: fixed;
    z-index: 82;
    top: 72px;
    left: 12px;
    right: 12px;
    bottom: auto !important;
    width: auto !important;
    max-height: calc(100svh - 86px) !important;
    display: grid !important;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 3px !important;
    padding: 12px !important;
    border: 1px solid rgba(19, 29, 45, .10) !important;
    border-radius: 24px !important;
    background: rgba(250, 250, 252, .99) !important;
    box-shadow: 0 30px 80px -25px rgba(4, 10, 22, .46), inset 0 1px 0 #fff !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s ease, transform .28s var(--nav-ease), visibility .2s ease !important;
  }

  /* Keep the open sheet opaque and legible even while the home header is in
     its dark hero treatment. The desktop capsule may stay translucent; the
     mobile menu is a dedicated surface. */
  .apple-site .site-header.is-hero-mode .site-nav {
    border-color: rgba(19, 29, 45, .10) !important;
    background: #fafafc !important;
    box-shadow: 0 30px 80px -25px rgba(4, 10, 22, .46), inset 0 1px 0 #fff !important;
  }

  .site-header .site-nav::before {
    content: "Explore M Cellphones";
    display: block;
    padding: 4px 12px 9px;
    color: #737780;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .site-header .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .site-header .site-nav a,
  .apple-site .site-header.is-hero-mode .site-nav a {
    min-height: 55px !important;
    display: flex !important;
    justify-content: space-between;
    padding-inline: 14px !important;
    border-radius: 14px !important;
    color: rgba(23, 23, 26, .82) !important;
    background: transparent !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
  }

  .site-header .site-nav a::after,
  .site-header .site-nav a[aria-current]::after {
    content: "\203A";
    position: static;
    width: auto;
    height: auto;
    color: #8a8f99;
    background: transparent;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1;
    transform: none;
  }

  .site-header .site-nav a:hover,
  .apple-site .site-header.is-hero-mode .site-nav a:hover {
    color: #111216 !important;
    background: #f0f2f6 !important;
  }

  .site-header .site-nav a[aria-current],
  .apple-site .site-header.is-hero-mode .site-nav a[aria-current] {
    color: #0066d5 !important;
    background: #edf5ff !important;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .08) !important;
  }

  .site-header .site-nav a[aria-current]::after { color: #087cf0; }

  .site-header .nav-toggle {
    min-width: 74px;
    min-height: 38px;
    display: inline-flex !important;
    justify-content: center;
    padding: .45rem .68rem !important;
    border: 1px solid var(--nav-line) !important;
    border-radius: 999px !important;
    color: var(--nav-ink) !important;
    background: rgba(255, 255, 255, .77) !important;
    box-shadow: 0 4px 12px rgba(23, 38, 64, .05);
    font-size: .72rem !important;
    font-weight: 650;
  }

  .site-header .nav-toggle:hover,
  .site-header .nav-toggle[aria-expanded="true"] { background: #fff !important; }

  .apple-site .site-header.is-hero-mode .nav-toggle {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .16) !important;
    background: rgba(255, 255, 255, .10) !important;
  }

  body.nav-panel-open { overflow: hidden; }
  body.nav-panel-open .mobile-dock {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
  }
}

@media (max-width: 720px) {
  .site-header .brand-logo { height: 40px !important; max-width: 104px; }
  .site-header .header-actions { gap: 5px !important; }
  .site-header .header-call { min-height: 38px; padding: 4px 10px 4px 4px; gap: 6px; }
  .header-call-icon { width: 28px; height: 28px; }
  .header-call-copy small { display: none; }
  .site-header .request-bag { min-height: 36px !important; }
  .site-header .header-cta { min-height: 36px !important; padding-inline: .68rem !important; }
  .site-header .nav-toggle { min-height: 36px; min-width: 68px; }

  .mobile-dock {
    border-color: rgba(22, 33, 50, .10) !important;
    background: #fcfcfd !important;
    box-shadow: 0 18px 45px -18px rgba(5, 12, 25, .38) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: opacity .2s ease, visibility .2s ease, transform .25s var(--nav-ease) !important;
  }

  .mobile-dock a[href^="tel"] {
    position: relative;
    isolation: isolate;
    color: #fff !important;
    background: linear-gradient(135deg, var(--nav-blue), var(--nav-blue-deep));
    box-shadow: 0 8px 18px -10px rgba(0, 105, 220, .95);
    transform: translateY(-2px);
  }

  .mobile-dock a[href^="tel"]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -2px;
    border: 2px solid rgba(17, 132, 246, .48);
    border-radius: 15px;
    pointer-events: none;
    animation: dock-call-wave 2.4s var(--nav-ease) infinite !important;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-header.is-solid { padding-inline: 9px !important; gap: 4px !important; }
  .site-header .brand-logo { height: 36px !important; max-width: 88px; }
  .site-header .header-actions { gap: 4px !important; }
  .site-header .header-call { padding-right: 8px; }
  .site-header .header-cta { padding-inline: .58rem !important; }
  .site-header .nav-toggle { min-width: 62px; padding-inline: .55rem !important; }
}

@media (max-width: 430px) {
  .site-header,
  .site-header.is-solid {
    min-height: 58px !important;
    grid-template-columns: minmax(58px, auto) minmax(0, 1fr) !important;
  }

  .site-header .brand-logo { height: 32px !important; max-width: 72px; }
  .site-header .header-call { min-height: 34px; padding: 3px 8px 3px 3px; gap: 4px; }
  .header-call-icon { width: 26px; height: 26px; font-size: .78rem; }
  .header-call-copy strong { font-size: .66rem; }
  .site-header .request-bag {
    width: 34px;
    min-height: 34px !important;
    justify-content: center;
    padding: 0 !important;
    border: 0;
    background: transparent;
  }
  .site-header .request-bag .request-bag-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-header .request-bag::before { content: none !important; }
  .site-header .request-bag .request-bag-count { margin: 0; }
  .site-header .header-cta {
    width: 48px;
    min-height: 34px !important;
    padding: 0 !important;
  }
  .header-cta-label { display: none; }
  .header-cta-short { display: inline; }
  .site-header .nav-toggle {
    min-width: 36px;
    width: 36px;
    min-height: 34px;
    padding: 0 !important;
  }
  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-header .site-nav { top: 66px; left: 8px; right: 8px; max-height: calc(100svh - 76px) !important; }
}

@media (max-width: 350px) {
  .site-header .brand-logo { max-width: 62px; }
  .site-header .header-call { padding-right: 4px; }
  .header-call-copy strong { display: none; }
  .site-header .header-call { width: 34px; justify-content: center; padding: 3px; }
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.mobile-dock a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .42) !important;
  outline-offset: 3px !important;
}

.nav-animation-paused .header-call::before,
.nav-animation-paused .mobile-dock a[href^="tel"]::before { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header *,
  .nav-scrim { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .site-header .header-call::before,
  .mobile-dock a[href^="tel"]::before { animation: none !important; }
}
