/* Homebase Cleaning Co. — light editorial
   Palette: porcelain, ink, evergreen, stone, mist. Photography carries the color. */
:root {
  --porcelain: #f4f5f2;
  --white: #fcfcfa;
  --ink: #17211e;
  --evergreen: #22382f;
  --stone: #66706b;
  --mist: #dde2de;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 3px; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; }
h3 { font-size: 1.45rem; line-height: 1.2; }

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

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
  border-bottom: 1px solid transparent;
  color: #fff;
}
.site-header.solid,
.page .site-header {
  background: rgba(244, 245, 242, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--mist);
  color: var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark {
  font-family: var(--display);
  font-size: 1.6rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { font-family: var(--body); font-size: .8rem; letter-spacing: .02em; margin-left: 8px; opacity: .75; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; font-weight: 400; }
.nav a { text-decoration: none; }
.nav a:not(.pill):hover { text-decoration: underline; text-underline-offset: 5px; }
.pill {
  border: 1px solid currentColor;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background-color .25s ease, color .25s ease;
}
.pill:hover { background: currentColor; }
.pill:hover span { color: var(--evergreen); }
.site-header:not(.solid) .pill:hover span { color: var(--ink); }
.page .pill:hover span, .site-header.solid .pill:hover span { color: var(--porcelain); }
@media (max-width: 760px) { .nav a:not(.pill) { display: none; } .wordmark span { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #2d3833;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.08);
  animation: drift 28s infinite;
}
.slide:nth-child(1) { animation-delay: -1.2s; }
.slide:nth-child(2) { animation-delay: 5.8s; }
.slide:nth-child(3) { animation-delay: 12.8s; }
.slide:nth-child(4) { animation-delay: 19.8s; }
@keyframes drift {
  0%   { opacity: 0; transform: scale(1.08); }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; transform: none; }
  .slide:first-child { opacity: 1; }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,16,14,.42) 0%, rgba(10,16,14,0) 24%, rgba(10,16,14,0) 40%, rgba(10,16,14,.7) 100%),
    linear-gradient(90deg, rgba(10,16,14,.45) 0%, rgba(10,16,14,0) 62%);
}
.hero h1, .hero-foot p { text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-copy {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: clamp(48px, 9vh, 96px);
}
.hero h1 {
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  line-height: .9;
  letter-spacing: -0.035em;
  max-width: 10ch;
}
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  align-items: flex-end; justify-content: space-between;
  margin-top: clamp(24px, 4vh, 40px);
}
.hero-foot p { max-width: 34ch; font-size: 1.08rem; margin: 0; color: rgba(255,255,255,.92); }

.button {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.button:hover { background: var(--evergreen); color: #fff; }
.button.dark { background: var(--evergreen); color: #fff; }
.button.dark:hover { background: var(--ink); }

/* ---------- Statement ---------- */
.statement { padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 10vw, 128px); }
.statement p {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 0;
}
.statement .aside + .aside { margin-top: 16px; }
.statement .aside {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--stone);
  max-width: 46ch;
  margin-top: 36px;
  letter-spacing: 0;
}

/* ---------- Finish (photo + list) ---------- */
.finish {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-bottom: clamp(96px, 12vw, 160px);
}
.finish figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.finish figure img { width: 100%; height: 100%; object-fit: cover; }
.finish h2 { margin-bottom: 28px; }
.touches { list-style: none; padding: 0; margin: 0; }
.touches li { padding: 14px 0; border-top: 1px solid var(--mist); }
.touches li:last-child { border-bottom: 1px solid var(--mist); }
@media (max-width: 860px) { .finish { grid-template-columns: 1fr; } .finish figure { aspect-ratio: 4 / 3; } }

/* ---------- Visit contents ---------- */
.visit { background: var(--white); padding: clamp(88px, 11vw, 150px) 0; }
.visit-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.visit-head p { color: var(--stone); max-width: 44ch; margin: 0; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(32px, 4vw, 64px); }
.rooms h3 { margin-bottom: 10px; }
.rooms p { color: var(--stone); margin: 0; font-size: 1rem; }
/* wide kitchen photo under the room list */
.wide { margin: clamp(56px, 7vw, 96px) 0 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--mist); }
.wide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .wide { aspect-ratio: 4 / 3; } }
@media (max-width: 900px) { .visit-head { grid-template-columns: 1fr; } .rooms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rooms { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Full-bleed photo ---------- */
.bleed {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  color: #fff;
  background: #3a4540 center / cover no-repeat;
}
.bleed::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,14,0) 30%, rgba(10,16,14,.75) 100%), linear-gradient(90deg, rgba(10,16,14,.4) 0%, rgba(10,16,14,0) 60%); }
.bleed .wrap { position: relative; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); }
.bleed h2 { max-width: 14ch; margin-bottom: 20px; }
.bleed p { max-width: 48ch; color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(96px, 12vw, 160px) 0; }
.pricing-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.pricing-intro p { color: var(--stone); max-width: 38ch; margin-top: 24px; }
.rates { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.rates td { padding: 17px 0; border-bottom: 1px solid var(--mist); }
.rates tr:first-child td { border-top: 1px solid var(--ink); }
.rates th { text-align: right; font-weight: 400; font-size: .85rem; color: var(--stone); padding: 0 0 12px; }
.rates th:first-child { text-align: left; }
.rates td:not(:first-child) { text-align: right; font-family: var(--display); font-size: 1.3rem; white-space: nowrap; padding-left: 16px; }
.rates td:nth-child(2) { color: var(--stone); }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.extras h3 { font-size: 1.25rem; margin-bottom: 8px; }
.extras p { color: var(--stone); font-size: 1rem; margin: 0; }
/* add-on price list */
.addons { margin-top: 48px; }
.addons h3 { font-size: 1.25rem; margin-bottom: 8px; }
.addons ul { list-style: none; padding: 0; margin: 0; }
.addons li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mist); font-size: 1rem; }
.addons li span:last-child { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Start (true sequence) ---------- */
.start { background: var(--evergreen); color: #eef1ee; padding: clamp(88px, 11vw, 150px) 0; }
.start h2 { color: #fff; max-width: 16ch; margin-bottom: clamp(48px, 6vw, 72px); }
.sequence { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); counter-reset: step; }
.sequence li { counter-increment: step; border-top: 1px solid rgba(255,255,255,.28); padding-top: 24px; }
.sequence li::before { content: counter(step); font-family: var(--display); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 18px; color: #fff; }
.sequence h3 { color: #fff; margin-bottom: 10px; }
.sequence p { color: rgba(238,241,238,.78); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .sequence { grid-template-columns: 1fr; } }

/* ---------- Founding list form ---------- */
.join { padding: clamp(96px, 12vw, 160px) 0; }
.join-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.join-grid > div p { color: var(--stone); max-width: 40ch; margin-top: 24px; }
.join-grid > div p.founding { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.join-grid > div a { text-underline-offset: 4px; }
form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
@media (max-width: 600px) { form .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; color: var(--stone); margin-top: 22px; font-weight: 400; }
.field input, .field select {
  width: 100%;
  font: inherit; font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid #b9c1bc;
  border-radius: 0;
  padding: 10px 0 12px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--evergreen); box-shadow: 0 1px 0 var(--evergreen); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; line-height: 1.55; color: var(--stone); margin-top: 26px; font-weight: 300; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--evergreen); }
.consent a { color: var(--ink); }
form .button { margin-top: 36px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Legal pages ---------- */
.page main { padding-top: 76px; }
.legal { max-width: 760px; padding-top: clamp(64px, 8vw, 110px); padding-bottom: 110px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; margin-bottom: 14px; }
.legal h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.legal .date { color: var(--stone); }
.legal li { margin-bottom: .55em; }
.thanks { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.thanks h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: .95; margin-bottom: 24px; }
.thanks p { color: var(--stone); max-width: 44ch; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--mist); padding: 56px 0 64px; font-size: .92rem; color: var(--stone); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer .wordmark { color: var(--ink); display: inline-block; margin-bottom: 10px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }
