/* ==========================================================================
   KJ Print N' Go — site.css
   Section-level styles: hero, stats, services, showcase, portfolio, process,
   about, contact, quote page, lightbox, scroll animations, print styles.
   Depends on the tokens defined in core.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Scroll reveal
   Elements tagged [data-reveal] start slightly low and faded; main.js adds
   .is-in via IntersectionObserver. Staggered with --d on children.
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* No-JS fallback: never leave content invisible. */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Honour the OS "reduce motion" setting everywhere. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* The bottom padding keeps the hero image's rounded corners clear of the
     stat strip below; without it the section edge clips them square. */
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
}
/* A very soft CMYK wash behind the headline — barely there, but it stops the
   white page from feeling like a blank document. */
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto; height: 620px;
  background:
    radial-gradient(38% 52% at 22% 32%, rgba(41,171,226,.13), transparent 70%),
    radial-gradient(34% 46% at 76% 22%, rgba(236,0,140,.10), transparent 70%),
    radial-gradient(32% 44% at 52% 62%, rgba(255,210,0,.13), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2);
  backdrop-filter: blur(10px);
  margin-bottom: 26px;
}
.hero__eyebrow img { width: 22px; height: 22px; border-radius: 50%; }
.hero__eyebrow b { color: var(--ink); font-weight: 600; }

.hero__title { max-width: 15ch; margin-inline: auto; }
/* The three ink dots that punctuate the headline. */
.ink-dot {
  display: inline-block; width: .34em; height: .34em;
  border-radius: 50%; vertical-align: baseline;
  margin-left: .04em;
}
.ink-dot--c { background: var(--c); }
.ink-dot--m { background: var(--m); }
.ink-dot--y { background: var(--y); }

.hero__lead { max-width: 60ch; margin: 26px auto 0; }
.hero__actions { margin-top: 34px; justify-content: center; }

/* Hero image — a product shot floating on white, Apple product-page style. */
.hero__media {
  margin-top: clamp(40px, 6vw, 72px);
  position: relative;
}
.hero__media img {
  width: 100%; max-width: 940px; margin-inline: auto;
  border-radius: var(--r-lg);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
@media (max-width: 640px) { .hero__media img { aspect-ratio: 4 / 3; border-radius: var(--r); } }

/* --------------------------------------------------------------------------
   3. Stat strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { background: var(--bg); padding: clamp(24px, 3.5vw, 40px) 20px; text-align: center; }
.stat__num {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600; letter-spacing: -.03em; line-height: 1;
  color: var(--ink);
}
.stat__label { margin-top: 9px; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.4; }

/* --------------------------------------------------------------------------
   4. Services
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 32px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.svc__icon {
  width: 46px; height: 46px; margin-bottom: 20px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.svc__icon svg { width: 23px; height: 23px; }
.svc:hover .svc__icon { background: var(--brand); color: #fff; }

.svc__title { font-size: 1.1875rem; letter-spacing: -.022em; margin-bottom: 9px; }
.svc__desc  { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.svc__meta  { margin-top: 18px; font-size: var(--fs-xs); color: var(--ink-3); }

/* Full capability list — everything the shop prints, as quiet pills. */
.cap-list {
  display: flex; flex-wrap: wrap; gap: 9px;
  list-style: none; margin: 0; padding: 0;
}
.cap-list li {
  padding: 9px 17px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); color: var(--ink-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease-out);
}
.cap-list li:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-2px); }
/* On a tinted band the pills need a plain white plate to stay legible. */
.section--grey .cap-list li,
.section--warm .cap-list li { background: #fff; }

/* --------------------------------------------------------------------------
   5. Dark showcase band (corporate / bulk work)
   -------------------------------------------------------------------------- */
.showcase { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 1.1fr; } }

.showcase__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }

.showcase__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 15px; }
.showcase__list li {
  display: flex; gap: 13px; align-items: flex-start;
  font-size: var(--fs-body); color: #c7d3dc; line-height: 1.5;
}
.showcase__list svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--c); }
.showcase__list b { color: #fff; font-weight: 500; }

/* --------------------------------------------------------------------------
   6. Portfolio
   -------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-bottom: 34px;
}
.filter {
  padding: 8px 17px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); color: var(--ink-2);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* An editorial grid: most tiles are square, two are given extra room so the
   page does not read as a uniform contact sheet. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  /* Floor for the rare row made only of wide tiles, which have no intrinsic
     height of their own (see .tile--wide below). */
  grid-auto-rows: minmax(150px, auto);
}
@media (min-width: 700px)  { .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.tile {
  position: relative;
  display: block;
  padding: 0; border: 0; background: var(--bg-2);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
/* Feature tiles break the uniform contact-sheet rhythm. They drop their own
   aspect ratio and stretch to whatever height the square tiles beside them
   set, so every row still lines up on a single baseline. */
@media (min-width: 700px) {
  .tile--wide { grid-column: span 2; aspect-ratio: auto; }
  .tile--tall { grid-row: span 2; aspect-ratio: auto; }
}

/* The picture is taken out of flow so it contributes no height of its own.
   Square tiles get their height from aspect-ratio; wide and tall tiles have
   none and therefore stretch to the row their square siblings define, which
   keeps every row on one baseline regardless of the column width. */
.tile picture { position: absolute; inset: 0; display: block; }

.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.055); }

/* Caption veil slides up on hover. */
.tile__veil {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.76) 0%, rgba(0,0,0,.28) 42%, transparent 72%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  text-align: left;
}
.tile:hover .tile__veil, .tile:focus-visible .tile__veil { opacity: 1; }

.tile__cat {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin-bottom: 5px;
}
.tile__name {
  font-size: var(--fs-sm); font-weight: 500; color: #fff; line-height: 1.35;
  transform: translateY(6px);
  transition: transform .35s var(--ease-out);
}
.tile:hover .tile__name, .tile:focus-visible .tile__name { transform: none; }

/* Filtering: hidden tiles collapse out of the grid. */
.tile.is-hidden { display: none; }

/* Touch devices have no hover, so keep captions permanently visible. */
@media (hover: none) {
  .tile__veil { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%); }
  .tile__name { transform: none; }
}

/* --------------------------------------------------------------------------
   7. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure { margin: 0; max-width: min(1000px, 100%); max-height: 100%; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 74vh;
  width: auto; margin-inline: auto;
  border-radius: var(--r);
  background: #1a1a1c;
  transform: scale(.96);
  transition: transform .35s var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__cap { margin-top: 18px; color: #c7d3dc; font-size: var(--fs-sm); }
.lightbox__cap b { display: block; color: #fff; font-weight: 500; margin-bottom: 3px; }

.lightbox__btn {
  position: absolute;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border: 0; border-radius: 50%;
  color: #fff;
  transition: background-color .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__btn svg { width: 19px; height: 19px; }
.lightbox__close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.lightbox__prev  { left:  clamp(10px, 2.5vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: clamp(10px, 2.5vw, 28px); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; } }

.about__body p + p { margin-top: 20px; }

.about__mission {
  margin-top: 30px; padding: 26px 28px;
  background: var(--bg-2);
  /* A four-ink edge running top to bottom, so all of CMYK reads on a 3px rule. */
  border-width: 0 0 0 3px;
  border-style: solid;
  border-image: linear-gradient(180deg, var(--c), var(--m) 38%, var(--y) 72%, var(--k)) 1;
}
.about__mission p { font-size: var(--fs-lead); letter-spacing: -.018em; line-height: 1.4; }
.about__mission span { display: block; margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-3); }

.about__figure { margin: 0; }
.about__figure img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about__figure figcaption { margin-top: 14px; font-size: var(--fs-xs); color: var(--ink-3); }

/* Numbered process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
  color: var(--brand);
}
.step h3 { font-size: 1.0625rem; letter-spacing: -.02em; margin-bottom: 8px; }
.step p  { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }

/* --------------------------------------------------------------------------
   9. Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.85fr 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item__icon {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand-soft); border-radius: 11px; color: var(--brand);
}
.contact-item__icon svg { width: 19px; height: 19px; }
.contact-item h3 {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px;
}
.contact-item a, .contact-item p { font-size: var(--fs-body); color: var(--ink); line-height: 1.45; }
.contact-item a:hover { color: var(--link); }
.contact-item .xs { margin-top: 4px; }

.card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 40px);
}
.section--grey .card,
.section--warm .card { box-shadow: var(--shadow-sm); border-color: transparent; }

/* Map — runs the full width beneath the two contact columns. */
.map {
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
@media (min-width: 900px) { .map iframe { height: 380px; } }
.map__foot {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs); color: var(--ink-2);
}

/* Opening hours table. The min-width stops the day and the time colliding
   when the contact column is narrow. */
.hours {
  width: 100%; min-width: min(260px, 100%);
  border-collapse: collapse; margin-top: 6px; font-size: var(--fs-sm);
}
.hours th, .hours td { padding: 9px 0; text-align: left; font-weight: 400; }
.hours th { color: var(--ink-2); }
.hours td { text-align: right; color: var(--ink); }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line-soft); }
.hours tr[data-today] th, .hours tr[data-today] td { font-weight: 600; color: var(--ink); }

.open-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 500;
  padding: 5px 12px 5px 10px; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-2);
}
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.open-badge.is-open { background: #e8f5ec; color: #1a7f3c; }
.open-badge.is-open::before { background: #1a7f3c; }

/* --------------------------------------------------------------------------
   10. Quote page
   -------------------------------------------------------------------------- */
.quote-hero { padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 48px); }
.quote-layout { display: grid; gap: clamp(36px, 4vw, 60px); align-items: start; }
@media (min-width: 940px) { .quote-layout { grid-template-columns: 1fr 340px; } }

.aside-card {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 28px;
}
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 1.0625rem; letter-spacing: -.02em; margin-bottom: 14px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aside-card li { display: flex; gap: 11px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.aside-card svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--ink-3); }

.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset + .fieldset { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line-soft); }
.fieldset > legend {
  padding: 0; margin-bottom: 20px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   11. Banner shown when a placeholder still needs real data
   -------------------------------------------------------------------------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r-sm);
  background: #fff8e6; border: 1px solid #f5e0a3;
  font-size: var(--fs-sm); color: #6b5312; line-height: 1.5;
}
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.notice a { color: #6b5312; text-decoration: underline; }

/* --------------------------------------------------------------------------
   12. 404
   -------------------------------------------------------------------------- */
.center-page {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: grid; place-items: center; text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .mobile-nav, .action-bar, .lightbox, .filters,
  .hero__media, .map, form { display: none !important; }
  body { padding: 0; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
  .section { padding-block: 24px; }
}
