/* ==========================================================================
   Varre Cleaning Services — Clenar-system build
   Canvas: ~85% white · one accent hue #48897B · two light-grey slots ·
   near-black text. Accent confined to hero + small accent slots.
   Type: Vollkorn (display) / Kumbh Sans (body).
   ========================================================================== */

:root {
  --accent: #48897B;
  /* Text-bearing accent surfaces use the deep companion tone: white on #48897B
     measures 4.09:1 (below the 4.5 AA floor); white on #3F7A6D measures 5.04:1.
     Same hue family per the dossier's contrast note - counts as the same slot.
     #48897B stays for non-text accents (icon chips, borders, the fade band). */
  --accent-deep: #3F7A6D;
  --accent-rgb: 72, 137, 123;
  --ink: #000000;
  --body: #3D3F40;
  --band: #F6F7F9;
  --white: #FFFFFF;
  --hairline: #E8EAED;
  --font-display: 'Vollkorn', Georgia, serif;
  --font-body: 'Kumbh Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: -0.3px;
  color: var(--body);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1286px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Buttons (all pills, single-line labels only) ------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 30px;
  border: 0;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn--hero,
.btn--primary {
  background: var(--white);
  color: var(--body);
}

.btn--hero:hover,
.btn--primary:hover {
  background: var(--band);
  color: var(--body);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  color: var(--accent-deep);
}

.btn--cta {
  background: var(--white);
  color: var(--body);
}

.btn--cta:hover {
  background: var(--band);
  color: var(--body);
}

/* ---- Header / nav (transparent over the hero canvas) --------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.site-header__inner {
  max-width: 1286px;
  margin: 0 auto;
  padding: 28px 30px 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__brand {
  display: block;
  flex-shrink: 0;
}

.site-header__brand img {
  height: 46px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.site-header__nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.site-header__nav a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 30px;
  background: var(--white);
  color: var(--body);
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-header__cta:hover {
  background: var(--band);
  color: var(--body);
}

.site-header__toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--white);
  cursor: pointer;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--accent-deep);
  color: var(--white);
  padding: 130px 30px 110px;
  overflow: hidden;
}

.hero__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Fade the wave lines back across the copy column so they stop reading as a
     strikethrough over the headline and lede. The device stays at full strength
     on the right-hand side and the outer edges. */
  -webkit-mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.14) 46%,
      rgba(0, 0, 0, 0.62) 58%,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.14) 46%,
      rgba(0, 0, 0, 0.62) 58%,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 1) 100%);
}

.hero__waves svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__inner {
  position: relative;
  max-width: 1286px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 96px;
  align-items: start;
}

.hero__copy {
  max-width: 620px;
}

.hero__title {
  font-size: 66px;
  line-height: 75.9px;
  letter-spacing: -2px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
}

.hero__lede {
  font-size: 20px;
  line-height: 34px;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 40px;
}

.hero__media {
  border-radius: 12px;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 470 / 560;
  object-fit: cover;
}

/* ---- Decorative fade band (single accent slot) --------------------------- */

.fade-band {
  height: 6px;
  background: linear-gradient(90deg, rgb(104, 124, 117) 0%, rgba(var(--accent-rgb), 0) 100%);
}

/* ---- Section scaffolding -------------------------------------------------- */

section {
  padding: 130px 30px;
}

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 72px;
}

.section-head--left {
  text-align: left;
  align-items: flex-start;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 52px;
  line-height: 62.4px;
  letter-spacing: -2px;
  font-weight: 500;
}

.section-head__sparkle {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- How we work --------------------------------------------------------- */

.features {
  padding-top: 130px;
  padding-bottom: 130px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10), 0 24px 48px rgba(0, 0, 0, 0.18);
}

.card__media {
  width: 100%;
  aspect-ratio: 362 / 458;
  object-fit: cover;
}

.card__body {
  padding: 28px 28px 32px;
}

.card__body h3 {
  font-size: 24px;
  line-height: 33.6px;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin-bottom: 14px;
}

.card__body p {
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: -0.3px;
}

/* ---- Full-bleed photo band ------------------------------------------------ */

.band-photo {
  padding: 0;
}

.band-photo__img {
  width: 100%;
  aspect-ratio: 1440 / 600;
  object-fit: cover;
}

/* ---- Homes and workplaces (split + accordion) ----------------------------- */

.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 96px;
  align-items: center;
}

.split__media {
  border-radius: 12px;
  overflow: hidden;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split__lede {
  font-size: 20px;
  line-height: 34px;
  letter-spacing: normal;
  margin: 0 0 36px;
}

.accordion__item {
  border-bottom: 1px solid var(--hairline);
}

.accordion__item--open {
  background: var(--band);
  border-radius: 12px;
  border-bottom: 0;
  padding: 6px 26px 24px;
  margin-bottom: 10px;
}

.accordion__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0 20px;
  cursor: pointer;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__num {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--body);
}

.accordion__label {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 33.6px;
  letter-spacing: -0.5px;
  color: var(--ink);
  font-weight: 500;
}

.accordion__icon {
  margin-left: auto;
  color: var(--body);
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion__item[open] .accordion__icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion__body {
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: -0.3px;
  padding: 0 0 6px;
  max-width: 560px;
}

/* ---- Service area (grey band) --------------------------------------------- */

.service-area {
  background: var(--band);
  text-align: center;
}

.service-area__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.service-area h2 {
  font-size: 52px;
  line-height: 62.4px;
  letter-spacing: -2px;
  font-weight: 500;
}

.service-area__body {
  font-size: 20px;
  line-height: 34px;
  letter-spacing: normal;
  max-width: 720px;
}

/* ---- Careers band (compact, white) ----------------------------------------- */

.careers {
  background: var(--white);
  text-align: center;
  /* Compact by intent: one heading, one sentence, one button. The global
     130px section padding would read as dead space here (borrowed-dimensions
     trap) - trim it. */
  padding: 100px 30px;
}

.careers__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.careers h2 {
  font-size: 52px;
  line-height: 62.4px;
  letter-spacing: -2px;
  font-weight: 500;
}

.careers__body {
  font-size: 20px;
  line-height: 34px;
  letter-spacing: normal;
  max-width: 620px;
}

.careers__cta {
  margin-top: 8px;
}

/* Accent-filled pill for white canvases (the nav CTA's invert, mirrored).
   Hover is a pure colour swap per the motion profile - no scale, no shadow. */
.btn--accent {
  background: var(--accent-deep);
  color: var(--white);
  border: 1px solid var(--accent-deep);
}

.btn--accent:hover {
  background: var(--white);
  color: var(--accent-deep);
}

/* ---- Contact CTA band ------------------------------------------------------ */

.cta {
  position: relative;
  padding: 187px 30px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.72) 100%);
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta h2 {
  font-size: 52px;
  line-height: 62.4px;
  letter-spacing: -2px;
  font-weight: 500;
  color: var(--white);
}

.cta__body {
  font-size: 20px;
  line-height: 34px;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

/* ---- Footer ---------------------------------------------------------------- */

.site-footer {
  background: #101112;
  color: var(--white);
  padding: 96px 0 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 72px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__logo {
  width: 96px;
  height: auto;
}

.site-footer__area {
  font-size: 14px;
  line-height: 23.8px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 260px;
}

.site-footer__link,
.site-footer__col--nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  line-height: 27.2px;
  transition: color 0.25s ease;
}

.site-footer__link:hover,
.site-footer__col--nav a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__col--nav {
  align-items: flex-start;
}

.site-footer__sample {
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 30px 8px;
  max-width: 1286px;
  margin: 0 auto;
}

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px 30px 40px;
  max-width: 1286px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 23.8px;
  color: rgba(255, 255, 255, 0.72);
}

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

.has-js .reveal-up,
.has-js .reveal-left,
.has-js .reveal-right {
  transition: opacity 0.78s ease-out, transform 0.78s ease-out;
}

/* Just-in-time hidden state: applied by the observer only when an element is
   about to be revealed, never parked on below-fold content. A permanently
   translated hidden element inflates document scrollWidth (side-swipe defect). */
.has-js .reveal-up.is-pending {
  opacity: 0;
  transform: translateY(80px);
  transition: none;
}

.has-js .reveal-left.is-pending {
  opacity: 0;
  transform: translateX(-60px);
  transition: none;
}

.has-js .reveal-right.is-pending {
  opacity: 0;
  transform: translateX(60px);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal-up.is-pending,
  .has-js .reveal-left.is-pending,
  .has-js .reveal-right.is-pending {
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ---- Breakpoints ------------------------------------------------------------ */

@media (min-width: 768px) and (max-width: 1199px) {
  .site-header__inner { gap: 24px; }
  .site-header__nav { gap: 22px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .hero__title { font-size: 52px; line-height: 60px; letter-spacing: -1.5px; }
  .hero__media img { aspect-ratio: 360 / 430; }
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split__media img { max-height: 560px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }

  .container { padding-left: 20px; padding-right: 20px; }

  section { padding: 90px 20px; }

  .site-header__inner {
    padding: 18px 20px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-header__brand img { height: 40px; }

  .site-header__cta { display: none; }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  html:not(.has-js) .site-header__toggle { display: none; }

  .has-js .site-header__nav {
    display: none;
    flex-basis: 100%;
    order: 5;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .has-js .site-header__nav.is-open { display: flex; }

  .site-header__nav a { padding: 10px 0; }

  .hero {
    padding: 120px 20px 60px;
  }

  body.nav-open .hero { padding-top: 260px; }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 47px;
    letter-spacing: -1px;
    margin-bottom: 22px;
  }

  .hero__lede { font-size: 18px; line-height: 30px; margin-bottom: 32px; }

  /* Copy is full-width at this breakpoint, so the mask has no clear side to
     favour - hold the whole wave layer back instead. */
  .hero__waves {
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.16) 12%,
        rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 1) 92%);
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.16) 12%,
        rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 1) 92%);
  }

  .hero__media {
    width: 100%;
    max-width: 400px;
  }

  .hero__media img { aspect-ratio: 4 / 5; }

  .section-head { margin-bottom: 52px; gap: 16px; }
  .section-head h2 { font-size: 36px; line-height: 44px; letter-spacing: -1px; }

  .features__grid { grid-template-columns: minmax(0, 1fr); }

  .card__media { aspect-ratio: 4 / 3.4; }

  .band-photo__img { aspect-ratio: 4 / 3; }

  .split__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .split__lede { margin-bottom: 28px; }

  .service-area h2 { font-size: 36px; line-height: 44px; letter-spacing: -1px; }
  .careers { padding: 72px 20px; }
  .careers h2 { font-size: 36px; line-height: 44px; letter-spacing: -1px; }
  .careers__body { font-size: 18px; line-height: 30px; }

  .service-area__body { font-size: 18px; line-height: 30px; }

  .cta { padding: 100px 20px; }
  .cta h2 { font-size: 36px; line-height: 44px; letter-spacing: -1px; }
  .cta__body { font-size: 18px; line-height: 30px; }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 48px;
  }
}
