/* Homepage only. Other pages still use styles.css. */

:root {
  --paper: #f1ebdf;
  --paper-raised: #faf7f0;
  --iron: #1c1b19;
  --soot: #57514a;
  --line: #d8cebb;
  --ember: #c63a0b;
  --ember-hot: #e2531c;
  --steel: #c4c7c6;

  --display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --band: clamp(72px, 10vw, 136px);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--iron);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ember-hot); outline-offset: 3px; }

[id] { scroll-margin-top: 88px; }

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

.band { padding-block: var(--band); }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--soot);
  max-width: 34em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--iron);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--ember);
  border-radius: var(--radius);
  background: var(--ember);
  color: #fff;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: #a72f07; border-color: #a72f07; }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: var(--iron); border-color: var(--iron); color: var(--paper); }

.btn--iron { background: var(--iron); border-color: var(--iron); }
.btn--iron:hover { background: #000; border-color: #000; }

.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.site-header.is-solid {
  background: var(--paper);
  color: var(--iron);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font: 800 1.625rem/1 var(--display);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand img { width: 44px; height: 44px; }

.site-nav { display: flex; gap: 28px; }
.site-nav a,
.site-header__phone {
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-header__phone:hover { text-decoration: underline; text-underline-offset: 5px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.2s;
}
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px var(--gutter) 40px;
  background: var(--iron);
  color: var(--paper);
}
.menu-open .menu-panel { display: flex; }
.menu-panel a:not(.btn) {
  font: 800 clamp(2.75rem, 13vw, 4.5rem)/1 var(--display);
  text-decoration: none;
}
.menu-panel .btn { margin-top: 28px; align-self: flex-start; }
.menu-panel a.menu-panel__phone {
  margin-top: 12px;
  font: 500 1.125rem/1.4 var(--body);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; color: var(--paper); box-shadow: none; }

/* Hero */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 960px);
  padding-block: 140px clamp(40px, 6vw, 72px);
  color: #fff;
  background: var(--iron);
  isolation: isolate;
}
.hero__photo,
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__photo img { object-fit: cover; object-position: 72% 50%; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 15, 10, 0.82) 0%, rgba(20, 15, 10, 0.12) 46%, rgba(20, 15, 10, 0.3) 100%),
    linear-gradient(to right, rgba(20, 15, 10, 0.42) 0%, rgba(20, 15, 10, 0) 55%);
}

.hero h1 {
  font: 900 clamp(5.5rem, 18vw, 15.5rem)/1.1 var(--display);
  letter-spacing: -0.012em;
  margin-left: -0.04em;
}
.hero h1 span { display: block; }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(28px, 3.5vw, 52px);
}
.hero__pitch {
  max-width: 24em;
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  line-height: 1.35;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--iron); }

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.9375rem;
  text-decoration: none;
}
.hero__rating:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.stars { color: #f5b63a; letter-spacing: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .hero h1 span:last-child { animation-delay: 0.09s; }
  .hero__foot,
  .hero__rating { animation: settle 0.8s 0.35s ease-out both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
}
@keyframes settle {
  from { opacity: 0; }
}

/* Facts under the hero */

.facts { background: var(--iron); color: var(--paper); }
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts li {
  padding: 26px 24px 28px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #bdb5a8;
}
.facts li + li { padding-left: 24px; border-left: 1px solid #3a3733; }
.facts a { display: block; text-decoration: none; }
.facts a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.facts strong {
  display: block;
  margin-bottom: 2px;
  font: 800 1.625rem/1.1 var(--display);
  letter-spacing: 0.01em;
  color: var(--paper);
}

/* Before / after */

.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--iron);
  user-select: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag {
  position: absolute;
  top: 14px;
  padding: 5px 11px;
  border-radius: 2px;
  background: rgba(20, 15, 10, 0.72);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
}
.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; }
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  pointer-events: none;
}
.compare__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b19' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare:has(input:focus-visible) { outline: 3px solid var(--ember-hot); outline-offset: 3px; }

.proof figure { position: sticky; top: 104px; }
.proof figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--soot); }

.risks { margin-top: 36px; border-top: 1px solid var(--line); }
.risks li { padding-block: 22px; border-bottom: 1px solid var(--line); }
.risks h3 { font: 700 1.1875rem/1.3 var(--body); margin-bottom: 6px; }
.risks p { color: var(--soot); }
.source { margin-top: 18px; font-size: 0.875rem; color: var(--soot); }

/* What a cleaning includes */

.clean { background: var(--paper-raised); }
.clean__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.clean__photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 14px; border-top: 2px solid var(--iron); }
.steps li::before {
  content: counter(step);
  display: block;
  font: 900 3.25rem/1 var(--display);
  color: var(--ember);
  margin-bottom: 10px;
}
.steps h3 { font: 700 1.125rem/1.3 var(--body); margin-bottom: 6px; }
.steps p { color: var(--soot); font-size: 1rem; }

.extras {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.extras h3 { font: 800 2rem/1 var(--display); }
.extras h3 + p { margin-top: 10px; color: var(--soot); font-size: 1rem; }
.extras ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px clamp(20px, 3vw, 40px); }
.extras li h4 { margin: 0 0 6px; font: 700 1.125rem/1.3 var(--body); }
.extras li p { color: var(--soot); font-size: 1rem; }

/* How we work */

.values { background: var(--iron); color: var(--paper); }
.values__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.values__photo img { width: 100%; border-radius: var(--radius); }
.values__photo figcaption { margin-top: 12px; font-size: 0.9375rem; color: #a59d90; }
.values .lede { color: #cfc7ba; margin-top: 22px; }
.values__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 56px);
}
.values__list li { padding-block: 22px; border-top: 1px solid #3a3733; }
.values__list h3 { font: 700 1.125rem/1.3 var(--body); margin-bottom: 6px; }
.values__list p { color: #bdb5a8; font-size: 1rem; }
.values blockquote {
  margin-top: clamp(28px, 4vw, 48px);
  padding-left: 22px;
  border-left: 3px solid var(--ember-hot);
  max-width: 38em;
  color: #cfc7ba;
}
.values blockquote strong { display: block; margin-bottom: 6px; font-size: 1.25rem; line-height: 1.4; color: var(--paper); font-weight: 600; }

/* Pricing */

.pricing__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.offers { margin-top: clamp(32px, 4vw, 56px); border-top: 2px solid var(--iron); }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 16px clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
}
.offer__price { font: 900 clamp(3.5rem, 6.5vw, 5.5rem)/0.85 var(--display); }
.offer__price small { display: block; margin-top: 10px; font: 500 0.9375rem/1.3 var(--body); color: var(--soot); }
.offer h3 { font: 800 2rem/1 var(--display); margin-bottom: 12px; }
.offer__flag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--ember);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}
.offer ul { color: var(--soot); font-size: 1rem; }
.offer ul li { position: relative; padding-left: 18px; }
.offer ul li + li { margin-top: 6px; }
.offer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 2px;
  background: var(--ember);
}
.offer__action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.offer__action a:not(.btn) { font-size: 0.9375rem; text-underline-offset: 4px; }

/* Reviews */

.reviews { background: var(--paper-raised); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; }
.reviews__score { display: flex; align-items: center; gap: 16px; }
.reviews__score b { font: 900 4rem/0.85 var(--display); }
.reviews__score p { font-size: 0.9375rem; line-height: 1.4; color: var(--soot); }
.reviews__score a { color: var(--iron); text-underline-offset: 4px; }
.reviews__list { columns: 3; column-gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 56px); }
.review { break-inside: avoid; padding-block: 24px 28px; border-top: 1px solid var(--line); }
.review blockquote { margin-top: 10px; }
.review figcaption { margin-top: 14px; font-weight: 600; font-size: 0.9375rem; }
.review figcaption span { font-weight: 400; color: var(--soot); }
.reviews__note { margin-top: 28px; max-width: 46em; color: var(--soot); font-size: 1rem; }
.reviews__note a { color: var(--iron); text-underline-offset: 4px; }

/* Service areas */

.areas__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}
.areas .lede { margin-top: 20px; font-size: 1.0625rem; }
.areas .lede a { color: var(--iron); text-underline-offset: 4px; }
.cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  font: 800 clamp(2rem, 3.6vw, 3.125rem)/1 var(--display);
}
.cities li { border-top: 1px solid var(--line); }
.cities li:nth-child(-n + 3) { border-top: 2px solid var(--iron); }
.cities a { display: block; padding-block: 0.3em 0.36em; text-decoration: none; transition: color 0.15s; }
.cities a:hover { color: var(--ember); }

/* Questions */

.faq { background: var(--paper-raised); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__grid > div:first-child { position: sticky; top: 112px; }
.faq__grid > div:first-child p { margin-top: 18px; color: var(--soot); font-size: 1rem; }
.faq__grid > div:first-child a { color: var(--iron); text-underline-offset: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--iron); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font: 700 1.75rem/0.8 var(--display);
  color: var(--ember);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; max-width: 40em; color: var(--soot); }

/* Closing call */

.closing { background: var(--ember); color: #fff; }
.closing__grid { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; }
.closing .display { font-size: clamp(3.25rem, 9vw, 8rem); line-height: 0.85; }
.closing p { margin-top: 18px; max-width: 30em; font-size: 1.1875rem; line-height: 1.45; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ember); }
.closing :focus-visible { outline-color: #fff; }

/* Footer */

.site-footer { background: var(--iron); color: #bdb5a8; padding-block: clamp(56px, 7vw, 88px) 32px; font-size: 0.9375rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px clamp(24px, 4vw, 56px);
}
.site-footer .brand { color: var(--paper); margin-bottom: 14px; }
.site-footer__grid > div:first-child p { max-width: 24em; }
.site-footer h2 { margin-bottom: 12px; font: 600 0.9375rem/1.4 var(--body); color: var(--paper); }
.site-footer li { margin-bottom: 7px; break-inside: avoid; }
.site-footer__areas { columns: 2; column-gap: 24px; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid #3a3733;
  font-size: 0.875rem;
}

/* Smaller screens */

@media (max-width: 960px) {
  .site-nav,
  .site-header__phone { display: none; }
  .menu-toggle { display: block; }
  .site-header__row { gap: 12px; }

  .proof__grid,
  .clean__head,
  .extras,
  .values__grid,
  .areas__grid,
  .faq__grid { grid-template-columns: minmax(0, 1fr); }

  .faq__grid > div:first-child,
  .proof figure { position: static; }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values__photo { max-width: 360px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 20px 16px 20px 0; }
  .facts li + li { padding-left: 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid #3a3733; }
  .facts li:nth-child(n + 3) { border-top: 1px solid #3a3733; }
  .offer { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .offer__action { grid-column: 2; align-items: flex-start; }
  .reviews__list { columns: 2; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .brand { font-size: 1.25rem; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .site-header .btn--small { padding: 0 12px; }
  .site-header__row { min-height: 64px; }
  .hero { min-height: min(100svh, 780px); padding-top: 110px; }
  .hero__photo img { object-position: 80% 50%; }
  .hero__actions,
  .hero__actions .btn { width: 100%; }
  .steps,
  .extras ul,
  .values__list { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer__action { grid-column: auto; }
  .reviews__list { columns: 1; }
  .closing__actions,
  .closing__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
