/* ==========================================================================
   Pristine Habitus — theme styles
   Palette, type and spacing follow the Wix "Cleaning Service (Clean)" theme:
   DM Sans display type, Hepta Slab body type, sage/lavender blocks on paper.
   Colours are overridable from the editor (they arrive as :root variables
   injected in the document head).
   ========================================================================== */

:root {
  --paper: #fdfdfd;
  --sage: #e9f0d8;
  --lavender: #efe6f9;
  --purple: #7549a5;
  --purple-dark: #5d3883;
  --ink: #0f0f0f;
  --footer: #e6e6e6;
  --muted: rgba(15, 15, 15, 0.72);
  --line: rgba(15, 15, 15, 0.16);
  --sans: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Hepta Slab', 'Iowan Old Style', Georgia, serif;
  --pad: 48px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.sr,
.skip:focus-visible + .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding-left: 24px;
  background: var(--paper);
  transition: box-shadow 0.25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(15, 15, 15, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 23px;
  height: 23px;
  fill: var(--ink);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15.75px;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-login {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
  font-size: 15.75px;
}

.nav-login svg {
  width: 22px;
  height: 22px;
}

.nav-login:hover {
  color: var(--purple);
}

.btn {
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 15.75px;
  font-weight: 400;
  line-height: 1;
  border: 0;
  border-radius: 0;
  padding: 0 24px;
  height: 44px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--purple);
  color: #fff;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--purple-dark);
}

.btn-outline {
  border: 1px solid var(--purple);
  color: var(--purple);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--purple);
  color: #fff;
}

.nav-cta {
  height: var(--header-h);
  padding: 0 46px;
  font-size: 15.75px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 12px 8px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span:not(.sr) {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  display: grid;
  grid-template-columns: 62.5% 37.5%;
  height: clamp(300px, 32vw, 460px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  background: var(--lavender);
  display: grid;
  place-items: center;
}

.hero-card {
  width: clamp(120px, 11.8vw, 170px);
  aspect-ratio: 1;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 15, 15, 0.08);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: grid;
  grid-template-columns: 1fr 496px;
  align-items: start;
  padding: 26px var(--pad) clamp(56px, 5.1vw, 82px);
}

.hero-copy h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.9vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 12ch;
}

.hero-copy-side {
  padding-top: 34px;
  max-width: 496px;
}

.hero-copy-side p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.45;
  letter-spacing: 0.002em;
}

.hero-copy-side .btn {
  margin-top: 34px;
  width: 100%;
}

/* ------------------------------------------------------------- services -- */

.services {
  background: var(--sage);
  padding: clamp(44px, 4.7vw, 68px) var(--pad) clamp(56px, 5.8vw, 83px);
  text-align: center;
}

.eyebrow {
  font-size: 15.75px;
  letter-spacing: 0.005em;
}

.services-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.87vw, 27px);
  line-height: 1.4;
  max-width: 559px;
  margin: 32px auto 0;
}

.cards {
  width: min(1258px, 100%);
  margin: clamp(48px, 5.7vw, 82px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
  text-align: left;
  align-items: start;
}

.card {
  background: #fff;
  padding: 9px;
}

.card-1 {
  margin-top: 0;
}

.card-2 {
  margin-top: 288px;
}

.card-3 {
  margin-top: 96px;
}

.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 341 / 303;
  object-fit: cover;
}

.card-copy {
  padding: 33px 3px 28px;
}

.card-copy h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 220px;
}

.card-copy p {
  font-family: var(--serif);
  font-size: 16.9px;
  line-height: 1.4;
  margin-top: 16px;
  max-width: 33ch;
}

/* -------------------------------------------------------------- process -- */

.process {
  padding: clamp(16px, 1.6vw, 24px) var(--pad) clamp(70px, 7vw, 100px);
}

.process-head {
  display: grid;
  grid-template-columns: 1fr 490px;
  align-items: start;
  gap: 40px;
}

.process-head h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 9ch;
}

.process-side {
  padding-top: 8px;
}

.process-side p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.45;
  max-width: 34ch;
}

.process-side .btn {
  margin-top: 20px;
  width: 100%;
}

.steps {
  position: relative;
  width: 100%;
  margin: clamp(64px, 9.4vw, 136px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.steps::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 47px;
  border-top: 1px dashed var(--line);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step-num {
  display: block;
  font-size: 15.75px;
  color: var(--purple);
  margin-bottom: 9px;
}

.step-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lavender);
}

.step-dot::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--purple);
}

.step h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 21px 0 23px;
}

.step p {
  font-family: var(--serif);
  font-size: 16.9px;
  line-height: 1.4;
  max-width: 427px;
}

/* ---------------------------------------------------------- testimonial -- */

.testimonial {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 54.7vw, 860px);
  padding: clamp(48px, 5vw, 72px) var(--pad);
  overflow: hidden;
  isolation: isolate;
}

.testimonial-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: saturate(0.85) brightness(0.98);
}

.quote-card {
  position: relative;
  width: min(897px, 100%);
  background: var(--lavender);
  padding: 54px clamp(56px, 8vw, 120px) 46px;
  text-align: center;
}

.quote-eyebrow {
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

.quote-track {
  display: grid;
  min-height: 150px;
  align-content: center;
}

.quote {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quote.is-active {
  opacity: 1;
}

.quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.32;
  color: var(--purple);
  max-width: 560px;
  margin: 0 auto;
}

.quote figcaption {
  font-family: var(--serif);
  font-size: 15.4px;
  margin-top: 40px;
}

.quote-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(18px, 4.8vw, 68px);
  pointer-events: none;
}

.quote-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.quote-btn svg {
  width: 22px;
  height: 22px;
}

.quote-btn:hover {
  color: var(--purple);
}

.quote-btn[data-quote-prev]:hover {
  transform: translateX(-2px);
}

.quote-btn[data-quote-next]:hover {
  transform: translateX(2px);
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--footer);
  padding: 46px var(--pad) 29px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-logo span {
  font-size: 30px;
  letter-spacing: -0.015em;
}

.footer-brand p {
  font-family: var(--serif);
  font-size: 15.4px;
  line-height: 1.5;
  margin-top: 34px;
  max-width: 24ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: 210px 186px;
  gap: 94px;
}

.footer-list li {
  margin-bottom: 3px;
}

.footer-list a {
  font-size: 13.5px;
  line-height: 1.62;
}

.footer-list a:hover {
  color: var(--purple);
}

.footer-address {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 40px;
}

.footer-socials {
  margin-top: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 78px;
  font-size: 12.6px;
  color: var(--muted);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------- reveal -- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  .is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .quote {
    transition: none;
  }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1180px) {
  .hero-copy {
    grid-template-columns: 1fr 420px;
  }
  .process-head {
    grid-template-columns: 1fr 400px;
  }
  .cards,
  .steps {
    gap: 48px;
  }
  .card-2 {
    margin-top: 200px;
  }
  .card-3 {
    margin-top: 66px;
  }
}

@media (max-width: 1024px) {
  :root {
    --pad: 24px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid rgba(15, 15, 15, 0.08);
    box-shadow: 0 18px 30px rgba(15, 15, 15, 0.08);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    width: 100%;
    font-size: 17px;
  }
  .nav-login span {
    display: none;
  }
  .nav-login {
    margin-right: 4px;
  }
  .nav-cta {
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-media img {
    aspect-ratio: 16 / 10;
  }
  .hero-panel {
    height: 220px;
  }
  .hero-card {
    width: 120px;
  }
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 32px;
    padding-bottom: 64px;
  }
  .hero-copy h1 {
    max-width: 14ch;
  }
  .hero-copy-side {
    padding-top: 0;
    max-width: 100%;
  }
  .hero-copy-side .btn {
    margin-top: 24px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }
  .card,
  .card-2,
  .card-3 {
    margin-top: 0;
  }
  .card-media img {
    aspect-ratio: 16 / 10;
  }

  .process-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .process-head h2 {
    max-width: 12ch;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 44px;
  }
  .steps::before {
    display: none;
  }
  .step h3 {
    max-width: none;
  }

  .quote-card {
    padding: 40px 28px 34px;
  }
  .quote-track {
    min-height: 190px;
  }
  .quote-controls {
    position: static;
    transform: none;
    justify-content: center;
    gap: 28px;
    padding: 22px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand p {
    margin-top: 24px;
    max-width: 34ch;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 19px;
  }
  .nav-cta {
    font-size: 14px;
    padding: 0 14px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-logo span {
    font-size: 24px;
  }
}

/* ------------------------------------------------ phone (<= 640px) ------ */
@media (max-width: 900px) {
  .nav-cta,
  .nav-login {
    display: none;
  }
}

@media (max-width: 640px) {
  /* Wix stacks the hero as: photo, headline, copy, then the lavender panel */
  #main {
    display: flex;
    flex-direction: column;
  }
  .hero {
    display: contents;
  }
  .hero-media {
    order: -3;
  }
  .hero-copy {
    order: -2;
  }
  .hero-panel {
    order: -1;
    min-height: 300px;
    padding: 48px 0;
  }
  .hero-media img {
    aspect-ratio: 2 / 3;
  }
  .hero-copy {
    padding-top: 28px;
    padding-bottom: 44px;
  }
  .hero-copy h1 {
    font-size: clamp(32px, 10.8vw, 44px);
    max-width: 14ch;
  }
  .hero-copy-side .btn {
    width: 100%;
  }
  .hero-card {
    width: 138px;
  }
  .services {
    padding-top: 48px;
  }
  .card-media img {
    aspect-ratio: 4 / 3;
  }
  .quote-controls {
    gap: 20px;
  }
}
