/* FastRide service pages — logo-aligned purple + gold theme, imagery, motion */

@keyframes php-service-kenburns {
  0% {
    transform: scale(1.08) translate(0, 0);
  }
  100% {
    transform: scale(1.14) translate(-1%, -0.5%);
  }
}

@keyframes php-service-hero-content {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes php-service-badge {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 28px -12px rgba(106, 0, 255, 0.35);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px -14px rgba(255, 191, 0, 0.45), 0 8px 28px -12px rgba(106, 0, 255, 0.25);
  }
}

@keyframes php-service-glow-sweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

body:has(.php-service-shell) {
  background:
    radial-gradient(ellipse 100% 70% at 0% -10%, rgba(106, 0, 255, 0.11), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 5%, rgba(255, 208, 0, 0.12), transparent 50%),
    linear-gradient(180deg, #f5f2ff 0%, #ffffff 35%, #f8f9fc 100%);
}

.php-service-shell {
  position: relative;
}

/* Nav: clearer glass + gold accent when solid */
.php-service-shell > nav.php-nav-solid {
  border-bottom-color: rgba(106, 0, 255, 0.08) !important;
  box-shadow: 0 12px 40px -24px rgba(106, 0, 255, 0.18) !important;
}

.php-service-shell nav a[href="/"] img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  border-radius: 0.45rem;
}

.php-service-shell nav a[href="/"]:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(106, 0, 255, 0.2));
}

/* Hero height: use .php-service-hero.php-hero-viewport on the section */

.php-service-shell .php-service-hero > .absolute.inset-0.bg-cover {
  animation: php-service-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .php-service-shell .php-service-hero > .absolute.inset-0.bg-cover {
    animation: none;
    transform: scale(1.08);
  }

  .php-service-shell .php-service-hero .relative.z-10 {
    animation: none !important;
  }

  .php-service-shell .php-service-hero span[class*="rounded-full"][class*="mb-6"] {
    animation: none !important;
  }
}

/* Hero CTA block entrance */
.php-service-shell .php-service-hero .relative.z-10.container {
  animation: php-service-hero-content 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Top pill badge under hero title area */
.php-service-shell .php-service-hero .relative.z-10 span.inline-block[class*="rounded-full"][class*="mb-6"] {
  animation: php-service-badge 5s ease-in-out infinite;
  border-color: rgba(255, 208, 0, 0.45) !important;
  background: linear-gradient(135deg, rgba(106, 0, 255, 0.18), rgba(255, 191, 0, 0.22)) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(17, 24, 39, 0.25);
}

.php-service-shell .php-service-hero h1 {
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.03em;
}

.php-service-shell .php-service-hero h1 .text-secondary {
  background: linear-gradient(120deg, #ffbf00, #ffd54a, #e6a800, #ffbf00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: php-service-glow-sweep 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .php-service-shell .php-service-hero h1 .text-secondary {
    animation: none;
    background: none;
    color: hsl(var(--secondary)) !important;
    -webkit-text-fill-color: currentColor;
  }
}

/* Content sections: subtle full-bleed imagery */
.php-service-shell > section.section-padding {
  position: relative;
  isolation: isolate;
}

.php-service-shell > section.section-padding::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 244, 255, 0.88) 100%),
    var(--php-svc-bg, url("/assets/images/section-bg-city.jpg"));
  background-size: cover;
  background-position: center;
}

.php-service-shell > section.section-padding:nth-of-type(2n)::before {
  --php-svc-bg: url("/assets/images/section-bg-road.jpg");
  opacity: 0.16;
}

.php-service-shell > section.section-padding:nth-of-type(2n + 1):not(:first-of-type)::before {
  --php-svc-bg: url("/assets/images/hero-bg.jpg");
  opacity: 0.12;
}

.php-service-shell > section.section-padding .container {
  position: relative;
  z-index: 1;
}

/* Section headings — gold underline accent */
.php-service-shell > section.section-padding h2.font-heading.font-black {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: none;
}

.php-service-shell > section.section-padding .text-center h2.font-heading.font-black::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.28rem;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a00ff, #ffbf00, #6a00ff);
  background-size: 200% 100%;
  animation: php-service-glow-sweep 6s linear infinite;
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .php-service-shell > section.section-padding .text-center h2.font-heading.font-black::after {
    animation: none;
    background: linear-gradient(90deg, #6a00ff, #ffbf00);
  }
}

/* Pill labels in sections */
.php-service-shell > section.section-padding .text-center .inline-block[class*="rounded-full"][class*="mb-4"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px -8px rgba(106, 0, 255, 0.2);
}

.php-service-shell > section.section-padding .text-center .inline-block[class*="rounded-full"][class*="mb-4"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(106, 0, 255, 0.28);
}

/* Step row (4 columns) */
.php-service-shell section .grid.md\:grid-cols-4.gap-6 > .group .gradient-gold {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.php-service-shell section .grid.md\:grid-cols-4.gap-6 > .group:hover .gradient-gold {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 16px 40px -16px rgba(255, 191, 0, 0.55), 0 12px 32px -18px rgba(106, 0, 255, 0.25);
}

/* Glass / feature cards */
.php-service-shell .glass-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease !important;
  border-radius: 1.1rem !important;
}

.php-service-shell .glass-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  border-color: rgba(106, 0, 255, 0.25) !important;
  box-shadow: 0 24px 48px -28px rgba(106, 0, 255, 0.2), 0 0 0 1px rgba(255, 208, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.php-service-shell .glass-card .gradient-purple,
.php-service-shell .glass-card .rounded-xl.gradient-purple {
  transition: transform 0.35s ease;
}

.php-service-shell .glass-card:hover .gradient-purple {
  transform: scale(1.06) rotate(-2deg);
}

/* Primary CTA buttons in content */
.php-service-shell .gradient-purple.shimmer,
.php-service-shell a.gradient-purple {
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
}

.php-service-shell .gradient-purple.shimmer:hover,
.php-service-shell a.gradient-purple:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 18px 42px -18px rgba(106, 0, 255, 0.55), 0 0 24px -8px rgba(255, 191, 0, 0.35) !important;
  filter: brightness(1.05);
}

/* FAQ accordion cards on service pages */
.php-service-shell section .bg-card.rounded-xl.border {
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.php-service-shell section .bg-card.rounded-xl.border:hover {
  border-color: rgba(106, 0, 255, 0.22) !important;
  box-shadow: 0 14px 36px -24px rgba(106, 0, 255, 0.25);
}

.php-service-shell .php-faq-open.bg-card.rounded-xl {
  border-color: rgba(106, 0, 255, 0.35) !important;
  box-shadow: 0 20px 44px -28px rgba(106, 0, 255, 0.3);
}

/* Footer band */
.php-service-shell footer.gradient-purple {
  position: relative;
  overflow: hidden;
}

.php-service-shell footer.gradient-purple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/section-bg-city.jpg") center/cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.php-service-shell footer.gradient-purple > .container {
  position: relative;
  z-index: 1;
}

.php-service-shell footer a:hover {
  transform: translateY(-2px);
  transition: transform 0.25s ease;
}

/* Decorative orbs from JS (php-hero-shell) — tune for service heroes */
.php-service-shell .php-service-hero .php-hero-beam {
  opacity: 0.55;
}

.php-service-shell .php-service-hero .php-hero-grid {
  opacity: 0.14;
}

/* Extra polish: unified purple-gold motion language */
.php-service-shell > section.section-padding .bg-card,
.php-service-shell > section.section-padding .glass-card {
  position: relative;
  overflow: hidden;
}

.php-service-shell > section.section-padding .bg-card::before,
.php-service-shell > section.section-padding .glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 12%, rgba(255,255,255,.22) 30%, rgba(255,255,255,0) 46%);
  transform: translateX(-125%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.php-service-shell > section.section-padding .bg-card:hover::before,
.php-service-shell > section.section-padding .glass-card:hover::before {
  transform: translateX(120%);
}

.php-service-shell > section.section-padding .bg-card .gradient-purple,
.php-service-shell > section.section-padding .glass-card .gradient-purple {
  box-shadow: 0 12px 26px -16px rgba(106, 0, 255, 0.55);
}

.php-service-shell > section.section-padding .bg-card:hover .gradient-purple,
.php-service-shell > section.section-padding .glass-card:hover .gradient-purple {
  box-shadow: 0 18px 36px -18px rgba(106, 0, 255, 0.6), 0 10px 26px -20px rgba(255, 191, 0, 0.62);
}

.php-service-shell .php-service-hero .absolute.w-1.h-1 {
  animation: phpFloat 10s ease-in-out infinite;
}

.php-service-shell .php-service-hero .absolute.w-1.h-1:nth-child(2n) {
  animation-duration: 13s;
}
