/*
 * Services page — creative layer on top of the core theme, deliberately
 * matching the same visual language as assets/css/about-page.css (glow
 * orbs, running ribbon, card hover-lift, glow CTA button) but under its
 * own .services-page scope with its own class names, so this page can be
 * edited independently without any risk to the About Us page.
 *
 * IMPORTANT: this theme ships a pre-compiled, purged Tailwind build
 * (assets/css/tailwind.css) rather than a live JIT build — only the
 * exact utility classes already used elsewhere in the theme exist in
 * that file. Any new class combination (arbitrary values, unused
 * breakpoint/utility pairs, etc.) silently does nothing. So layout that
 * isn't already proven safe elsewhere in the theme is written here as
 * real, hand-authored CSS instead of guessed-at Tailwind classes.
 */

.services-page {
  overflow-x: clip;
}

.services-section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */

.services-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 15% 0%, hsl(var(--accent) / 0.14), transparent 60%),
    radial-gradient(50% 70% at 100% 30%, hsl(var(--accent) / 0.10), transparent 60%);
}

.services-hero-inner {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .services-hero-inner { padding-top: 4.5rem; padding-bottom: 5.5rem; }
}

.services-glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  background: radial-gradient(circle, hsl(var(--accent) / 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.services-glow-orb--1 { width: 420px; height: 420px; top: -140px; left: -100px; }
.services-glow-orb--2 { width: 380px; height: 380px; bottom: -160px; right: -80px; }

.services-hero-content {
  position: relative;
  z-index: 1;
}

.services-hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.services-hero-title {
  max-width: 44rem;
}
.services-hero-sub {
  max-width: 38rem;
  font-size: 1.0625rem;
}
@media (min-width: 768px) {
  .services-hero-sub { font-size: 1.1875rem; }
}

/* ---------------------------------------------------------------------
   Running ribbon banner — same infinite-scroll marquee technique used
   on the About page and the site's breaking-news ticker.
   ------------------------------------------------------------------- */

.services-ribbon-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--accent) / 0.82) 50%, hsl(var(--accent)));
  box-shadow: 0 0 30px hsl(var(--accent) / 0.35), inset 0 0 40px hsl(0 0% 0% / 0.08);
}

.services-ribbon-viewport {
  mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  padding: 0.85rem 0;
}
.services-ribbon-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: services-ribbon-scroll 26s linear infinite;
}
.services-ribbon-viewport:hover .services-ribbon-track { animation-play-state: paused; }
.services-ribbon-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--accent-foreground));
  padding: 0 1.5rem;
}
.services-ribbon-sep {
  color: hsl(var(--accent-foreground) / 0.6);
  font-size: 0.9rem;
}
@keyframes services-ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   Service cards
   ------------------------------------------------------------------- */

.services-icon-badge {
  position: relative;
  isolation: isolate;
}
.services-icon-badge::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, hsl(var(--accent) / 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.services-card:hover .services-icon-badge::after { opacity: 1; }

.services-card {
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.services-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--accent) / 0.45);
  box-shadow: 0 10px 30px -12px hsl(var(--accent) / 0.35);
}

.services-card-feature {
  position: relative;
  padding-left: 1.25rem;
}
.services-card-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsl(var(--accent));
}

/* Optional "Popular" ribbon corner badge for a featured service card. */
.services-popular-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

/* ---------------------------------------------------------------------
   Process steps — numbered cards, no curvy timeline (kept simpler and
   more literal than the About page's journey section).
   ------------------------------------------------------------------- */

.services-step-card {
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.services-step-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--accent) / 0.45);
  box-shadow: 0 10px 30px -12px hsl(var(--accent) / 0.35);
}
.services-step-number {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: hsl(var(--accent) / 0.25);
  line-height: 1;
}

/* ---------------------------------------------------------------------
   CTA banner — same neon-lit button + rotating gradient backdrop as
   the About page, explicitly z-index layered so the moving background
   never drifts on top of the text.
   ------------------------------------------------------------------- */

.services-cta {
  position: relative;
  overflow: hidden;
  background: hsl(var(--foreground) / 0.02);
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .services-cta { padding: 6rem 0; }
}
.dark .services-cta { background: hsl(0 0% 8%); }

.services-cta-ribbon-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from 0deg, hsl(var(--accent) / 0.16), transparent 30%, hsl(var(--accent) / 0.10) 60%, transparent 85%);
  animation: services-rotate 22s linear infinite;
  pointer-events: none;
}
@keyframes services-rotate {
  to { transform: rotate(360deg); }
}

.services-cta-content {
  position: relative;
  z-index: 1;
}

.services-glow-btn {
  position: relative;
  box-shadow: 0 0 0 0 hsl(var(--accent) / 0.6);
  transition: box-shadow 0.35s ease, transform 0.25s ease;
}
.services-glow-btn:hover {
  box-shadow: 0 0 22px 4px hsl(var(--accent) / 0.55), 0 0 60px 10px hsl(var(--accent) / 0.25);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   Reduced motion — keep the theme's site-wide contract: everything
   still looks complete, it just doesn't move.
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .services-glow-orb,
  .services-cta-ribbon-bg,
  .services-ribbon-track {
    animation: none !important;
  }
  .services-ribbon-viewport { overflow-x: auto; }
}
