/* ============================================================
   Service-area pages — location layout, FAQ, dark hero fallback.
   Uses shared token variables from css/tokens.css.
   Banner / breadcrumb patterns mirror css/services.css.
   ============================================================ */

/* ---- Banner (dark fallback when no photo is present) ---- */
.services-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-hero);
  min-height: 16rem;
  background: var(--forest-900);
}

@media (min-width: 768px) {
  .services-banner {
    min-height: 20rem;
  }
}

.services-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.services-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.services-banner__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--forest-900) 62%, transparent);
  pointer-events: none;
}

.services-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 16rem;
  padding: 3rem 1.5rem;
  gap: 1rem;
}

.services-banner__content h1 {
  width: 100%;
  text-align: center;
}

.services-banner__content h1 .overflow-hidden {
  display: block;
  width: 100%;
  text-align: center;
}

.services-banner__content h1 div,
.services-banner__content h1 span {
  text-align: center;
}

@media (min-width: 768px) {
  .services-banner__content {
    min-height: 20rem;
    padding: 4rem 2rem;
  }
}

.services-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
}

.services-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.services-breadcrumb a:hover {
  color: #fff;
}

.services-breadcrumb__sep {
  opacity: 0.55;
}

.services-breadcrumb [aria-current="page"] {
  color: var(--accent-red);
  font-weight: 500;
}

.sa-banner__cta {
  margin-top: 0.5rem;
}

/* Decorative botanical placement in hero */
.sa-banner__botanical {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: 7rem;
  height: auto;
  color: var(--limebrand);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .sa-banner__botanical {
    right: 1.5rem;
    bottom: 1rem;
    width: 9rem;
  }
}

.sa-banner__leaf {
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

@media (min-width: 768px) {
  .sa-banner__leaf {
    left: 2rem;
    top: 2rem;
  }
}

/* ---- Service link cards ---- */
.sa-service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid color-mix(in srgb, var(--limebrand) 40%, transparent);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sa-service-card:hover {
  border-color: var(--limebrand);
  box-shadow: var(--glow);
}

.sa-service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest-900);
}

.sa-service-card__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bodygray);
  flex: 1;
}

.sa-service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-900);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sa-service-card__link:hover {
  color: color-mix(in srgb, var(--forest-900) 70%, var(--limebrand));
}

/* Text-only equipment / support list */
.sa-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sa-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--forest-900) 8%, transparent);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--forest-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-link-list a:hover {
  border-color: color-mix(in srgb, var(--limebrand) 55%, transparent);
  box-shadow: var(--glow);
}

.sa-link-list__arrow {
  color: var(--accent-red);
  flex-shrink: 0;
}

/* ---- Guidance media panel (photo + parallax + overlay) ---- */
.sa-guidance {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background: var(--forest-900);
  color: #fff;
  min-height: 22rem;
  box-shadow: var(--glow);
}

.sa-guidance__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sa-guidance__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.sa-guidance__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      color-mix(in srgb, var(--forest-900) 78%, transparent) 0%,
      color-mix(in srgb, var(--forest-900) 55%, transparent) 42%,
      color-mix(in srgb, var(--forest-900) 28%, transparent) 100%
    );
  pointer-events: none;
}

.sa-guidance__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .sa-guidance {
    min-height: 26rem;
  }

  .sa-guidance__content {
    padding: 3rem 2.75rem;
  }
}

.sa-guidance p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.sa-guidance p + p {
  margin-top: 1rem;
}

.sa-guidance__botanical {
  position: absolute;
  right: -0.25rem;
  bottom: -0.5rem;
  width: 6.5rem;
  color: var(--limebrand);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .sa-guidance__botanical {
    right: 1.25rem;
    bottom: 1rem;
    width: 8.5rem;
  }
}

.sa-guidance__leaf {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .sa-guidance__media img {
    will-change: auto;
  }

  .sa-guidance__leaf,
  .sa-guidance__botanical {
    opacity: 0.4;
  }
}

/* ---- Trust value cards ---- */
.sa-trust-card {
  border-radius: var(--radius-card);
  border: 1px solid color-mix(in srgb, var(--limebrand) 35%, transparent);
  background: #fff;
  padding: 1.5rem;
}

.sa-trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--badgecream);
  color: var(--forest-900);
  margin-bottom: 1rem;
}

.sa-trust-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--forest-900);
}

.sa-trust-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bodygray);
}

/* ---- FAQ (native details) ---- */
.sa-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sa-faq details {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--forest-900) 8%, transparent);
  overflow: hidden;
}

.sa-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--forest-900);
  font-size: 0.975rem;
  line-height: 1.4;
}

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

.sa-faq summary::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--accent-red);
  flex-shrink: 0;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-red) 45%, transparent);
}

.sa-faq details[open] summary {
  border-bottom: 1px solid color-mix(in srgb, var(--forest-900) 6%, transparent);
}

.sa-faq__answer {
  padding: 0 1.25rem 1.2rem 2.6rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--bodygray);
}

/* ---- Closing CTA banner ---- */
.sa-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background: var(--forest-900);
  min-height: 14rem;
}

.sa-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .sa-cta__content {
    padding: 3.5rem 3rem;
  }
}

.sa-cta__glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  right: -4rem;
  bottom: -6rem;
  background: color-mix(in srgb, var(--limebrand) 22%, transparent);
  filter: blur(48px);
  pointer-events: none;
}

.sa-crosslink {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.sa-crosslink a {
  color: var(--limebrand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-crosslink a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .sa-service-card,
  .sa-link-list a,
  .services-breadcrumb a {
    transition: none;
  }

  .sa-banner__leaf,
  .sa-banner__botanical {
    opacity: 0.35;
  }
}
