/* Steamboss Carpet Cleaning. Hand-written, mobile first.
   Type: Archivo (variable width/weight) for display, Source Sans 3 for text. Both SIL OFL, self-hosted.
   Scale: 1.25 ratio on an 18px base. Spacing: 4px steps (--s1 .. --s9). Grid: 12 columns, 1200px max. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-italic-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #cc2300;        /* brand red from the current site; check against the van */
  --red-dark: #a81d00;   /* hover, links on light backgrounds */
  --ink: #1a1816;        /* near-black: text, footer, dark panels */
  --char: #2a2623;       /* charcoal: quote panel */
  --paper: #f6f3ee;      /* page */
  --grey: #6b625a;       /* secondary text on paper */
  --rule: #cdc4b9;       /* 1px rules on paper */
  --rule-dark: #4a443f;  /* 1px rules on dark */

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* 1.25 scale */
  --t-sm: .8rem;
  --t-base: 1rem;
  --t-md: 1.25rem;
  --t-lg: 1.563rem;
  --t-xl: 1.953rem;
  --t-2xl: 2.441rem;
  --t-3xl: 3.052rem;
  --t-h1: clamp(2.6rem, 6vw, 5rem);
  --t-h2: clamp(1.953rem, 3.4vw, 3.052rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --gutter: 16px;
  --max: 1200px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(26, 24, 22, .08);
  --ease: 150ms ease-out;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 112.5%; scroll-padding-top: var(--s4); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
body > main:has(> .thanks:only-child) { display: flex; flex-direction: column; }
.thanks { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: .98; letter-spacing: -.012em; font-stretch: 88%; }
h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.01em; font-stretch: 92%; }
h3 { font-size: var(--t-md); line-height: 1.15; font-weight: 750; }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--red-dark); text-underline-offset: .15em; text-decoration-thickness: 1px; transition: color var(--ease); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}
.mark { display: block; flex: none; line-height: 0; }
.mark img { display: block; height: 48px; width: auto; }
.top-tel {
  display: inline-flex;
  align-items: baseline;
  gap: .4em;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font: 800 var(--t-sm)/1 var(--display);
  padding: 11px 13px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color var(--ease);
}
.top-tel:hover { background: var(--red-dark); color: #fff; }
.top-tel-label { display: none; font-weight: 600; font-family: var(--text); }

/* ---------- Hero ---------- */
.hero { background: var(--red); color: #fff; }
.hero-text { padding: var(--s7) var(--gutter) var(--s6); }
.hero h1 { max-width: 15ch; }
.pitch { font-size: var(--t-md); line-height: 1.4; max-width: 34ch; margin: var(--s5) 0 var(--s6); }
.hero-cta { margin-bottom: var(--s4); }
.btn-call {
  display: block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font: 800 var(--t-md)/1.1 var(--display);
  font-stretch: 100%;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background-color var(--ease), color var(--ease);
}
.btn-call .tel-number { white-space: nowrap; }
.btn-call:hover { background: #fff; color: var(--red-dark); }
.hero :focus-visible { outline-color: #fff; }
.hero-hours { font-size: var(--t-base); color: #fff; max-width: 40ch; }
.hero-hours a { color: #fff; text-decoration-thickness: 1px; }
.hero-hours a:hover { color: #fff; text-decoration-thickness: 3px; }

.hero-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: var(--ink);
  border-top: 3px solid var(--ink);
}
.hero-photos img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- What Mitch cleans ---------- */
.cleans { padding-top: var(--s8); padding-bottom: var(--s8); }
.cleans h2 { margin-bottom: var(--s6); }
.jobs-list { display: grid; gap: 0; }
.jobs-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: var(--s4);
  align-items: baseline;
  align-content: start;
  border-top: 4px solid var(--ink);
  padding: var(--s4) 0 var(--s5);
}
.jobs-list .num {
  grid-row: span 2;
  font: 900 var(--t-xl)/1 var(--display);
  font-stretch: 110%;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.jobs-list h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.jobs-list li p { color: var(--grey); max-width: 38ch; margin: 0; }
.jobs-list .tip {
  display: block;
  background: var(--red);
  color: #fff;
  border-top: 0;
  padding: var(--s5);
  margin-top: var(--s3);
  border-radius: var(--radius);
}
.jobs-list .tip p { color: #fff; font-size: var(--t-md); line-height: 1.4; max-width: 34ch; }

/* ---------- Prices ---------- */
.prices { background: var(--ink); color: #fff; }
.prices-in { padding-top: var(--s7); padding-bottom: var(--s7); }
.prices h2 { margin-bottom: var(--s4); color: #fff; }
.prices-copy p { font-size: var(--t-md); line-height: 1.45; max-width: 46ch; color: #e9e3db; }
.prices a { color: #fff; }
.prices a:hover { color: #ffb7a3; }
.prices :focus-visible { outline-color: #fff; }

/* ---------- Recent jobs ---------- */
.recent { padding-top: var(--s8); padding-bottom: var(--s7); }
.recent-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); padding-bottom: var(--s4); margin-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.recent-head p { color: var(--grey); margin: 0; }
.recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.recent-grid figure { position: relative; max-width: 347px; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.recent-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.recent-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(26, 24, 22, .86);
  color: #fff;
  font-size: var(--t-sm);
  line-height: 1.35;
  padding: var(--s2) var(--s3) 9px;
}

/* ---------- Where Mitch works ---------- */
.area { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #efeae2; }
.area .wrap { padding-top: var(--s8); padding-bottom: var(--s8); }
.area-head h2 { margin-bottom: var(--s4); }
.area-head p { max-width: 44ch; font-size: var(--t-md); line-height: 1.45; }
.area-photo { position: relative; max-width: 347px; margin-top: var(--s6); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.area-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.area-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(26, 24, 22, .86);
  color: #fff;
  font-size: var(--t-sm);
  line-height: 1.35;
  padding: var(--s2) var(--s3) 9px;
}
.towns { display: grid; gap: var(--s6); margin-top: var(--s7); }
.towns h3 {
  font: 600 var(--t-base)/1.3 var(--text);
  color: var(--grey);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s3);
}
.towns li {
  font: 800 var(--t-xl)/1.12 var(--display);
  font-stretch: 85%;
  letter-spacing: -.01em;
  padding: 2px 0;
}
.towns li { color: var(--ink); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--s6); padding-top: var(--s8); padding-bottom: var(--s8); }
.about-photo { max-width: 347px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo figcaption { font-size: var(--t-sm); color: var(--grey); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.about h2 { margin-bottom: var(--s5); }
.about .lede { font: 700 var(--t-lg)/1.25 var(--display); font-stretch: 100%; max-width: 26ch; margin-bottom: var(--s5); }
.about-copy p { max-width: 52ch; }

/* ---------- What customers said ---------- */
.said { background: var(--paper); border-top: 1px solid var(--rule); }
.said-in { padding-top: var(--s8); padding-bottom: var(--s8); display: grid; gap: var(--s6); }
.said blockquote { margin: 0; }
.said blockquote::before {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  background: var(--red);
  margin-bottom: var(--s4);
}
.said blockquote p { margin-bottom: var(--s3); }
.said footer { font: 700 var(--t-base)/1.3 var(--display); font-stretch: 100%; }
.q-main p { font: 700 var(--t-xl)/1.18 var(--display); font-stretch: 92%; letter-spacing: -.005em; max-width: 30ch; }
.q-side { display: grid; gap: var(--s6); }
.q-side p { font-size: var(--t-md); line-height: 1.4; font-style: italic; max-width: 40ch; }

/* ---------- Quote form ---------- */
.quote { background: var(--char); color: #fff; }
.quote-in { padding-top: var(--s8); padding-bottom: var(--s8); display: grid; gap: var(--s6); }
.quote h2 { color: #fff; margin-bottom: var(--s4); }
.quote-copy p { color: #e4ddd4; font-size: var(--t-md); line-height: 1.45; max-width: 34ch; }
.quote-or { padding-top: var(--s4); border-top: 1px solid var(--rule-dark); }
.quote-or a { color: #fff; font: 800 var(--t-lg)/1.2 var(--display); text-decoration: none; display: inline-block; margin-top: 2px; }
.quote-or a:hover { color: #ffb7a3; }
.quote :focus-visible { outline-color: #fff; }
form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4) var(--s4); }
form p { margin: 0; }
label { display: block; font: 600 var(--t-base)/1.3 var(--text); color: #fff; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: 400 var(--t-base)/1.4 var(--text);
  color: var(--ink);
  background: #fff;
  border: 1px solid #fff;
  border-radius: var(--radius);
  padding: 12px;
  min-height: 50px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
textarea { resize: vertical; min-height: 120px; }
::placeholder { color: #7a7067; }
input[type="file"] { background: transparent; color: #e4ddd4; border: 1px dashed #8a8078; padding: 11px; }
input[type="file"]::file-selector-button {
  font: 600 var(--t-sm)/1 var(--text);
  background: #fff; color: var(--ink);
  border: 0; border-radius: 3px;
  padding: 8px 12px; margin-right: 12px; cursor: pointer;
}
button {
  font: 800 var(--t-md)/1 var(--display);
  font-stretch: 100%;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  padding: 18px 28px;
  cursor: pointer;
  width: 100%;
  box-shadow: var(--shadow);
  transition: background-color var(--ease);
}
button:hover { background: var(--red-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Phone hours ---------- */
.hours { background: var(--red); color: #fff; }
.hours-in { padding-top: var(--s6); padding-bottom: var(--s6); display: grid; gap: var(--s2) var(--s6); }
.hours h2 { font-size: var(--t-lg); color: #fff; }
.hours-time { font: 800 var(--t-xl)/1.1 var(--display); font-stretch: 90%; margin: 0; }
.hours-note { margin: 0; max-width: 46ch; }
.hours a { color: #fff; word-break: break-word; }
.hours a:hover { color: #fff; text-decoration-thickness: 3px; }
.hours :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #bfb6ac; font-size: var(--t-sm); line-height: 1.5; }
.foot .wrap { padding-top: var(--s6); padding-bottom: calc(var(--s6) + 60px); } /* room for the mobile call bar */
.foot p { margin: 0 0 var(--s1); }
.foot strong { color: #fff; font-weight: 600; }
.foot .abn { font-size: .9em; white-space: nowrap; }
.foot a { color: #fff; }
.foot a:hover { color: #ffb7a3; }
.foot :focus-visible { outline-color: #fff; }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: .4em;
  background: var(--red);
  color: #fff;
  font: 800 var(--t-md)/1 var(--display);
  padding: 19px var(--gutter);
  text-decoration: none;
  border-top: 2px solid var(--ink);
}
.callbar:hover { color: #fff; background: var(--red-dark); }

/* ---------- Thank-you and error pages (also used by functions/api/lead.js) ---------- */
.thanks {
  background: var(--red);
  color: #fff;
  padding: var(--s8) var(--gutter);
}
.thanks > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.thanks h1 { margin-bottom: var(--s5); max-width: var(--max); }
.thanks p { font-size: var(--t-md); line-height: 1.45; }
.thanks a { color: #fff; }
.thanks a:hover { color: #fff; text-decoration-thickness: 3px; }
.thanks :focus-visible { outline-color: #fff; }

/* =================== Wider screens =================== */
@media (min-width: 560px) {
  .top-tel-label { display: inline; }
  .btn-call { display: inline-block; }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 347px)); }
  form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  form p { grid-column: 1 / -1; }
  form .f-half { grid-column: auto; }
  button { width: auto; }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .callbar { display: none; }
  .foot .wrap { padding-bottom: var(--s6); }
  .top-in { min-height: 96px; }
  .mark img { height: 80px; }
  .top-tel { font-size: var(--t-base); padding: 13px 16px; }

  .hero-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .jobs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); }
  .jobs-list .tip { margin-top: 0; align-self: start; }

  .recent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }

  .area-photo { display: none; } /* tablet: a lone 347px photo leaves the right side empty; back at 1040px */
  .towns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }

  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s7); align-items: start; }
  .about-photo { order: 2; justify-self: end; }
  .about-copy { padding-top: var(--s1); }

  .q-main p { font-size: var(--t-2xl); }

  .hours-in { grid-template-columns: auto 1fr; align-items: baseline; }
  .hours h2 { grid-row: span 2; padding-right: var(--s6); border-right: 1px solid rgba(255,255,255,.45); }
  .thanks { padding: var(--s9) var(--gutter); }
}

/* 12-column layout from here */
@media (min-width: 1040px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: clamp(600px, 48vw, 694px); /* two rows of tiles stay at or under the 347px source height; grows if the text needs more */
  }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, var(--t-h1)); }
  .hero-text {
    /* left edge lines up with .wrap content */
    padding: var(--s7) var(--s7) var(--s7) max(var(--gutter), calc((100vw - var(--max)) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-photos {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    border-top: 0;
    border-left: 3px solid var(--ink);
    height: 100%;
    overflow: hidden;
  }
  .hero-photos img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .hero .pitch { max-width: 46ch; margin-bottom: var(--s5); }
  .hero-hours { max-width: none; }

  .cleans { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
  .cleans h2 { grid-column: 1 / span 4; max-width: 8ch; }
  .jobs-list { grid-column: 5 / span 8; }

  .prices-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: baseline; }
  .prices h2 { grid-column: 1 / span 4; margin: 0; }
  .prices-copy { grid-column: 5 / span 7; }

  /* same split as .cleans: heading in cols 1-4, intro + town list in 5-12 */
  .area .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: start; }
  .area-head { display: contents; }
  .area-head h2 { grid-column: 1 / span 4; grid-row: 1; max-width: 8ch; margin: 0; }
  .area-head p { grid-column: 5 / span 8; grid-row: 1; max-width: 52ch; margin: 0; padding-top: .35em; }
  .area-photo { display: block; grid-column: 1 / span 4; grid-row: 2; margin-top: var(--s6); }
  .towns { grid-column: 5 / span 8; grid-row: 2; margin-top: var(--s6); column-gap: var(--s5); }
  .towns li { font-size: clamp(var(--t-md), 1.75vw, var(--t-lg)); font-weight: 700; line-height: 1.2; padding: 3px 0; }

  .about { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
  .about-copy { grid-column: 1 / span 7; grid-row: 1; }
  .about-photo { grid-column: 9 / span 4; grid-row: 1; justify-self: end; }
  .about .lede, .about-copy p { max-width: none; }

  .said-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s6); }
  .said h2 { grid-column: 1 / -1; }
  .q-main { grid-column: 1 / span 7; }
  .q-side { grid-column: 9 / span 4; }

  .quote-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
  .quote-copy { grid-column: 1 / span 4; }
  .quote form { grid-column: 6 / span 7; }
}


@media print {
  .callbar, .top-tel, .hero-photos, form { display: none; }
  .hero, .prices, .quote, .hours, .foot, .thanks { background: none; color: #000; }
  body { padding: 0; }
}
