:root {
  --ink: #06110e;
  --forest: #0b332d;
  --green: #0f6b5e;
  --mint: #8ff4d2;
  --foam: #e9fff7;
  --white: #ffffff;
  --muted: #62706b;
  --line: rgba(6, 17, 14, 0.12);
  --shadow: 0 24px 70px rgba(6, 17, 14, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: #06110e;
  transition: background 420ms ease, color 420ms ease;
}

body.is-clean-theme {
  color: var(--ink);
  background: #f7fbf8;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(6, 17, 14, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  opacity: 0.72;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  opacity: 0.82;
}

nav a:hover {
  opacity: 1;
}

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 6vw, 80px) 56px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 11, 9, 0.92) 0%, rgba(3, 11, 9, 0.73) 42%, rgba(3, 11, 9, 0.18) 100%),
    url("assets/jamie-property-maintenance.jpg") center right / min(760px, 60vw) no-repeat,
    radial-gradient(circle at 82% 42%, rgba(143, 244, 210, 0.24), transparent 34%),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(0deg, rgba(3, 11, 9, 0.72), transparent);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 18px 42px rgba(143, 244, 210, 0.22);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.light {
  background: var(--white);
  box-shadow: none;
}

.button.light-outline {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.contact-line a {
  text-decoration: underline;
  text-decoration-color: rgba(143, 244, 210, 0.7);
  text-underline-offset: 5px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  margin-top: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-stats span {
  min-height: 92px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.15rem;
}

.band {
  background:
    radial-gradient(circle at 12% 18%, rgba(143, 244, 210, 0.11), transparent 32%),
    linear-gradient(135deg, #071713, #0b332d);
  transition: background 420ms ease, color 420ms ease;
}

body.is-clean-theme .band {
  background: var(--foam);
}

.intro,
.services,
.gallery,
.split,
.cta {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 80px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.9fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
}

.section-grid p,
.split-copy p,
.cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

body.is-clean-theme .section-grid p,
body.is-clean-theme .split-copy p,
body.is-clean-theme .cta p {
  color: var(--muted);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 278px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 38px rgba(6, 17, 14, 0.06);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 520ms ease, opacity 520ms ease, box-shadow 220ms ease;
}

body.is-clean-theme .service-card {
  border-color: var(--line);
  background: var(--white);
}

.service-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.service-card:hover {
  box-shadow: var(--shadow);
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.68;
}

body.is-clean-theme .service-card p {
  color: var(--muted);
}

.service-card.accent {
  color: var(--white);
  background: var(--forest);
}

.service-card.accent p,
.service-card.accent .service-number {
  color: rgba(255, 255, 255, 0.76);
}

.service-number {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery {
  background: #06110e;
  transition: background 420ms ease, color 420ms ease;
}

body.is-clean-theme .gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-showcase {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 18px 50px rgba(6, 17, 14, 0.12);
}

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

.gallery figcaption {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 800;
}

.comparison-card {
  grid-column: span 1;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  isolation: isolate;
}

.comparison-slider.is-dragging {
  cursor: grabbing;
}

.comparison-slider.is-dragging .handle-grip,
.cleaner-handle:focus-visible .handle-grip {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow:
    0 22px 54px rgba(6, 17, 14, 0.42),
    0 0 0 8px rgba(65, 169, 255, 0.18);
}

.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.comparison-card:hover img,
.comparison-slider:hover img {
  transform: none;
}

.before-image {
  filter: saturate(0.72) contrast(0.94) brightness(0.84);
}

.after-image {
  clip-path: inset(0 0 0 var(--position));
}

.cleaner-handle {
  position: absolute;
  z-index: 7;
  inset: 0 auto 0 var(--position);
  width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: inherit;
  outline: 0;
}

.handle-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), #6fc7ff, rgba(255, 255, 255, 0.4));
  box-shadow:
    0 0 0 1px rgba(6, 17, 14, 0.22),
    0 0 20px rgba(76, 171, 255, 0.58);
}

.handle-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
}

.handle-grip {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(214, 238, 255, 0.92) 48%, rgba(93, 171, 225, 0.92));
  box-shadow:
    0 16px 40px rgba(6, 17, 14, 0.32),
    0 0 0 6px rgba(255, 255, 255, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.handle-grip::before,
.handle-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(6, 17, 14, 0.72);
  border-right: 2px solid rgba(6, 17, 14, 0.72);
}

.handle-grip::before {
  left: 16px;
  transform: translateY(-50%) rotate(-135deg);
}

.handle-grip::after {
  right: 16px;
  transform: translateY(-50%) rotate(45deg);
}

.water-bubble {
  position: absolute;
  z-index: 6;
  width: var(--bubble-size, 14px);
  height: var(--bubble-size, 14px);
  left: var(--bubble-x, 50%);
  top: var(--bubble-y, 50%);
  transform: translate(-50%, -50%) scale(0.72);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96), rgba(129, 207, 255, 0.38) 35%, rgba(20, 126, 205, 0.1) 66%, rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.62),
    0 0 14px rgba(65, 169, 255, 0.46);
  pointer-events: none;
  animation: bubblePop 760ms ease-out forwards;
}

@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  20% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--bubble-drift-x, 0px)), calc(-120% + var(--bubble-drift-y, -18px))) scale(1.18);
  }
}

.brand-proof img {
  height: calc(100% - 47px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.split-copy {
  max-width: 760px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.check-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(15, 107, 94, 0.12);
}

.image-panel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cta {
  justify-content: space-between;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 30%, rgba(143, 244, 210, 0.22), transparent 34%),
    linear-gradient(135deg, var(--ink), var(--forest));
}

.cta div {
  max-width: 820px;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.66);
  background: #06110e;
  transition: background 420ms ease, color 420ms ease;
}

body.is-clean-theme footer {
  color: var(--muted);
  background: var(--white);
}

footer p {
  margin: 0;
}

footer p:first-child {
  color: var(--white);
  font-weight: 900;
}

body.is-clean-theme footer p:first-child {
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  nav,
  .header-call {
    display: none;
  }

  .hero {
    background:
      linear-gradient(0deg, rgba(3, 11, 9, 0.94) 0%, rgba(3, 11, 9, 0.78) 54%, rgba(3, 11, 9, 0.2) 100%),
      url("assets/jamie-property-maintenance.jpg") top center / min(620px, 118vw) no-repeat,
      var(--ink);
  }

  .hero-content {
    padding-top: 220px;
  }

  .hero-stats,
  .section-grid,
  .service-grid,
  .gallery-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 28px;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .brand strong {
    max-width: calc(100vw - 92px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-stats span {
    min-height: auto;
  }

  .intro,
  .services,
  .gallery,
  .split,
  .cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 8px;
  }
}
