
/* ==========================================================
   CERON'S LANDSCAPING LLC
   MOTION SYSTEM 2.0

   Editorial / Architectural / Interactive

   Load after the existing section styles.
   All content stays visible without JavaScript.
========================================================== */


/* ==========================================================
   01. MOTION TOKENS
========================================================== */

:root {
  --ceron-motion-ease:
    cubic-bezier(.22, 1, .36, 1);

  --ceron-motion-duration: .85s;
}


/* ==========================================================
   02. SERVICE CARD ENTRANCE

   CSS custom properties prevent GSAP and CSS hover
   from fighting over the transform property.
========================================================== */

.ceron-services__card {
  --ceron-enter-y: 0px;
  --ceron-enter-scale: 1;

  transform:
    translate3d(0, var(--ceron-enter-y), 0)
    scale(var(--ceron-enter-scale));
}

.ceron-services__card:hover {
  transform:
    translate3d(
      0,
      calc(var(--ceron-enter-y) - 4px),
      0
    )
    scale(var(--ceron-enter-scale));
}


/* ==========================================================
   03. IMAGE DEPTH

   Extra image room allows subtle parallax without
   exposing empty areas at the card edges.
========================================================== */

.ceron-services__card-media {
  inset: -8% 0;
}


/* ==========================================================
   04. INTERACTIVE PHOTO SPOTLIGHT

   Very subtle light response to pointer position.
   Does not affect card text readability.
========================================================== */

.ceron-services__card-shade::after {
  content: '';

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle var(--ceron-pointer-radius, 220px)
      at
      var(--ceron-pointer-x, 50%)
      var(--ceron-pointer-y, 50%),

      rgba(255, 255, 255, .14),
      transparent 76%
    );

  opacity: 0;

  pointer-events: none;

  transition:
    opacity .25s ease;
}

.ceron-services__card:hover
.ceron-services__card-shade::after,

.ceron-services__card:focus-visible
.ceron-services__card-shade::after {
  opacity: 1;
}


/* ==========================================================
   05. ADDITIONAL SERVICE CARD MOTION
========================================================== */

.ceron-services__group {
  --ceron-enter-y: 0px;

  transform:
    translate3d(0, var(--ceron-enter-y), 0);

  transition:
    transform .45s var(--ceron-motion-ease),
    box-shadow .45s var(--ceron-motion-ease),
    border-color .3s ease;
}

.ceron-services__group:hover {
  transform:
    translate3d(
      0,
      calc(var(--ceron-enter-y) - 5px),
      0
    );

  border-color: rgba(200, 33, 39, .27);

  box-shadow: var(--ceron-shadow-soft);
}


/* ==========================================================
   06. IMAGE FALLBACK SAFETY
========================================================== */

.ceron-hero__photo[hidden],
.ceron-services__card-media img[hidden] {
  display: none !important;
}


/* ==========================================================
   07. RENDERING STABILITY
========================================================== */

.ceron-hero__photo,
.ceron-services__card-media,
.ceron-services__card-shade::after {
  backface-visibility: hidden;
}


/* ==========================================================
   08. REDUCED MOTION
========================================================== */

html.ceron-reduced-motion
.ceron-services__card,

html.ceron-reduced-motion
.ceron-services__group,

html.ceron-reduced-motion
.ceron-services__card-shade::after {
  transition: none !important;
  transform: none !important;
}

html.ceron-reduced-motion
.ceron-services__card-media {
  transform: none !important;
  clip-path: none !important;
}


/* ==========================================================
   09. RESPONSIVE — FOUR SHARED BREAKPOINTS
========================================================== */


/* 1. DESKTOP */

@media (min-width: 1200px) {

  .ceron-services__card {
    --ceron-pointer-radius: 280px;
  }

}


/* 2. TABLET */

@media (min-width: 768px) and (max-width: 1199px) {

  .ceron-services__card-media {
    inset: -5% 0;
  }

  .ceron-services__card {
    --ceron-pointer-radius: 180px;
  }

}


/* 3. MOBILE */

@media (min-width: 480px) and (max-width: 767px) {

  .ceron-services__card-media {
    inset: 0;
  }

  .ceron-services__card-shade::after {
    display: none;
  }

}


/* 4. SMALL MOBILE */

@media (max-width: 479px) {

  .ceron-services__card-media {
    inset: 0;
  }

  .ceron-services__card-shade::after {
    display: none;
  }

  .ceron-services__group:hover {
    transform:
      translate3d(0, var(--ceron-enter-y), 0);
  }

}

/* ==========================================================
   CERON'S LANDSCAPING LLC
   MOTION SYSTEM 3.0 — STABILITY PATCH

   Add at the END of /css/motion.css

   - Separates hover from GSAP transforms
   - Prevents transform transition conflicts
   - Adds a subtle photographic unveiling layer
   - Preserves all four existing breakpoints
========================================================== */


/* ==========================================================
   01. PHOTOGRAPHIC CARDS
========================================================== */

.ceron-services__card {
  transform: none;

  translate: 0 0;

  transition:
    translate .38s var(--ceron-ease),
    box-shadow .45s var(--ceron-ease),
    border-color .3s ease;
}

.ceron-services__card:hover {
  transform: none;

  translate: 0 -4px;
}

.ceron-services__card:active {
  translate: 0 -1px;
}


/* ==========================================================
   02. PHOTOGRAPHIC REVEAL
   The photo always remains visible.
========================================================== */

.ceron-services__card-media::after {
  content: '';

  position: absolute;

  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    rgba(
      247,
      243,
      239,
      var(--ceron-photo-veil, 0)
    );
}


/* ==========================================================
   03. INFORMATIONAL SERVICE CARDS
========================================================== */

.ceron-services__group {
  transform: none;

  translate: 0 0;

  transition:
    translate .38s var(--ceron-ease),
    box-shadow .45s var(--ceron-ease),
    border-color .3s ease;
}

.ceron-services__group:hover {
  transform: none;

  translate: 0 -5px;
}


/* ==========================================================
   04. ACCESSIBILITY
========================================================== */

html.ceron-reduced-motion
.ceron-services__card,

html.ceron-reduced-motion
.ceron-services__group {
  transform: none !important;
  translate: 0 0 !important;

  transition: none !important;
}

html.ceron-reduced-motion
.ceron-services__card-media::after {
  background: transparent !important;
}


/* ==========================================================
   05. TOUCH & RESTORATION SAFETY
========================================================== */

.ceron-services__card,
.ceron-services__group {
  backface-visibility: hidden;
}

.ceron-services__card-media img {
  transform-origin: center;
}
