/* ============================================
   SMITHDIGITAL — Services Page Styles
   ============================================ */

/* ── PAGE HEADER ──
   Transparent so site-bg (dark grid) shows through.
   Sits below the fixed nav. */
.services-hero {
  padding: calc(var(--nav-h) + 72px) 0 64px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Particle canvas — same setup as homepage / contact */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.services-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(168, 199, 255, 0.85);
  margin-bottom: 1.25rem;
}

.services-hero__label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  flex-shrink: 0;
}

.services-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.services-hero__title em {
  font-style: italic;
  color: rgba(168, 199, 255, 0.9);
}

.services-hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  line-height: 1.7;
}

/* ────────────────────────────────────────
   SERVICES DETAIL SECTION  (white)
───────────────────────────────────────── */
.services-detail {
  background: var(--white);
  position: relative;
  z-index: 3;
  padding: 88px 0 80px;
}

.services-detail__intro {
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.services-detail__label {
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.services-detail__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--fw-bold);
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.services-detail__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Service cards grid */
.services-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.svc-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 2.25rem;
  background: var(--white);
  /* JS sets transitions dynamically (mouseenter/mouseleave) — no transform here */
  position: relative;
  /* clip-path preserves border-radius during 3D tilt without flattening the perspective
     the way overflow:hidden does */
  clip-path: inset(0 round 16px);
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.svc-card:hover {
  border-color: rgba(26, 77, 181, 0.2);
  box-shadow: 0 16px 48px rgba(26, 77, 181, 0.13);
}

/* Accent bar slides in as soon as the cursor is over the card */
.svc-card:hover::before,
.svc-card.is-tilting::before {
  transform: scaleX(1);
}

.svc-card__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.svc-card__icon svg {
  width: 22px;
  height: 22px;
}

.svc-card__title {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.svc-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.svc-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.svc-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.svc-card__item svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ────────────────────────────────────────
   PRICING SECTION
───────────────────────────────────────── */
.pricing {
  background: var(--off-white);
  position: relative;
  z-index: 3;
  padding: 88px 0 96px;
}

/* Subtle top border to separate from services */
.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.pricing__intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.pricing__label {
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.pricing__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--fw-bold);
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pricing__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Two-card grid */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s var(--ease);
  will-change: transform;
}

/* Shimmer sweep — invisible by default, slides in from top-left on hover */
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.pricing-card:hover::after {
  transform: translateX(60%) translateY(60%);
}

/* Ensure card content sits above the shimmer layer */
.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 28px 56px rgba(26, 77, 181, 0.16),
    0 4px 16px rgba(26, 77, 181, 0.08);
  border-color: rgba(26, 77, 181, 0.25);
}

/* Featured card (monthly retainer) */
.pricing-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Shimmer is brighter on the dark card */
.pricing-card--featured::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(100, 160, 255, 0.04) 40%,
    rgba(100, 160, 255, 0.12) 50%,
    rgba(100, 160, 255, 0.04) 60%,
    rgba(255, 255, 255, 0) 100%
  );
}

.pricing-card--featured:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 28px 56px rgba(9, 24, 64, 0.5),
    0 0 0 1px rgba(59, 111, 212, 0.5),
    0 0 48px rgba(26, 77, 181, 0.25);
  border-color: var(--blue-light);
}

/* ── Badge area ──
   Both cards reserve the same top block height so the eyebrow/title
   always start on the same baseline. The regular card gets an invisible
   placeholder that matches the featured card's badge height (~32px + 1.75rem mb). */
.pricing-card__badge-slot {
  height: calc(32px + 1.75rem);
  flex-shrink: 0;
}

.pricing-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86efac;
  align-self: flex-start;
}

.pricing-card__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.pricing-card__eyebrow {
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.pricing-card--featured .pricing-card__eyebrow {
  color: rgba(168, 199, 255, 0.75);
}

.pricing-card__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.pricing-card--featured .pricing-card__title {
  color: var(--white);
}

.pricing-card__price {
  font-size: 0.9rem;
  font-weight: var(--fw-semi);
  color: var(--blue);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.pricing-card--featured .pricing-card__price {
  color: #7eb8ff;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  /* min-height locks the desc block so the divider lines up across both cards
     regardless of how many lines the text wraps to */
  min-height: 5.5em;
}

.pricing-card--featured .pricing-card__desc {
  color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.pricing-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.pricing-card--featured .pricing-card__item {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-card__item svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card--featured .pricing-card__item svg {
  color: #4ade80;
}

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: var(--fw-semi);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-align: center;
  /* Light card: outlined */
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.pricing-card__cta:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 77, 181, 0.3);
}

/* Featured card CTA: solid white */
.pricing-card--featured .pricing-card__cta {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.pricing-card--featured .pricing-card__cta:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Pricing note below cards */
.pricing__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

.pricing__note a {
  color: var(--blue);
  font-weight: var(--fw-medium);
  transition: color var(--duration);
}

.pricing__note a:hover { color: var(--navy); }

/* ────────────────────────────────────────
   PROCESS STRIP  (white)
───────────────────────────────────────── */
.process {
  background: var(--white);
  position: relative;
  z-index: 3;
  padding: 80px 0 88px;
  border-top: 1px solid var(--border);
}

.process__intro {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
}

.process__label {
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.process__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: var(--fw-bold);
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Steps */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connecting line between steps */
.process__steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__step-num {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--blue);
  margin: 0 auto 1.1rem;
  background: var(--white);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.process__step:hover .process__step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.process__step-title {
  font-size: 0.95rem;
  font-weight: var(--fw-semi);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.process__step-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ────────────────────────────────────────
   CTA BAND  (reuse same dark navy style as homepage)
───────────────────────────────────────── */
.services-cta {
  background: var(--navy);
  position: relative;
  z-index: 3;
  padding: 80px 0;
  overflow: hidden;
}

/* Subtle grid on CTA */
.services-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.services-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.services-cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: var(--fw-black);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.services-cta__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.services-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────
   REVEAL ANIMATION  (mirrors global approach)
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease),
              transform 0.65s var(--ease);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

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

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: calc(var(--nav-h) + 48px) 0 48px;
  }

  .services-hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .services-detail {
    padding: 64px 0 56px;
  }

  .services-detail__grid {
    grid-template-columns: 1fr;
  }

  .pricing {
    padding: 64px 0 72px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .process {
    padding: 60px 0 64px;
  }

  .process__steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
  }

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

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

  /* Pricing cards — full width and comfortable padding on phones */
  .pricing__grid { padding: 0 0.25rem; }
  .pricing-card  { padding: 1.75rem 1.5rem; }

  /* Hero title fits on one screen */
  .services-hero__title { font-size: clamp(1.8rem, 9vw, 2.4rem); }

  /* Svc cards — remove tilt on touch (prevents sticky state) */
  .svc-card { touch-action: manipulation; }
}
