/* Rental Homes Maintenance Services — site styles
   Tokens: primer (page), drywall (alt surface), ink (text), tape (painter's tape blue),
   action (button blue), ready (done green). One family: Archivo variable (width 62–125). */

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

:root {
  --primer: #f4f5f1;
  --drywall: #e5e8e1;
  --paper: #ffffff;
  --ink: #18222f;
  --muted: #4a5462;
  --line: #c8cdc4;
  --tape: #5ba3ea;
  --tape-deep: #3f8ad6;
  --action: #1d5fc0;
  --action-hover: #174e9f;
  --ready: #17795a;
  --focus: #1d5fc0;

  --step--1: 0.875rem;  /* 14 */
  --step-0: 1.125rem;   /* 18 */
  --step-1: 1.3125rem;  /* 21 */
  --step-2: 1.5rem;     /* 24 */
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.25rem);   /* 28 → 36 */
  --step-4: clamp(2.25rem, 1.3rem + 4vw, 3.75rem);     /* 36 → 60 */

  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--primer);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--action); text-underline-offset: 0.18em; }
a:hover { color: var(--action-hover); }

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

h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; font-stretch: 110%; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lead-gap { margin-top: 1.2rem; }
.footer-blurb { margin-top: 1rem; max-width: 26rem; }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Tape: the one recurring device ---------- */
.tape {
  display: inline-block;
  background: var(--tape);
  color: var(--ink);
  font-weight: 700;
  font-stretch: 75%;
  font-size: var(--step-0);
  line-height: 1.2;
  padding: 0.35em 1.1em 0.4em;
  transform: rotate(-1.2deg);
  clip-path: polygon(1.5% 0, 98.5% 0, 100% 22%, 97.5% 42%, 100% 62%, 97.5% 82%, 99% 100%, 1% 100%, 2.5% 80%, 0 60%, 2.5% 40%, 0 20%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-stretch: 105%; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 241, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 3.4rem; height: auto; flex: none; }
.brand-name { font-weight: 800; font-stretch: 112%; font-size: 1rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name span { display: block; font-weight: 500; font-stretch: 100%; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.nav a:hover { text-decoration: underline; }
.header-phone { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1rem; }
.header-phone:hover { color: var(--action); }
.site-header .btn { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 1rem; }

@media (max-width: 68rem) { .nav { display: none; } }
@media (max-width: 40rem) {
  .header-phone, .site-header .btn { display: none; }
  .brand-mark { width: 3rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-lede { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; max-width: 34rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-facts { list-style: none; margin: 2.4rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; max-width: 36rem; }
.hero-facts li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; font-size: 1rem; color: var(--muted); }
.hero-facts svg { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--ready); }
.hero-facts strong { color: var(--ink); font-weight: 700; }

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
}

/* The work-order sheet */
.sheet-wrap { position: relative; padding: 1.2rem 0.4rem 0.4rem; }
.sheet {
  position: relative;
  background: var(--paper);
  border: 1px solid #d9ddd5;
  border-radius: 3px;
  padding: 2rem 1.6rem 1.5rem;
  transform: rotate(0.8deg);
  box-shadow: 0 1px 0 #d9ddd5, 0 18px 40px -22px rgba(24, 34, 47, 0.45);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: -0.9rem; width: 6.5rem; height: 1.9rem;
  background: var(--tape); opacity: 0.88;
  clip-path: polygon(3% 0, 97% 0, 100% 25%, 96% 50%, 100% 75%, 97% 100%, 3% 100%, 0 75%, 4% 50%, 0 25%);
}
.sheet::before { left: -1.2rem; transform: rotate(-11deg); }
.sheet::after { right: -1.2rem; transform: rotate(9deg); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 2px solid var(--ink); }
.sheet-title { font-weight: 800; font-stretch: 112%; font-size: var(--step-1); letter-spacing: -0.01em; }
.sheet-sub { font-size: var(--step--1); color: var(--muted); margin-top: 0.15rem; }
.sheet-status { font-weight: 700; font-stretch: 85%; font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.sheet-status.is-ready { color: var(--ready); }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list li {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid #e3e6df; font-size: 1rem; line-height: 1.35;
}
.box { width: 1.25rem; height: 1.25rem; border: 2px solid var(--ink); border-radius: 3px; display: grid; place-items: center; }
.box svg { width: 0.9rem; height: 0.9rem; color: var(--ready); opacity: 0; transform: scale(0.4); transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.9,.3,1.4); }
.sheet-list li.is-done .box { border-color: var(--ready); }
.sheet-list li.is-done .box svg { opacity: 1; transform: scale(1); }
.sheet-progress { margin-top: 1.1rem; height: 6px; background: #e3e6df; border-radius: 3px; overflow: hidden; }
.sheet-progress span { display: block; height: 100%; width: 0; background: var(--tape-deep); transition: width 420ms ease; }
.sheet-progress.is-ready span { background: var(--ready); }
.sheet-note { margin-top: 0.8rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- Generic section ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--drywall); }
.section-head { max-width: 44rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Who we work for */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.6rem; border-top: 2px solid var(--ink); }
.who > div { padding: 1.5rem 1.6rem 0 0; }
.who > div + div { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.who p { margin-top: 0.7rem; color: var(--muted); }
@media (max-width: 56rem) {
  .who { grid-template-columns: minmax(0, 1fr); }
  .who > div, .who > div + div { padding: 1.4rem 0; border-left: 0; }
  .who > div + div { border-top: 1px solid var(--line); }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 5vw, 4.5rem); margin-top: 2.8rem; }
.service-group h3 { margin-bottom: 1rem; }
.service-group h3 .tape { font-size: var(--step-1); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.7rem; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.7rem; height: 0.38rem;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg);
}
@media (max-width: 52rem) { .services { grid-template-columns: minmax(0, 1fr); } }


/* How it works (true sequence) */
.steps { list-style: none; margin: 2.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: block; font-weight: 800; font-stretch: 125%; font-size: 2.25rem; line-height: 1;
  color: var(--action); margin-bottom: 0.8rem;
}
.steps p { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }
@media (max-width: 64rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Rent-ready checklist */
.checklist-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.checklist li { break-inside: avoid; display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.checklist svg { width: 1.3rem; height: 1.3rem; color: var(--ready); margin-top: 0.15rem; }
@media (max-width: 60rem) { .checklist-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .checklist { columns: 1; } }

/* About + area */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); }
.about-grid .prose p + p { margin-top: 1rem; }
.prose p { max-width: 38rem; }
.area { background: var(--paper); padding: 1.6rem; border-top: 6px solid var(--ink); align-self: start; }
.area p { margin-top: 0.6rem; color: var(--muted); }
@media (max-width: 56rem) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { margin-top: 2.2rem; max-width: 52rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.15rem 0; font-weight: 700; font-stretch: 105%; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.75rem; height: 0.75rem; margin-right: 0.3rem;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > p { padding: 0 0 1.3rem; color: var(--muted); max-width: 44rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Request form */
.request { background: var(--ink); color: #fff; }
.request a { color: #a9cdf5; }
.request a:hover { color: #fff; }
.request-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.request-intro p { margin-top: 1rem; color: #d4dae2; font-size: var(--step-1); line-height: 1.5; }
.request-intro .call-line { margin-top: 2rem; font-size: var(--step-0); }
.request-intro .call-line a { font-weight: 700; color: #fff; }
.request-intro .urgent { margin-top: 1rem; padding-left: 1rem; border-left: 4px solid var(--tape); color: #d4dae2; font-size: 1rem; }
@media (max-width: 60rem) { .request-grid { grid-template-columns: minmax(0, 1fr); } }

.form-card { min-width: 0; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.form-card a { color: var(--action); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.2rem; }
.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #8d96a1; border-radius: var(--radius);
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.45; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.error-msg { color: #b3261e; font-size: var(--step--1); font-weight: 600; }
.error-msg:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem; }
.field .chip { font-weight: 500; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.45rem 0.95rem;
  border: 1.5px solid #8d96a1; border-radius: 999px; font-size: 1rem; cursor: pointer; background: #fff;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-drop {
  display: grid; gap: 0.3rem; justify-items: start; padding: 1rem; border: 1.5px dashed #8d96a1; border-radius: var(--radius); background: var(--primer);
}
.file-drop input { font: inherit; font-size: 1rem; width: 100%; max-width: 100%; color: var(--muted); }
.file-drop input::file-selector-button {
  font: inherit; font-weight: 700; color: var(--ink); background: #fff; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 0.5rem 0.9rem; margin-right: 0.8rem;
}
.file-drop input::file-selector-button:hover { background: var(--ink); color: #fff; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.thumbs img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.field .consent { font-weight: 400; }
.consent { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; align-items: start; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--action); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.form-foot .btn { min-width: 12rem; }
.form-foot small { color: var(--muted); font-size: var(--step--1); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }
.form-done, .form-offline { text-align: left; }
.form-offline h3 { font-size: var(--step-2); }
.form-offline p { margin-top: 0.8rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.form-done h3 { font-size: var(--step-2); }
.form-done p { margin-top: 0.8rem; color: var(--muted); }
@media (max-width: 40rem) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: #121a24; color: #c5ccd5; padding-block: 3rem 6rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 2rem; }
.footer-grid h2 { font-size: 1rem; font-stretch: 105%; letter-spacing: 0; color: #fff; margin-bottom: 0.6rem; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #2c3746; font-size: var(--step--1); color: #9aa5b2; display: grid; gap: 0.4rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: #9aa5b2; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 60rem) { .site-footer { padding-bottom: 3rem; } }

/* Mobile action bar */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: none; gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(244, 245, 241, 0.97); border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1 1 0; min-width: 0; padding-inline: 0.8rem; white-space: nowrap; }
@media (max-width: 60rem) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 4.6rem; }
}

/* Legal / plain pages */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.page .doc { max-width: 46rem; }
.page h1 { font-size: var(--step-3); }
.page .updated { margin-top: 0.8rem; color: var(--muted); font-size: 1rem; }
.page h2 { font-size: var(--step-1); font-stretch: 108%; margin-top: 2.4rem; }
.page p, .page ul { margin-top: 0.9rem; }
.page a { overflow-wrap: anywhere; }
.page ul { padding-left: 1.3rem; }
.page li + li { margin-top: 0.35rem; }

@media (prefers-reduced-motion: reduce) {
  .box svg, .sheet-progress span, .btn { transition: none; }
}

@media print {
  .site-header, .mobile-bar, .request, .skip { display: none !important; }
  body { background: #fff; padding: 0; }
}
