/* Myway Catering — home "Choose how we serve": an order pad (index.html only). Tick a service on the paper
   form and the object beside it changes. Namespaced .op / .op__*. Behaviour: js/serve-pad.js.
   Without JS all three services are simply listed and the buffet is shown. */
.op{--ink:#26252b;--cream:#f6f1ea;--mono:"IBM Plex Mono",ui-monospace,monospace;--sans:"IBM Plex Sans","Helvetica Neue",Arial,sans-serif;--ease:cubic-bezier(.2,.7,.2,1);
  position:relative;overflow:hidden;background:var(--paperw,#f6f1ea);color:var(--ink);font-family:var(--sans);padding:clamp(40px,6vh,64px) 0 clamp(56px,9vh,96px)}
.op *{box-sizing:border-box}
.op img{max-width:none;display:block}
.op__h{margin:0 6% clamp(30px,5vh,54px);display:flex;align-items:center;gap:26px;font:600 clamp(15px,1.5vw,22px)/1 var(--mono);letter-spacing:.22em;text-transform:uppercase;white-space:nowrap}
.op__h::before,.op__h::after{content:"";flex:1;height:3px;background:radial-gradient(circle closest-side,rgba(38,37,43,.75) 75%,rgba(38,37,43,0)) 0 0/12px 3px repeat-x}
.op__grid{display:grid;grid-template-columns:minmax(360px,460px) 1fr;align-items:center;gap:4%;padding-left:7%}

/* ---- the pad ---- */
.op__pad{position:relative;z-index:2;rotate:-1.2deg;filter:drop-shadow(0 1px 1px rgba(60,40,25,.22)) drop-shadow(0 3px 3px rgba(30,22,16,.2)) drop-shadow(8px 22px 24px rgba(30,22,16,.24))}
.op__paper{position:absolute;inset:0;background:linear-gradient(90deg,rgba(40,34,30,.15),rgba(40,34,30,0) 9%,rgba(255,255,255,.08) 46%,rgba(40,34,30,0) 88%,rgba(40,34,30,.17)),#ececea url("../assets/img/receipt-paper-hero.webp") 30% 20%/170% auto;clip-path:polygon(0 6px,1.250% 0,2.500% 6px,3.750% 0,5.000% 6px,6.250% 0,7.500% 6px,8.750% 0,10.000% 6px,11.250% 0,12.500% 6px,13.750% 0,15.000% 6px,16.250% 0,17.500% 6px,18.750% 0,20.000% 6px,21.250% 0,22.500% 6px,23.750% 0,25.000% 6px,26.250% 0,27.500% 6px,28.750% 0,30.000% 6px,31.250% 0,32.500% 6px,33.750% 0,35.000% 6px,36.250% 0,37.500% 6px,38.750% 0,40.000% 6px,41.250% 0,42.500% 6px,43.750% 0,45.000% 6px,46.250% 0,47.500% 6px,48.750% 0,50.000% 6px,51.250% 0,52.500% 6px,53.750% 0,55.000% 6px,56.250% 0,57.500% 6px,58.750% 0,60.000% 6px,61.250% 0,62.500% 6px,63.750% 0,65.000% 6px,66.250% 0,67.500% 6px,68.750% 0,70.000% 6px,71.250% 0,72.500% 6px,73.750% 0,75.000% 6px,76.250% 0,77.500% 6px,78.750% 0,80.000% 6px,81.250% 0,82.500% 6px,83.750% 0,85.000% 6px,86.250% 0,87.500% 6px,88.750% 0,90.000% 6px,91.250% 0,92.500% 6px,93.750% 0,95.000% 6px,96.250% 0,97.500% 6px,98.750% 0,100.000% 6px,100% calc(100% - 6px),98.750% 100%,97.500% calc(100% - 6px),96.250% 100%,95.000% calc(100% - 6px),93.750% 100%,92.500% calc(100% - 6px),91.250% 100%,90.000% calc(100% - 6px),88.750% 100%,87.500% calc(100% - 6px),86.250% 100%,85.000% calc(100% - 6px),83.750% 100%,82.500% calc(100% - 6px),81.250% 100%,80.000% calc(100% - 6px),78.750% 100%,77.500% calc(100% - 6px),76.250% 100%,75.000% calc(100% - 6px),73.750% 100%,72.500% calc(100% - 6px),71.250% 100%,70.000% calc(100% - 6px),68.750% 100%,67.500% calc(100% - 6px),66.250% 100%,65.000% calc(100% - 6px),63.750% 100%,62.500% calc(100% - 6px),61.250% 100%,60.000% calc(100% - 6px),58.750% 100%,57.500% calc(100% - 6px),56.250% 100%,55.000% calc(100% - 6px),53.750% 100%,52.500% calc(100% - 6px),51.250% 100%,50.000% calc(100% - 6px),48.750% 100%,47.500% calc(100% - 6px),46.250% 100%,45.000% calc(100% - 6px),43.750% 100%,42.500% calc(100% - 6px),41.250% 100%,40.000% calc(100% - 6px),38.750% 100%,37.500% calc(100% - 6px),36.250% 100%,35.000% calc(100% - 6px),33.750% 100%,32.500% calc(100% - 6px),31.250% 100%,30.000% calc(100% - 6px),28.750% 100%,27.500% calc(100% - 6px),26.250% 100%,25.000% calc(100% - 6px),23.750% 100%,22.500% calc(100% - 6px),21.250% 100%,20.000% calc(100% - 6px),18.750% 100%,17.500% calc(100% - 6px),16.250% 100%,15.000% calc(100% - 6px),13.750% 100%,12.500% calc(100% - 6px),11.250% 100%,10.000% calc(100% - 6px),8.750% 100%,7.500% calc(100% - 6px),6.250% 100%,5.000% calc(100% - 6px),3.750% 100%,2.500% calc(100% - 6px),1.250% 100%,0.000% calc(100% - 6px))}
.op__body{position:relative;padding:38px 36px 44px}
.op__print{mix-blend-mode:multiply;-webkit-mask:url("../assets/img/receipt-print-mask.webp") 0 0/420px auto repeat;mask:url("../assets/img/receipt-print-mask.webp") 0 0/420px auto repeat}
.op__top{display:flex;justify-content:space-between;margin:0;font:600 13px/1 var(--mono);letter-spacing:.2em;text-transform:uppercase}
.op__dots{display:block;height:2px;margin:16px 0;background:radial-gradient(circle closest-side,rgba(38,37,43,.8) 80%,rgba(38,37,43,0)) 0 0/7px 2px repeat-x}
.op__opts{display:grid;margin:0;padding:0;border:0}
.op__opt{display:flex;align-items:center;gap:16px;width:100%;min-height:44px;padding:5px 0;border:0;background:none;color:inherit;font:700 clamp(16px,1.3vw,19px)/1.1 var(--sans);text-align:left;cursor:pointer;opacity:.48;transition:opacity .3s,translate .4s var(--ease);-webkit-tap-highlight-color:transparent}
.op__opt:hover{opacity:.8}
.op__opt[aria-checked="true"]{opacity:1;translate:4px 0}
.op__opt:focus-visible{outline:2px solid var(--ink);outline-offset:3px;opacity:1}
.op__box{position:relative;flex:0 0 22px;height:22px;border:2.2px solid var(--ink);border-radius:4px}
/* the tick is a hand-drawn cross, drawn stroke by stroke */
.op__box svg{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);overflow:visible}
.op__box path{fill:none;stroke:var(--ink);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:34;stroke-dashoffset:34;transition:stroke-dashoffset .01s}
.op__opt[aria-checked="true"] .op__box path{stroke-dashoffset:0;transition:stroke-dashoffset .28s ease-out}
.op__opt[aria-checked="true"] .op__box path+path{transition-delay:.16s}
.op__sum{margin:0;min-height:8.6em}
.op__desc{margin:0 0 10px;font:400 14.5px/1.6 var(--mono)}
.op__ln{display:flex;justify-content:space-between;gap:14px;font:400 14px/1.9 var(--mono)}
.op__ln dt{margin:0}.op__ln dd{margin:0;font-weight:600;text-align:right}
.op__btn{display:flex;align-items:center;justify-content:center;gap:.7em;height:54px;border-radius:6px;background:#28272b;color:var(--cream);font:600 16px/1 var(--sans);text-decoration:none;transition:gap .35s var(--ease),background .25s}
.op__btn:hover{gap:1.2em;background:#000}
.op__more{display:block;margin-top:14px;text-align:center;color:inherit;font:400 13px/1 var(--mono);letter-spacing:.12em;text-underline-offset:4px}

/* ---- the object ---- */
.op__stage{position:relative;height:clamp(300px,34vw,470px)}
.op__obj{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(18px) scale(.97);transition:opacity .35s,transform .7s var(--ease);pointer-events:none;filter:drop-shadow(0 26px 20px rgba(60,40,20,.28))}
.op__obj.on{opacity:1;transform:none;transition-delay:.12s}
.op__obj img{height:100%;width:auto;max-width:100%;object-fit:contain}
.op__obj--buffet{padding:0 5% 0 0}
.op__obj--buffet img{height:auto;width:51%;max-width:none;margin:0 -1.5%}
/* the waiter's arm runs off the right edge of the page */
.op__obj--canape{justify-content:flex-end}
.op__obj--canape img{height:92%;max-width:none}

/* entrance */
.js .op:not(.in) .op__pad{opacity:0;transform:translateY(40px)}
.js .op:not(.in) .op__stage{opacity:0;transform:translateX(40px)}
.op__pad,.op__stage{transition:opacity .7s,transform 1.1s var(--ease)}
.op__stage{transition-delay:.18s}

/* ---- phones: object on top (fully visible), a compact flat pad underneath ---- */
@media (max-width:820px){
  .op{padding:36px 0 56px}
  .op__h{margin:0 5% 10px;gap:12px;font-size:14px;letter-spacing:.16em}
  .op__grid{display:flex;flex-direction:column-reverse;align-items:stretch;gap:0;padding:0}
  .op__stage{height:min(42vw,190px);margin-bottom:10px}
  .op__obj{padding:0;filter:drop-shadow(0 5px 5px rgba(60,40,20,.26))}
  .op__obj--buffet{padding:0}
  .op__obj--buffet img{width:48%;margin:0}
  .op__obj--canape{padding:0}
  .op__obj--canape img{height:96%}
  .op__pad{margin:0 14px;rotate:0deg}
  .op__body{padding:22px 20px 26px}
  .op__top{font-size:11.5px}
  .op__dots{margin:11px 0}
  .op__opt{min-height:44px;gap:13px;font-size:19px}
  .op__box{flex-basis:24px;height:24px}
  /* two description lines (8px gap) + two detail rows, so the pad never changes height between services */
  .op__sum{min-height:calc(2 * 13.5px * 1.5 + 8px + 2 * 13px * 1.7)}
  .op__desc{margin:0 0 8px;font-size:13.5px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
  .op__ln{font-size:13px;line-height:1.7;align-items:flex-start}
  .op__ln dt{flex:0 0 auto}
  .op__ln dd{min-width:0;overflow-wrap:anywhere}
  .op__btn{height:48px}
  .op__more{margin-top:12px}
  .js .op:not(.in) .op__stage{transform:translateY(24px)}
  /* hold back the floating menu + call-now buttons while the pad is on screen (mirrors html.pass-fab-hold; JS: serve-pad.js) */
  html.op-fab-hold:not(.menu-open) .menu-fab{transform:scale(0);pointer-events:none}
  html.op-fab-hold .callnow{opacity:0;visibility:hidden;transform:translateX(calc(100% + 40px));transition:opacity .3s var(--ease),transform .5s var(--ease),visibility 0s .5s}
}
@media (prefers-reduced-motion:reduce){.op__pad,.op__stage,.op__obj,.op__opt,.op__box path{transition:none!important}}

@media (max-width:767px){.op{padding-top:18px}}
