/* Lazure & Davies Cleaning. "Heritage" design: purple and gold on warm cream, serif headings.
   Every tap target is at least 44px. Text and background pairs are checked for contrast in tests/run_tests.py. */
:root {
  --bg: #fbf8f1; --surface: #ffffff; --tint: #f4efe2; --gold-soft: #f3e6b8;
  --ink: #1d1638; --head: #2a1763; --brand: #3b1f7e; --deep: #170f3d;
  --muted: #6a6580; --line: #e8e1d0; --line2: #d5cdb9;
  --gold: #ddb93f; --gold-hover: #cfa92f; --gold-ink: #7a5c0c; --err: #a3261c;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, .logo { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; color: var(--head); text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.in { max-width: 1184px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .in { padding-left: 32px; padding-right: 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav and buttons */
.navin { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.25rem; text-decoration: none; }
.links { display: none; gap: 34px; font-size: 0.97rem; }
.links a { text-decoration: none; color: var(--muted); padding: 12px 0; }
.links a:hover { color: var(--brand); }
@media (min-width: 900px) { .links { display: flex; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 10px; border: 0; background: var(--gold); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--gold-hover); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--head); color: #fff; }
.btn-ink:hover { background: var(--deep); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 16px; }

/* Hero. On phones the calculator comes straight after the headline so the price is on the first screen. */
.hero { padding: 16px 0 56px; }
.hero-grid { display: grid; gap: 26px; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.3rem); line-height: 1.1; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 30em; }
.trust { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 10px; }
.trust li { display: flex; gap: 12px; align-items: center; }
.trust li::before { content: ""; width: 7px; height: 12px; border: solid var(--gold-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); flex: none; margin-left: 4px; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "head calc" "more calc"; column-gap: 72px; row-gap: 22px; }
  .hero-head { grid-area: head; align-self: end; }
  .hero-more { grid-area: more; align-self: start; }
  .calc { grid-area: calc; align-self: center; }
}

/* Calculator card */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px 20px; box-shadow: 0 30px 60px -36px rgba(42, 23, 99, 0.35); }
@media (min-width: 440px) { .calc { padding: 30px 28px 24px; } }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--tint); padding: 4px; border-radius: 12px; }
.seg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; text-align: center; font-size: 0.95rem; color: var(--muted); border-radius: 9px; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.row small { display: block; font-size: 0.82rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; color: var(--ink); font: inherit; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--tint); }
.stepper button:disabled { color: #c9c2b2; border-color: var(--line); cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums lining-nums; }
.amt-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.amt { font-family: var(--serif); font-weight: 700; font-size: clamp(3.9rem, 17vw, 4.8rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--head); }
.per { font-size: 1.1rem; }
.plan-note { margin-top: 10px; color: var(--muted); }
.house { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.house > span:first-child { color: var(--muted); }
.house .ht { font-weight: 600; text-align: right; }
.min-note { padding: 12px 0; font-size: 0.9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.more { border-bottom: 1px solid var(--line); }
.more-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0; background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; text-align: left; }
.more-btn b { color: var(--brand); flex: none; }
#morePanel { padding-bottom: 16px; }
#morePanel .row:first-child { margin-top: 2px; }
.lines { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 4px; font-size: 0.88rem; color: var(--muted); }
.lines li { display: flex; justify-content: space-between; gap: 10px; }
.lines li span:last-child { flex: none; font-variant-numeric: tabular-nums lining-nums; }
.basis { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.calc .btn-block { margin-top: 22px; }
.est { margin-top: 12px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.textbtn { display: block; width: 100%; min-height: 44px; margin-top: 4px; background: none; border: 0; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--brand); cursor: pointer; }
.textbtn:hover, .more-btn:hover b, .plan .go:hover { text-decoration: underline; text-underline-offset: 3px; }
.toast { min-height: 1.3em; font-size: 0.85rem; color: var(--brand); text-align: center; }

/* Booking form (inside the calculator card) */
.tiny { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { min-height: 44px; padding: 0 2px; background: none; border: 0; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.f-sum { margin-top: 8px; padding: 14px 16px; background: var(--tint); border-radius: 10px; font-size: 0.95rem; }
.f-sum span { display: block; }
.f-sum .sum-each { margin-top: 4px; }
.f-sum .sum-each b { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.2; color: var(--head); }
.f-sum .sum-house { font-size: 0.88rem; color: var(--muted); }
.fields { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line2); border-radius: 8px; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(59, 31, 126, 0.25); border-color: var(--brand); }
.two-up, .two.fields-two { display: grid; }
.fields .two { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 440px) { .fields .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.consent { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 0.9rem; margin-top: 16px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { min-height: 1.2em; margin-top: 8px; font-size: 0.88rem; color: var(--err); }
.done { display: grid; gap: 10px; padding: 8px 0; }
.done h3 { font-size: 1.5rem; }
.done h3:focus { outline: none; }
.done p { color: var(--muted); }
.note { font-size: 0.88rem; color: var(--muted); }

/* Sections */
section { padding: 60px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.tint { background: var(--tint); }
.h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.15; }
.sub { margin-top: 12px; color: var(--muted); max-width: 34em; }
section .two { display: grid; gap: 28px; }
section .two > * { min-width: 0; }
@media (min-width: 900px) { section .two { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; } }

/* Prices as a rate card: one row per plan */
.plans { margin-top: 36px; border-top: 2px solid var(--head); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line2); }
.plan.feat { background: #fff; box-shadow: inset 4px 0 0 var(--gold); padding-left: 18px; padding-right: 12px; }
.plan .name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--head); }
.tag { display: inline-block; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5c4708; background: #f1e3b3; padding: 4px 9px; border-radius: 99px; margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
.plan .desc { color: var(--muted); font-size: 0.95rem; }
.plan .p { text-align: right; white-space: nowrap; }
.plan .p b { font-family: var(--serif); font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1.1; color: var(--head); }
.plan .p span { display: block; color: var(--muted); font-size: 0.9rem; }
.plan .h { color: var(--muted); font-size: 0.95rem; }
.plan .h b { color: var(--ink); }
.plan .go { justify-self: end; min-height: 44px; min-width: 44px; padding: 0 2px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; }
@media (min-width: 820px) {
  .plan { grid-template-columns: 1.5fr 1fr 1fr auto; gap: 24px; padding: 26px 8px; }
  .plan.feat { padding-left: 24px; }
  .plan .p { text-align: left; }
  .plan .p span { display: inline; margin-left: 6px; }
}
.addons { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

.steps { margin-top: 40px; display: grid; gap: 30px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.step .n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--gold-ink); }
.step h3 { font-size: 1.25rem; margin-top: 14px; }
.step p { margin-top: 8px; color: var(--muted); }

.list > div { padding: 18px 0; border-top: 1px solid var(--line2); }
.list > div:last-child { border-bottom: 1px solid var(--line2); }
.list dt { font-weight: 600; }
.list dd { color: var(--muted); }
@media (min-width: 620px) { .list > div { display: flex; justify-content: space-between; gap: 32px; } .list dt { flex: none; } .list dd { text-align: right; } }

.refer { background: var(--gold-soft); }
.refer .eyebrow { color: var(--head); }
.refer ol { padding-left: 1.2em; display: grid; gap: 10px; font-size: 1.05rem; }
.refer .btn { margin-top: 22px; }
.refer .toast { text-align: left; color: var(--ink); margin-top: 6px; }

details { border-top: 1px solid var(--line2); }
details:last-of-type { border-bottom: 1px solid var(--line2); }
summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 40px 20px 0; color: var(--muted); }
.maillink { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

.close { background: var(--head); color: #fff; text-align: center; padding: 72px 0; }
.close .h2 { color: #fff; max-width: 16em; margin: 0 auto; }
.close p { margin: 14px auto 0; color: #ddd6f5; max-width: 32em; }
.close .btn { margin-top: 26px; }

footer { background: var(--deep); color: #fff; padding: 48px 0 40px; font-size: 0.95rem; }
.foot { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
footer .logo { color: #fff; }
footer p, footer li { color: #cfc8ea; }
footer ul { list-style: none; padding: 0; display: grid; margin-top: 6px; }
footer li { min-height: 32px; display: flex; align-items: center; }
footer li a { display: inline-flex; align-items: center; min-height: 44px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer h4 { margin: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.85rem; }
@media (max-width: 959px) { footer { padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)); } }

/* Phone price bar. Shown only while the calculator (and the form inside it) is off screen. */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--deep); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.bar .t { display: grid; line-height: 1.15; }
.bar .t span { font-size: 0.78rem; color: #cfc8ea; }
.bar .t b { font-family: var(--serif); font-size: 1.5rem; }
.bar .btn { min-height: 46px; padding: 0 20px; }
@media (min-width: 960px) { .bar { display: none !important; } }

.testbar { background: var(--err); color: #fff; text-align: center; font-weight: 700; font-size: 0.9rem; padding: 9px 16px; }

/* Terms and Privacy pages */
.legal-main { padding: 32px 0 72px; }
.legal-page { max-width: 760px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin-top: 8px; }
.legal-page .updated { margin-top: 12px; color: var(--muted); }
.legal-page p + p { margin-top: 18px; }
.legal-page .updated + p { margin-top: 28px; }
.legal-page a { color: var(--brand); text-underline-offset: 3px; overflow-wrap: anywhere; }
.back-home { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
