/* UPDATE 201 — CUSTOMER VIEWPORT + NAVIGATION CONSISTENCY
   Final, shared corrections for the four public customer pages only.
   Page artwork, content, forms, calculations and footer compositions remain
   owned by their existing page-specific styles. */

:root{
  --u201-cream:#f4ebdb;
  --u201-ink:#111111;
}

/* HOME: keep the approved one-screen composition physically locked to the
   viewport. This prevents Safari page-bounce and any sideways canvas drift. */
html:has(body.cinematic-home){
  width:100%;
  height:100%;
  overflow:hidden!important;
  overscroll-behavior:none;
  background:var(--u201-ink);
}

body.cinematic-home{
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  max-width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  touch-action:pan-x pan-y pinch-zoom;
}

body.cinematic-home .cinematic-home-main,
body.cinematic-home .cinematic-home-backdrop{
  width:100%!important;
  max-width:100%!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}

/* PRE-ORDER: remove the final green-tinted header treatment. The transparent
   lower edge retains the photograph while the logo receives the same neutral
   black cinematic band used across the customer site. */
body.customer-site.customer-preorder>.customer-header{
  background:linear-gradient(180deg,
    rgba(0,0,0,.97) 0%,
    rgba(0,0,0,.82) 48%,
    rgba(0,0,0,.36) 76%,
    rgba(0,0,0,0) 100%)!important;
  background-color:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

/* MOBILE + TABLET: one definitive menu treatment on Home, Pre-Order,
   Pizza At Yours and Dough & Co. The selectors intentionally override every
   older per-page colour, padding and interaction rule. */
@media(max-width:900px){
  body.customer-site>.customer-header .customer-menu-toggle{
    display:flex!important;
    width:50px!important;
    height:50px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--u201-cream)!important;
    box-shadow:none!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    -webkit-tap-highlight-color:transparent!important;
  }

  body.customer-site>.customer-header .customer-menu-toggle>span:not(.visually-hidden){
    display:block!important;
    width:30px!important;
    height:3px!important;
    margin:0!important;
    border:0!important;
    background:var(--u201-cream)!important;
    transform-origin:center!important;
    transition:transform .2s ease,opacity .2s ease!important;
  }

  body.customer-site>.customer-header .customer-menu-toggle[aria-expanded="true"]>span:nth-child(1){
    transform:translateY(9px) rotate(45deg)!important;
  }
  body.customer-site>.customer-header .customer-menu-toggle[aria-expanded="true"]>span:nth-child(2){
    opacity:0!important;
  }
  body.customer-site>.customer-header .customer-menu-toggle[aria-expanded="true"]>span:nth-child(3){
    transform:translateY(-9px) rotate(-45deg)!important;
  }

  body.customer-site>.customer-header>nav#customerSiteNav,
  body.customer-site>.customer-header>nav#customerSiteNav.is-open{
    position:absolute!important;
    z-index:2300!important;
    top:100%!important;
    right:0!important;
    left:0!important;
    grid-template-columns:1fr!important;
    flex-direction:column!important;
    gap:0!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:8px 28px 18px!important;
    border:0!important;
    border-top:1px solid rgba(244,235,219,.12)!important;
    background:rgba(3,3,3,.97)!important;
    background-image:linear-gradient(180deg,rgba(3,3,3,.98),rgba(3,3,3,.95))!important;
    color:var(--u201-cream)!important;
    box-shadow:0 16px 30px rgba(0,0,0,.32)!important;
    -webkit-backdrop-filter:blur(8px) saturate(.82)!important;
    backdrop-filter:blur(8px) saturate(.82)!important;
  }

  body.customer-site>.customer-header>nav#customerSiteNav{
    display:none!important;
  }
  body.customer-site>.customer-header>nav#customerSiteNav.is-open{
    display:flex!important;
  }

  body.customer-site>.customer-header>nav#customerSiteNav>a,
  body.customer-site>.customer-header>nav#customerSiteNav>a:hover,
  body.customer-site>.customer-header>nav#customerSiteNav>a:focus,
  body.customer-site>.customer-header>nav#customerSiteNav>a:focus-visible,
  body.customer-site>.customer-header>nav#customerSiteNav>a:active{
    display:block!important;
    width:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:15px 4px!important;
    border:0!important;
    border-bottom:1px solid rgba(244,235,219,.2)!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--u201-cream)!important;
    box-shadow:none!important;
    font-family:Montserrat,Arial,sans-serif!important;
    font-size:10px!important;
    font-weight:500!important;
    line-height:1.4!important;
    letter-spacing:.16em!important;
    text-align:left!important;
    text-decoration:none!important;
    text-transform:uppercase!important;
    transform:none!important;
    -webkit-tap-highlight-color:transparent!important;
  }

  body.customer-site>.customer-header>nav#customerSiteNav>a::before,
  body.customer-site>.customer-header>nav#customerSiteNav>a::after{
    content:none!important;
    display:none!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body.customer-site>.customer-header .customer-menu-toggle>span:not(.visually-hidden){
    transition:none!important;
  }
}
