/* shiftedtech Sofa Cleaning (sample website). "Fresh, layer by layer": white and ice blue, navy
   and bright blue, round shapes from the blue crescent. Outfit headings, Nunito Sans text. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/outfit.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/nunito-sans.woff2) format("woff2"); }

:root {
  --white: #FFFFFF;
  --ice: #EEF4FA;        /* alternate surfaces: ink on it 14.8:1 */
  --mist: #E3EAF2;       /* image frames: slate on it 6.1:1 */
  --line: #D6DFEA;       /* 1px borders, decoration only */
  --navy: #24427A;       /* buttons, headings accent, links: 9.8:1 on white, 8.9:1 on ice */
  --navy-dark: #1B3463;  /* button hover: white on it 12.2:1 */
  --blue: #2F55A4;       /* brand blue, fine for small text: 7.1:1 on white, 6.4:1 on ice */
  --bright: #3A78C9;     /* large display text and strokes only (4.46:1 on white, 4.0:1 on ice) */
  --ink: #18202B;        /* text: 16.4:1 on white */
  --slate: #4A5668;      /* secondary text: 7.4:1 on white, 6.7:1 on ice */
  --field: #7D8A9C;      /* input borders: 3.5:1 on white */
  --wa: #0F7A3E;         /* WhatsApp green deepened so white text passes AA (5.4:1) */

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --text: "Nunito Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --section: clamp(88px, 11vw, 160px);
  --hh: 72px;
  --r: clamp(22px, 2.4vw, 34px);
}
@media (max-width: 899px) { :root { --hh: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(38px, 5.4vw, 80px); max-width: 15ch; }
h3 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.label {
  font: 700 13px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--bright); flex: none; }
.body { font-size: clamp(18px, 1.3vw, 20px); color: var(--slate); max-width: 38ch; margin: 24px 0 0; }
.head { padding: 0 var(--gutter); margin-bottom: clamp(40px, 5vw, 72px); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 40px; }
.head-row .body { margin: 0; }

/* Buttons: pill shaped, like the crescent's rounded forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font: 600 17px/1 var(--display); letter-spacing: 0; text-decoration: none;
  border: 2px solid var(--navy); transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-line { background: var(--white); color: var(--navy); }
.btn-line:hover { background: var(--ice); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-wide { width: 100%; }

.ask {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 17px/1.2 var(--display); color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--bright);
}
.ask:hover { border-bottom-color: var(--navy); }

/* Notice and header */
.notice {
  margin: 0; padding: 8px 16px; text-align: center; font-size: 13px; line-height: 1.35;
  color: var(--slate); background: var(--ice);
}
.top {
  position: sticky; top: 0; z-index: 50; height: var(--hh);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand-mark {
  /* text-only wordmark: a small blue crescent ring drawn in CSS, no image */
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 5px solid var(--blue); border-right-color: var(--bright); transform: rotate(-30deg);
}
.brand-words { display: flex; flex-direction: column; }
.brand-name { font: 800 23px/0.95 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.brand-sub { font: 700 10px/1.3 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.nav { display: flex; gap: 32px; }
.nav a { font: 600 16px/1 var(--display); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--bright); }
@media (max-width: 899px) {
  .nav { display: none; }
  .top { gap: 12px; }
  .brand-mark { width: 30px; height: 30px; border-width: 4px; }
  .brand-name { font-size: 20px; }
  .top .btn-small { padding: 0 16px; }
}

/* Hero */
.hero {
  position: relative; display: grid; gap: 48px; overflow: hidden;
  padding: 44px 0 72px;
}
.hero::before {
  /* a soft ice-blue disc behind the photo */
  content: ""; position: absolute; z-index: -1; width: 120vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ice), rgba(238,244,250,0));
  right: -50vw; bottom: -60vw;
}
.hero-text { padding: 0 var(--gutter); }
.hero h1 { font-size: clamp(46px, 6.4vw, 104px); max-width: 11ch; line-height: 0.98; }
.hero .accent { color: var(--bright); }
.lede { font-size: clamp(18px, 1.35vw, 21px); color: var(--slate); max-width: 36ch; margin: 26px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chips-row { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font: 600 15px/1 var(--display); color: var(--ink); text-decoration: none;
}
a.chip:hover { border-color: var(--bright); }
.hero-visual { position: relative; width: min(76vw, 640px); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; inset: -12%; width: 124%; height: 124%; overflow: visible; }
.hero-media { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--mist); }
.hero-media { background: var(--white); border: 1px solid var(--line); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 44vw; gap: 0; align-items: center;
    padding: 56px 0 96px; min-height: calc(100vh - var(--hh) - 34px);
  }
  .hero::before { width: 70vw; right: -18vw; bottom: auto; top: -10vw; }
  .hero-visual { width: min(38vw, 620px); margin: 0 auto; }
}

/* Dirt. Stains. Allergens. */
.lift { padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.lift-words {
  margin: 0; font: 800 clamp(64px, 12.5vw, 220px)/0.92 var(--display); letter-spacing: -0.045em;
  display: flex; flex-direction: column; color: var(--navy);
}
.lift-words .w { position: relative; display: block; width: max-content; max-width: 100%; }
.lift-words .w:nth-child(2) { margin-left: 8vw; }
.lift-words .w:nth-child(3) { margin-left: 16vw; color: var(--bright); }
.lift-body { font-size: clamp(19px, 1.5vw, 24px); color: var(--slate); max-width: 34ch; margin: clamp(32px, 4vw, 56px) 0 0 16vw; }
@media (max-width: 599px) {
  .lift-words .w:nth-child(2) { margin-left: 6vw; }
  .lift-words .w:nth-child(3) { margin-left: 0; font-size: 0.82em; }
  .lift-body { margin-left: 0; }
}
/* With motion: each word starts pale and is "wiped clean" by a blue stroke as it scrolls past. */
.motion .lift-words .w { color: #8A8174; } /* "dusty" start colour: 3.8:1 on white, passes for large text */
.motion .lift-words .w::after {
  content: attr(data-word); position: absolute; inset: 0; color: var(--navy);
  clip-path: inset(-30% calc(100% - var(--p, 0) * 100%) -30% 0);
}
.motion .lift-words .w:nth-child(3)::after { color: var(--bright); }
.motion .lift-words .w::before {
  content: ""; position: absolute; top: 8%; bottom: 4%; width: 6px; border-radius: 6px; background: var(--bright);
  left: calc(var(--p, 0) * 100%); opacity: var(--o, 0); transform: translateX(-50%);
}

/* Service stack (the signature) */
.stack { padding: var(--section) 0; background: var(--ice); }
.cards { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 24px; }
.card {
  position: relative; display: grid; gap: 0; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 30px 60px -36px rgba(36, 66, 122, .45);
  transform-origin: 50% 0;
}
.card-text { padding: 28px 24px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.card-text .tag {
  margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--ice);
  font: 700 13px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.card-text p:not(.tag) { margin: 14px 0 18px; color: var(--slate); max-width: 34ch; }
.card-media { order: -1; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; background: var(--ice); opacity: 0; pointer-events: none; }
@media (min-width: 900px) {
  .card { grid-template-columns: 1fr 1.15fr; align-items: stretch; }
  .card-text { padding: clamp(36px, 4vw, 64px); justify-content: center; }
  .card-media { order: 0; aspect-ratio: auto; min-height: min(480px, 58vh); margin: 14px; border-radius: calc(var(--r) - 10px); }
}
/* With motion the cards stick and pile up; without it they are a plain list. */
.motion .card { position: sticky; top: calc(var(--hh) + 16px + var(--i) * 14px); }
.motion .card:not(:last-child) { margin-bottom: 36vh; }
.motion .cards { gap: 0; }
@media (max-width: 899px) {
  .motion .card { top: calc(var(--hh) + 10px + var(--i) * 10px); }
  .motion .card:not(:last-child) { margin-bottom: 26vh; }
}
.stack-end { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(72px, 9vw, 128px) var(--gutter) 0; }
.stack-line { margin: 0 0 36px; font: 700 clamp(34px, 4.6vw, 64px)/1.05 var(--display); letter-spacing: -0.03em; }
.stack-cta { position: relative; padding: 26px 46px; }
.crescent { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* Before and after */
.ba { padding: var(--section) 0; }
.pairs { display: grid; gap: 48px; padding: 0 var(--gutter); }
.pair-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frame { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--mist); }
.frame { background: var(--white); border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ba-note { font: 500 0.6em/1 var(--text); color: var(--slate); letter-spacing: 0; }
.ba-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 7px 14px; border-radius: 999px;
  font: 700 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--white); color: var(--ink); box-shadow: 0 2px 10px rgba(24,32,43,.12);
}
.ba-tag-after { background: var(--navy); color: var(--white); }
.pair figcaption { margin-top: 16px; font: 600 20px/1.2 var(--display); }
@media (min-width: 900px) {
  /* each pair gets its own row, caption on the left, so the photos are big enough to judge */
  .pairs { gap: clamp(56px, 6vw, 96px); }
  .pair { display: grid; grid-template-columns: 1fr minmax(0, 2.2fr); gap: 5vw; align-items: end; }
  .pair figcaption { order: -1; margin: 0 0 12px; font-size: clamp(30px, 3vw, 46px); letter-spacing: -0.02em; padding-top: 18px; border-top: 2px solid var(--bright); }
  .pair-frames { gap: 18px; max-width: 900px; }
  .pair:nth-child(even) { grid-template-columns: minmax(0, 2.2fr) 1fr; }
  .pair:nth-child(even) figcaption { order: 1; }
}

/* Who, with an illustration */
.who { display: grid; gap: 48px; padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.who-cols { display: grid; gap: 28px; margin-top: 40px; }
.who-col { padding-top: 20px; border-top: 2px solid var(--bright); }
.who-col h3 { font-size: clamp(24px, 2vw, 30px); }
.who-col p { margin: 10px 0 0; color: var(--slate); max-width: 32ch; }
.where { display: flex; gap: 10px; align-items: flex-start; margin: 36px 0 0; font-weight: 600; color: var(--ink); }
.where svg { color: var(--blue); flex: none; margin-top: 4px; }
.who-media {
  margin: 0; border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: center;
}
.who-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (min-width: 900px) {
  .who { grid-template-columns: 1.35fr 1fr; gap: 6vw; align-items: center; }
  .who-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Quote */
.quote { display: grid; gap: 40px; padding: var(--section) var(--gutter); background: var(--ice); }
.call { margin: 28px 0 0; font: 600 20px/1.3 var(--display); }
.call a { color: var(--navy); }
.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3.4vw, 48px); display: grid; gap: 22px;
  box-shadow: 0 30px 60px -40px rgba(36, 66, 122, .45);
}
.field { display: grid; gap: 8px; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font: 600 16px/1.3 var(--display); color: var(--ink); padding: 0; }
.field legend { margin-bottom: 10px; }
.req, .opt { font-weight: 500; color: var(--slate); font-size: 14px; }
input[type=text], textarea {
  width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--field); border-radius: 14px; background: var(--white);
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6B7789; }
input[type=text]:focus-visible, textarea:focus-visible { outline: 3px solid var(--bright); outline-offset: 1px; border-color: var(--navy); }
[aria-invalid=true] { border-color: #B3261E !important; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--field); font: 500 16px/1.2 var(--text); color: var(--ink); background: var(--white);
  transition: background-color .2s, color .2s, border-color .2s;
}
.opts input[type=checkbox] + span::before { content: ""; width: 14px; height: 14px; margin-right: 10px; border-radius: 4px; border: 1.5px solid var(--field); flex: none; }
.opts input[type=radio] + span::before { content: ""; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; border: 1.5px solid var(--field); flex: none; }
.opts input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.opts input:checked + span::before { background: var(--white); border-color: var(--white); box-shadow: inset 0 0 0 3px var(--navy); }
.opts input:focus-visible + span { outline: 3px solid var(--bright); outline-offset: 2px; }
.opts.bad span { border-color: #B3261E; }
.field-pair { display: grid; gap: 22px; }
.form-error { margin: 0; color: #B3261E; font-weight: 600; }
.form-note { margin: -8px 0 0; font-size: 15px; color: var(--slate); text-align: center; }
@media (min-width: 600px) { .field-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .quote { grid-template-columns: 1fr 1.25fr; gap: 6vw; align-items: start; } }

/* Footer (light) */
.foot { padding: 72px var(--gutter) 110px; border-top: 1px solid var(--line); display: grid; gap: 40px; }
.foot-word { margin: 0; display: flex; align-items: center; gap: 12px; }
.foot-word .brand-mark { width: 44px; height: 44px; border-width: 6px; }
.foot-word .brand-name { font-size: 30px; }
.foot-word .brand-sub { font-size: 12px; }
.foot-cols { display: grid; gap: 28px; }
.foot-cols p { margin: 0; }
.foot-cols .label { margin-bottom: 10px; }
.foot-cols a { color: var(--navy); font-weight: 600; }
.foot-small { margin: 0; font-size: 14px; color: var(--slate); }
@media (min-width: 900px) {
  .foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 8vw; }
  .foot-cols { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 72px; }
  .foot-small { grid-column: 1 / -1; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px;
  border-radius: 999px; background: var(--wa); color: var(--white); text-decoration: none;
  font: 600 16px/1 var(--display); box-shadow: 0 12px 30px -10px rgba(15, 122, 62, .6);
}
.wa-float:hover { background: #0B6332; }
@media (max-width: 479px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
