/* ==========================================================================
   PRINTERS 3 — shared stylesheet (used by every page)

   CONTENTS
    1. Design tokens (colors, spacing — change these first)
    2. Base + typography
    3. Layout helpers
    4. Buttons + links
    5. Header + navigation
    6. CMYK color bar
    7. Hero
    8. Trust strip
    9. Sections (shared heading styles)
   10. Services
   10b. Reviews
   11. Industries list
   12. Why Printers 3
   12b. Equipment (sideways-scrolling cards)
   12c. Industry pages (industries/*.html)
   13. Quote form + contact details
   14. Footer
   15. Legal pages (privacy.html, terms.html)
   16. Larger screens (tablet 640px+, desktop 960px+)

   Written mobile-first: the base rules are for phones, and section 16
   adds columns as the screen gets wider.
   ========================================================================== */


/* 1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --red: #CC0000;
  --red-dark: #A30000;
  /* Gold from joinprinters3.com, used as the underline on the "Own a Print Shop?"
     footer link (too pale to use as text on white). */
  --gold: #E8C97A;

  /* CMYK accents (thin bars, tile accents — never big backgrounds) */
  --cyan: #00AEEF;
  --magenta: #EC008C;
  --yellow: #FFDD00;
  --black: #222222;

  /* Neutrals */
  --text: #222222;
  --text-muted: #555555;
  --line: #DDDDDD;
  --tint: #F6F6F6;
  --white: #FFFFFF;

  /* Layout */
  --max-width: 1160px;
  --gutter: 20px;
  --section-space: 64px;

  /* Fonts: Barlow for text and headings, Barlow Semi Condensed for the small
     uppercase labels and buttons. To try another font, change these three
     lines and the Google Fonts link in index.html. */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-label: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
}


/* 2. BASE + TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px; /* keeps anchor targets clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 600;
}

p { margin: 0 0 1em; }
img, svg, iframe { display: block; max-width: 100%; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* Inline SVG icons: simple line style */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Gentle reveal: headings and content fade in and rise a little the first time
   they scroll into view. js/main.js adds "reveal" to the pieces and "is-inview"
   when each one appears; without JavaScript nothing is hidden. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.js .reveal.is-inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* 3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
}
.skip-link:focus { top: 8px; color: var(--white); }


/* 4. BUTTONS + LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 0; /* sharp edges on purpose */
  font: inherit;
  font-family: var(--font-label);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

/* White outline button, for dark backgrounds (hero) */
.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover { color: var(--white); }

.btn-large {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 17px;
}

/* Text link with an arrow */
.arrow-link {
  font-weight: 700;
  text-decoration: none;
}
.arrow-link::after {
  content: " \2192";
  display: inline-block;
  margin-left: 4px;
  transition: transform .15s;
}
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(3px); }


/* 5. HEADER + NAVIGATION
   Mobile: row 1 = logo + menu button, row 2 = tap-to-call + quote button.
   Desktop: everything on one row.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* Logo (image, with a text fallback if the image file is missing) */
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 70px;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo-img { height: 54px; width: auto; }
.logo-fallback { display: none; }

.logo--missing .logo-img { display: none; }
.logo--missing .logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-bars { display: inline-flex; gap: 3px; }
.logo-bars i { display: block; width: 5px; height: 26px; }

/* Shared CMYK color classes (logo bars + color bar) */
.c { background: var(--cyan); }
.m { background: var(--magenta); }
.y { background: var(--yellow); }
.k { background: var(--black); }

/* Menu button (mobile only) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* Nav links: hidden on mobile until the menu button is tapped */
.site-nav {
  display: none;
  order: 3;
  width: 100%;
  border-top: 1px solid var(--line);
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red); }

/* Phone + quote button row */
.header-actions {
  order: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  padding: 8px 0 10px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid var(--text);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--text); }
.header-phone .icon { width: 18px; height: 18px; }
.header-actions .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }


/* 6. CMYK COLOR BAR
   Four equal blocks. Thin by default; add .cmyk-bar--bold for the footer band.
   ========================================================================== */
.cmyk-bar { display: flex; height: 6px; }
.cmyk-bar span { flex: 1; }
.cmyk-bar--bold { height: 18px; }


/* 7. HERO
   The building photo sits behind a charcoal overlay that is light at the top
   (so the building shows) and dark at the bottom (so the text stays readable).
   To change the photo, replace images/building.jpg (no CSS edit needed).
   ========================================================================== */
.hero {
  position: relative;
  background-color: #8A8A8A; /* gray placeholder until the photo exists */
  background-image: url("../images/building.jpg");
  background-size: cover;
  background-position: center top;
  color: var(--white);
  overflow: hidden;
  --hero-space: 180px; /* clear photo above the text */
  --hero-line: rgba(255, 255, 255, 0.28); /* faint guide lines; last number = strength */
}
/* Charcoal overlay — the last number on each line (0 to 1) is the darkness
   at the top, middle and bottom of the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(34, 34, 34, 0.15) 0%,
    rgba(34, 34, 34, 0.35) 45%,
    rgba(34, 34, 34, 0.88) 100%
  );
}
/* The text sits low in the photo: --hero-space is the clear space above it */
.hero-inner {
  position: relative;
  padding-top: var(--hero-space);
  padding-bottom: 40px;
}
/* Faint white guide lines over the photo. They draw themselves in when the page opens.
   hl-left / hl-right = a vertical line down each side of the page column
   hl-top             = a line across the top of the text
   hl-mid             = a vertical line to the right of the text (desktop only)
   hl-bottom          = a line under the buttons, running the full width */
.hero-lines span {
  position: absolute;
  background: var(--hero-line);
  pointer-events: none;
  animation: hero-line-down 1.8s ease-out both;
}
.hl-left,
.hl-right,
.hl-mid { width: 1px; bottom: 0; transform-origin: top; }
.hl-top,
.hl-bottom { height: 1px; left: -100vw; right: -100vw; transform-origin: left; }

.hl-left { top: 0; left: calc(var(--gutter) / 2); animation-delay: .3s; }
.hl-right { top: 0; right: calc(var(--gutter) / 2); animation-delay: .6s; }
.hero-lines .hl-top {
  top: calc(var(--hero-space) - 28px);
  animation-name: hero-line-across;
  animation-duration: 2.8s;
  animation-delay: .6s;
}
.hero-lines .hl-mid { display: none; }
.hero-lines .hl-bottom {
  bottom: 20px;
  animation-name: hero-line-across;
  animation-duration: 2.8s;
  animation-delay: 1.1s;
}

@keyframes hero-line-down {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes hero-line-across {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Big hero headline */
.hero-headline {
  max-width: 720px;
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
/* Line break in the headline: only used on tablet and desktop, where the first
   sentence fits on one line */
.hero-break { display: none; }
/* Red block behind a word in the headline. It sweeps in from the left, with a
   slanted leading edge, when the page opens. */
.hero-mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.22em 0.04em 0.16em;
}
.hero-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--red);
  animation: hero-mark-sweep .6s cubic-bezier(.3, .6, .2, 1) 1.4s both;
}
@keyframes hero-mark-sweep {
  from { clip-path: polygon(0 0, 0 0, -12% 100%, 0 100%); }
  to { clip-path: polygon(0 0, 114% 0, 102% 100%, 0 100%); }
}
.hero-intro {
  max-width: 56ch;
  margin: 0 0 26px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .cmyk-bar { position: relative; }
/* The four colors slide in one after another when the page opens */
.hero .cmyk-bar span {
  transform-origin: left;
  animation: hero-line-across .5s ease-out both;
}
.hero .cmyk-bar .c { animation-delay: .5s; }
.hero .cmyk-bar .m { animation-delay: .85s; }
.hero .cmyk-bar .y { animation-delay: 1.2s; }
.hero .cmyk-bar .k { animation-delay: 1.55s; }

/* "PHOTO: ..." note, shown only while the building photo is missing */
.hero-placeholder-label {
  position: absolute;
  right: 12px;
  bottom: 14px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.hero.has-photo .hero-placeholder-label { display: none; }


/* 8. TRUST STRIP
   ========================================================================== */
.trust-strip { border-bottom: 1px solid var(--line); }
/* Google rating at the start of the trust strip; links to the Google listing */
.trust-rating { color: var(--text); text-decoration: none; white-space: nowrap; }
.trust-rating:hover { color: var(--red); }
.trust-stars { margin-right: 4px; letter-spacing: 1px; color: #F2B800; }
.trust-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-family: var(--font-label);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* 9. SECTIONS (shared)
   ========================================================================== */
.section { padding: var(--section-space) 0; }
.section--tint { background: var(--tint); }

.section-head { margin-bottom: 36px; }

.section-title {
  font-size: clamp(30px, 3.8vw, 44px);
  text-wrap: balance; /* when a heading has to wrap, keep the lines even */
}
/* Short color rule above each section heading (the thin CMYK dividers) */
.section-title::before {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-bottom: 20px;
  background: var(--rule, var(--red));
}
.rule-c { --rule: var(--cyan); }
.rule-m { --rule: var(--magenta); }
.rule-y { --rule: var(--yellow); }
.rule-r { --rule: var(--red); }

/* Small red uppercase label above a heading */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
}

/* A heading with a label above it doesn't also need the color rule */
.section-tag + .section-title::before { display: none; }

.section-lead {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--text-muted);
}
.section-more { margin: 32px 0 0; }


/* 10. SERVICES
   Two columns on desktop: label + heading on the left, list on the right.
   ========================================================================== */
.services-layout { display: grid; gap: 36px; }

.services-title { font-size: clamp(32px, 4.2vw, 50px); }

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
}

.service-row {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

/* Thin red line icon in a crop-mark frame */
.service-icon {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 14px;
}
.service-icon .icon {
  width: 42px;
  height: 42px;
  color: var(--red);
  stroke-width: 1.75;
  stroke-linejoin: round;
}

/* Scroll effects for each service row (js/main.js adds "is-inview" when the row
   comes into view; without JavaScript everything just sits in its finished state):
   the crop marks start slightly apart and slide into place */
.service-row .crop-marks::before,
.service-row .crop-marks::after { transition: transform .6s ease-out, opacity .4s ease-out; }
.js .service-row:not(.is-inview) .crop-marks::before { transform: translate(-12px, -12px); opacity: 0; }
.js .service-row:not(.is-inview) .crop-marks::after { transform: translate(12px, 12px); opacity: 0; }

.service-name {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.2;
}
.service-desc {
  max-width: 52ch;
  margin: 0;
  color: var(--text-muted);
}


/* 10b. REVIEWS
   A compact dark band with four Google review quotes, just above the contact
   form. Each card has a red stripe along the top.
   On phones the cards sit in a row that scrolls sideways.
   ========================================================================== */
.reviews {
  padding: 48px 0 44px;
  background: var(--black);
  color: var(--white);
}
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.reviews-head .section-tag { margin: 0; }
.reviews-title { font-size: clamp(22px, 2.4vw, 28px); }
.review-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
}
.review-list::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 85%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 18px;
  border-top: 4px solid var(--red);
  background: #2E2E2E;
}
.review-stars {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--yellow);
}
.review-quote {
  flex: 1;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}
.review-name { margin: 0; font-size: 15px; font-weight: 700; }
.review-name span {
  margin-left: 6px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #AAAAAA;
}
.reviews-more { margin: 20px 0 0; font-size: 16px; }
.reviews .arrow-link { color: var(--white); }
.reviews .arrow-link:hover { color: var(--white); }


/* 11. INDUSTRIES LIST
   ========================================================================== */
.industry-list { border-top: 2px solid var(--text); }
.industry-list li {
  position: relative;
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
/* Each industry name links to its own page; the link covers the whole row.
   On hover (or keyboard focus): a red bar grows up the left edge and the name
   and description slide right, one just after the other. */
.industry-name a { color: var(--text); text-decoration: none; }
.industry-name a::before { content: ""; position: absolute; z-index: 2; inset: 0; }
.industry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform .25s ease-out;
}
.industry-name,
.industry-desc { position: relative; transition: transform .3s ease-out, color .2s; }
.industry-desc { transition-delay: .05s; }
/* Keyboard focus only (:focus-visible), so a clicked row doesn't stay lit when you come back
   to the page; hover only on devices with a mouse, so a tap doesn't leave it stuck on phones */
.industry-list li:has(a:focus-visible)::before { transform: scaleY(1); }
.industry-list li:has(a:focus-visible) .industry-name,
.industry-list li:has(a:focus-visible) .industry-desc { transform: translateX(22px); }
.industry-list li:has(a:focus-visible) .industry-name a { color: var(--red); }
@media (hover: hover) {
  .industry-list li:hover::before { transform: scaleY(1); }
  .industry-list li:hover .industry-name,
  .industry-list li:hover .industry-desc { transform: translateX(22px); }
  .industry-list li:hover .industry-name a { color: var(--red); }
  .industry-list li:hover .industry-desc { color: var(--text); }
}
/* Phones, tablets and touch screens have no hover, so show a red arrow after
   each industry name to make it clear the row opens a page */
@media (hover: none), (max-width: 959px) {
  .industry-name a::after { content: " \2192"; color: var(--red); }
}
.industry-name {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.industry-desc { display: block; color: var(--text-muted); }


/* 12. WHY PRINTERS 3
   ========================================================================== */
.why-grid { display: grid; gap: 40px; }
.why-copy p { max-width: 58ch; font-size: 18px; }
.why-copy .section-title { margin-bottom: 22px; }

/* Small, quieter note at the end of the About text */
.why-note {
  max-width: 58ch;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.why-note-title { margin-bottom: 6px; font-size: 18px; }
.why-copy .why-note p { margin: 0; font-size: 16px; color: var(--text-muted); }
.why-photo-wrap { position: relative; }
.why-photo { display: block; width: 100%; height: auto; }
/* Smaller photos in a two-column grid under the main one.
   Each is cropped to the same 4:3 shape so the grid stays even. */
.why-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.why-photo-row .why-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 60%;
}
/* UV coater photo is tall: crop higher so less of the floor shows */
.why-photo-row .why-photo--uv { object-position: center 45%; }

/* Gray box that stands in for a real photo */
.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: 14px;
  background: #D9D9D9;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Print-shop detail: crop marks at the top-left and bottom-right corners */
.crop-marks::before,
.crop-marks::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
}
.crop-marks::before {
  top: -14px;
  left: -14px;
  border-right: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}
.crop-marks::after {
  right: -14px;
  bottom: -14px;
  border-left: 1px solid var(--text);
  border-top: 1px solid var(--text);
}


/* 12b. EQUIPMENT
   A row of cards that scrolls sideways. People can swipe or scroll it, or use
   the two arrow buttons (wired up in js/main.js).
   ========================================================================== */
.equip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.equip-controls { display: flex; gap: 8px; }
.equip-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--text);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s, color .15s, opacity .15s;
}
.equip-btn:hover { background: var(--text); color: var(--white); }
.equip-btn:disabled { opacity: 0.3; cursor: default; background: var(--white); color: var(--text); }

.equip-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* hide the scrollbar; the arrows and swiping do the work */
  /* let the row run off the right edge of the screen on phones */
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
}
.equip-track::-webkit-scrollbar { display: none; }

.equip-card {
  flex: 0 0 min(78%, 340px);
  scroll-snap-align: start;
}
.equip-photo { width: 100%; }
img.equip-photo { height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.equip-card .photo-placeholder { margin: 0 0 16px; background: #DCDCDC; }
.equip-name { margin-bottom: 6px; font-size: 21px; line-height: 1.25; }
.equip-desc { margin: 0; font-size: 16px; color: var(--text-muted); }


/* 12c. INDUSTRY PAGES (industries/*.html)
   Short page header, a "What we print" section, a dark call-to-action band,
   and links to the other industries.
   ========================================================================== */
.page-hero { background: var(--tint); }
.page-hero .container { padding-top: 28px; padding-bottom: 36px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--text-muted);
}
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #999; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }
.page-title {
  max-width: 32ch;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}
.page-lead {
  max-width: 64ch;
  margin: 12px 0 0;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--text-muted);
}

.industry-page { display: grid; gap: 40px; }
/* Less space above the first section, and a smaller heading, than on the home page */
.page-hero + .section { padding-top: 48px; }
.industry-page-copy .section-title { font-size: clamp(26px, 2.8vw, 34px); }
.industry-page-copy p { max-width: 58ch; font-size: 18px; }
.industry-page-copy .section-title { margin-bottom: 20px; }
.industry-page-sub { margin-bottom: 8px; font-size: 21px; line-height: 1.25; }
.print-list-title {
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.print-list + .print-list-title { margin-top: 32px; }
.print-list {
  display: grid;
  border-top: 2px solid var(--text);
}
.print-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
/* Small red square before each item, like the section labels */
.print-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: translateY(-2px);
}

.print-more { margin: 24px 0 0; font-size: 18px; }

/* Call-out box for a sister company (Healthcare page: Command Lab Forms) */
.partner-callout {
  margin-top: 32px;
  padding: 24px 24px 26px;
  border-left: 4px solid var(--red);
  background: var(--tint);
}
.partner-logo { width: 190px; height: auto; margin-bottom: 14px; }
.partner-title { margin-bottom: 8px; font-size: 21px; line-height: 1.25; }
.partner-callout p { margin: 0 0 14px; color: var(--text-muted); }

.cta-band { background: var(--black); color: var(--white); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.cta-title { font-size: clamp(26px, 3vw, 34px); }
.cta-inner p { margin: 8px 0 0; color: #CCCCCC; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.other-title { margin-bottom: 20px; font-size: 24px; }
.other-industries {
  display: grid;
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
.other-industries a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.other-industries a::after { content: " \2192"; color: var(--red); }
.other-industries a:hover { color: var(--red); }


/* 13. QUOTE FORM + CONTACT DETAILS
   ========================================================================== */
.contact-grid { display: grid; gap: 48px; }

.quote-form { margin-top: 28px; }
.form-grid { display: grid; gap: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}
.req { color: var(--red); }

/* "Attach a File": a styled button over a hidden file input */
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}
.field-optional { font-weight: 400; color: var(--text-muted); }
.file-field {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--text);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.file-btn:hover { background: var(--text); color: var(--white); }
.file-input:focus-visible + .file-name,
.file-field:focus-within .file-btn { outline: 3px solid var(--cyan); outline-offset: 2px; }
.file-name { font-size: 15px; color: var(--text-muted); overflow-wrap: anywhere; }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8C8C8C;
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px stops iPhones from zooming in on focus */
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 0;
  border-color: var(--text);
}

/* Honeypot spam trap: must stay hidden */
.hp-field { position: absolute; left: -9999px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.form-note { margin: 0; font-size: 14px; color: var(--text-muted); }
.form-error { margin: 20px 0 0; font-weight: 600; color: var(--red-dark); }

.form-thanks {
  margin-top: 28px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--cyan);
}
.form-thanks p { margin: 0; }
.form-thanks-title {
  margin-bottom: 6px !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* The [hidden] attribute must always win over the display rules above */
[hidden] { display: none !important; }

/* Contact details column */
.contact-list { margin: 0 0 24px; border-top: 1px solid var(--line); }
.contact-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  padding-top: 3px;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Phone and email look like the address and hours: plain dark text, no underline */
.contact-list a,
.contact-list a:hover { color: var(--text); text-decoration: none; }

/* Marks content that still needs to be filled in */
.placeholder-text {
  padding: 2px 8px;
  background: var(--yellow);
  color: var(--text);
}

.map-wrap { border: 1px solid var(--line); background: #D9D9D9; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; }


/* 14. FOOTER
   ========================================================================== */
.site-footer { background: var(--white); font-size: 15px; }

.footer-grid {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}
/* The footer logo is larger than the one in the header */
.footer-brand .logo-img { height: 75px; }
.footer-brand p { max-width: 34ch; margin: 8px 0 0; color: var(--text-muted); }

.footer-heading {
  margin-bottom: 12px;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer address { line-height: 1.8; }
.footer-links li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-bottom {
  padding-top: 18px;
  padding-bottom: 24px;
  /* Thin gray line across the top, the same width as the footer content */
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}
.footer-legal a + a { margin-left: 18px; }
/* Link for print shop owners (fourth footer column): dark text, gold underline */
.site-footer .footer-owners a,
.site-footer .footer-owners a:hover {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--gold);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}


/* 15. LEGAL PAGES (privacy.html, terms.html)
   One centered, readable column of text.
   ========================================================================== */
.legal { max-width: 800px; line-height: 1.7; overflow-wrap: break-word; } /* long web addresses wrap on small phones */
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); }
.legal-date { margin: 12px 0 32px; color: var(--text-muted); }
.legal h2 { margin: 40px 0 12px; font-size: 24px; line-height: 1.25; }
.legal ul { margin: 0 0 1em; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal address { margin-bottom: 1em; }

/* 404 page (404.html): button and link side by side, wrapping on phones */
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 28px 0;
}


/* 16. LARGER SCREENS
   ========================================================================== */

/* ---- Tablet: 640px and up ---- */
@media (min-width: 640px) {
  :root { --gutter: 32px; --section-space: 80px; }

  .hero-break { display: inline; }

  .trust-list { flex-direction: row; justify-content: center; gap: 0; }
  .trust-list li + li::before {
    content: "\00B7";
    margin: 0 18px;
    color: var(--red);
  }

  .industry-list li {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: baseline;
  }
  .industry-name { margin-bottom: 0; }

  .print-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .other-industries { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Desktop: 960px and up ---- */
@media (min-width: 960px) {
  :root { --section-space: 104px; }
  html { scroll-padding-top: 100px; }

  /* Header collapses to a single row */
  .header-inner { flex-wrap: nowrap; gap: 28px; min-height: 86px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    order: 0;
    width: auto;
    margin-left: auto;
    border: 0;
  }
  .site-nav ul { display: flex; gap: 26px; }
  .site-nav a { position: relative; padding: 8px 0; border-bottom: 0; font-size: 15px; }
  /* Red bar that slides across under a nav link on hover */
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease-out;
  }
  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions {
    order: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    width: auto;
    padding: 0;
  }
  .header-phone { border: 0; font-size: 16px; }
  .header-actions .btn { padding-left: 20px; padding-right: 20px; }

  /* Shift the photo left a little so the Printers 3 sign on the right stays in view */
  .hero { --hero-space: 300px; background-position: 90% top; }
  .hero-inner { padding-bottom: 56px; }
  /* The top line stops at a vertical line to the right of the text;
     the bottom line carries on past it */
  .hero-lines .hl-top { right: auto; width: calc(100vw + var(--gutter) + 760px); }
  .hero-lines .hl-mid {
    display: block;
    top: calc(var(--hero-space) - 28px);
    left: calc(var(--gutter) + 760px);
    animation-delay: 2.2s;
  }
  .hero-lines .hl-bottom { bottom: 28px; }

  /* Heading column stays in view while the service list scrolls past */
  .services-layout { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .services-intro { position: sticky; top: 134px; }
  .service-row { padding: 26px 0; }

  /* Desktop: all four reviews in one row, no sideways scrolling */
  .review-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-right: 0; padding-right: 0; overflow: visible; }
  .reviews { padding: 56px 0 52px; }

  .industry-list li { grid-template-columns: 340px 1fr; padding: 24px 0; }

  .page-hero .container { padding-top: 32px; padding-bottom: 44px; }
  .page-hero + .section { padding-top: 64px; }
  .industry-page { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .other-industries { grid-template-columns: repeat(3, 1fr); }
  .industry-name { font-size: 21px; }

  .why-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

  /* Logo column takes the spare room; the three link columns sit to the right,
     evenly spaced */
  .footer-grid { grid-template-columns: 1fr auto auto auto; column-gap: 88px; }
  /* Last column sits flush with the right end of the gray line;
     the link stays lined up under the start of its heading */
  .footer-owners { justify-self: end; }

  .contact-grid { grid-template-columns: 7fr 5fr; gap: 72px; }
  .contact-details { padding-top: 6px; }
}
