/**
 * Service pricing styles — single source of truth (matches /prices/ archive).
 * Mirrors the visual language of buttons-unified.css (pill, teal #067A55).
 */

/* ─────────────────────────────────────────────────────────────
 * Leaf service price block (L3)
 * ───────────────────────────────────────────────────────────── */
.service-price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f0faf7 0%, #ffffff 100%);
  border: 1px solid color-mix(in srgb, var(--primary-color, #09CA8F) 22%, transparent);
  border-left: 4px solid var(--primary-dark, #067A55);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(6, 122, 85, 0.06);
}

.service-price-block__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-price-block__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light, #64748b);
}

.service-price-block__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.service-price-block__current {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark, #067A55);
  line-height: 1;
}

.service-price-block__old {
  font-size: 20px;
  color: var(--text-light, #64748b);
  text-decoration: line-through;
}

.service-price-block__discount {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
}

.service-price-block__note {
  font-size: 14px;
  color: #475569;
  margin-top: 4px;
}

.service-price-block__cta {
  min-width: 180px;
}

@media (max-width: 600px) {
  .service-price-block { padding: 20px; }
  .service-price-block__current { font-size: 28px; }
  .service-price-block__cta { width: 100%; min-width: 0; }
}

/* ─────────────────────────────────────────────────────────────
 * Auto price table on parents (L1/L2)
 * ───────────────────────────────────────────────────────────── */
.service-price-table {
  margin: 40px 0;
}

.service-price-table__heading {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color, #09CA8F);
}

.service-price-table__group {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--primary-dark, #067A55);
}

.service-price-table__group a {
  color: inherit;
  text-decoration: none;
}
.service-price-table__group a:hover { text-decoration: underline; }

.service-price-table__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.service-price-table__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}

.service-price-table__row:last-child { border-bottom: none; }

.service-price-table__row:hover {
  background: rgba(9, 202, 143, 0.04);
}

.service-price-table__name {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark, #1d1d1f);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}

.service-price-table__name:hover {
  color: var(--primary-dark, #067A55);
}

.service-price-table__note {
  font-size: 12px;
  color: var(--text-light, #64748b);
  margin-top: 2px;
}

.service-price-table__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 90px;
}

.service-price-table__current {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark, #067A55);
  white-space: nowrap;
}

.service-price-table__old {
  font-size: 12px;
  color: var(--text-light, #94a3b8);
  text-decoration: line-through;
}

.service-price-table__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: transparent;
  color: var(--primary-dark, #067A55);
  border: 1.5px solid color-mix(in srgb, var(--primary-color, #09CA8F) 40%, transparent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.service-price-table__cta:hover {
  background: var(--primary-dark, #067A55);
  border-color: var(--primary-dark, #067A55);
  color: #fff;
}

@media (max-width: 720px) {
  .service-price-table__row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .service-price-table__cta {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────
 * Sticky mobile CTA bar (visible when price block scrolled out of view)
 * ───────────────────────────────────────────────────── */
.service-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid color-mix(in srgb, var(--primary-color, #09CA8F) 30%, transparent);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(110%);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  pointer-events: none;
}
.service-sticky-cta--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.service-sticky-cta__price {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.service-sticky-cta__amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark, #067A55);
  line-height: 1.1;
}
.service-sticky-cta__note {
  font-size: 11px;
  color: #64748b;
}

.service-sticky-cta__btn {
  flex-shrink: 0;
  padding: 11px 22px !important;
  font-size: 14px !important;
}

@media (min-width: 768px) {
  .service-sticky-cta { display: none !important; }
}

/* ─────────────────────────────────────────────────────
 * Related services (siblings) on L3 single-service
 * ───────────────────────────────────────────────────── */
.service-related {
  margin: 40px 0;
}
.service-related__title {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color, #09CA8F);
  display: inline-block;
}
.service-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.service-related__card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  text-decoration: none;
  color: #1d1d1f;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.service-related__card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary-color, #09CA8F) 40%, transparent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  color: var(--primary-dark, #067A55);
}
.service-related__name {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}
.service-related__price {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark, #067A55);
  white-space: nowrap;
}
.service-related__arrow {
  color: var(--primary-color, #09CA8F);
  font-size: 18px;
  transition: transform .15s;
}
.service-related__card:hover .service-related__arrow {
  transform: translateX(3px);
}
