/* Valentine Repair — clickable-tiles-2026-07-04.css
   Anti-gravity service tiles. 12 tiles, each links to /services/<slug>.
   Replaces the decorative hero floaters with clickable service tiles
   while preserving the floating mouse-parallax aesthetic.

   - 12 .service-tile anchors in a CSS grid (responsive)
   - Each tile: SVG icon + service name + starting price + small "→"
   - Hover/focus: lift, glow accent border, show CTA hint
   - Keyboard accessible: visible focus ring, link semantics
   - Reduced-motion: tiles fall back to static (no parallax)

   The parallax mouse-follow behaviour is shared with the previous
   .floater implementation via the polish-2026-07-02.js script which
   reads data-depth / data-drift / data-duration from any element with
   class .service-tile (it uses a generic selector — see tile selector
   registration in the JS adapter). */

.service-tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  padding: 8px 0 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px 14px 18px;
  text-decoration: none;
  color: var(--text, #f4f4f5);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(245, 177, 74, 0.18);
  border-radius: 16px;
  min-height: 168px;
  text-align: center;
  transition:
    transform 220ms cubic-bezier(.2,.7,.2,1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  will-change: transform;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --bob-y: 0px;
  transform: translate3d(var(--parallax-x), var(--bob-y), 0);
}

.service-tile:hover,
.service-tile:focus-visible {
  transform: translate3d(var(--parallax-x), calc(var(--bob-y) - 4px), 0);
  border-color: var(--accent, #f5b14a);
  background: linear-gradient(180deg,
    rgba(245, 177, 74, 0.10) 0%,
    rgba(245, 177, 74, 0.04) 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 177, 74, 0.35);
}

.service-tile:focus-visible {
  outline: 2px solid var(--accent, #f5b14a);
  outline-offset: 3px;
}

.service-tile .tile-icon {
  width: 44px;
  height: 44px;
  display: block;
  color: var(--accent, #f5b14a);
  flex: 0 0 auto;
}

.service-tile .tile-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.15;
  margin: 4px 0 0;
  color: var(--text, #f4f4f5);
}

.service-tile .tile-price {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted, rgba(244, 244, 245, 0.65));
}

.service-tile .tile-price strong {
  color: var(--text, #f4f4f5);
  font-weight: 600;
}

.service-tile .tile-cta {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent, #f5b14a);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.service-tile:hover .tile-cta,
.service-tile:focus-visible .tile-cta {
  opacity: 1;
  transform: translateX(0);
}

/* On small screens the tiles are denser; tile icons shrink slightly */
@media (max-width: 720px) {
  .service-tile { min-height: 150px; padding: 16px 10px 14px; }
  .service-tile .tile-icon { width: 38px; height: 38px; }
  .service-tile .tile-name { font-size: 1.05rem; }
}

/* Reduced motion: drop parallax, keep tile click affordances */
@media (prefers-reduced-motion: reduce) {
  .service-tile { transform: none !important; }
  .service-tile:hover,
  .service-tile:focus-visible { transform: none !important; }
}

/* Container that wraps the section header + tiles */
.service-tiles-section {
  padding-top: 32px;
  padding-bottom: 24px;
}

.service-tiles-section .section-header {
  margin-bottom: 28px;
}