/* ==========================================================================
   Pizza Mania · site.css
   Shared by every page: fonts, brand colours, header, page bar, footer,
   buttons (with the Pac-Man bite), the sticky order bar and back-to-top.
   Page-only styles live in home.css (home) and pages.css (all other pages).
   Phone layout: 700px and below.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face{font-family:'Fraunces';src:url('../fonts/fraunces-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Fraunces';src:url('../fonts/fraunces-latin-400-italic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Fraunces';src:url('../fonts/fraunces-latin-700-normal.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Fraunces';src:url('../fonts/fraunces-latin-900-normal.woff2') format('woff2');font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:'Libre Franklin';src:url('../fonts/libre-franklin-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Libre Franklin';src:url('../fonts/libre-franklin-latin-600-normal.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Libre Franklin';src:url('../fonts/libre-franklin-latin-800-normal.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}

/* ---------- Brand colours ---------- */
:root{--red:#E60B1F;--red-text:#C8102E;--red-dark:#8B0A1F;--cream:#FBF3E4;--ink:#1C1917;--olive:#1D6A26;--gold:#EEC21A;--gold-deep:#866320;--muted:#5F5F5F;--rule:#C4B8A0;--paper:#FFF6E6}

/* ---------- Page ---------- */
html{scroll-behavior:smooth}
html,body{background:#FBF3E4;color-scheme:light}
body{margin:0;color:var(--ink);font-family:'Libre Franklin',Arial,sans-serif;font-size:17px;line-height:1.45}
.wrap{max-width:1200px;margin:0 auto;padding:0 48px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--cream);padding:10px 14px;z-index:99;text-decoration:none}
.skip:focus{left:8px}
a:focus-visible,button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* the header, page bar, footer and order bar look the same on every page */
.hdr,.pbar,.ftr,.mbar{font-family:'Libre Franklin','Helvetica Neue',Arial,sans-serif;font-size:18px;line-height:1.5;color:var(--ink)}
.hdr *,.pbar *,.ftr *,.mbar *,.totop{box-sizing:border-box}
.hdr a,.pbar a,.ftr a,.mbar a{color:inherit;text-decoration:none}
.ftr p{margin:0}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 28px;border:0;border-radius:4px;font-family:inherit;font-weight:800;font-size:16px;letter-spacing:1.5px;text-transform:uppercase;white-space:nowrap;text-decoration:none;cursor:pointer}
.btn.btn-red{background:var(--red);color:#fff}
.btn.btn-red:hover{background:var(--red-dark)}
.btn.btn-ghost{border:2px solid var(--cream);color:var(--cream)}
.btn.btn-ink{background:transparent;border:2px solid var(--ink);color:var(--ink)}

/* Pac-Man bite on the red Order buttons (site.js adds the markup and the fx-bite class) */
.fx-bite a.fxb{position:relative;overflow:hidden}
.fx-bite a.fxb .bl{display:inline-block;transition:transform .25s ease}
.fx-bite a.fxb .bite{position:absolute;right:12px;top:50%;width:24px;height:24px;margin-top:-12px;pointer-events:none}
.fx-bite a.fxb .bite b{position:absolute;left:0;top:0;width:24px;height:24px;background:url("../img/pac-bite.png") center/contain no-repeat;opacity:0;transform:translateX(44px)}
.fx-bite a.fxb .bite i{position:absolute;top:10px;width:5px;height:5px;border-radius:50%;background:#FBF3E4;opacity:0}
.fx-bite a.fxb .bite i:nth-child(1){left:6px}
.fx-bite a.fxb .bite i:nth-child(2){left:16px}
.fx-slices a.fxb .bite i{top:6px;width:12px;height:12px;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M11.5 6 L1.6 1.2 Q0.2 6 1.6 10.8 Z' fill='%23F6D27A' stroke='%232C2C2C' stroke-width='.7' stroke-linejoin='round'/%3E%3Cpath d='M1.6 1.2 Q0.2 6 1.6 10.8' fill='none' stroke='%23C98A2E' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='4.6' r='1.15' fill='%23B3122B'/%3E%3Ccircle cx='4.6' cy='7.6' r='1.1' fill='%23B3122B'/%3E%3Ccircle cx='7.6' cy='6.1' r='.9' fill='%23B3122B'/%3E%3C/svg%3E") center/contain no-repeat}
.fx-slices a.fxb .bite i:nth-child(1){left:1px}
.fx-slices a.fxb .bite i:nth-child(2){left:13px}
.fx-bite a.fxb:hover .bl,.fx-bite a.fxb:focus-visible .bl,.fx-bite a.fxb.chomp .bl{transform:translateX(-12px)}
.fx-bite a.fxb:hover .bite b,.fx-bite a.fxb:focus-visible .bite b,.fx-bite a.fxb.chomp .bite b{animation:fxPac .75s steps(1,end) forwards,fxSlide .75s linear forwards}
.fx-bite a.fxb:hover .bite i:nth-child(1),.fx-bite a.fxb:focus-visible .bite i:nth-child(1),.fx-bite a.fxb.chomp .bite i:nth-child(1){animation:fxDot1 .75s linear forwards}
.fx-bite a.fxb:hover .bite i:nth-child(2),.fx-bite a.fxb:focus-visible .bite i:nth-child(2),.fx-bite a.fxb.chomp .bite i:nth-child(2){animation:fxDot2 .75s linear forwards}
@keyframes fxSlide{0%{opacity:1;transform:translateX(44px)}100%{opacity:1;transform:translateX(0)}}
@keyframes fxPac{0%,30%,60%{rotate:-12deg}15%,45%,75%{rotate:6deg}90%,100%{rotate:0deg}}
@keyframes fxDot1{0%{opacity:0}10%,84%{opacity:1}88%,100%{opacity:0}}
@keyframes fxDot2{0%{opacity:0}10%,60%{opacity:1}64%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .fx-bite a.fxb .bite b,.fx-bite a.fxb .bite i,.fx-bite a.fxb .bl{animation:none!important;transition:none}
  .fx-bite a.fxb:hover .bite b,.fx-bite a.fxb:focus-visible .bite b,.fx-bite a.fxb.chomp .bite b{opacity:1;transform:none}
}

/* ---------- Header ---------- */
.hdr{background:var(--cream);border-bottom:1px solid var(--rule)}
.hdr .wrap{display:flex;align-items:center;gap:32px;height:88px}
.hdr .logo{display:block;flex-shrink:0;line-height:0}
.hdr img{height:48px;width:auto;display:block}
.nav{display:flex;gap:28px;flex-grow:1;justify-content:center;font-weight:600;font-size:16px}
.nav a{white-space:nowrap}
.hdr .nav a:hover{color:var(--red-text)}
.hdr .nav a[aria-current]{color:var(--red-text);border-bottom:2px solid var(--red-text)}
.hdr-r{display:flex;align-items:center;gap:20px}
.hdr-phone{font-weight:800;font-size:16px;white-space:nowrap}
@media (min-width:701px) and (max-width:1100px){.hdr-phone{display:none}.hdr .wrap{gap:18px}.nav{gap:18px;font-size:15px}}
@media (min-width:1001px) and (max-width:1400px){.nav{gap:18px}}
@media (min-width:701px) and (max-width:900px){.hdr .wrap{gap:14px}.nav{gap:14px;font-size:14px}.hdr img{height:40px}}
@media (min-width:701px) and (max-width:780px){.hdr .wrap{gap:10px}.nav{gap:10px;font-size:13.5px}.hdr img{height:34px}.hdr-r .btn{padding-left:14px;padding-right:14px;font-size:14px}}

/* ---------- Page bar (phones: Menu · Catering · Gift cards · Find us) ---------- */
.pbar{display:none}

/* ---------- Footer ---------- */
.ftr{color:var(--cream)}
.ftr-top{background:var(--cream);color:var(--ink);border-top:3px solid var(--red);padding:40px 0}
.ftr .wrap{display:flex;justify-content:space-between;align-items:center;gap:24px}
.ftr img{height:72px;width:auto;display:block}
.ftr .ftr-top img{max-width:100%;height:auto;max-height:72px}
.ftr .ital{font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:400;font-size:22px;color:var(--olive);text-align:right}
.ftr-bar{background:var(--olive);padding:20px 0}
.ftr .ftr-fine{font-size:15px}
.ftr .ftr-more a{text-decoration:underline;text-underline-offset:3px}
.ftr .ftr-credit{display:inline-flex;align-items:center;gap:8px;margin-top:8px;font-size:13px;opacity:.9}
.ftr a.ftr-credit:hover{text-decoration:underline}
.ftr-credit svg{display:block;flex-shrink:0}
.ftr .soc{display:flex;flex-wrap:wrap;column-gap:20px;gap:20px;font-weight:800;font-size:15px}
.ftr .soc a{display:inline-flex;align-items:center;min-height:44px}

/* ---------- Sticky order bar (phones) ---------- */
.mbar{display:none}

/* ---------- Back to top: a peel carrying a pie ---------- */
.totop{position:fixed;right:22px;bottom:22px;z-index:49;width:60px;height:60px;border-radius:50%;border:2px solid #1C1917;background:#FBF3E4;box-shadow:0 8px 22px rgba(0,0,0,.22);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transform:translateY(14px);transition:opacity .25s ease,transform .25s ease}
.totop.on{opacity:1;transform:none}
.totop svg{display:block;overflow:visible}
.totop .pl-pie,.totop .pl-peel,.totop .pl-up{transition:transform .2s ease}
.totop:hover .pl-up,.totop:focus-visible .pl-up,.totop:hover .pl-pie,.totop:focus-visible .pl-pie{transform:translateY(-2px)}
.totop:focus-visible{outline:3px solid #E60B1F;outline-offset:3px}
.totop.lift .pl-up{animation:plUp .55s ease}
.totop.lift .pl-peel{animation:plPeel .55s ease}
.totop.lift .pl-pie{animation:plPie .55s ease}
@keyframes plUp{0%{transform:none}40%{transform:translateY(-5px)}100%{transform:none}}
@keyframes plPeel{0%{transform:none}40%{transform:translateY(-6px)}100%{transform:none}}
@keyframes plPie{0%{transform:none}35%{transform:translateY(-12px) rotate(-12deg)}70%{transform:translateY(-4px) rotate(4deg)}100%{transform:none}}

/* ---------- Phones ---------- */
@media (max-width:700px){
  .wrap{padding:0 20px}
  .hdr,.pbar,.ftr,.mbar{font-size:17px}
  .hdr .wrap{height:68px;gap:12px;justify-content:center}
  .hdr img{height:38px}
  .nav,.hdr-phone,.hdr-r{display:none}
  .btn{min-height:52px}

  .pbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#FBF3E4;border-bottom:1px solid #C4B8A0}
  .pbar a{display:flex;align-items:center;justify-content:center;min-height:46px;font-weight:700;font-size:15px;color:#1C1917;border-bottom:3px solid transparent}
  .pbar a[aria-current]{color:var(--red-text);border-bottom-color:var(--red-text)}
  .pbar a:focus-visible{outline:3px solid #EEC21A;outline-offset:-3px}

  .ftr .wrap{flex-direction:column;align-items:flex-start}
  .ftr .ital{text-align:left;font-size:19px}
  .ftr .ftr-fine{font-size:15px}
  .ftr .soc{gap:18px;flex-wrap:wrap}
  .ftr .soc a{display:inline-flex;align-items:center;min-height:48px;padding:0 4px}
  .ftr{padding-bottom:84px}

  .mbar{display:flex;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:50;gap:10px;padding:10px;border-radius:18px;background:rgba(247,241,227,.42);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 30px rgba(0,0,0,.18);transition:transform .25s ease}
  .mbar.mbar-auto{transform:translateY(140%)}
  .mbar.on{transform:none}
  .mbar .btn{flex:1;min-height:54px;font-size:17px;border-radius:12px}
  .mbar .mbar-call{flex:0 0 54px;height:54px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:rgba(255,255,255,.7);color:var(--ink)}
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.mbar{background:rgba(247,241,227,.94)}}

  .totop{right:14px;bottom:calc(98px + env(safe-area-inset-bottom));width:56px;height:56px}
}
/* narrow desktop windows: the glass blur on the order bar is costly while scrolling; phones keep it */
@media (max-width:700px) and (hover:hover){.mbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(247,241,227,.95)}}
@media (max-width:360px){.pbar a{font-size:14px}}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .mbar{transition:none}
  .totop,.totop *{transition:none!important;animation:none!important}
}

/* ---------- Print ---------- */
@media print{
  html,body{background:#fff}
  .hdr,.pbar,.mbar,.totop,.ftr,.skip,.sband,.lights{display:none!important}
  .wrap{max-width:none;padding:0}
}
