/* ============================================================
   services.css
   PhoneDoc ATL — Services & Pricing Page Styles
   ============================================================ */

/* ── Services Hero ───────────────────────────────────────── */
.services-hero {
  min-height: 60vh;
  background: linear-gradient(
    160deg,
    #0a0a0a 0%,
    #1a1a1a 40%,
    #2a0a0a 70%,
    #1a1a1a 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(229, 57, 53, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.services-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.services-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px var(--gutter);
}

.services-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--color-text-on-dark);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.services-hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  position: sticky;
  top: var(--nav-height-scrolled);
  background-color: var(--color-dark-bg);
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.filter-bar__inner::after {
  content: '';
  flex-shrink: 0;
  width: 24px;
}

.filter-bar__inner::-webkit-scrollbar {
  display: none;
}

/* ── Services Grid Section ───────────────────────────────── */
.services-grid-section {
  padding: var(--space-10) 0;
  background-color: var(--color-dark-bg);
  min-height: 400px;
}

/* ── Service Category Group ──────────────────────────────── */
.service-category-group {
  margin-bottom: 64px;
}

.service-category-group:last-child {
  margin-bottom: 0;
}

.service-category-group__title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-text-on-dark);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-category-group__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(229, 57, 53, 0.4),
    transparent
  );
}

/* ── Services Grid ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── Service Card ────────────────────────────────────────── */
.service-card {
  background-color: var(--color-dark-card);
  border-radius: var(--radius-card);
  padding: 24px;
  cursor: pointer;
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(229, 57, 53, 0.03) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

.service-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.service-card__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  padding-right: 96px;
}

.service-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.service-card__price-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.service-card__tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(229, 57, 53, 0.15);
  color: var(--color-primary);
  margin-top: 12px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(229, 57, 53, 0.25);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ── Info Pills ──────────────────────────────────────────── */
.service-card__info-pills {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  user-select: none;
  line-height: 1.4;
}

.info-pill:active {
  transform: scale(0.96);
}

.info-pill--parts {
  color: var(--color-primary);
  border-color: rgba(229, 57, 53, 0.3);
  background: rgba(229, 57, 53, 0.08);
}
.info-pill--parts:hover { background: rgba(229, 57, 53, 0.18); }

.info-pill--tips {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
.info-pill--tips:hover { background: rgba(245, 158, 11, 0.18); }

.info-pill--models {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.08);
}
.info-pill--models:hover { background: rgba(96, 165, 250, 0.18); }

.info-pill--duration {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}
.info-pill--duration:hover { background: rgba(74, 222, 128, 0.18); }

/* ── Info Tooltip ────────────────────────────────────────── */
#info-tooltip {
  position: fixed;
  z-index: 9999;
  width: 260px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

#info-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#info-tooltip__title {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

#info-tooltip__body {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ── Empty State ─────────────────────────────────────────── */
.services-empty {
  text-align: center;
  padding: 80px 24px;
  color: rgba(255, 255, 255, 0.4);
}

.services-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.services-empty__text {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Services CTA ────────────────────────────────────────── */
.services-cta {
  padding: 80px 0;
  background: #111111;
  text-align: center;
}

.services-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-cta__title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-text-on-dark);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.services-cta p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  max-width: 500px;
}

.services-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Skeleton Dark Variant ───────────────────────────────── */
.services-grid-section .skeleton--card {
  background: linear-gradient(
    90deg,
    #2a2a2a 25%,
    #333333 37%,
    #2a2a2a 63%
  );
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  height: 200px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-hero__content {
    padding: 40px var(--gutter);
  }

  .services-hero__subtitle {
    font-size: 16px;
  }

  .service-category-group {
    margin-bottom: 48px;
  }

  .services-cta {
    padding: 60px 0;
  }

  .services-cta__title {
    font-size: 28px;
  }
}

/* ============================================================
   PAGE TABS (Services / Price Lookup)
   ============================================================ */

.svc-tabs-bar {
  background-color: var(--color-dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-tabs__inner {
  display: flex;
  align-items: center;
}

.svc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
}

.svc-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.svc-tab.is-active {
  color: var(--color-text-on-dark);
  border-bottom-color: var(--color-primary);
}

/* ============================================================
   PRICING PANEL
   ============================================================ */

.pricing-panel-section {
  background-color: var(--color-dark-bg);
  padding: 56px 0 80px;
  min-height: 500px;
}

/* ── Step Label ──────────────────────────────────────────── */
.pricing-step__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.pricing-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.pricing-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.pricing-back-btn:hover {
  color: var(--color-text-on-dark);
}

/* ── Device Type Grid ────────────────────────────────────── */
.pricing-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  max-width: 820px;
}

.pricing-type-card {
  background: var(--color-dark-card);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  text-align: center;
}

.pricing-type-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 24px rgba(229, 57, 53, 0.2);
  transform: translateY(-3px);
}

.pricing-type-card__img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.pricing-type-card__emoji {
  font-size: 40px;
  line-height: 1;
}

.pricing-type-card__name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-on-dark);
  line-height: 1.3;
}

.pricing-type-skeleton {
  height: 140px;
  border-radius: var(--radius-card);
}

/* ── Model Selector ──────────────────────────────────────── */
.pricing-model-wrap {
  max-width: 440px;
}

.pricing-model-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Loading / Error / Empty ─────────────────────────────── */
.pricing-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 24px 0;
}

.pricing-error-msg {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-error);
  padding: 20px 0;
}

.pricing-empty-msg {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  padding: 20px 0;
}

/* ── Result Header ───────────────────────────────────────── */
.pricing-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(229, 57, 53, 0.25);
  flex-wrap: wrap;
}

.pricing-result-header__model {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--color-text-on-dark);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.pricing-result-header__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 5px;
}

/* ── Pricing Table ───────────────────────────────────────── */
.pricing-table {
  background: var(--color-dark-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.pricing-table__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(229, 57, 53, 0.07);
  border-bottom: 1px solid rgba(229, 57, 53, 0.15);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.pricing-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.pricing-row:last-child { border-bottom: none; }

.pricing-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.pricing-row__repair {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-on-dark);
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.pricing-row__options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
  flex-shrink: 0;
}

.pt-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pt-row__name {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

.pt-row__price {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  color: #4ade80;
  min-width: 44px;
  text-align: right;
}

/* ── Empty State ─────────────────────────────────────────── */
.pricing-empty-state {
  background: var(--color-dark-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  padding: 48px 32px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .svc-tab {
    padding: 14px 18px;
    font-size: 13px;
  }

  .pricing-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }

  .pricing-result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .pricing-row {
    flex-direction: column;
    gap: 10px;
  }

  .pricing-row__options {
    align-items: flex-start;
    width: 100%;
  }

  .pt-row {
    justify-content: space-between;
    width: 100%;
  }

  .pt-row__name { text-align: left; }
}
