/* Friendly Carpet Cleaning
   Service-van palette: work-shirt denim, marigold lettering, rinse white.
   One family (Archivo), used wide for signage and normal width for reading.
   The one loud thing is the room-price card lying on freshly striped carpet. */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --rinse: #f5f7fa;
  --white: #ffffff;
  --navy: #14254d;
  --denim: #1e3f8a;
  --marigold: #f4b63b;
  --marigold-deep: #8a5a00;
  --marigold-wash: #fff4da;
  --stripe-a: #e8edf5;
  --stripe-b: #d6dfec;
  --muted: #47546d;
  --line: #d3dbe7;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118%;
  --wider: 125%;

  --max: 74rem;
  --gutter: 1rem;
  --radius-s: 6px;
  --radius-m: 10px;
}

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

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--rinse);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--denim); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--denim); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-stretch: var(--wide);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.8rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; margin: 0 0 1.4rem; }
li { margin: 0.35rem 0; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
/* A narrow column that stays on the page's left edge, not centered. */
.measure > * { max-width: 44rem; }
.measure > .lede { max-width: 40rem; }
.prose { max-width: 40rem; }
.gap-top { margin-top: 2.5rem; }

.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 20;
  background: var(--navy); color: var(--white); padding: 0.6rem 0.9rem;
}
.skip:focus { top: 0.5rem; color: var(--white); }

/* Water strip and header ------------------------------------------------ */

.water-strip { background: var(--navy); color: #dfe6f3; font-size: 0.92rem; }
.water-strip p { margin: 0; padding: 0.45rem 0; }
.water-strip a { color: var(--marigold); font-weight: 700; white-space: nowrap; }
.water-strip a:hover { color: var(--white); }
.water-strip :focus-visible { outline-color: var(--marigold); }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.header-bar { display: flex; align-items: center; gap: 1.25rem; min-height: 4.5rem; }

.brand {
  display: grid;
  margin-right: auto;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
}
.brand-top {
  font-stretch: var(--wider);
  font-weight: 850;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.3rem;
}
.brand:hover { color: var(--denim); }

.desk-nav { display: none; gap: 1.4rem; }
.desk-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 550;
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
}
.desk-nav a:hover { border-bottom-color: var(--line); }
.desk-nav a[aria-current="page"] { border-bottom-color: var(--marigold); }

.header-call {
  display: none;
  background: var(--marigold);
  color: var(--navy);
  font-stretch: var(--wide);
  font-weight: 800;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  white-space: nowrap;
}
.header-call:hover { background: var(--navy); color: var(--white); }

.menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius-s);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: var(--white); }
.menu nav {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1rem;
  display: grid;
  box-shadow: 0 18px 30px -18px rgba(20, 37, 77, 0.35);
}
.menu nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.menu nav a:last-child { border-bottom: 0; color: var(--denim); }

/* Buttons and small type ------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  font: inherit;
  font-stretch: var(--wide);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.btn-call { background: var(--marigold); color: var(--navy); border-color: var(--marigold); }
.btn-call:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 38rem; }

.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }

.text-link { font-weight: 700; color: var(--denim); }

.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.ticks li { margin: 0; padding-left: 1.5rem; position: relative; font-weight: 550; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 0.95rem; height: 0.55rem;
  border-left: 3px solid var(--denim);
  border-bottom: 3px solid var(--denim);
  transform: rotate(-45deg) translate(1px, -2px);
}
.ticks-block { display: grid; gap: 0.5rem; }

.note { font-weight: 600; }

.callout {
  background: var(--marigold-wash);
  border-left: 5px solid var(--marigold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 0.9rem 1.1rem;
}
.callout-water { align-self: start; padding: 1.4rem 1.5rem; }
.callout-water h2 { font-size: 1.5rem; }
.callout p:last-child { margin-bottom: 0; }

/* Hero and the striped carpet ------------------------------------------- */

.hero { background: var(--white); padding: 2.5rem 0 0; }
.hero-grid { display: grid; gap: 2rem; }
.hero-copy { padding-bottom: 1rem; }
.hero h1 { max-width: 13ch; }

.pile {
  /* Fresh-cleaned carpet: wide alternating bands of pile, lit two ways. */
  background:
    repeating-linear-gradient(
      100deg,
      var(--stripe-a) 0 2.6rem,
      var(--stripe-b) 3.4rem 5.8rem,
      var(--stripe-a) 6.6rem 9.2rem
    );
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  padding: 2rem 1.25rem 2.25rem;
  margin-inline: calc(-1 * var(--gutter));
}
.pile-tight { border-radius: var(--radius-m); margin-inline: 0; }

.rate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.rate-card-hero {
  max-width: 26rem;
  margin-inline: auto;
  border: 0;
  box-shadow: 0 1px 0 rgba(20, 37, 77, 0.08), 0 22px 40px -24px rgba(20, 37, 77, 0.55);
  transform: rotate(-1.2deg);
}
.rate-card-head {
  margin: 0;
  background: var(--marigold);
  color: var(--navy);
  font-stretch: var(--wider);
  font-weight: 850;
  font-size: 1.3rem;
  padding: 0.75rem 1.25rem;
}

.rate { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate caption {
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.8rem 1.25rem 0.2rem;
}
.rate thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rate th, .rate td {
  text-align: left;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.rate tbody th { font-stretch: var(--wide); font-weight: 800; width: 8rem; white-space: nowrap; }
.rate tbody th span { font-size: 0.85rem; font-weight: 500; color: var(--muted); font-stretch: 100%; letter-spacing: 0; }
.rate td { font-weight: 550; }
.rate .rate-call td { color: var(--muted); font-weight: 500; }
.rate .is-selected th, .rate .is-selected td { background: var(--navy); color: var(--white); }
.rate .is-selected th span { color: #c9d3e6; }
.rate-note { font-size: 0.9rem; color: var(--muted); padding: 0.75rem 1.25rem 1rem; margin: 0; }

.rate-big tbody th { font-size: 1.5rem; padding-block: 0.55rem; }
.rate-big td { font-size: 1.15rem; }

/* Facts ----------------------------------------------------------------- */

.facts-band { background: var(--navy); color: #dfe6f3; }
.facts { display: grid; gap: 0; padding: 0.5rem 0; }
.facts p { margin: 0; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.97rem; }
.facts p:last-child { border-bottom: 0; }
.facts strong {
  display: block;
  color: var(--white);
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

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

.section { padding: 3.5rem 0; }
.section-tint { background: var(--white); border-block: 1px solid var(--line); }

.split { display: grid; gap: 2rem; }

.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }

.service-rows { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--navy); }
.service-rows li { margin: 0; border-bottom: 1px solid var(--line); }
.service-rows a {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  color: var(--navy);
}
.service-name { font-stretch: var(--wide); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.service-sum { color: var(--muted); }
.service-rows a:hover .service-name { color: var(--denim); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.chips li { margin: 0; }
.chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.chips a:hover { border-color: var(--navy); }
.chips span { font-size: 0.82rem; font-weight: 600; color: var(--marigold-deep); }
.section-tint .chips a { background: var(--rinse); }

.link-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 0.6rem 0; font-weight: 650; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }

/* Quotes ---------------------------------------------------------------- */

.quotes { display: grid; gap: 1.75rem; margin-bottom: 1.5rem; }
blockquote { margin: 0; padding-left: 1.25rem; border-left: 4px solid var(--marigold); }
blockquote p { font-size: 1.15rem; line-height: 1.5; font-weight: 500; margin-bottom: 0.5rem; }
blockquote footer { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.quotes-feature blockquote:first-child p {
  font-stretch: var(--wide);
  font-weight: 650;
  font-size: clamp(1.2rem, 1.8vw, 1.35rem);
  line-height: 1.4;
}

.bbb-link { display: inline-block; }
.bbb { width: min(13rem, 100%); }

/* FAQ ------------------------------------------------------------------- */

.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 2px solid var(--navy); }
.qa summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem 1rem 0;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-stretch: var(--wider);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--denim);
}
.qa[open] summary::after { content: "–"; }
.qa p { padding-bottom: 1.1rem; margin: 0; max-width: 40rem; color: var(--muted); }

/* Inner page heads ------------------------------------------------------ */

.page-head {
  background: var(--white);
  padding: 2rem 0 2.75rem;
  position: relative;
}
.page-head::after {
  /* A narrow strip of the same striped pile closes every page head. */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0.6rem;
  background: repeating-linear-gradient(100deg, var(--stripe-a) 0 2.6rem, var(--stripe-b) 3.4rem 5.8rem, var(--stripe-a) 6.6rem 9.2rem);
}
.page-head .actions { margin-bottom: 0; }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 18ch; }
.page-head-error { padding-block: 4rem 5rem; }

.phone-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--marigold);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.5rem;
}
.phone-card-head { font-stretch: var(--wider); font-weight: 850; font-size: 1.3rem; margin-bottom: 0.4rem; }

/* Price form ------------------------------------------------------------ */

.price-form { margin: 1.75rem 0 1.25rem; max-width: 32rem; }
.price-form label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.price-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.price-form select {
  flex: 1 1 15rem;
  font: inherit;
  font-weight: 550;
  min-height: 3.1rem;
  padding: 0.5rem 0.75rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-s);
}

.price-result {
  background: var(--marigold-wash);
  border-left: 5px solid var(--marigold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 1rem 1.25rem;
  max-width: 32rem;
}
.price-result-line { font-stretch: var(--wide); font-weight: 700; font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.5rem; }
.price-result-line strong { font-weight: 850; }
.price-result p:last-child { margin-bottom: 0; }

/* Closer and big phone -------------------------------------------------- */

.big-phone {
  display: inline-block;
  font-stretch: var(--wider);
  font-weight: 850;
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--marigold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.big-phone:hover { color: var(--white); }
.big-phone-dark { color: var(--navy); font-size: clamp(2rem, 5vw, 3.25rem); margin: 0.25rem 0 1.25rem; border-bottom: 5px solid var(--marigold); padding-bottom: 0.2rem; }
.big-phone-dark:hover { color: var(--denim); }

.closer { background: var(--denim); color: #e4eaf6; padding: 3.5rem 0; }
.closer h2 { color: var(--white); }
.closer p { margin-bottom: 0; }
.closer-grid { display: grid; gap: 1.5rem; align-items: end; }
.closer-call { display: grid; gap: 0.75rem; justify-items: start; }
.text-link-light { color: var(--white); }
.text-link-light:hover { color: var(--marigold); }
.closer :focus-visible { outline-color: var(--marigold); }

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

.site-footer { background: var(--navy); color: #c9d3e6; padding: 3rem 0 2rem; font-size: 0.97rem; }
.site-footer a { color: #e4eaf6; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--marigold); }
.footer-top { display: grid; gap: 2rem; }
.footer-name { font-stretch: var(--wider); font-weight: 850; font-size: 1.4rem; color: var(--white); line-height: 1.1; margin-bottom: 0.4rem; }
.footer-phone a { font-stretch: var(--wide); font-weight: 800; font-size: 1.5rem; color: var(--marigold); }
.footer-col { display: grid; align-content: start; gap: 0.35rem; }
.footer-col h2 { font-size: 1rem; font-stretch: var(--wide); color: var(--marigold); margin-bottom: 0.4rem; }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}
.footer-base p { margin: 0 0 0.4rem; }

/* Mobile call bar ------------------------------------------------------- */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px -12px rgba(20, 37, 77, 0.35);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  font-weight: 750;
  font-stretch: var(--wide);
  text-decoration: none;
  color: var(--navy);
}
.callbar .callbar-call { background: var(--marigold); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .header-call, .chips a, .desk-nav a { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}

/* Breakpoints ----------------------------------------------------------- */

@media (min-width: 720px) {
  :root { --gutter: 1.5rem; }
  .facts { grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .facts p:nth-last-child(2) { border-bottom: 0; }
  .service-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
  .quotes-feature { grid-template-columns: 1fr; }
  .closer-grid { grid-template-columns: 1fr auto; }
  .pile { margin-inline: 0; border-radius: var(--radius-m) var(--radius-m) 0 0; padding: 2.5rem 2rem 3rem; }
}

@media (max-width: 1099px) {
  body { padding-bottom: 3.5rem; }
}

@media (min-width: 1100px) {
  .menu, .callbar { display: none; }
  .desk-nav, .header-call { display: flex; }
  .hero { padding-top: 3.5rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 3rem; }
  .hero-copy { padding-bottom: 3rem; }
  .pile { padding: 3rem 2.5rem 3.5rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .split-head { align-items: center; }
  .split-media { align-items: center; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts p { border-bottom: 0; padding: 1.4rem 1.5rem 1.4rem 0; }
  .facts p + p { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 1.5rem; }
  .page-head { padding: 3rem 0 3.75rem; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 380px) {
  .brand-top { font-size: 1.15rem; }
  .brand-sub { display: none; }
}
