/* ============================================================
   Bolt It Maintenance — site stylesheet
   Built on the "Industry" design system (wireframe/blueprint
   grammar) retoned to the Bolt It brand: brick + cream.
   Tokens below are the only place colour/type/spacing is set.
   ============================================================ */
/* Barlow and Barlow Condensed, self-hosted. Latin subset only — the site has no
   characters outside it. Fetched from Google Fonts v13; see docs/DESIGN.md. */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/barlow-condensed-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
}

:root {
  /* --- Brand ---------------------------------------------- */
  --brick:        #8c5046;  /* logo background — the brand colour */
  --brick-dark:   #2d1815;  /* page ground (dark field)          */
  --brick-mid:    #6d3c34;  /* rules, secondary ink on cream     */
  --brick-deep:   #4c2925;
  --cream:        #f3dcc8;  /* logo ink — type on brick          */
  --cream-soft:   #f6efe6;  /* light ground, if ever needed      */

  /* Cream at opacity — for secondary type on the brick ground */
  --cream-80: color-mix(in srgb, var(--cream) 80%, transparent);
  --cream-62: color-mix(in srgb, var(--cream) 62%, transparent);
  --rule:     color-mix(in srgb, var(--cream) 20%, transparent);
  --rule-45:  color-mix(in srgb, var(--cream) 45%, transparent);

  /* --- Type ----------------------------------------------- */
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  /* --- Space (0.85x density scale) ------------------------- */
  --space-1: 3.4px;  --space-2: 6.8px;  --space-3: 10.2px;
  --space-4: 13.6px; --space-6: 20.4px; --space-8: 27.2px;

  --pad-x: 40px;            /* page gutter */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--brick-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}

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

a { color: var(--cream); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #ddb5a3; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
::selection { background: var(--brick); color: var(--cream); }

/* --- Small caps label used all over the site ---------------- */
.kicker {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-62);
}
.num { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-62); }

/* ============================================================
   Blueprint frame + registration marks (from Industry)
   Any framed object: hairline border, square corners, "+" marks.
   ============================================================ */
.blueprint { position: relative; border: 1px solid var(--rule); border-radius: 0; }
.blueprint.duotone { overflow: visible; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.corner.tl { top: -6px; left: -6px; }
.corner.tr { top: -6px; right: -6px; }
.corner.bl { bottom: -6px; left: -6px; }
.corner.br { bottom: -6px; right: -6px; }

/* On the cream band the marks and hairline invert to brick */
.on-cream .blueprint { border-color: color-mix(in srgb, var(--brick-dark) 20%, transparent); }
.on-cream .blueprint > .corner { color: color-mix(in srgb, var(--brick-dark) 45%, transparent); }

/* ============================================================
   Duotone — every photograph goes through this wrapper, so the
   mixed phone shots read as one set in the brand colour.
   Delete this rule (or the class) to show photos as shot.
   ============================================================ */
.duotone { position: relative; overflow: hidden; }
.duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--brick); mix-blend-mode: color;
}
.duotone > img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad-x);
  background: var(--brick-dark);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark { height: 56px; width: auto; }
.brand-word { height: 38px; width: auto; }
.brand-sub {
  align-self: flex-end; padding-bottom: 5px;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream-62);
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav a:not(.btn) { color: color-mix(in srgb, var(--cream) 72%, transparent); padding-bottom: 4px; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover { color: var(--cream); border-bottom-color: var(--rule-45); }
.nav a:not(.btn).active { color: var(--cream); border-bottom-color: var(--cream); }

/* Buttons — the solid cream fill is the one filled object */
.btn {
  display: inline-block; padding: 16px 28px;
  font-family: var(--font-heading); font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
}
.btn-cream { background: var(--cream); color: var(--brick-dark); }
.btn-cream:hover { background: #fff0e0; color: var(--brick-dark); }
.btn-line { border-color: var(--rule-45); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); color: var(--cream); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn { white-space: nowrap; }
.nav a.btn { color: var(--brick-dark); border-bottom: 0; }
.nav a.btn:hover { color: var(--brick-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 86px var(--pad-x) 64px; text-align: center; border-bottom: 1px solid var(--rule); }
.hero-mark { height: 150px; width: auto; margin: 0 auto; }
.hero-word { height: 104px; width: auto; margin: 22px auto 0; }
.hero-sub { margin-top: 14px; font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--cream-62); }
.hero h1 { margin: 40px auto 0; max-width: 22ch; font-size: 60px; }
.lede { margin: 22px auto 0; max-width: 54ch; font-size: 17px; line-height: 1.6; color: var(--cream-80); text-wrap: pretty; }
.hero .actions { justify-content: center; }

/* Page head (Services / Contact) */
.page-head { padding: 70px var(--pad-x) 44px; border-bottom: 1px solid var(--rule); }
.page-head h1 { margin: 18px 0 0; max-width: 26ch; font-size: 62px; }
.page-head .lede { margin-left: 0; }

/* Full-bleed photograph band */
.bleed { height: 380px; }
.bleed-sm { height: 320px; }

/* ============================================================
   Three service cells — equal cells, visible grid
   ============================================================ */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.cell { padding: 42px 32px; border-right: 1px solid var(--rule); }
.cell:last-child { border-right: 0; }
.cell h3 { margin: 14px 0 10px; font-size: 26px; }
.cell p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cream-80); }

/* Recent work gallery */
.section { padding: 64px var(--pad-x); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: 34px; }
.work { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.work > * { height: 270px; }

/* ============================================================
   Services — alternating split rows
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.split-text { padding: 58px var(--pad-x); }
.split-text h2 { margin: 14px 0 14px; font-size: 40px; }
.split-text p { margin: 0 0 18px; max-width: 48ch; font-size: 16px; line-height: 1.65; color: var(--cream-80); text-wrap: pretty; }
.split-fig { min-height: 420px; border-left: 1px solid var(--rule); }
.split-fig.left { border-left: 0; border-right: 1px solid var(--rule); }
.list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: color-mix(in srgb, var(--cream) 86%, transparent); }
.list > div { display: flex; gap: 12px; }
.list > div::before { content: "—"; color: var(--cream); }

.cta { padding: 56px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h3 { font-size: 34px; }
.cta p { margin: 12px 0 0; font-size: 16px; color: var(--cream-80); }

/* ============================================================
   Contact — cream band, phone as the largest thing on the site
   ============================================================ */
.on-cream { background: var(--cream); color: var(--brick-dark); padding: 64px var(--pad-x); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.on-cream .kicker { color: var(--brick-mid); }
.phone-xl { display: block; margin: 10px 0 0; font-family: var(--font-heading); font-size: 74px; line-height: 0.95; text-transform: uppercase; color: var(--brick-dark); }
.phone-xl:hover, .email-lg:hover { color: var(--brick); }
.email-lg { display: block; margin: 10px 0 0; font-family: var(--font-heading); font-size: 38px; line-height: 1; color: var(--brick-deep); }
.detail-card { padding: 28px 26px 30px; }
.detail-card img { height: 72px; width: auto; }
.details { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.55; color: var(--brick-deep); }
.details .kicker { display: block; margin-bottom: 5px; }
.details a { color: var(--brick-mid); text-decoration: underline; }
.details a:hover { color: var(--brick-dark); }
.stack-gap { margin-top: 34px; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  padding: 34px var(--pad-x); border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 14px; opacity: 0.9; }
.foot-brand .brand-mark { height: 40px; }
.foot-brand .brand-word { height: 26px; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 26px; font-size: 12px; color: var(--cream-62); }
.foot-meta a { color: var(--cream-80); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  :root { --pad-x: 24px; }
  .hero h1 { font-size: 44px; }
  .page-head h1 { font-size: 44px; }
  .hero-mark { height: 108px; }
  .hero-word { height: 74px; }
  .cells { grid-template-columns: 1fr; }
  .cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .cell:last-child { border-bottom: 0; }
  .work { grid-template-columns: 1fr 1fr; }
  .work > *:first-child { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split-fig { height: 300px; min-height: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .split-fig.left { border-right: 0; }
  .split .split-fig.left { order: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .phone-xl { font-size: 48px; }
  .email-lg { font-size: 26px; }
  .bleed { height: 260px; }
}

@media (max-width: 680px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 14px; position: static; }
  .nav { flex-wrap: wrap; gap: 18px; }
  .brand-sub { display: none; }
  .hero { padding-top: 56px; }
  .hero h1, .page-head h1 { font-size: 36px; }
  .work { grid-template-columns: 1fr; }
  .work > *:first-child { grid-column: auto; }
  .work > * { height: 220px; }
  .btn { width: 100%; text-align: center; }
}

/* Print — a page anyone can hand over as a leave-behind */
@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .bleed, .duotone::after { background: none; }
}
