/* ==========================================================================
   The Cleaning Company — design system
   One stylesheet. No frameworks. No build step.
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #12211E;
  --ink-2:      #2C3E39;
  --muted:      #5F726C;
  --paper:      #FBFAF6;
  --paper-2:    #F3F1EA;
  --line:       #E2DED2;
  --accent:     #1F6F5C;
  --accent-dk:  #175647;
  --accent-tint:#E4F0EB;
  --sand:       #EFE7DA;
  --mint:       #7BD3B4;
  --white:      #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(18,33,30,.05), 0 2px 8px rgba(18,33,30,.04);
  --shadow-md: 0 2px 4px rgba(18,33,30,.05), 0 12px 32px rgba(18,33,30,.07);

  --radius:   14px;
  --radius-lg:22px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --wrap-narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #F2F5F3;
    --ink-2:      #D6DEDA;
    --muted:      #9FB1AB;
    --paper:      #0E1917;
    --paper-2:    #16241F;
    --line:       #26382F;
    --accent:     #6FCBAF;
    --accent-dk:  #9BE0C8;
    --accent-tint:#16302A;
    --sand:       #1C2A24;
    --white:      #16241F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 12px 32px rgba(0,0,0,.35);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
}

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

a { color: var(--accent-dk); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

/* --------------------------------------------------------------- Type --- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
}

h1 { font-size: clamp(2.35rem, 5.6vw, 3.9rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 650; letter-spacing: -0.005em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

.eyebrow {
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin: 0 0 1rem;
  display: block;
}

.small { font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------------ Layout --- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section.tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.band { background: var(--paper-2); }
.band-accent { background: var(--accent-tint); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

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

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 70px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.16rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; flex: none;
  white-space: nowrap;
}
.brand .brand-mark { width: 26px; height: 26px; flex: none; }
.brand .brand-name { display: inline; }
.brand em { font-style: normal; color: var(--accent-dk); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: 8px; white-space: nowrap;
}
.nav a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { color: var(--accent-dk); font-weight: 620; }

.nav-cta { margin-left: .6rem; white-space: nowrap; }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 9px; padding: .5rem .75rem; font: inherit; font-size: .9rem;
    color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; inset: 70px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 22px 1.25rem; box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }
  .nav a:not(.btn) { padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav-cta { margin: 1rem 0 0; text-align: center; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body); font-size: .96rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dk); color: #fff; box-shadow: var(--shadow-md); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #08120F; }
  :root:not([data-theme="light"]) .btn-primary:hover { color: #08120F; }
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--muted); }
.btn-sm { padding: .58rem 1rem; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* --------------------------------------------------------------- Hero -- */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(58% 48% at 78% 12%, color-mix(in srgb, var(--mint) 34%, transparent) 0%, transparent 62%),
    radial-gradient(46% 42% at 10% 4%, color-mix(in srgb, var(--sand) 78%, transparent) 0%, transparent 60%);
  z-index: 0; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.25rem; }
.hero .btn-row { margin-top: 2rem; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
  margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .89rem; color: var(--muted); list-style: none; padding-inline-start: 0;
}
.trust-strip li { display: flex; align-items: center; gap: .45rem; }
.trust-strip svg { color: var(--accent-dk); flex: none; }

/* -------------------------------------------------------- Answer block -- */
/* The extractable summary. Visually distinct, semantically first. */

.answer {
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 2.5rem;
  max-width: 72ch;
}
.answer p { font-size: 1.06rem; line-height: 1.6; color: var(--ink); }
.answer .eyebrow { margin-bottom: .6rem; }

/* --------------------------------------------------------- Quick facts -- */

.facts {
  margin: 0; padding: 0;
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
}
.facts > div {
  display: grid; grid-template-columns: 1fr; gap: .1rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
@media (min-width: 560px) {
  .facts > div { grid-template-columns: 190px 1fr; gap: 1rem; align-items: baseline; }
}
.facts dt { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.facts dd { margin: 0; color: var(--ink); }

/* --------------------------------------------------------------- Cards -- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card .card-link { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .93rem; color: var(--accent-dk); display: inline-flex; gap: .35rem; align-items: center; }
a.card:hover .card-link { gap: .6rem; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-tint); color: var(--accent-dk);
  display: grid; place-items: center; margin-bottom: 1rem; flex: none;
}

.stat { border-left: 3px solid var(--accent); padding-left: 1.1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { font-size: .92rem; color: var(--muted); }

/* -------------------------------------------------------------- Tables -- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
caption { text-align: left; padding: 1rem 1.1rem .25rem; font-size: .85rem; color: var(--muted); }
th, td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 620; }

/* ------------------------------------------------------------- Pricing -- */

.price-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -11px; left: clamp(1.5rem, 3vw, 2rem);
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px;
}
.price-amount { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: -0.03em; line-height: 1; margin: .6rem 0 .2rem; }
.price-amount small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .55rem; font-size: .95rem; }
.price-card li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); }
.price-card li svg { flex: none; margin-top: .3em; color: var(--accent-dk); }
.price-card .btn { margin-top: auto; }

/* ----------------------------------------------------------- Checklist -- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist li svg { flex: none; margin-top: .32em; color: var(--accent-dk); }

.numbered { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.numbered li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 1rem; align-items: start; }
.numbered li::before {
  content: counter(step); grid-row: span 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
}
.numbered h4 { margin-bottom: .2rem; }
.numbered p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ------------------------------------------------------------ Reviews --- */

.review {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.6vw, 1.8rem);
  display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 1.1rem; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.45; letter-spacing: -0.01em; }
.review figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 620; }
.stars { color: #C89B3C; letter-spacing: .1em; font-size: .9rem; margin-bottom: .9rem; }

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

.faq { border-top: 1px solid var(--line); max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative; font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; letter-spacing: -0.012em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.55rem;
  width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); }
.faq .faq-body p:first-child { margin-top: 0; }

/* ------------------------------------------------------------- Areas ---- */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips a {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: .9rem; text-decoration: none; color: var(--ink-2);
}
.chips a:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-tint); }

/* -------------------------------------------------------- Breadcrumbs --- */

.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dk); }

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

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2); }
input, select, textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }

.contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem);
}
.contact-card a { font-weight: 600; }

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

.cta-band {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: var(--paper); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: color-mix(in srgb, var(--paper) 76%, transparent); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.75rem; }
.cta-band .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.cta-band .btn-ghost:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); color: var(--paper); }

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

.site-footer {
  background: var(--paper-2); border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 0;
}
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .93rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-dk); }
.footer-brand p { font-size: .93rem; color: var(--muted); max-width: 34ch; }
.footer-brand .brand { font-size: 1.02rem; margin-bottom: .9rem; }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: var(--muted);
}
address { font-style: normal; }

/* ------------------------------------------------------------- Utility -- */

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.prose > * + h2 { margin-top: 2.75rem; }
.prose > * + h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45rem; }
.prose { max-width: 72ch; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

@media print { .site-header, .cta-band, .nav-toggle { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
