/* =========================================================
   WALL TO WALL — Services Page
   ========================================================= */

/* ---------- HERO SHORT MODIFIER ---------- */
.hero__frame--short {
  height: 360px;
}

/* =========================================================
   FINISHES SECTION
   ========================================================= */
.svc-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.svc-section__eyebrow {
  display: block;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

/* ---------- SERVICE LIST (left) ---------- */
.svc-list {
  display: flex;
  flex-direction: column;
}

.svc-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--color-rule);
  cursor: default;
  transition: opacity var(--dur-base) var(--ease);
}

.svc-list .svc-item:first-child {
  border-top: 1px solid var(--color-rule);
}

.svc-item__icon {
  flex: 0 0 auto;
  width: 38px;
  color: var(--color-mountain-navy);
  opacity: 0.8;
  margin-top: 2px;
}

.svc-item__icon svg {
  width: 100%;
  height: auto;
}

.svc-item__body h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.svc-item__body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
}

/* Dim non-hovered items when any item is hovered */
.svc-list:has(.svc-item:hover) .svc-item:not(:hover) {
  opacity: 0.35;
}

/* ---------- PHOTO STACK (right) ---------- */
.svc-photos {
  position: sticky;
  top: calc(48px + 2rem);
  aspect-ratio: 4/5;
  overflow: hidden;
}

.svc-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active photo — set by JS (cycling + hover lock) */
.svc-photo.is-active {
  opacity: 1;
}

/* =========================================================
   GENERAL CONTRACTING SECTION
   ========================================================= */
.gc-section {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.gc-section__media {
  position: absolute;
  inset: 0;
}

.gc-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.gc-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18, 35, 23, 0.92) 0%,
    rgba(18, 35, 23, 0.72) 50%,
    rgba(18, 35, 23, 0.30) 100%
  );
  z-index: 1;
}

.gc-section__content {
  position: relative;
  z-index: 2;
  color: var(--color-warm-ivory);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 6vw, 5rem);
  max-width: 560px;
}

.gc-section__content .eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--color-alpine-fog);
}

.gc-section__content h2 {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  color: var(--color-warm-ivory);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.gc-section__content p {
  font-size: 0.97rem;
  color: rgba(242, 238, 229, 0.78);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 38ch;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-photos {
    position: relative;
    aspect-ratio: 16/10;
    order: -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  /* Override the global 600px hero height for the short hero */
  .hero__frame--short {
    height: 360px;
  }

  .hero__frame--short .hero__title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  /* Balanced spacing: equal gap above eyebrow and below eyebrow to slideshow */
  .svc-section {
    padding-block: 1.5rem;
  }

  .svc-section__eyebrow {
    margin-bottom: 0 !important;
  }

  .svc-grid {
    margin-top: 0;
    gap: 1.5rem;
  }

  .svc-photos {
    margin-bottom: 2rem;
  }
}

@media (max-width: 540px) {
  .hero__frame--short {
    height: 360px;
  }

  .svc-photos {
    aspect-ratio: 4/3;
  }

  .gc-section {
    min-height: 400px;
  }
}
