@import url('fonts.css');

/* ==========================================================
   Benhill Press: main stylesheet
   ========================================================== */

:root {
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ink: #0f1b2a;            /* dark navy: header, footer, hero */
  --ink-2: #16263a;
  --brand: #1fa3d6;          /* the logo's blue */
  --brand-strong: #0a6aa8;   /* buttons and links on light backgrounds */
  --brand-hover: #085a8f;
  --brand-soft: #e7f4fb;
  --text: #1c2632;
  --muted: #566577;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --line: #dbe3ea;
  --star: #f5b301;

  /* Printing (CMYK) accent colours */
  --cyan: #00a6e0;
  --magenta: #e5007e;
  --yellow: #ffd400;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 27, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 27, 42, 0.18);
  --container: 1180px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

/* Keep links to #sections (contact/#quote) clear of the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); color: var(--ink); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-outline { border-color: var(--brand-strong); color: var(--brand-strong); }
.btn-outline:hover { background: var(--brand-strong); color: #fff; }

.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }

/* ---------- CMYK stripe (a nod to printing) ---------- */

.cmyk-bar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--cyan) 0 33.33%, var(--magenta) 33.33% 66.66%, var(--yellow) 66.66% 100%);
}

/* ---------- Top bar ---------- */

.topbar {
  background: #0a131e;
  color: #c4d0dc;
  font-size: 0.875rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--brand); }
.topbar p { margin: 0; }
.topbar-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}
.logo img { width: 185px; height: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: #e3ebf2;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav-list .nav-cta a { background: var(--brand-strong); color: #fff; margin-left: 0.5rem; border-radius: 999px; box-shadow: none; }
.nav-list .nav-cta a:hover { background: var(--brand-hover); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; }
  .nav-list a { padding: 0.85rem 1rem; border-radius: var(--radius-sm); }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); border-radius: 0; }
  .nav-list .nav-cta a { margin: 0.5rem 0 0; text-align: center; }
  .topbar-hours { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(10, 19, 30, 0.94) 0%, rgba(10, 19, 30, 0.82) 45%, rgba(10, 19, 30, 0.55) 100%),
    url('images/printing-press.webp') center / cover no-repeat;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { color: #fff; }
.hero-lead {
  font-size: 1.2rem;
  color: #d6e1ea;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 2.25rem; }

.check-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.48em;
  width: 0.35rem;
  height: 0.6rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hero .check-list { color: #e3ebf2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan) 0 33%, var(--magenta) 33% 66%, var(--yellow) 66% 100%);
}
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--brand); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  color: #fff;
  background:
    linear-gradient(100deg, rgba(10, 19, 30, 0.95) 0%, rgba(10, 19, 30, 0.8) 60%, rgba(10, 19, 30, 0.6) 100%),
    url('images/printing-press.webp') center 40% / cover no-repeat;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero .hero-lead { margin-bottom: 0; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-last { margin-bottom: 0; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: none;
}

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.25rem 1.4rem 1.5rem;
}
.service-card h3 { margin: 0; font-size: 1.15rem; }
.service-card .card-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}
.service-card .card-link::after { content: " \2192"; }
.service-card .card-link:hover { text-decoration: underline; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.stat-panel {
  display: grid;
  gap: 1rem;
}
.stat {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat:nth-child(2) { border-left-color: var(--magenta); }
.stat:nth-child(3) { border-left-color: var(--yellow); }
.stat-value {
  flex: 0 0 auto;
  min-width: 4.5rem;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-label { color: var(--muted); line-height: 1.4; }

/* ---------- Feature cards (About) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-num {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
}
.feature h3 { margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--muted); }

/* Story timeline (About) */
.story {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story li {
  position: relative;
  padding: 0 0 0 2rem;
  border-left: 2px solid var(--line);
}
.story li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.story h3 { margin-bottom: 0.35rem; }
.story p { margin: 0; color: var(--muted); }

/* ---------- Steps (Printing) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Review ---------- */

.review {
  position: relative;
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.review::before {
  content: "\201C";
  position: absolute;
  top: -0.3em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7rem;
  line-height: 1;
  font-weight: 800;
  color: var(--brand);
}
.stars { color: var(--star); font-size: 1.4rem; letter-spacing: 0.15em; margin-bottom: 1rem; }
.review blockquote { margin: 0 0 1.5rem; }
.review blockquote p {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.review figcaption strong { display: block; color: var(--ink); }
.review figcaption span { color: var(--muted); font-size: 0.95rem; }
.rating-summary {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
}
.rating-summary strong { color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #d6e1ea;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--cyan) 0 33.33%, var(--magenta) 33.33% 66.66%, var(--yellow) 66.66% 100%);
  opacity: 0.9;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 5px solid var(--brand);
}
.form-card h2 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.form-card .form-intro { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.975rem; }

.contact-form { position: relative; display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--brand-strong);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 106, 168, 0.2);
}

.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

altcha-widget {
  --altcha-border-radius: 8px;
  --altcha-color-border: var(--line);
  --altcha-max-width: 100%;
  display: block;
}

.form-note,
.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff6e0;
  border: 1px solid #f0d48a;
  color: #4d3b00;
  font-size: 0.95rem;
}
.form-note { margin: 0; }
.form-status:empty { display: none; }
.form-status:focus { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.form-status a,
.form-note a { color: inherit; font-weight: 700; }

.contact-form .btn { justify-self: start; min-width: 11rem; }
.form-privacy { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.info-card {
  padding: 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card + .info-card { margin-top: 1.25rem; }
.info-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.info-list { margin: 0; display: grid; gap: 1rem; }
.info-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-list dd { margin: 0.15rem 0 0; font-weight: 500; }
.info-list address { font-style: normal; }

.hours { width: 100%; border-collapse: collapse; }
.hours th,
.hours td { padding: 0.45rem 0; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; }
.hours td { text-align: right; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

/* ---------- Prose (Privacy policy) ---------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose address { font-style: normal; margin-bottom: 1.1em; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0a131e;
  color: #b9c6d3;
  font-size: 0.975rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer a { color: #e3ebf2; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-brand img { width: 185px; margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-small { font-size: 0.9rem; color: #8fa0b2; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.875rem;
  color: #8fa0b2;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

/* ---------- Thank-you page ---------- */

.thanks {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.thanks .lead { margin-bottom: 2rem; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
  .btn:hover,
  .service-card:hover { transform: none; }
}
