/* UPDATE 214 — SHARED CUSTOMER HEADER, HERO DATUM AND LOWER HOME ACTIONS
   Final page-specific layer. It gives Home, Pre-Order, Pizza At Yours and
   Dough & Co. one logo frame and one hero-copy starting datum at each
   responsive breakpoint. It also shortens the Home action rail so the three
   approved frosted actions read as rectangles rather than tall cards. */

:root{
  --u214-cream:#f4ebdb;
  --u214-header-gutter:5.4vw;
  --u214-header-height:124px;
  --u214-logo-width:300px;
  --u214-logo-height:96px;
  --u214-hero-top:190px;
}

/* One header frame and one master-logo footprint on all four public pages. */
body.customer-site>.customer-header,
body.customer-site.cinematic-home>.customer-header,
body.customer-site.customer-preorder>.customer-header,
body.customer-site.customer-dining-page>.customer-header,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-header{
  min-height:var(--u214-header-height)!important;
  height:var(--u214-header-height)!important;
  padding:12px var(--u214-header-gutter) 0!important;
  align-items:start!important;
}

body.customer-site>.customer-header .customer-logo,
body.customer-site>.customer-header .landing-logo-panel{
  display:flex!important;
  width:var(--u214-logo-width)!important;
  max-width:var(--u214-logo-width)!important;
  height:var(--u214-logo-height)!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  align-items:flex-start!important;
}

body.customer-site>.customer-header .customer-logo img.master-logo,
body.customer-site>.customer-header .landing-logo-panel img.master-logo{
  display:block!important;
  width:100%!important;
  height:var(--u214-logo-height)!important;
  max-height:var(--u214-logo-height)!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:left top!important;
}

/* The first editorial copy block begins at the same vertical datum. Page
   content, type scale, photography and calls to action remain page-specific. */
@media(min-width:901px){
  body.cinematic-home .cinematic-home-copy,
  body.customer-preorder .cinematic-preorder-hero>div,
  body.customer-dining-page .pay-hero-copy,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    position:absolute!important;
    top:var(--u214-hero-top)!important;
    bottom:auto!important;
    transform:none!important;
  }

  body.cinematic-home .cinematic-home-copy{
    left:var(--u214-header-gutter)!important;
    width:min(690px,48vw)!important;
    margin:0!important;
    padding:0!important;
    align-self:auto!important;
  }

  body.customer-preorder .cinematic-preorder-hero>div{
    left:var(--u214-header-gutter)!important;
  }

  body.customer-dining-page .pay-hero-copy{
    left:var(--u214-header-gutter)!important;
    right:auto!important;
    margin:0!important;
  }

  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    left:var(--u214-header-gutter)!important;
    right:auto!important;
    margin:0!important;
  }

  /* The journey heading remains above the actions, but the rail is materially
     shallower and every action is now a wide horizontal rectangle. */
  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) clamp(190px,22vh,230px)!important;
  }
  body.cinematic-home .cinematic-journeys{
    padding:clamp(50px,5.5vh,62px) 3.2vw clamp(14px,1.8vh,20px)!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    min-height:0!important;
    height:100%!important;
    padding:clamp(12px,1.25vw,20px)!important;
  }
  body.cinematic-home .cinematic-journey-divider{
    margin:clamp(10px,1vw,14px) 0!important;
  }
}

@media(max-width:900px){
  :root{
    --u214-header-gutter:28px;
    --u214-header-height:104px;
    --u214-logo-width:min(220px,62vw);
    --u214-logo-height:78px;
    --u214-hero-top:148px;
  }

  body.customer-site>.customer-header,
  body.customer-site.cinematic-home>.customer-header,
  body.customer-site.customer-preorder>.customer-header,
  body.customer-site.customer-dining-page>.customer-header,
  body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 50px!important;
    gap:12px!important;
    padding:12px var(--u214-header-gutter) 0!important;
  }

  body.customer-site>.customer-header .customer-menu-toggle{
    margin:4px 0 0!important;
  }

  body.cinematic-home .cinematic-home-copy,
  body.customer-preorder .cinematic-preorder-hero>div,
  body.customer-dining-page .pay-hero-copy,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    position:absolute!important;
    top:var(--u214-hero-top)!important;
    bottom:auto!important;
    left:var(--u214-header-gutter)!important;
    right:var(--u214-header-gutter)!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    transform:none!important;
    text-align:left!important;
  }

  body.cinematic-home .cinematic-home-copy{
    padding:0!important;
    align-self:auto!important;
  }

  /* Keep the frosted Pizza At Yours panel, but place its outer edge on the
     same shared copy datum as the other hero treatments. */
  body.customer-dining-page .pay-hero-copy{
    padding:22px!important;
  }

  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) clamp(150px,19svh,180px)!important;
  }
  body.cinematic-home .cinematic-journeys{
    gap:clamp(7px,1.5vw,13px)!important;
    padding:34px clamp(8px,2vw,16px) calc(8px + env(safe-area-inset-bottom))!important;
  }
  body.cinematic-home .cinematic-journeys::before{
    top:10px!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    height:100%!important;
    min-height:0!important;
    padding:10px 9px!important;
  }
  body.cinematic-home .cinematic-journey-divider{
    margin:7px 0!important;
  }
}

@media(max-width:900px) and (orientation:landscape){
  :root{
    --u214-header-gutter:32px;
    --u214-header-height:76px;
    --u214-logo-width:190px;
    --u214-logo-height:64px;
    --u214-hero-top:86px;
  }

  body.customer-site>.customer-header,
  body.customer-site.cinematic-home>.customer-header,
  body.customer-site.customer-preorder>.customer-header,
  body.customer-site.customer-dining-page>.customer-header,
  body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-header{
    grid-template-columns:minmax(0,1fr) 44px!important;
    padding:6px var(--u214-header-gutter) 0!important;
  }

  body.customer-site>.customer-header .customer-menu-toggle{
    width:44px!important;
    height:44px!important;
    margin:1px 0 0!important;
  }

  body.cinematic-home .cinematic-home-copy,
  body.customer-preorder .cinematic-preorder-hero>div,
  body.customer-dining-page .pay-hero-copy,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    right:auto!important;
    width:min(50vw,520px)!important;
  }

  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) clamp(112px,31svh,142px)!important;
  }
  body.cinematic-home .cinematic-journeys{
    padding:29px 3vw 7px!important;
  }
  body.cinematic-home .cinematic-journeys::before{
    top:8px!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    padding:7px 10px!important;
  }
  body.cinematic-home .cinematic-journey-divider{
    margin:5px 0!important;
  }
}

@media(max-width:430px) and (orientation:portrait){
  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) clamp(142px,18svh,158px)!important;
  }
  body.cinematic-home .cinematic-journeys{
    padding:33px 7px calc(7px + env(safe-area-inset-bottom))!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    padding:8px 7px!important;
  }
}

