/* Soham Printing and Services
   Idea: the page is a press sheet. Process colours carry meaning:
   cyan = prints, magenta = repair, yellow = printers, key = actions. */

:root {
  --paper: #ffffff;
  --sheet: #eef0f2;      /* cool uncoated stock */
  --key: #231f20;        /* process black */
  --cyan: #00a3e0;
  --magenta: #e5007e;
  --yellow: #ffe600;
  --rule: #c9cdd2;
  --muted: #5b6168;
  --wa: #128c4a;

  --f: "Archivo", system-ui, sans-serif;
  --wide: 125%;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6.5rem;
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--key);
  font-family: var(--f); font-size: 1.0625rem; line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--key); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------- colour bar (the strip printers check every sheet with) ---------- */
.colourbar { display: grid; grid-template-columns: repeat(15, 1fr); height: 10px; }
.colourbar span { display: block; }
.colourbar .c { background: var(--cyan); } .colourbar .m { background: var(--magenta); }
.colourbar .y { background: var(--yellow); } .colourbar .k { background: var(--key); }
.colourbar .t50 { opacity: .5; } .colourbar .t20 { opacity: .2; }
.colourbar .r { background: #e4002b; } .colourbar .g { background: #00a651; } .colourbar .b { background: #2e3192; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s3);
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; line-height: 1; font-weight: 800; font-size: 1.15rem; font-stretch: var(--wide); font-variation-settings: "wdth" 125; }
.brand small { font-weight: 500; font-size: .72rem; font-variation-settings: "wdth" 100; color: var(--muted); }
.reg { width: 30px; height: 30px; }
.nav { display: flex; gap: var(--s3); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: currentColor; }
.cart-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--key); color: #fff; border: 0; border-radius: 999px;
  padding: .55rem .6rem .55rem 1.1rem; font-weight: 700; cursor: pointer;
}
.cart-count { background: var(--yellow); color: var(--key); border-radius: 999px; min-width: 1.6rem; padding: .1rem .45rem; text-align: center; font-size: .85rem; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- hero: four plates come into register ---------- */
.hero {
  position: relative; max-width: calc(var(--max) + 7rem); margin: 0 auto;
  padding: clamp(3rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}
.crop { position: absolute; width: 28px; height: 28px; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--key); }
.crop::before { width: 28px; height: 1px; } .crop::after { width: 1px; height: 28px; }
.crop.tl { top: 18px; left: 18px; } .crop.tl::before { top: 0; left: -10px; } .crop.tl::after { left: 0; top: -10px; }
.crop.tr { top: 18px; right: 18px; } .crop.tr::before { top: 0; right: -10px; } .crop.tr::after { right: 0; top: -10px; }
.crop.bl { bottom: 18px; left: 18px; } .crop.bl::before { bottom: 0; left: -10px; } .crop.bl::after { left: 0; bottom: -10px; }
.crop.br { bottom: 18px; right: 18px; } .crop.br::before { bottom: 0; right: -10px; } .crop.br::after { right: 0; bottom: -10px; }

.press {
  margin: 0; font-weight: 850; font-variation-settings: "wdth" 125; font-stretch: 125%;
  font-size: clamp(2.1rem, 5.2vw, 5.9rem); line-height: .98; letter-spacing: -.02em;
}
.press .line { position: relative; display: block; isolation: isolate; width: fit-content; max-width: 100%; }
.press .line::before, .press .line::after {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1;
  mix-blend-mode: multiply; pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.press .line::before { color: var(--cyan); }
.press .line::after  { color: var(--magenta); }
.press .line { text-shadow: 0 0 0 var(--yellow); }

/* load: plates start off-register, then pull in one line after another */
/* --d = when this line's plates start moving; black ink lands just after */
.press .line:nth-child(1) { --d: .25s; }
.press .line:nth-child(2) { --d: .55s; }
.press .line:nth-child(3) { --d: .85s; }
.js .press .line {
  color: transparent; text-shadow: .08em -.12em 0 var(--yellow);
  animation: yel .9s cubic-bezier(.2,.8,.2,1) var(--d) forwards,
             ink .45s ease-out calc(var(--d) + .4s) forwards;
}
.js .press .line::before { transform: translate(-.16em, -.07em); animation: plate .9s cubic-bezier(.2,.8,.2,1) var(--d) forwards; }
.js .press .line::after  { transform: translate(.13em, .09em);  animation: plate .9s cubic-bezier(.2,.8,.2,1) var(--d) forwards; }
@keyframes plate { to { transform: translate(0, 0); } }
@keyframes ink { to { color: var(--key); } }
@keyframes yel { to { text-shadow: 0 0 0 var(--yellow); } }

/* answer the pointer: the plates slip when you touch the sheet */
.press.done:hover .line::before { animation: none; transform: translate(-.05em, -.025em); }
.press.done:hover .line::after  { animation: none; transform: translate(.04em, .03em); }
.press.done .line::before, .press.done .line::after { animation: none; transform: none; }
.press.done .line { animation: none; color: var(--key); text-shadow: 0 0 0 var(--yellow); }

.hero-foot { display: grid; grid-template-columns: minmax(0, 30rem) 1fr; gap: var(--s4); align-items: end; margin-top: clamp(2rem, 5vw, 3.5rem); }
.lede { margin: 0; font-size: 1.15rem; color: #3a3f45; max-width: 34em; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--key); }
.door { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem 1.1rem; text-decoration: none; border-top: 10px solid; transition: background .2s; }
.door + .door { border-left: 2px solid var(--key); }
.door b { font-size: 1.1rem; font-variation-settings: "wdth" 112; }
.door span { font-size: .88rem; color: var(--muted); }
.door-c { border-top-color: var(--cyan); } .door-m { border-top-color: var(--magenta); } .door-y { border-top-color: var(--yellow); }
.door:hover { background: var(--sheet); }

/* ---------- sections ---------- */
.sec { padding: var(--s6) clamp(1.25rem, 5vw, 3.5rem); }
.sec > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
/* vertical margins only, so .sec > * keeps the centring */
.sec h2 { margin-top: 0; margin-bottom: 0; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.015em; }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 28rem); gap: var(--s3); align-items: end; margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 3px solid; }
.sec-head p { margin: 0; color: #3a3f45; }
.prints .sec-head { border-color: var(--cyan); }
.solutions .sec-head { border-color: var(--magenta); }
.printers .sec-head { border-color: var(--yellow); }
.prints { background: var(--sheet); }
.printers { background: var(--sheet); }

/* ---------- prints studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: var(--s4); align-items: start; }
.product-list { border: 0; margin: 0; padding: 0; }
.pchoice { display: block; position: relative; cursor: pointer; }
.pchoice input { position: absolute; opacity: 0; }
.pchoice span { display: block; padding: .9rem 1rem .9rem 1.2rem; border-left: 4px solid transparent; border-bottom: 1px solid var(--rule); }
.pchoice b { display: block; font-size: 1.05rem; }
.pchoice small { color: var(--muted); }
.pchoice:hover span { background: rgba(0,163,224,.07); }
.pchoice input:checked + span { border-left-color: var(--cyan); background: var(--paper); }
.pchoice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: -3px; }

.ticket {
  position: relative; background: var(--paper); padding: var(--s4);
  border: 1px solid var(--rule);
  box-shadow: 6px 6px 0 var(--cyan);
}
.ticket-head h3 { margin: 0; font-size: 1.6rem; font-variation-settings: "wdth" 115; }
.ticket-head p { margin: .25rem 0 var(--s3); color: var(--muted); }
.opts { display: grid; gap: var(--s3); }
.opt legend, .field > span, .field legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .45rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.opt { border: 0; padding: 0; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: .5rem .85rem; border: 1.5px solid var(--key); border-radius: 6px; cursor: pointer; font-size: .95rem; background: var(--paper); }
.seg input:checked + span { background: var(--key); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.seg small { color: inherit; opacity: .7; margin-left: .3rem; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.field { display: block; margin: 0; }
.ticket > .field { margin-top: var(--s3); }
.field input[type="text"], .field input[type="tel"], .field input:not([type]), .field textarea, .field input[type="file"] {
  width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--key); border-radius: 6px; background: var(--paper);
}
.field input[type="file"] { padding: .45rem; font-size: .9rem; }
.stepper { display: flex; border: 1.5px solid var(--key); border-radius: 6px; overflow: hidden; width: max-content; }
.stepper button { width: 2.6rem; border: 0; background: var(--sheet); font-size: 1.2rem; cursor: pointer; }
.stepper input { width: 5rem; border: 0; text-align: center; padding: .55rem 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.total { display: flex; justify-content: space-between; align-items: end; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s3); border-top: 2px dashed var(--rule); flex-wrap: wrap; }
.total-label { display: block; font-size: .9rem; color: var(--muted); }
.total output { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 850; line-height: 1; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; }
.each { font-size: .88rem; color: var(--muted); }
.tool-link { margin: var(--s3) 0 0; font-size: .92rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px; padding: .85rem 1.5rem; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn-k { background: var(--key); color: #fff; }
.btn-k:hover { background: #000; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0d7a3f; }
.btn.wide { width: 100%; }

/* ---------- repair jobs ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s3); }
.chip { border: 1.5px solid var(--key); background: transparent; border-radius: 999px; padding: .4rem 1rem; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--key); color: #fff; }
.jobs { list-style: none; padding: 0; margin-top: 0; border-top: 2px solid var(--key); }
.job { display: grid; grid-template-columns: 4.5rem 1fr 7rem 6rem auto; gap: var(--s3); align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.job .tag { font-size: .78rem; font-weight: 800; text-align: center; padding: .25rem 0; border: 1.5px solid; border-radius: 4px; }
.tag-Epson { color: #1b4f9c; } .tag-HP { color: #0096d6; } .tag-Both { color: var(--magenta); }
.job h3 { margin: 0; font-size: 1.12rem; }
.job p { margin: .15rem 0 0; color: var(--muted); font-size: .94rem; }
.job .time { font-size: .9rem; color: var(--muted); }
.job .price { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; }
.job .price small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.add { border: 1.5px solid var(--key); background: var(--paper); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.add:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.add.done { background: var(--key); color: #fff; }

/* ---------- printer shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: var(--s3); }
.unit { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); }
.unit figure { margin: 0; background: linear-gradient(to bottom, #f7f8f9, #e6e9ec); padding: 1.4rem 1.2rem .6rem; border-bottom: 1px solid var(--rule); }
.unit svg { width: 100%; height: auto; max-height: 150px; }
.unit .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.unit .meta { font-size: .85rem; color: var(--muted); }
.unit h3 { margin: .1rem 0 .6rem; font-size: 1.3rem; font-variation-settings: "wdth" 112; }
.unit ul { margin: 0 0 1rem; padding-left: 1.1rem; color: #3a3f45; font-size: .94rem; }
.unit .buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.unit .amt { font-size: 1.45rem; font-weight: 850; font-variation-settings: "wdth" 120; font-variant-numeric: tabular-nums; }
.unit .add:hover { background: var(--yellow); border-color: var(--key); color: var(--key); }
.unit.out .amt { color: var(--muted); }
.unit.out .add { opacity: .9; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; background: var(--yellow); padding: .1rem .5rem; border-radius: 3px; margin-left: .4rem; }

/* ---------- how it works ---------- */
.how h2 { margin-bottom: var(--s4); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 2px solid var(--key); }
.steps li { counter-increment: s; padding: var(--s3) var(--s3) 0 0; display: flex; flex-direction: column; gap: .3rem; }
.steps li::before { content: counter(s); font-size: 3rem; font-weight: 850; line-height: 1; font-variation-settings: "wdth" 125; color: var(--key); margin-bottom: .4rem; }
.steps span { color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--key); color: #fff; }
.contact h2 { margin-bottom: var(--s4); }
.contact-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin: 0 auto var(--s4); }
.contact-list dt { font-size: .85rem; color: #aeb4ba; }
.contact-list dd { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 600; }
.contact .btn-wa { display: inline-flex; }
.contact .btn { margin-left: max(0px, calc((100% - var(--max)) / 2)); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding: var(--s3) clamp(1.25rem, 5vw, 3.5rem); font-size: .9rem; color: var(--muted); border-top: 1px solid var(--rule); }
.foot p { margin: 0; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(35,31,32,.45); z-index: 40; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(27rem, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  border-left: 10px solid var(--key);
}
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--rule); }
.cart-head h2 { margin: 0; font-size: 1.4rem; font-variation-settings: "wdth" 120; }
.x { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.cart-items { list-style: none; margin: 0; padding: 0 1.4rem; overflow-y: auto; flex: 1; }
.ci { display: grid; grid-template-columns: 6px 1fr auto; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.ci .dot { border-radius: 3px; }
.ci .dot.prints { background: var(--cyan); } .ci .dot.repair { background: var(--magenta); } .ci .dot.printer { background: var(--yellow); }
.ci b { display: block; }
.ci small { color: var(--muted); display: block; }
.ci .right { text-align: right; }
.ci .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.ci .rm { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 0; }
.cart-empty { padding: 1.4rem; color: var(--muted); }
.checkout { padding: 1.2rem 1.4rem 1.4rem; border-top: 2px solid var(--key); display: grid; gap: .8rem; background: var(--sheet); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart-total output { font-size: 1.8rem; font-weight: 850; font-variation-settings: "wdth" 120; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.radios legend { width: 100%; }
.fine { margin: 0; font-size: .82rem; color: var(--muted); }
.form-error { margin: 0; color: #b00020; font-weight: 600; font-size: .9rem; }
.form-error:empty { display: none; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, calc(100% + 2rem)); visibility: hidden; background: var(--key); color: #fff; padding: .75rem 1.2rem; border-radius: 999px; font-weight: 600; z-index: 60; transition: transform .3s ease; box-shadow: 4px 4px 0 var(--yellow); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-foot, .studio, .sec-head { grid-template-columns: 1fr; }
  .steps, .contact-list { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .job { grid-template-columns: 4rem 1fr auto; }
  .job .time { grid-column: 2; }
  .job .price { grid-column: 3; grid-row: 1; }
  .job .add { grid-column: 3; grid-row: 2; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .doors { grid-template-columns: 1fr; }
  .door + .door { border-left: 0; border-top-width: 10px; }
  .row2 { grid-template-columns: 1fr; }
  .ticket { padding: var(--s3); box-shadow: 4px 4px 0 var(--cyan); }
  .sec { padding-top: var(--s5); padding-bottom: var(--s5); }
  .steps, .contact-list { grid-template-columns: 1fr; }
  .crop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .press .line, .js .press .line::before, .js .press .line::after { animation: none !important; color: var(--key); transform: none; text-shadow: none; }
  .js .press .line::before, .js .press .line::after { color: transparent; }
  .cart, .toast { transition: none; }
}
