
/* ========================================
   ETHREAL CUSTOMS — SERVICE PAGES
   ======================================== */

/* Individual service pages */

.service-detail-page .service-page-shell {
  padding-top: 54px;
  padding-bottom: 100px;
}

.service-page-back {
  display: inline-flex;
  color: #a9a9a9;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 64px;
  transition: color 0.2s;
}

.service-page-back:hover,
.service-page-back:focus-visible {
  color: #fff;
}

/* Main heading and featured image */

.service-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
}

.service-page-copy h1 {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(3.4rem, 6vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 22px 0 31px;
  overflow-wrap: normal;
}

.service-page-lead {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 650;
  color: #f5f5f5;
  line-height: 1.4;
  margin: 0 0 18px;
  max-width: 540px;
}

.service-page-description {
  max-width: 520px;
  line-height: 1.8;
  color: #a9a9a9;
}

.service-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: 32px;
}

.service-page-actions .button {
  text-decoration: none;
}

.service-page-gallery-link {
  color: #e8e8e8;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
}

.service-page-gallery-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.service-page-feature {
  min-width: 0;
  overflow: hidden;
  background: #151515;
  border: 1px solid #252525;
}

.service-page-feature img {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 590px);
  object-fit: cover;
}

/* Take a Closer Look section */

.service-page-work-heading {
  border-top: 1px solid #303030;
  padding-top: 35px;
  margin-top: 88px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.service-page-work-heading h2,
.service-page-bottom h2 {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
  margin: 0;
}

.service-page-work-heading p {
  color: #aaa;
  max-width: 290px;
  margin: 0;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Clickable project photos */

.service-page-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.service-photo {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #191919;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid #262626;
  cursor: zoom-in;
}

.service-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-photo:hover img,
.service-photo:focus-visible img {
  transform: scale(1.035);
}

.service-photo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Enlarged photo viewer */

.service-lightbox {
  position: fixed;
  width: min(94vw, 1200px);
  max-width: 1200px;
  max-height: 94vh;
  padding: 32px 14px 14px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0b0b0b;
  color: #fff;
  overflow: auto;
}

.service-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.service-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 55px);
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 8px;
  padding: 2px 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
}

/* Other services navigation */

.service-page-bottom {
  border-top: 1px solid #303030;
  margin-top: 92px;
  padding-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.service-page-bottom .eyebrow {
  margin-bottom: 16px;
}

.service-page-other {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-page-other a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #eee;
  padding: 14px 0;
  border-bottom: 1px solid #303030;
  font-weight: 600;
}

.service-page-other a:hover,
.service-page-other a:focus-visible {
  color: #a9a9a9;
}

/* Mobile layout */

@media (max-width: 760px) {
  .service-detail-page .service-page-shell {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .service-page-back {
    margin-bottom: 38px;
  }

  .service-page-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-page-copy h1 {
    font-size: clamp(3.25rem, 11.4vw, 5.1rem);
  }

  .service-page-feature img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .service-page-work-heading {
    margin-top: 65px;
    display: block;
  }

  .service-page-work-heading p {
    margin-top: 12px;
  }

  .service-page-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-page-photos .service-photo:first-child {
    grid-column: span 2;
  }

  .service-page-bottom {
    grid-template-columns: 1fr;
    margin-top: 65px;
    gap: 15px;
  }

  .service-lightbox {
    padding: 35px 8px 8px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .service-photo img,
  .service-page-back {
    transition: none;
  }
}

/* CLEAN LIGHTBOX CLOSE BUTTON */

.service-lightbox .lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  padding: 0;

  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;

  background: rgba(30,30,30,0.9);
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;
  z-index: 100;

  box-shadow: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.service-lightbox .lightbox-close:hover {
  background: #444;
  transform: scale(1.05);
}

.service-lightbox .lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .service-lightbox .lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* Remove focus outline from enlarged photo */

.service-lightbox img:focus,
.service-lightbox img:focus-visible {
  outline: none;
  box-shadow: none;
}
