/* ============================================================
   PUBLIC SERVICE DETAIL V2
   ============================================================ */

.service-detail-loading,
.service-detail-error {
  min-height: 65vh;
  padding: 110px 0;
  background: #fffafd;
}

.service-loading-card,
.service-error-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 44px 30px;
  border: 1px solid rgba(147, 20, 81, 0.13);
  border-radius: 26px;
  background: #fff;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  text-align: center;
  box-shadow: 0 24px 70px rgba(67, 33, 50, 0.08);
}

.service-error-card h1 {
  margin: 10px 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.service-error-card p {
  margin: 0 0 26px;
  line-height: 1.7;
}

/* ============================================================
   SPLIT HERO
   ============================================================ */

.service-v2-hero {
  padding: 52px 0 76px;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(255, 173, 212, 0.26),
      transparent 25%
    ),
    linear-gradient(
      145deg,
      #fff 0%,
      #fff5fa 100%
    );
}

.service-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #806a75;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.service-breadcrumb a {
  color: var(--primary-deep, #931451);
  text-decoration: none;
}

.service-breadcrumb a:hover,
.service-breadcrumb a:focus-visible {
  color: var(--primary, #e31c79);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-v2-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(360px, 0.95fr);
  align-items: center;
  gap: 54px;
}

.service-v2-kicker {
  margin-bottom: 13px;
  color: var(--primary, #e31c79);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-v2-hero-content h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--ink, #24141c);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
}

.service-v2-hero-description {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 1.03rem;
  line-height: 1.8;
}

.service-v2-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.service-summary-item {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid rgba(147, 20, 81, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
}

.service-summary-item small {
  color: #8b707d;
  font-family: "Inter", sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-summary-item strong {
  color: var(--ink, #24141c);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  line-height: 1.35;
}

.service-v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.service-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(147, 20, 81, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-deep, #931451);
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.service-secondary-button:hover,
.service-secondary-button:focus-visible {
  border-color: var(--primary, #e31c79);
  color: var(--primary, #e31c79);
}

.service-v2-hero-media {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(147, 20, 81, 0.11);
  border-radius: 34px;
  background: #fbe8f1;
  box-shadow: 0 34px 90px rgba(67, 33, 50, 0.15);
}

.service-v2-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.service-v2-hero-media.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.92),
      transparent 26%
    ),
    linear-gradient(
      145deg,
      #ffd3e6,
      #fff8fb 58%,
      #ffadd4
    );
}

.service-v2-hero-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(224, 13, 146, 0.22);
}

.service-v2-hero-placeholder span {
  font-family: "Poppins", sans-serif;
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -7px;
}

.service-v2-hero-placeholder small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-detail-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary, #e31c79);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.service-v2-main {
  padding: 76px 0 94px;
  background: #fffafd;
}

.service-v2-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    360px;
  align-items: start;
  gap: 28px;
}

.service-v2-content {
  display: grid;
  min-width: 0;
  gap: 22px;
}

.service-v2-information-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-v2-info-card,
.service-branch-card {
  border: 1px solid rgba(147, 20, 81, 0.11);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(67, 33, 50, 0.07);
}

.service-v2-info-card {
  padding: 32px;
}

.service-v2-info-card h2,
.service-branch-card h2 {
  margin: 8px 0 17px;
  color: var(--ink, #24141c);
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-v2-info-card > p {
  margin: 0 0 15px;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  line-height: 1.78;
}

.service-v2-info-card > p:last-child {
  margin-bottom: 0;
}

.service-v2-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-v2-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: start;
  gap: 8px;
}

.service-v2-list li > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #ffe7f2;
  color: var(--primary, #e31c79);
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.service-v2-list li p {
  margin: 0;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   BRANCH SIDEBAR
   ============================================================ */

.service-v2-sidebar {
  position: sticky;
  top: 96px;
}

.service-branch-card {
  padding: 28px;
}

.service-branch-card > p {
  margin: 0 0 22px;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 0.91rem;
  line-height: 1.65;
}

.service-branch-list {
  display: grid;
  gap: 13px;
}

.service-branch-item {
  padding: 18px;
  border: 1px solid rgba(147, 20, 81, 0.11);
  border-radius: 18px;
  background: #fff9fc;
}

.service-branch-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.service-branch-item-heading small {
  color: #8b707d;
  font-family: "Inter", sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
}

.service-branch-item-heading h3 {
  margin: 3px 0 0;
  color: var(--ink, #24141c);
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
}

.service-branch-item-heading > span {
  color: rgba(224, 13, 146, 0.18);
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.service-branch-address {
  margin: 12px 0 0;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
}

.service-branch-phone {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-deep, #931451);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.service-branch-phone:hover,
.service-branch-phone:focus-visible {
  color: var(--primary, #e31c79);
  text-decoration: underline;
}

.service-branch-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}

.service-whatsapp-button,
.service-appointment-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.service-whatsapp-button {
  width: 44px;
  height: 44px;
  padding: 0;
  background: #25d366;
  color: #fff;
}

.service-whatsapp-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.service-whatsapp-button:hover,
.service-whatsapp-button:focus-visible {
  background: #128c4a;
  transform: translateY(-1px);
}

.service-appointment-button {
  padding: 9px 16px;
  border: 1px solid rgba(147, 20, 81, 0.18);
  background: #fff;
  color: var(--primary-deep, #931451);
}

.service-appointment-button:hover,
.service-appointment-button:focus-visible {
  border-color: var(--primary, #e31c79);
  color: var(--primary, #e31c79);
}

.service-branch-empty {
  padding: 18px;
  border: 1px dashed rgba(147, 20, 81, 0.2);
  border-radius: 16px;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 0.83rem;
  line-height: 1.6;
  text-align: center;
}

.service-sidebar-back {
  display: block;
  margin-top: 16px;
  color: var(--primary-deep, #931451);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.service-sidebar-back:hover,
.service-sidebar-back:focus-visible {
  color: var(--primary, #e31c79);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   GALLERY
   ============================================================ */

.service-v2-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 22px;
}

.service-v2-section-heading h2 {
  margin-bottom: 0;
}

.service-v2-section-heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  text-align: right;
}

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

.service-v2-gallery-item {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #f8e9f1;
  cursor: pointer;
}

.service-v2-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.service-v2-gallery-item:hover img {
  transform: scale(1.04);
}

.service-v2-gallery-item:focus-visible {
  outline: 4px solid rgba(227, 28, 121, 0.25);
  outline-offset: 3px;
}

.service-v2-gallery-item span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(36, 20, 28, 0.75);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  text-align: left;
  backdrop-filter: blur(7px);
}

/* ============================================================
   RELATED SERVICES
   ============================================================ */

.service-related-section {
  padding: 74px 0 90px;
  background: #fff;
}

.service-related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.service-related-heading h2 {
  margin-top: 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.service-related-heading > a {
  color: var(--primary, #e31c79);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

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

.service-related-card {
  overflow: hidden;
  border: 1px solid rgba(147, 20, 81, 0.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(67, 33, 50, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 58px rgba(67, 33, 50, 0.12);
}

.service-related-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.service-related-media {
  display: grid;
  height: 190px;
  place-items: center;
  overflow: hidden;
  background: #fae8f1;
}

.service-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-related-media.is-placeholder {
  background:
    linear-gradient(
      145deg,
      #ffd8e9,
      #fff7fb,
      #ffadd4
    );
}

.service-related-media > span {
  color: rgba(224, 13, 146, 0.2);
  font-family: "Poppins", sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
}

.service-related-body {
  display: flex;
  min-height: 235px;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.service-related-body small {
  color: var(--primary, #e31c79);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.service-related-body h3 {
  margin: 9px 0;
  color: var(--ink, #24141c);
  font-family: "Poppins", sans-serif;
  font-size: 1.18rem;
}

.service-related-body p {
  margin: 0;
  color: var(--ink-soft, #5c4a52);
  font-family: "Inter", sans-serif;
  font-size: 0.87rem;
  line-height: 1.6;
}

.service-related-body strong {
  margin-top: auto;
  padding-top: 20px;
  color: var(--primary, #e31c79);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.service-lightbox {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 64px 24px 28px;
  background: rgba(24, 12, 18, 0.94);
}

.service-lightbox.is-open {
  display: grid;
}

.service-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 78vh;
  border-radius: 18px;
  object-fit: contain;
}

.service-lightbox p {
  margin: 14px 0 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 17px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

body.service-lightbox-open {
  overflow: hidden;
}

.service-branch-actions {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}

.service-whatsapp-button {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.service-whatsapp-button svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.service-whatsapp-button:hover,
.service-whatsapp-button:focus-visible {
  background: #128c4a;
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1020px) {
  .service-v2-hero-grid {
    grid-template-columns: 1fr 390px;
    gap: 34px;
  }

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

  .service-v2-sidebar {
    position: static;
  }

  .service-branch-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .service-v2-hero {
    padding: 36px 0 58px;
  }

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

  .service-v2-hero-media {
    min-height: 360px;
  }

  .service-v2-hero-media img {
    min-height: 360px;
  }

  .service-v2-information-grid,
  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .service-v2-main {
    padding: 56px 0 72px;
  }

  .service-related-section {
    padding: 58px 0 72px;
  }
}

@media (max-width: 620px) {
  .service-v2-hero-content h1 {
    font-size: 2.45rem;
    letter-spacing: -1.3px;
  }

  .service-v2-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-summary-item {
    min-width: 0;
  }

  .service-v2-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-v2-hero-actions .btn-primary,
  .service-secondary-button {
    width: 100%;
  }

  .service-v2-info-card,
  .service-branch-card {
    padding: 23px 19px;
    border-radius: 22px;
  }

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

  .service-branch-actions {
  grid-template-columns: 44px minmax(0, 1fr);
}

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

  .service-v2-section-heading,
  .service-related-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-v2-section-heading > p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-related-card,
  .service-v2-gallery-item img {
    transition: none;
  }
}