/* Service detail pages — warm editorial layout based on the live Nail Services page. */
.service-page main {
  overflow: hidden;
  background: #ceccc6;
}

.service-showcase {
  padding: clamp(30px, 3.5vw, 58px) clamp(14px, 1.8vw, 30px) 0;
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(330px, 1fr);
  width: min(100%, 1800px);
  min-height: clamp(470px, 35vw, 600px);
  margin: 0 auto;
  overflow: hidden;
  background: #fcf9f0;
}

.service-intro__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(46px, 5vw, 82px) clamp(44px, 10vw, 190px);
}

.service-intro h1,
.service-gallery h2 {
  margin: 0;
  color: #4b493c;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 120;
  font-weight: 300;
  letter-spacing: -.045em;
}

.service-intro h1 {
  font-size: clamp(2.9rem, 4vw, 4.65rem);
  line-height: 1;
}

.service-intro__content p {
  max-width: 610px;
  margin: clamp(28px, 3.2vw, 48px) 0 0;
  color: #5d5a50;
  font-size: clamp(.9rem, .95vw, 1.02rem);
  font-weight: 300;
  line-height: 1.82;
}

.service-intro__image {
  min-width: 0;
  min-height: 100%;
  margin: 0;
}

.service-intro__image img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.service-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 164px;
  min-height: 46px;
  margin-top: clamp(26px, 3vw, 42px);
  padding: 8px 24px;
  border: 1px solid #575447;
  border-radius: 999px;
  color: #72501b;
  font-size: .84rem;
  letter-spacing: .14em;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.service-book::after {
  content: "›";
  font-family: Georgia, serif;
  font-size: 1.4rem;
  line-height: .5;
}

.service-book:hover,
.service-book:focus-visible {
  border-color: #8c691f;
  background: #8c691f;
  color: #fff;
}

.service-gallery {
  width: min(calc(100% - clamp(28px, 3.6vw, 60px)), 1800px);
  margin: clamp(46px, 4.5vw, 78px) auto;
  padding: clamp(46px, 5vw, 78px) clamp(22px, 7vw, 118px) clamp(54px, 6vw, 96px);
  background: #fcf9f0;
}

.service-gallery__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(32px, 3.5vw, 52px);
}

.service-gallery h2 {
  font-size: clamp(2.25rem, 3.3vw, 3.8rem);
  line-height: 1;
}

.service-gallery__heading a {
  flex: 0 0 auto;
  color: #575447;
  font-size: .82rem;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.service-gallery__heading a:hover { color: #8c691f; }

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

.service-gallery__item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e8e2d7;
  cursor: zoom-in;
}

.service-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.service-gallery__item:hover img { transform: scale(1.025); }

@media (max-width: 900px) {
  .service-intro { grid-template-columns: 1fr; }
  .service-intro__content { padding: 54px clamp(28px, 8vw, 64px) 62px; }
  .service-intro__content p { margin-top: 28px; }
  .service-intro__image { order: -1; }
  .service-intro__image img { min-height: 0; aspect-ratio: 4 / 3; }
  .service-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .service-showcase { padding-inline: 12px; }
  .service-intro h1 { font-size: clamp(2.7rem, 13vw, 3.65rem); }
  .service-intro__content { padding: 46px 24px 54px; }
  .service-intro__content p { line-height: 1.75; }
  .service-gallery { width: calc(100% - 24px); padding: 52px 12px 64px; }
  .service-gallery__heading { align-items: flex-end; margin-inline: 12px; }
  .service-gallery__heading a { max-width: 90px; text-align: right; }
  .service-gallery__grid { gap: 3px; }
  .service-gallery__item { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  .service-gallery__item img { transition: none; }
}
