/* ============================================================
   /services/{slug} — one-off service pages (Modular Booths, Custom Booths).
   Design reference: exhibitorly_base44 (visual/behavioral only, rebuilt in
   plain CSS/JS — no React/Tailwind). See CLAUDE.md + ServicePageData.php.
   Relies on --hp-dark/--hp-lime already defined in shared_sections.css
   (always loaded alongside this file — see service_page.blade.php).
   ============================================================ */

/* ---------------- Shared bits ---------------- */
.svc_hero .container,
.svc_hiw .container,
.svc_compare .container,
.svc_reasons .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}
@media (min-width: 768px) {
  .svc_hero .container,
  .svc_hiw .container,
  .svc_compare .container,
  .svc_reasons .container {
    padding: 0 45px;
  }
}

.svc_cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.svc_cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.svc_cta-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.svc_cta-btn--primary {
  background: var(--hp-lime);
  color: var(--hp-dark);
  font-size: 16px;
  padding: 14px 32px;
}
.svc_cta-btn--secondary {
  background: var(--hp-dark);
  color: var(--hp-lime);
  font-size: 14px;
  padding: 11px 24px;
}

/* ---------------- Hero ---------------- */
.svc_hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.svc_hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.svc_hero-media video,
.svc_hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc_hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25));
}
.svc_hero .container {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 72px;
  width: 100%;
}
.svc_hero h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 0 20px;
}
.svc_hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 28px;
}
@media (min-width: 768px) {
  .svc_hero h1 {
    font-size: 44px;
  }
}
@media (min-width: 1024px) {
  .svc_hero h1 {
    font-size: 54px;
  }
}

/* ---------------- How it works ---------------- */
.svc_hiw {
  padding: 80px 0;
  background: #fff;
}
.svc_hiw .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .svc_hiw .container {
    grid-template-columns: 1fr 1fr;
  }
}
.svc_hiw h2 {
  color: #111827;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 22px;
}
.svc_hiw p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

/* ---------------- Hotspot booth image ---------------- */
.svc_hotspot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  background: #f3f4f6;
}
.svc_hotspot img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.svc_hotspot-hint {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--hp-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.svc_hotspot-hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hp-lime);
  animation: svcPulseDot 1.6s ease-in-out infinite;
}
@keyframes svcPulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.svc_hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.svc_hotspot-pin-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(207, 255, 127, 0.6);
  animation: svcPinPulse 1.8s ease-out infinite;
}
.svc_hotspot-pin.is-active .svc_hotspot-pin-ring {
  display: none;
}
@keyframes svcPinPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
.svc_hotspot-pin-dot {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hp-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition:
    background 0.25s,
    transform 0.25s;
}
.svc_hotspot-pin-dot svg {
  width: 16px;
  height: 16px;
  color: var(--hp-dark);
}
.svc_hotspot-pin.is-active .svc_hotspot-pin-dot {
  background: var(--hp-dark);
  transform: scale(1.1);
}
.svc_hotspot-pin.is-active .svc_hotspot-pin-dot svg {
  color: var(--hp-lime);
}
.svc_hotspot-callout {
  position: absolute;
  z-index: 10;
  width: 220px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  padding: 14px 16px;
  display: none;
}
.svc_hotspot-callout.is-open {
  display: block;
}
.svc_hotspot-callout h4 {
  color: var(--hp-dark);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.svc_hotspot-callout p {
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

/* ---------------- Before / after compare (dark green, matching Our Process) ---------------- */
.svc_compare {
  padding: 80px 0;
  background: linear-gradient(135deg, #0c2e16 0%, #1a4a2a 100%);
  position: relative;
  overflow: hidden;
}
.svc_compare-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: var(--hp-lime);
  filter: blur(64px);
  pointer-events: none;
}
.svc_compare-glow--1 {
  top: -80px;
  left: -80px;
  opacity: 0.15;
}
.svc_compare-glow--2 {
  bottom: -80px;
  right: -80px;
  opacity: 0.1;
}
.svc_compare .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .svc_compare .container {
    grid-template-columns: 1fr 1fr;
  }
}
.svc_compare-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  background: #f3f4f6;
  aspect-ratio: 1 / 1;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.svc_compare-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  max-width: none;
}
.svc_compare-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.svc_compare-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
}
.svc_compare-label--before {
  left: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.svc_compare-label--after {
  right: 16px;
  background: rgba(12, 46, 22, 0.85);
}
.svc_compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.svc_compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--hp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.svc_compare-handle svg {
  width: 18px;
  height: 18px;
}
.svc_compare-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin: 12px 0 0;
}
.svc_compare h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 22px;
}
.svc_compare-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc_compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
}
.svc_compare-list-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hp-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.svc_compare-list-check svg {
  width: 13px;
  height: 13px;
  color: var(--hp-dark);
}
/* This section's CTA reuses .svc_cta-btn--secondary (dark-bg/lime-text
   everywhere else it's used, on light sections) — inverted here so it
   still pops against the section's own dark green background, same
   light-bg/dark-text treatment the Booth Options section's CTA already
   uses on its identical dark background. */
.svc_compare .svc_cta-btn--secondary {
  background: var(--hp-lime);
  color: var(--hp-dark);
}

/* ---------------- Top 3 reasons ---------------- */
.svc_reasons {
  padding: 80px 0;
  background: #fff;
}
.svc_reasons h2 {
  text-align: center;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 44px;
}
.svc_reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .svc_reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Static card — icon, title, and description all visible at once, nothing
   gated behind hover. (Used to be a flip card revealing the description
   only on :hover, which never worked on touch/no-hover devices and had no
   real accessible fallback — screen readers don't get told a CSS flip
   happened. Research: hover-only reveal is a well-documented mobile/
   accessibility failure mode for this exact "3 benefit cards" pattern; the
   fix is to stop gating the content, not to switch the trigger to a tap.)
   The hover-lift below is a pointer-only bonus — it never hides or reveals
   content, so a device with no hover just renders the card at rest. */
.svc_reason {
  background: linear-gradient(135deg, var(--hp-lime), #a8e85f);
  border: 1px solid #9ad94a;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.svc_reason:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(12, 46, 22, 0.18);
}
.svc_reason-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(12, 46, 22, 0.08);
  margin-bottom: 18px;
}
.svc_reason-icon svg {
  width: 26px;
  height: 26px;
  color: var(--hp-dark);
}
/* Self-drawing stroke animation — same technique and timing as the Our
   Process section's icons elsewhere on this page (see shared_process.css's
   .shared_process-draw), continuous and hover-independent so it works the
   same on every device, no interaction required (this section's cards were
   just made always-visible for exactly that reason — see the .svc_reason
   docblock above). Scoped to [pathLength] specifically, not every child
   shape: the palette icon's 4 small color-dot circles are filled accents
   without a pathLength attribute, so they're deliberately excluded — an
   un-normalized stroke-dasharray on a ~3px-circumference circle would draw
   a broken dashed ring around each dot instead of a clean animation. */
.svc_reason-icon-draw circle[pathLength],
.svc_reason-icon-draw path[pathLength],
.svc_reason-icon-draw rect[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: svcReasonDraw 2.6s ease-in-out infinite;
}
@keyframes svcReasonDraw {
  0% {
    stroke-dashoffset: 1;
  }
  55% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.svc_reason h3 {
  color: var(--hp-dark);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}
.svc_reason p {
  color: rgba(12, 46, 22, 0.75);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .svc_hotspot-pin-ring,
  .svc_hotspot-hint-dot,
  .svc_reason,
  .svc_reason-icon-draw *,
  .svc_cta-btn {
    animation: none !important;
    transition: none !important;
  }
}
