/* =====================================================
   Burgundy Collective - Services page
   ===================================================== */

.services-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 82px;
  background: url('assets/img/hero-services.jpg') center/cover no-repeat;
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(36, 36, 36, .74);
}

.services-hero::after {
  content: '';
  position: absolute;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: 2.8rem;
  z-index: 1;
  width: clamp(110px, 15vw, 190px);
  height: clamp(110px, 15vw, 190px);
  background: var(--red);
  clip-path: polygon(0 12%, 100% 0, 82% 100%, 14% 84%);
  opacity: .9;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.services-hero .hero-kicker {
  color: var(--rose);
}

.services-hero .hero-kicker::before {
  background: var(--rose);
}

.services-hero h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 200;
  line-height: 1;
}

.services-hero p {
  max-width: 650px;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
}

.services-hero .btn-outline {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.services-hero .btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
}

.services-overview,
.service-process {
  padding: 6rem 0;
}

.services-overview {
  background: var(--paper);
}

.service-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  min-height: 460px;
  overflow: visible;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.service-feature::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--maroon);
}

.service-feature:not(.reverse)::before {
  left: 0;
}

.service-feature.reverse::before {
  right: 0;
}

.service-feature.reverse {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1fr);
}

.service-feature.reverse .service-feature-image {
  order: 2;
}

.service-feature-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.service-feature-image {
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.service-feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(255, 255, 255, .9));
}

.service-feature:hover .service-feature-image {
  z-index: 3;
  transform: translate(-18px, -18px);
  box-shadow: 0 28px 60px rgba(36, 36, 36, .18);
}

.service-feature.reverse:hover .service-feature-image {
  transform: translate(18px, -18px);
}

.service-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.8rem);
}

.service-feature-copy span,
.process-card span {
  display: block;
  margin-bottom: .65rem;
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 200;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-feature-copy h3 {
  max-width: 480px;
  margin-bottom: .9rem;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 200;
  line-height: 1.05;
}

.service-feature-copy p {
  max-width: 560px;
  margin-bottom: 1.35rem;
  color: var(--muted);
}

.service-feature-copy ul {
  display: grid;
  gap: .55rem;
}

.service-feature-copy li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
  font-weight: 200;
}

.service-feature-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--maroon);
}

.service-process {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  min-height: 230px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.process-card h3 {
  margin-bottom: .55rem;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 200;
}

.process-card p {
  color: var(--muted);
}

.services-cta {
  --cta-image: url('assets/img/service-carpentry.jpg');
  padding: 5rem 0;
}

@media (max-width: 980px) {
  .service-feature,
  .service-feature.reverse {
    grid-template-columns: 1fr;
  }

  .service-feature.reverse .service-feature-image {
    order: 0;
  }

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

@media (max-width: 640px) {
  .services-hero {
    min-height: auto;
    padding-top: 74px;
  }

  .services-hero::after {
    right: 1rem;
    bottom: 1.8rem;
    width: 86px;
    height: 86px;
    opacity: .62;
  }

  .services-hero-content {
    width: min(100% - 2rem, 1180px);
    padding: 4rem 0;
  }

  .services-overview,
  .service-process,
  .services-cta {
    padding: 4rem 0;
  }

  .service-feature-image img {
    min-height: 280px;
  }

  .service-feature:hover .service-feature-image,
  .service-feature.reverse:hover .service-feature-image {
    transform: none;
  }

  .service-feature-copy {
    padding: 1.5rem;
  }

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