/* ============================================
   Service detail page — premium minimal layout
   (extends root variables from style.css)
   ============================================ */

.service-page {
  background: var(--color-white);
  color: var(--color-charcoal);
}

/* --- Hero --- */
.service-page-hero {
  position: relative;
  min-height: clamp(220px, 32vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-h);
}

.service-page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--color-charcoal) center / cover no-repeat;
  z-index: 0;
}

.service-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
  z-index: 1;
}

.service-page-hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
  max-width: 900px;
}

.service-page-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.service-page-hero__breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.service-page-hero__breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

.service-page-hero__breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.service-page-hero__breadcrumb li:not(:last-child)::after {
  content: ">";
  opacity: 0.45;
  font-size: 0.65rem;
}

.service-page-hero__breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.service-page-hero__breadcrumb a:hover {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.service-page-hero__breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

/* --- Main layout --- */
.service-page-main {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

/* Sidebar — numbered blocks, reference-style hover/active */
.service-sidebar {
  border: none;
  background: #ffffff;
}

.service-sidebar__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  margin: 0;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-sidebar__item {
  margin: 0;
}

.service-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.95rem 1.1rem;
  background: #f0f0f0;
  color: #000000;
  border: none;
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

.service-sidebar__num {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.42);
  transition: color 0.22s ease;
}

.service-sidebar__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #000000;
  transition: color 0.22s ease;
}

/* Hover + active: black bar, white title, gray index (reference) */
.service-sidebar__link:hover,
.service-sidebar__link.is-active {
  background: #000000;
}

.service-sidebar__link:hover .service-sidebar__text,
.service-sidebar__link.is-active .service-sidebar__text {
  color: #ffffff;
}

.service-sidebar__link:hover .service-sidebar__num,
.service-sidebar__link.is-active .service-sidebar__num {
  color: rgba(255, 255, 255, 0.38);
}

.service-sidebar__link:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.service-sidebar__link.is-active:focus-visible {
  outline-color: #ffffff;
  outline-offset: 2px;
}

/* Dynamic content panel */
.service-content-wrap {
  min-width: 0;
}

.service-content {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

.service-content.is-transitioning {
  opacity: 0;
  transform: translateY(8px);
}

.service-content__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  margin: 0 0 0.85rem;
}

.service-content__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--color-charcoal);
  margin: 0 0 1.25rem;
  max-width: 38ch;
}

.service-content__intro {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.62);
  margin: 0 0 2rem;
  max-width: 62ch;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
}

.service-gallery__cell {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.service-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-gallery__cell:hover img {
  transform: scale(1.03);
}

.service-content__paragraphs {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.58);
  margin-bottom: 2.25rem;
}

.service-content__paragraphs p {
  margin: 0 0 1.1rem;
  max-width: 65ch;
}

.service-content__paragraphs p:last-child {
  margin-bottom: 0;
}

.service-feature {
  margin: 0 0 2.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #eee;
}

.service-feature img {
  width: 100%;
  display: block;
  max-height: min(520px, 55vh);
  object-fit: cover;
}

/* Stats */
.service-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
}

.service-stat {
  text-align: center;
  font-family: var(--font-ui);
}

.service-stat__ring {
  width: clamp(96px, 14vw, 120px);
  height: clamp(96px, 14vw, 120px);
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255, 255, 255, 0.95),
    #f5f5f5
  );
}

.service-stat__ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-stat__pct {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-charcoal);
  position: relative;
  z-index: 1;
}

.service-stat__title {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-charcoal);
  margin: 0 0 0.45rem;
}

.service-stat__desc {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.48);
  margin: 0;
  max-width: 22ch;
  margin-inline: auto;
}

/* Testimonials */
.service-testimonials {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.service-testimonials__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--color-charcoal);
}

.service-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}

.service-testimonial {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-testimonial__quote {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
}

.service-testimonial__foot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.service-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-testimonial__name {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  color: var(--color-charcoal);
}

.service-testimonial__role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.45);
  margin: 0.15rem 0 0;
}

/* Service page: light header variant on white body */
.service-page .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-page .site-header .brand,
.service-page .site-header .nav-primary__link {
  color: var(--color-charcoal);
}

.service-page .site-header .nav-primary__caret {
  color: rgba(0, 0, 0, 0.45);
}

.service-page .site-header .dropdown-menu {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-page .site-header .dropdown-menu a {
  color: var(--color-charcoal);
}

.service-page .site-header .icon-btn {
  color: var(--color-charcoal);
}

.service-page .site-header .hamburger span {
  background: var(--color-charcoal);
}

/* Responsive */
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    order: -1;
  }

  .service-sidebar__list {
    flex-direction: column;
    gap: 3px;
    padding: 0.45rem;
  }

  .service-sidebar__link {
    padding: 0.85rem 0.95rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  .service-gallery {
    grid-template-columns: 1fr;
  }

  .service-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }

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