/* =====================================================================
   Printing Solutionz — polish.css  (design layer, Phase 1)
   Loaded after styles.css. Typography, print-shop details (CMYK dots,
   crop marks, halftone, hand-drawn underline) and motion.
   Remove this file's <link> to go back to the previous look.
   ===================================================================== */

:root {
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  /* Slightly crisper corners: less "template", more print shop */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Process colours, used as small accents only */
  --cmyk-c: #00a3d9;
  --cmyk-m: #e4007c;
  --cmyk-y: #ffcf00;
  --cmyk-k: #1b1f1d;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

body { font-size: 1.02rem; }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 700; }
.hero-copy h1 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; }

/* ---------- CMYK dots before every eyebrow label ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before {
  content: ""; flex: 0 0 auto;
  width: 34px; height: 8px;
  background:
    radial-gradient(circle at 4px 4px, var(--cmyk-c) 3.2px, transparent 3.6px),
    radial-gradient(circle at 13px 4px, var(--cmyk-m) 3.2px, transparent 3.6px),
    radial-gradient(circle at 22px 4px, var(--cmyk-y) 3.2px, transparent 3.6px),
    radial-gradient(circle at 31px 4px, var(--cmyk-k) 3.2px, transparent 3.6px);
}
.hero .eyebrow::before,
.blog-hero .eyebrow::before,
.category-hero .eyebrow::before,
.cta-band .eyebrow::before {
  background:
    radial-gradient(circle at 4px 4px, var(--cmyk-c) 3.2px, transparent 3.6px),
    radial-gradient(circle at 13px 4px, var(--cmyk-m) 3.2px, transparent 3.6px),
    radial-gradient(circle at 22px 4px, var(--cmyk-y) 3.2px, transparent 3.6px),
    radial-gradient(circle at 31px 4px, #fff 3.2px, transparent 3.6px);
}

/* ---------- Halftone texture in dark bands ---------- */
.hero, .cta-band { position: relative; isolation: isolate; }
.hero::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.13) 1.1px, transparent 1.6px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 95%);
          mask-image: linear-gradient(115deg, transparent 35%, #000 95%);
}
.hero::after {
  /* registration mark, bottom left: a quiet printer's detail */
  content: ""; position: absolute; left: 22px; bottom: 22px; width: 26px; height: 26px;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 50%; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) center / 1.5px 40px no-repeat,
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) center / 40px 1.5px no-repeat;
}

/* ---------- Hand-drawn underline ---------- */
.scribble { position: relative; white-space: nowrap; display: inline-block; }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 4, 90 3, 197 9 M 20 17 C 70 11, 120 10, 180 13' fill='none' stroke='%23e08a2c' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s var(--ease-out) .5s;
}
.scribble.is-drawn::after, .no-motion .scribble::after { clip-path: inset(0 0 0 0); }

/* ---------- Hero heading: words rise in ---------- */
.split-words .w { display: inline-block; }
.split-words.is-ready .w {
  opacity: 0; transform: translateY(.45em) rotate(1.5deg);
  animation: word-in .7s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms + 80ms);
}
@keyframes word-in { to { opacity: 1; transform: none; } }

/* Hero cards slide in one after another */
.hero-visual.is-ready .hero-float-card {
  opacity: 0; translate: 0 18px;
  transition: opacity .6s var(--ease-out), translate .6s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 350ms);
}
.hero-visual.is-ready.is-in .hero-float-card { opacity: 1; translate: 0 0; }
.hero-float-card { background: rgba(255,255,255,.06); backdrop-filter: none; border-color: rgba(255,255,255,.2); }

/* Tablet: five cards in one row instead of 2 + 2 + 1 */
@media (min-width: 640px) and (max-width: 859px) {
  .hero-visual .hero-float-card { flex-basis: 128px; }
}

/* ---------- Staggered reveal for grids ---------- */
.reveal.will-animate { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); transform: translateY(22px); }
.reveal.will-animate.is-visible { transform: none; }

/* ---------- Buttons ---------- */
.btn { letter-spacing: .005em; }
.btn-primary { box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(224,138,44,.32); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Product cards: crop marks, image zoom, quick WhatsApp ---------- */
.product-card { position: relative; overflow: visible; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; }
.product-card .product-media { position: relative; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.product-card .product-media img { transition: transform .6s var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-card::after {
  content: ""; position: absolute; inset: -9px; pointer-events: none; opacity: 0;
  transition: opacity .3s ease, inset .3s var(--ease-out);
  --m: rgba(27,31,29,.45);
  background:
    linear-gradient(var(--m), var(--m)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 100% / 1px 14px no-repeat;
}
.product-card:hover::after { opacity: 1; inset: -6px; }
.product-card:hover { border-color: transparent; }

.quick-wa {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .7rem; border-radius: 999px;
  background: var(--color-whatsapp); color: #06331b; font-size: .78rem; font-weight: 700;
  text-decoration: none; box-shadow: 0 6px 14px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.quick-wa svg { width: 15px; height: 15px; }
.product-card:hover .quick-wa, .quick-wa:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .quick-wa { opacity: 1; transform: none; padding: .35rem .55rem; } .quick-wa span { display: none; } }

/* Category tiles: same crop-mark idea, lighter */
.category-tile { position: relative; transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.category-tile:hover { transform: translateY(-3px); }

/* ---------- Process steps: big numerals, dotted path ---------- */
.steps { counter-reset: none; position: relative; }
.step { position: relative; background: #fff; transition: transform .3s var(--ease-out), box-shadow .3s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.step-num {
  display: block; font-size: 2.4rem; line-height: 1; font-weight: 800; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--color-accent);
}
.step:hover .step-num { color: var(--color-accent); }

/* ---------- Materials marquee ---------- */
.marquee {
  border-bottom: 1px solid var(--color-border); background: #fff; overflow: hidden;
  padding: .95rem 0; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.marquee-item {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--color-primary); white-space: nowrap; display: inline-flex; align-items: center; gap: 2.2rem;
}
.marquee-item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--cmyk-m)); }
.marquee-item:nth-child(4n+1) { --dot: var(--cmyk-c); }
.marquee-item:nth-child(4n+2) { --dot: var(--cmyk-m); }
.marquee-item:nth-child(4n+3) { --dot: var(--cmyk-y); }
.marquee-item:nth-child(4n+4) { --dot: var(--cmyk-k); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Closing call-to-action band ---------- */
.cta-band {
  background: var(--color-primary); color: #fff; padding: 4rem 0; overflow: hidden;
}
.cta-band-inner { display: grid; gap: 1.6rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.08; margin: 0 0 .6rem; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 48ch; }
.cta-band .eyebrow { color: var(--cmyk-y); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); }
@media (min-width: 860px) {
  .cta-band-inner { grid-template-columns: 1.4fr 1fr; }
  .cta-band-actions { justify-content: flex-end; }
}
@media (max-width: 639px) {
  .cta-band { padding: 3rem 0; }
  .cta-band-actions .btn { flex: 1 1 100%; }

  /* hero label on one line */
  .hero .eyebrow { font-size: .68rem; letter-spacing: .07em; gap: .45rem; }
  .hero .eyebrow::before { transform: scale(.85); transform-origin: left center; }

  /* process steps: compact rows, number on the left */
  .steps { gap: .7rem; }
  .step { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: .9rem; align-items: start; padding: 1rem 1.1rem; }
  .step-num { grid-row: span 2; font-size: 2rem; }
  .step h3 { margin: .15rem 0 .2rem; }
}

/* ---------- Simple pages: thank-you and 404 ---------- */
.simple-page { padding: 5rem 0 6rem; text-align: center; }
.simple-page .eyebrow { justify-content: center; }
.simple-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin-bottom: .8rem; }
.simple-page p { max-width: 52ch; margin: 0 auto 1.6rem; }
.simple-page .cta-band-actions { justify-content: center; }
.big-404 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 18vw, 10rem); line-height: .9;
  letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--color-primary); margin-bottom: 1rem;
  text-shadow: 6px 6px 0 rgba(0,163,217,.18), -6px 4px 0 rgba(228,0,124,.14);
}

/* ---------- Calm mode: visitors who turned off motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .split-words.is-ready .w { animation: none; opacity: 1; transform: none; }
  .hero-visual.is-ready .hero-float-card { opacity: 1; translate: 0 0; transition: none; }
  .scribble::after { clip-path: none; transition: none; }
  .marquee-track { animation: none; }
  .product-card .product-media img, .product-card::after, .quick-wa { transition: none; }
}
.btn-ghost-dark { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-ghost-dark:hover { background: var(--color-primary); color: #fff; }
