/* ============================================================
   Services Pages — Shared Styles
   BEM naming, matches style.css design tokens
   ============================================================ */

/* ── Page Hero (compact, not full-viewport) ── */

.page-hero {
  background-color: var(--c-bg-dark);
  color: var(--c-text-light);
  padding-block: var(--s-4xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
  opacity: 0.08;
  filter: blur(100px);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-plum) 0%, transparent 70%);
  opacity: 0.06;
  filter: blur(80px);
  pointer-events: none;
}

.page-hero__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--f-xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  background: rgba(182, 144, 107, 0.15);
  border: 1px solid rgba(182, 144, 107, 0.2);
  padding: var(--s-3xs) var(--s-sm);
  border-radius: var(--radius-badges);
  margin-bottom: var(--s-md);
}

.page-hero__title {
  font-family: var(--f-heading);
  font-size: var(--f-xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.15;
  letter-spacing: normal;
  color: var(--c-text-light);
  margin-bottom: var(--s-sm);
}

@media (min-width: 768px) {
  .page-hero__title {
    font-size: var(--f-2xl);
  }
}

.page-hero__subtitle {
  font-family: var(--f-body);
  font-size: var(--f-base);
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
  line-height: var(--lh-relaxed);
}

/* ── Breadcrumb ── */

.breadcrumb {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--s-md) var(--container-px);
  font-size: var(--f-xs);
  color: var(--c-text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2xs);
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--s-2xs);
}

.breadcrumb li + li::before {
  content: '→';
  color: var(--c-text-muted);
  flex-shrink: 0;
}

.breadcrumb a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

.breadcrumb a:hover {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

/* ── Service Content (Prose) ── */

.service-content {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--s-3xl) var(--container-px);
}

.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4,
.service-content h5,
.service-content h6 {
  letter-spacing: normal;
}

.service-content h1 {
  font-family: var(--f-heading);
  font-size: var(--f-xl);
  font-weight: var(--fw-extrabold);
  color: var(--c-text);
  line-height: 1.15;
  margin-bottom: var(--s-lg);
}

@media (min-width: 768px) {
  .service-content h1 {
    font-size: var(--f-2xl);
  }
}

.service-content .lead {
  font-size: var(--f-base);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 70ch;
  margin-bottom: var(--s-2xl);
}

.service-content section {
  margin-bottom: var(--s-2xl);
}

.service-content section h2 {
  font-family: var(--f-heading);
  font-size: var(--f-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: normal;
  margin-bottom: var(--s-md);
  padding-bottom: var(--s-sm);
  border-bottom: 2px solid var(--c-border);
}

.service-content section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gradient-iridescent-spectra);
  margin-top: var(--s-xs);
}

.service-content section p {
  font-size: var(--f-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-md);
}

.service-content section ol,
.service-content section ul {
  padding-left: var(--s-lg);
  margin-bottom: var(--s-md);
}

.service-content section li {
  font-size: var(--f-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-xs);
  list-style: disc;
}

.service-content section ol li {
  list-style: decimal;
}

.service-content section strong {
  color: var(--c-text);
  font-weight: var(--fw-semibold);
}

.service-content section em {
  font-style: italic;
  color: var(--c-text-secondary);
}

/* Price table-like content */
.service-content .price-list {
  display: grid;
  gap: var(--s-sm);
  margin-bottom: var(--s-md);
}

.service-content .price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-sm) var(--s-md);
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}

.service-content .price-item-name {
  font-size: var(--f-sm);
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

.service-content .price-item-cost {
  font-size: var(--f-md);
  font-weight: var(--fw-semibold);
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Benefits list */
.service-content .benefits-list {
  display: grid;
  gap: var(--s-sm);
  margin-bottom: var(--s-md);
}

.service-content .benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  list-style: none;
  padding: var(--s-sm) var(--s-md);
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  margin-bottom: 0;
}

.service-content .benefits-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23B6906B'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 2px;
}

/* ── FAQ (details/summary — native HTML) ── */

.faq-section {
  margin-top: var(--s-3xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--c-border);
}

.faq-section h2 {
  margin-bottom: var(--s-lg);
}

.faq-section details {
  border-bottom: 1px solid var(--c-border);
  padding: var(--s-md) 0;
}

.faq-section details[open] {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: var(--s-md);
  margin-bottom: var(--s-sm);
  border: 1px solid var(--c-border);
}

.faq-section summary {
  font-family: var(--f-heading);
  font-size: var(--f-base);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  transition: color var(--t-fast);
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: '+';
  font-size: var(--f-lg);
  font-weight: var(--fw-light);
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform var(--t-base);
  line-height: 1;
}

.faq-section details[open] summary::after {
  content: '−';
}

.faq-section summary:hover {
  color: var(--c-accent);
}

.faq-section details p {
  font-size: var(--f-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin-top: var(--s-sm);
  padding-top: var(--s-sm);
}

/* ── Related Services ── */

.related-services {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--s-3xl) var(--container-px);
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
}

.related-services h3 {
  font-family: var(--f-heading);
  font-size: var(--f-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--s-lg);
  letter-spacing: normal;
}

.related-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-md);
}

@media (min-width: 768px) {
  .related-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-service-card {
  display: block;
  padding: var(--s-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform var(--t-spring), box-shadow var(--t-spring), border-color var(--t-fast);
}

@media (hover: hover) {
  .related-service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--c-accent-muted);
  }
}

.related-service-card:active {
  transform: scale(0.98);
}

.related-service-card__title {
  font-family: var(--f-heading);
  font-size: var(--f-base);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--s-2xs);
  letter-spacing: normal;
  transition: color var(--t-fast);
}

.related-service-card:hover .related-service-card__title {
  color: var(--c-accent);
}

.related-service-card__desc {
  font-size: var(--f-xs);
  color: var(--c-text-muted);
  line-height: var(--lh-relaxed);
}

.related-service-card__price {
  display: inline-block;
  margin-top: var(--s-xs);
  font-size: var(--f-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}

/* ── Service Page Header/Footer tweaks ── */

/* Override header links for service pages (no anchor scrolling) */
.header__link[href^="#"] {
  text-decoration: none;
}

/* Ensure page body starts below fixed header */
.page-body {
  padding-top: 120px;
}

/* ── Footer adjustments for service pages ── */

.footer a[href^="#"] {
  text-decoration: none;
}
