/* ==========================================================================
   Service category & specific style pages
   ========================================================================== */

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  border-radius: inherit;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.service-card-link:hover {
  transform: translateY(-4px);
}

.service-card-link:hover .service-card {
  border-color: rgba(212, 168, 83, 0.45);
}

.service-card-link:hover .service-card-footer {
  opacity: 1;
  transform: translateY(0);
}

.service-card-link .service-card {
  height: 100%;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0.75;
  transform: translateY(2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-card-footer i {
  font-size: 0.65rem;
}

body.editorial-theme .service-card-link:hover .service-card-footer {
  color: var(--gold);
}

/* --- Service detail page --- */
body[data-page="service"] .home-bottombar {
  mix-blend-mode: normal;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-detail-hero {
  padding: calc(5.5rem + env(safe-area-inset-top, 0px)) var(--page-gutter, 1.5rem) 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-detail-hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.service-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 1.75rem;
  min-height: 44px;
}

.service-back-link:hover {
  color: #fff;
}

.service-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.service-detail-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.5rem;
}

.service-detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1;
}

.service-detail-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 0 1rem;
}

.service-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.service-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-styles-section {
  padding-top: 2.5rem !important;
}

.service-styles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.style-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-width: 0;
}

.style-card-media {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.style-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.75rem;
}

.style-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.style-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 400;
  color: #fff;
  margin: 0 0 0.45rem;
  line-height: 1.15;
}

.style-card-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem;
  flex: 1;
}

.style-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.style-card-price {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
}

.style-card-duration {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.style-card-duration i {
  margin-right: 0.25rem;
}

.style-card-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 768px) {
  body[data-page="service"] .editorial-main {
    padding-top: 0;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .service-detail-hero {
    padding: calc(4.75rem + env(safe-area-inset-top, 0px)) var(--page-gutter, 1.25rem) 2rem;
  }

  .service-styles-grid {
    grid-template-columns: 1fr;
  }

  .style-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
  }
}
