/* ==========================================================================
   Home page
   ========================================================================== */

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

.home-hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
  align-items: center;
  gap: 64px;
}

.home-hero__copy {
  padding: 96px 0;
}

.home-hero h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 76px;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-hero__lead {
  margin: 0 0 40px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted-100);
  max-width: 48ch;
  text-wrap: pretty;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero__actions .btn {
  padding: 19px 32px;
}

.home-hero__photo {
  height: 520px;
}

/* --- Trust strip --------------------------------------------------------- */

.trust-strip {
  border-bottom: 1px solid var(--line-soft, #e6e6e6);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip__item {
  padding: 34px 28px;
  border-right: 1px solid #e6e6e6;
}

.trust-strip__item:first-child {
  padding-left: 0;
}

.trust-strip__item:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-strip__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.trust-strip__body {
  font-size: 14px;
  color: var(--body-copy-muted);
  line-height: 1.55;
}

/* --- Shared numbered-section heading row -------------------------------- */

.numbered-section {
  padding: 110px 32px 0;
}

.numbered-section__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-300);
  margin-bottom: 18px;
}

.numbered-section .section-head {
  margin-bottom: 56px;
}

.numbered-section .section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.numbered-section .section-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-copy-muted);
  text-wrap: pretty;
}

/* --- Pillars (General Contracting / Property Maintenance) --------------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.pillar-card {
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

.pillar-card__photo {
  height: 230px;
  border-bottom: 1px solid var(--hairline);
}

.pillar-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-card__body {
  padding: 38px 34px 34px;
}

.pillar-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.pillar-card p {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-copy-muted);
  text-wrap: pretty;
}

.pillar-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

/* --- Before / after comparator ------------------------------------------- */

.comparator {
  position: relative;
  height: 520px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
}

.comparator__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

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

.comparator__after {
  justify-content: flex-end;
  padding-right: 9%;
}

.comparator__before {
  justify-content: flex-start;
  padding-left: 9%;
  pointer-events: none;
  clip-path: inset(0 48% 0 0);
}

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

.comparator__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: var(--white);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.comparator__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.comparator__grip span {
  width: 2px;
  height: 16px;
  background: var(--ink);
  display: block;
}

.comparator__badge {
  position: absolute;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 11px;
  pointer-events: none;
}

.comparator__badge--before {
  left: 20px;
  color: var(--white);
  background: var(--ink);
}

.comparator__badge--after {
  right: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline);
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  padding: 36px 30px 44px;
}

.step-card__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--hairline);
  margin-bottom: 26px;
}

.step-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-copy-muted);
  text-wrap: pretty;
}

/* --- Coverage panel -------------------------------------------------------- */

.coverage-panel {
  background: var(--black);
  color: var(--white);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.coverage-panel h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.coverage-panel p {
  margin: 0 0 34px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-100);
  max-width: 44ch;
  text-wrap: pretty;
}

.coverage-panel__towns {
  border: 1px solid #2a2a2a;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.town-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.town-item .dot {
  width: 5px;
  height: 5px;
  background: var(--white);
  display: block;
  flex: none;
}

.town-item span:last-child {
  font-size: 15px;
  color: var(--nav-text);
}

/* --- Clients / quote ------------------------------------------------------- */

.clients {
  border-top: 2px solid var(--ink);
  padding-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}

.clients__intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-copy-muted);
  max-width: 30ch;
  text-wrap: pretty;
}

.clients__intro .text-link {
  margin-top: 24px;
}

.clients__quote p {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.attribution {
  display: flex;
  align-items: center;
  gap: 16px;
}

.attribution__avatar {
  width: 48px;
  height: 48px;
}

.attribution__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.attribution__meta {
  font-size: 14px;
  color: var(--body-copy-muted);
  margin-top: 3px;
}

/* --- Section-specific spacing -------------------------------------------- */

.section--last {
  padding-bottom: 110px;
}

@media (max-width: 1000px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps .step-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--hairline);
  }

  .coverage-panel {
    grid-template-columns: 1fr;
    padding: 48px 32px;
  }

  .clients {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero__copy {
    padding: 56px 0 32px;
  }

  .home-hero h1 {
    font-size: 44px;
  }

  .home-hero__photo {
    height: 280px;
  }

  .trust-strip__grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip__item {
    padding: 24px 20px !important;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
  }

  .numbered-section {
    padding-top: 72px;
  }

  .numbered-section .section-head h2 {
    font-size: 32px;
  }

  .comparator {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .trust-strip__item {
    border-right: 0 !important;
  }

  .coverage-panel__towns {
    grid-template-columns: 1fr;
  }
}
