html {
  scroll-behavior: smooth;
}

body {
  scroll-padding-top: 90px;
  background-color: #faf7f2;
  background-image: radial-gradient(circle, rgba(31, 58, 38, 0.07) 1px, transparent 1.5px);
  background-size: 20px 20px;
}

/* Logo mark: crops the circular badge out of images/Logo.png, hiding the
   phone-number strip printed underneath it in the source artwork */
.logo-mark {
  background-image: url('../images/Logo.png');
  background-size: auto 112%;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #faf7f2;
}

/* Vintage "stamp" buttons: hard offset shadow instead of a soft blur,
   like a printed badge pressed onto the page */
.stamp-btn,
.outline-btn {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 #1f3a26;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.stamp-btn:hover,
.outline-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1f3a26;
}

.outline-btn:hover {
  background-color: #24452d;
  color: #faf7f2;
}

/* Slow rotating dashed ring behind the hero logo */
.spin-slow {
  animation: spin-slow 40s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-question {
  cursor: pointer;
}

/* Grass clippings flung from the before/after slider handle while dragging.
   Layer sits above everything, fixed to the viewport, so clippings aren't
   cropped by the slider photo's own rounded/overflow-hidden edges. */
.grass-fx-layer {
  position: fixed;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 60;
}

.grass-clipping {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 11px;
  background: currentColor;
  border-radius: 60% 60% 40% 40% / 80% 80% 20% 20%;
  animation-name: grass-fall;
  animation-duration: var(--fall-duration, 700ms);
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes grass-fall {
  0% {
    transform: translate(0, 0) rotate(var(--start-rot, 0deg));
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx, 0px), var(--ty, 60px)) rotate(var(--end-rot, 180deg));
    opacity: 0;
  }
}

/* Phone-only "mow the lawn" reveal for the service cards. The wonky tilt
   only made sense on desktop, where hovering straightens it out - there's
   no hover on a phone, so the cards just look off-kilter for no reason. */
.service-card {
  position: relative;
}

@media (max-width: 767px) {
  .service-card {
    transform: none !important;
  }
}

/* Reviews carousel track: JS sets transform for sliding/looping, transition
   is toggled off during the instant wrap-around jump so it stays invisible */
#reviews-track {
  transition: transform 600ms ease;
}

#reviews-track.jumping {
  transition: none;
}

.grass-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 10;
  background-image: repeating-linear-gradient(115deg, #68a374 0 16px, #468655 16px 32px);
  clip-path: inset(0 0 0 0%);
  transition: clip-path 2200ms linear;
  pointer-events: none;
}

.service-card.mowed .grass-cover {
  clip-path: inset(0 0 0 100%);
}

.grass-mower {
  position: absolute;
  top: 50%;
  left: 0%;
  z-index: 11;
  width: 2.5rem;
  height: 2.5rem;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: #faf7f2;
  border: 2px solid #24452d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #24452d;
  transition: left 2200ms linear;
  pointer-events: none;
}

.grass-mower svg {
  width: 1.4rem;
  height: 1.4rem;
}

.service-card.mowed .grass-mower {
  left: 100%;
}
