/* ==========================================
   Wacky Weedeating — styles.css
   Mobile-first responsive design
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --yellow: #FBFF85;
  --dark-text: #1A1A1A;
  --dark-accent: #2D2D2D;
  --cta-dark: #1A1A1A;
  --cta-dark-hover: #000000;
  --white: #FFFFFF;
  --light-gray: #F5F5F0;
  --font-heading: 'Lexend Deca', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  scrollbar-color: var(--dark-accent) var(--yellow);
  background-color: var(--yellow);
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--yellow);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-text);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-subtitle {
  color: #555;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(251, 255, 133, 0.6);
  z-index: 1001;
}

.scroll-progress::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -2px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(251, 255, 133, 0.8);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}


.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--cta-dark);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--cta-dark-hover);
}

.hero .btn-primary,
.service-areas .btn-primary,
.service-hero .btn-primary {
  background-color: var(--dark-accent);
  color: var(--yellow);
}

.hero .btn-primary:hover,
.service-areas .btn-primary:hover,
.service-hero .btn-primary:hover {
  background-color: var(--cta-dark-hover);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--dark-text);
  border: 2px solid var(--dark-text);
}

.btn-secondary:hover {
  background-color: var(--dark-text);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ---------- H2 Hand-Drawn Underlines ---------- */
section h2 {
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-bottom: 14px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 6px;
  background: var(--yellow);
  transform: skewX(-12deg) rotate(-0.5deg);
  border-radius: 2px;
}

/* Dark underline on yellow backgrounds */
.about h2::after,
.service-areas h2::after,
.contact h2::after,
.service-hero h2::after {
  background: var(--dark-accent);
}

/* Left-aligned h2 on service detail pages */
.service-detail-content h2 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--dark-accent);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* "Wacky" text — no tilt at rest, wobble only on hover (via JS class) */
.logo-wacky {
  color: var(--yellow);
  display: inline-block;
}

/* Wacky letter spans (created by JS for per-letter animations) */
.wacky-letter {
  display: inline-block;
}

/* Hover animation 1: Wobble */
.logo-wacky.wacky-wobble {
  animation: wobble-fast 0.6s ease-in-out !important;
}

/* Hover animation 2: Flip */
.logo-wacky.wacky-flip {
  animation: wacky-flip 0.6s ease-in-out !important;
}

@keyframes wacky-flip {
  0% { transform: perspective(400px) rotateY(0deg); }
  100% { transform: perspective(400px) rotateY(360deg); }
}

/* Hover animation 3: Scatter letters */
.logo-wacky.wacky-scatter .wacky-letter:nth-child(1) { animation: scatter-1 0.6s ease-in-out; }
.logo-wacky.wacky-scatter .wacky-letter:nth-child(2) { animation: scatter-2 0.6s ease-in-out; }
.logo-wacky.wacky-scatter .wacky-letter:nth-child(3) { animation: scatter-3 0.6s ease-in-out; }
.logo-wacky.wacky-scatter .wacky-letter:nth-child(4) { animation: scatter-4 0.6s ease-in-out; }
.logo-wacky.wacky-scatter .wacky-letter:nth-child(5) { animation: scatter-5 0.6s ease-in-out; }

@keyframes scatter-1 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-14px, -12px) rotate(-25deg); }
}
@keyframes scatter-2 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-6px, -18px) rotate(18deg); }
}
@keyframes scatter-3 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(3px, -20px) rotate(-15deg); }
}
@keyframes scatter-4 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(10px, -16px) rotate(22deg); }
}
@keyframes scatter-5 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(16px, -10px) rotate(-28deg); }
}

/* Hover animation 4: Rubberband */
.logo-wacky.wacky-rubberband {
  animation: wacky-rubberband 0.7s ease-in-out !important;
}

@keyframes wacky-rubberband {
  0% { transform: scaleX(1) scaleY(1); }
  30% { transform: scaleX(1.3) scaleY(0.7); }
  40% { transform: scaleX(0.75) scaleY(1.25); }
  50% { transform: scaleX(1.15) scaleY(0.85); }
  65% { transform: scaleX(0.95) scaleY(1.05); }
  75% { transform: scaleX(1.05) scaleY(0.95); }
  100% { transform: scaleX(1) scaleY(1); }
}

/* Hover animation 5: Wave */
.logo-wacky.wacky-wave .wacky-letter {
  animation: wacky-wave-up 0.6s ease-in-out;
}
.logo-wacky.wacky-wave .wacky-letter:nth-child(1) { animation-delay: 0s; }
.logo-wacky.wacky-wave .wacky-letter:nth-child(2) { animation-delay: 0.06s; }
.logo-wacky.wacky-wave .wacky-letter:nth-child(3) { animation-delay: 0.12s; }
.logo-wacky.wacky-wave .wacky-letter:nth-child(4) { animation-delay: 0.18s; }
.logo-wacky.wacky-wave .wacky-letter:nth-child(5) { animation-delay: 0.24s; }

@keyframes wacky-wave-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hover animation 6: Jello — elastic skew wobble */
.logo-wacky.wacky-jello {
  animation: wacky-jello 0.8s ease-in-out !important;
}

@keyframes wacky-jello {
  0% { transform: skewX(0deg) skewY(0deg); }
  11% { transform: skewX(-12deg) skewY(-3deg); }
  22% { transform: skewX(8deg) skewY(2deg); }
  33% { transform: skewX(-5deg) skewY(-1.5deg); }
  44% { transform: skewX(3deg) skewY(1deg); }
  55% { transform: skewX(-2deg) skewY(-0.5deg); }
  66% { transform: skewX(1deg) skewY(0.3deg); }
  100% { transform: skewX(0deg) skewY(0deg); }
}

/* Hover animation 7: Spin — full 360° rotation */
.logo-wacky.wacky-spin {
  animation: wacky-spin 0.5s ease-in-out !important;
}

@keyframes wacky-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.85); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Hover animation 8: Domino — letters topple over in sequence */
.logo-wacky.wacky-domino .wacky-letter {
  animation: wacky-domino-fall 0.5s ease-in-out;
}
.logo-wacky.wacky-domino .wacky-letter:nth-child(1) { animation-delay: 0s; }
.logo-wacky.wacky-domino .wacky-letter:nth-child(2) { animation-delay: 0.08s; }
.logo-wacky.wacky-domino .wacky-letter:nth-child(3) { animation-delay: 0.16s; }
.logo-wacky.wacky-domino .wacky-letter:nth-child(4) { animation-delay: 0.24s; }
.logo-wacky.wacky-domino .wacky-letter:nth-child(5) { animation-delay: 0.32s; }

@keyframes wacky-domino-fall {
  0%, 100% { transform: rotateZ(0deg); transform-origin: bottom left; }
  40% { transform: rotateZ(-20deg); transform-origin: bottom left; }
  60% { transform: rotateZ(10deg); transform-origin: bottom left; }
  80% { transform: rotateZ(-5deg); transform-origin: bottom left; }
}

/* Hover animation 9: Bounce drop — letters drop and bounce */
.logo-wacky.wacky-drop .wacky-letter {
  animation: wacky-drop-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-wacky.wacky-drop .wacky-letter:nth-child(1) { animation-delay: 0s; }
.logo-wacky.wacky-drop .wacky-letter:nth-child(2) { animation-delay: 0.05s; }
.logo-wacky.wacky-drop .wacky-letter:nth-child(3) { animation-delay: 0.1s; }
.logo-wacky.wacky-drop .wacky-letter:nth-child(4) { animation-delay: 0.15s; }
.logo-wacky.wacky-drop .wacky-letter:nth-child(5) { animation-delay: 0.2s; }

@keyframes wacky-drop-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(10px); }
  50% { transform: translateY(-8px); }
  70% { transform: translateY(4px); }
  85% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* Hover animation 10: Glitch — rapid jitter */
.logo-wacky.wacky-glitch {
  animation: wacky-glitch 0.4s steps(8) !important;
}

@keyframes wacky-glitch {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-3px, 2px) skewX(2deg); }
  25% { transform: translate(2px, -2px) skewX(-3deg); }
  37% { transform: translate(-2px, -1px) skewX(1deg); }
  50% { transform: translate(3px, 1px) skewX(-2deg); }
  62% { transform: translate(-1px, 2px) skewX(3deg); }
  75% { transform: translate(2px, -1px) skewX(-1deg); }
  87% { transform: translate(-2px, 1px) skewX(2deg); }
  100% { transform: translate(0, 0) skewX(0deg); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(2deg) scale(1.02); }
  75% { transform: rotate(-2deg) scale(1.02); }
}

@keyframes wobble-fast {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(4deg) scale(1.05); }
  40% { transform: rotate(-4deg) scale(1.05); }
  60% { transform: rotate(3deg) scale(1.03); }
  80% { transform: rotate(-3deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(1); }
}

.logo-weed {
  color: var(--white);
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  color: #ccc;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--yellow);
}

/* Phone ring/shake animation */
@keyframes phone-ring {
  0%, 90% { transform: rotate(0deg); }
  91% { transform: rotate(8deg); }
  93% { transform: rotate(-8deg); }
  94.5% { transform: rotate(6deg); }
  96% { transform: rotate(-6deg); }
  97.5% { transform: rotate(4deg); }
  99% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  background-color: var(--yellow);
  color: var(--dark-text);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  white-space: nowrap;
  animation: phone-ring 4s ease-in-out infinite;
}

.nav-cta:hover {
  background-color: #e6e978;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile nav overlay */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--dark-accent);
  padding: 20px;
  gap: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-links.open li {
  border-bottom: 1px solid #444;
}

.nav-links.open a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  background-color: var(--yellow);
  padding: 120px 0 100px;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: left;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: #333;
  max-width: 640px;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-checks li {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark-text);
}

.hero-checks li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 800;
  margin-right: 8px;
}

/* ==========================================
   Hero Image
   ========================================== */
.hero-doodle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 85%;
  max-width: 408px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* ==========================================
   Before / After Comparison Slider
   ========================================== */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  aspect-ratio: 4 / 3;
  background: var(--dark-accent);
}

.ba-slider__after,
.ba-slider__before {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-slider__after {
  z-index: 1;
}

.ba-slider__before {
  z-index: 2;
  width: 50%;
}

.ba-slider__after img,
.ba-slider__before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* The before image needs to not shrink with its container */
.ba-slider__before img {
  width: calc(var(--slider-width, 500px));
  max-width: none;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  touch-action: none;
}

.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--yellow);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.ba-slider__knob {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.ba-slider__handle:focus-visible .ba-slider__knob {
  transform: scale(1.15);
}

.ba-slider__handle:focus-visible {
  outline: none;
}

.ba-slider__handle:focus-visible .ba-slider__line {
  box-shadow: 0 0 0 3px rgba(251, 255, 133, 0.5);
}

.ba-slider__label {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 4px 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.9;
}

.ba-slider__label--before {
  left: 12px;
  background: var(--dark-accent);
  color: var(--yellow);
}

.ba-slider__label--after {
  right: 12px;
  background: var(--yellow);
  color: var(--dark-text);
}

@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(4deg); }
  75% { transform: rotate(-4deg); }
}

/* ==========================================
   SECTION DIVIDERS
   ========================================== */
.section-divider {
  line-height: 0;
  font-size: 0;
  margin-top: -1px;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ==========================================
   MOWER DIVIDER (Hero → Services)
   ========================================== */
.mower-divider {
  position: relative;
  height: 120px;
  background: var(--white);
  overflow: hidden;
}

.mower-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1;
}

.mower-grass {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  z-index: 2;
  cursor: pointer;
}

.mow-blade {
  display: inline-block;
  width: 4px;
  height: 55px;
  background: var(--dark-accent);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom center;
  animation: sway 3s ease-in-out infinite;
  transition: height 0.15s ease-out;
}

.mow-blade:nth-child(3n+1) { height: 50px; width: 4px; }
.mow-blade:nth-child(3n+2) { height: 65px; width: 5px; }
.mow-blade:nth-child(3n)   { height: 42px; width: 3px; }

.mow-blade:nth-child(5n+1) { animation-duration: 2.5s; animation-delay: 0s; }
.mow-blade:nth-child(5n+2) { animation-duration: 3.2s; animation-delay: 0.3s; }
.mow-blade:nth-child(5n+3) { animation-duration: 2.8s; animation-delay: 0.7s; }
.mow-blade:nth-child(5n+4) { animation-duration: 3.5s; animation-delay: 1s; }
.mow-blade:nth-child(5n)   { animation-duration: 2.9s; animation-delay: 0.5s; }

.mow-blade:nth-child(4n+1) { background: #2D2D2D; }
.mow-blade:nth-child(4n+2) { background: #1A1A1A; }
.mow-blade:nth-child(4n+3) { background: #3A3A3A; }
.mow-blade:nth-child(4n)   { background: #222222; }

.mow-blade:nth-child(7n+1) { height: 70px; }
.mow-blade:nth-child(7n+4) { height: 35px; }
.mow-blade:nth-child(7n+6) { height: 48px; width: 6px; }

/* Blade height states are controlled entirely via JS inline styles.
   .mowed on the divider is a state flag only (gates regrowth).
   .regrown on a blade is a state flag only (tracks which blades are tall). */

/* Mower machine */
/* Mower machine — JS controls animation via inline styles */
.mower-machine {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 110px;
  z-index: 10;
  transform: translateX(-120px);
  opacity: 0;
  will-change: transform;
}

.mower-machine svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

@keyframes mower-drive {
  0% { transform: translateX(-120px); }
  100% { transform: translateX(100vw); }
}

@keyframes mower-bounce {
  0% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-3px) rotate(-1.5deg); }
  40% { transform: translateY(1px) rotate(0.5deg); }
  60% { transform: translateY(-2px) rotate(-1deg); }
  80% { transform: translateY(0px) rotate(0.3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Smoke puffs from exhaust */
.mower-smoke {
  position: absolute;
  border-radius: 50%;
  background: rgba(100, 100, 100, 0.4);
  pointer-events: none;
  animation: smoke-puff 1.2s ease-out infinite;
}

.smoke-1 {
  width: 12px;
  height: 12px;
  top: -4px;
  left: 28px;
}

.smoke-2 {
  width: 9px;
  height: 9px;
  top: -7px;
  left: 33px;
  animation-delay: 0.4s;
}

.smoke-3 {
  width: 10px;
  height: 10px;
  top: -2px;
  left: 24px;
  animation-delay: 0.8s;
}

@keyframes smoke-puff {
  0% { opacity: 0.5; transform: translate(0, 0) scale(0.5); }
  50% { opacity: 0.25; }
  100% { opacity: 0; transform: translate(-25px, -18px) scale(1.5); }
}

/* Grass clippings particles */
.mower-machine::before,
.mower-machine::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: clipping 0.35s ease-out infinite;
}

.mower-machine::before {
  width: 5px;
  height: 5px;
  background: #4A3F2F;
  left: 8px;
  bottom: 18px;
}

.mower-machine::after {
  width: 4px;
  height: 4px;
  background: #6B5B3E;
  left: 14px;
  bottom: 24px;
  animation-delay: 0.12s;
}

@keyframes clipping {
  0% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-20px, -15px) scale(0.3); }
}

/* ==========================================
   BEFORE & AFTER
   ========================================== */
.before-after {
  background-color: var(--white);
  padding: 110px 0 130px;
}

.before-after h2 {
  font-size: 2.2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--dark-text);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ba-slider--grid {
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==========================================
   SERVICES
   ========================================== */
.ba-services-divider {
  background: var(--white);
  line-height: 0;
  margin-top: -1px;
}

.ba-services-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.services {
  background-color: var(--yellow);
  padding: 60px 0;
}

.services h2 {
  font-size: 2.8rem;
  color: var(--dark-text);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: var(--light-gray);
  border-radius: 4px 4px 16px 16px;
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s;
}

/* Service card accent strips */
.service-card:nth-child(odd) {
  border-top: 4px solid var(--yellow);
}

.service-card:nth-child(even) {
  border-top: 4px solid var(--dark-accent);
}


/* --- Show More Toggle --- */
.service-card--extra {
  display: none;
}

.services-grid.expanded .service-card--extra {
  display: block;
  animation: serviceCardReveal 0.4s ease both;
}

.services-grid.expanded .service-card--extra:nth-child(5) { animation-delay: 0.05s; }
.services-grid.expanded .service-card--extra:nth-child(6) { animation-delay: 0.1s; }

@keyframes serviceCardReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.services-toggle-wrap {
  text-align: center;
  margin-top: 2rem;
}

.btn-show-more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  background: var(--dark-text);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}


.service-icon {
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--dark-text);
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--cta-dark);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.service-link:hover {
  color: var(--cta-dark-hover);
}

/* ==========================================
   MEET LEVI
   ========================================== */
.meet-levi {
  background-color: #F5F5F0;
  padding: 60px 0;
}

.meet-levi h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--dark-text);
}

.meet-levi-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.meet-levi-photo {
  flex-shrink: 0;
  width: 360px;
}

.levi-main-display {
  width: 360px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.levi-main-display img,
.levi-main-display video {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* ---------- Meet Levi Lightbox ---------- */
.levi-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.levi-lightbox.active {
  display: flex;
}

.levi-lightbox img,
.levi-lightbox video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.levi-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 8px;
}

.levi-lightbox-close:hover {
  color: var(--yellow);
}

.levi-lightbox-prev,
.levi-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10001;
  line-height: 1;
}

.levi-lightbox-prev:hover,
.levi-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--yellow);
  color: var(--yellow);
}

.levi-lightbox-prev { left: 20px; }
.levi-lightbox-next { right: 20px; }

.levi-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.meet-levi-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.levi-thumb {
  position: relative;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.levi-thumb:hover {
  opacity: 0.9;
}

.levi-thumb.active {
  border-color: var(--dark-accent);
  opacity: 1;
}

.levi-thumb img {
  width: 100%;
  height: 55px;
  object-fit: cover;
  display: block;
}

.levi-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 1.1rem;
  pointer-events: none;
  transition: background 0.2s;
}

.levi-thumb:hover .levi-thumb-play {
  background: rgba(0, 0, 0, 0.5);
}

.meet-levi-text {
  max-width: 540px;
  margin-top: -48px;
}

.meet-levi-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.meet-levi-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .meet-levi-content {
    flex-direction: column;
    text-align: center;
  }

  .meet-levi-photo {
    width: 280px;
  }

  .levi-main-display {
    width: 280px;
  }

  .meet-levi-thumbs {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }

  .levi-thumb img {
    height: 42px;
  }

  .meet-levi-text {
    max-width: 100%;
    margin-top: 0;
  }

  .meet-levi h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================
   AS FEATURED IN / ABOUT
   ========================================== */
.about {
  background-color: var(--yellow);
  padding: 60px 0;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--dark-text);
}

/* ---------- Press Feature ---------- */
.featured-press {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.press-card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--dark-accent);
}

.press-logo {
  float: left;
  width: 80px;
  height: auto;
  border-radius: 8px;
  margin: 0 1rem 0.5rem 0;
}

.press-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.press-name {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--dark-text);
}

.press-location {
  font-size: 0.85rem;
  color: #777;
}

.press-headline {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.press-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
  line-height: 1.7;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: #f9f9f4;
  border-radius: 8px;
  border-left: 3px solid var(--yellow);
}

.press-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.press-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-accent);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.press-link:hover {
  color: var(--dark-text);
  border-bottom-color: var(--dark-text);
}

@media (max-width: 768px) {
  .press-card {
    padding: 1.5rem;
  }

  .press-name {
    font-size: 1.2rem;
  }

  .press-headline {
    font-size: 1.1rem;
  }

  .press-quote {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .press-logo {
    width: 60px;
  }
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 2.5rem;
  justify-content: center;
}

.badge {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cta-dark);
}

.badge-label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-us {
  background-color: var(--white);
  padding: 60px 0;
}

.why-us h2 {
  font-size: 1.8rem;
  color: var(--dark-text);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
}

.why-icon {
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.why-card p {
  font-size: 0.95rem;
  color: #555;
  max-width: 280px;
  margin: 0 auto;
}

.calfire-note {
  background-color: var(--yellow);
  border-left: 4px solid var(--cta-dark);
  border-radius: 8px;
  padding: 24px;
  margin-top: 2.5rem;
}

.calfire-note p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

/* ==========================================
   SERVICE AREAS
   ========================================== */
.service-areas {
  background-color: var(--yellow);
  padding: 60px 0;
}

.service-areas h2 {
  font-size: 1.8rem;
  color: var(--dark-text);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.area-column {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.area-column h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--dark-text);
  border-bottom: 3px solid var(--dark-accent);
  padding-bottom: 8px;
}

.area-list li {
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #333;
  position: relative;
}

.area-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 10px;
  height: 10px;
  background: var(--dark-accent);
  border-radius: 50% 0 50% 50%;
}

.area-list li:last-child {
  border-bottom: none;
}

.areas-cta {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--dark-text);
}

.areas-cta a {
  color: var(--cta-dark);
}

/* ==========================================
   TESTIMONIALS — Marquee Rows
   ========================================== */
.testimonials {
  background-color: var(--light-gray);
  padding: 60px 0;
  overflow: hidden;
}

.testimonials h2 {
  font-size: 1.8rem;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

/* --- Social Proof Header --- */
.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.rating-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1;
}

.rating-stars {
  font-size: 1.8rem;
  color: #F9A825;
  letter-spacing: 3px;
}

/* --- Marquee container & track --- */
.marquee-container {
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-container + .marquee-container {
  margin-top: 24px;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  align-items: flex-start;
}

.marquee-left {
  animation: marquee-scroll-left 35s linear infinite;
}

.marquee-right {
  animation: marquee-scroll-right 35s linear infinite;
}

@keyframes marquee-scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


/* --- Card --- */
.testimonial-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--white);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.testimonial-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.stars {
  color: #F9A825;
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  font-style: italic;
  margin: 0;
  overflow-wrap: break-word;
}

/* --- Expandable Reviews Grid --- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.reviews-grid .testimonial-card {
  width: auto;
  flex-shrink: initial;
}

.reviews-grid {
  margin-top: 24px;
}

[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-left,
  .marquee-right {
    animation: none;
  }

  .reviews-expandable {
    transition: none;
  }

  .toggle-arrow {
    transition: none;
  }
}

/* ==========================================
   CTA MID (After Testimonials)
   ========================================== */
.cta-mid {
  background-color: var(--dark-text);
  padding: 72px 0;
  text-align: center;
}

.cta-mid h2 {
  font-size: 1.8rem;
  color: var(--white);
}

.cta-mid .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.cta-mid .btn {
  background-color: var(--yellow);
  color: var(--dark-text);
  border: none;
  min-width: 240px;
}

.cta-mid .btn:hover {
  background-color: #e8ec7a;
}

.cta-mid-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 1.5rem;
}

.cta-mid-email {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.cta-mid-email a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-mid-email a:hover {
  color: var(--yellow);
}

@media (min-width: 480px) {
  .cta-mid-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
  background-color: var(--yellow);
  padding: 60px 0;
}

.contact h2 {
  font-size: 1.8rem;
  color: var(--dark-text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark-text);
}

.required {
  color: #c62828;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-text);
  background: var(--white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cta-dark);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c62828;
}

.form-group textarea {
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #E8F5E9;
  color: var(--cta-dark);
  border: 1px solid var(--cta-dark);
}

.form-status.error-msg {
  display: block;
  background-color: #FFEBEE;
  color: #c62828;
  border: 1px solid #c62828;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-block h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--dark-text);
}

.contact-block p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.contact-phone {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cta-dark);
  display: inline-block;
  animation: phone-ring 5s ease-in-out 1s infinite;
}

.contact-email {
  color: var(--cta-dark);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-links a {
  color: var(--dark-text);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--cta-dark);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background-color: var(--dark-accent);
  color: #ccc;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.footer-logo .logo-wacky {
  display: inline-block;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #999;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a,
.footer-services a {
  color: #ccc;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--yellow);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-contact a {
  color: #ccc;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 4px;
}

/* ==========================================
   PHOTO PLACEHOLDERS
   ========================================== */
.photo-placeholder {
  background: var(--white);
  border: 2px dashed var(--dark-accent);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  min-height: 220px;
}

.photo-placeholder svg {
  opacity: 0.3;
}

.photo-placeholder span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #999;
  text-align: center;
}


/* ==========================================
   OUR WORK GALLERY
   ========================================== */
.gallery {
  background-color: var(--white);
  padding: 60px 0 40px;
}

.gallery h2 {
  font-size: 1.8rem;
  color: var(--dark-text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery-item .photo-placeholder {
  min-height: 200px;
}

/* ==========================================
   SCROLL ANIMATIONS — Directional Stagger
   ========================================== */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   FLOATING MOBILE CTA
   ========================================== */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--dark-accent);
  text-align: center;
  padding: 14px 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

.mobile-cta.visible {
  transform: translateY(0);
  animation: cta-bounce 3s ease 0.5s infinite;
}

@keyframes cta-bounce {
  0%, 85%, 100% { transform: translateY(0); }
  92% { transform: translateY(-6px); }
  96% { transform: translateY(0); }
}

.mobile-cta a {
  color: var(--yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================
   SERVICE PAGES
   ========================================== */
.service-hero {
  background-color: var(--yellow);
  padding: 120px 0 60px;
  margin-top: var(--nav-height);
}

.service-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.service-hero .hero-sub {
  margin-bottom: 2rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--dark-text);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-text);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: background 0.2s, color 0.2s;
}

.back-btn:hover {
  background: var(--dark-text);
  color: var(--white);
}

.service-detail {
  padding: 60px 0;
  background: var(--white);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.service-detail-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.service-detail-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

.service-detail-content ul {
  margin-bottom: 1.5rem;
}

.service-detail-content li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 1rem;
  color: #333;
}

.service-detail-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 10px;
  height: 10px;
  background: var(--dark-accent);
  border-radius: 50% 0 50% 50%;
}

/* ---------- Service Page Mini Gallery ---------- */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.service-gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}


.service-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ---------- Service Page Lightbox ---------- */
.service-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.service-lightbox.active {
  display: flex;
}

.service-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.service-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 8px;
}

.service-lightbox-close:hover {
  color: var(--yellow);
}

.service-lightbox-prev,
.service-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10001;
  line-height: 1;
}

.service-lightbox-prev:hover,
.service-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--yellow);
  color: var(--yellow);
}

.service-lightbox-prev { left: 20px; }
.service-lightbox-next { right: 20px; }

.service-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.service-cta-box {
  background: var(--yellow);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.service-cta-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.service-cta-box p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.service-cta-box .btn {
  display: block;
  margin-bottom: 12px;
}

.service-cta-box .btn:last-child {
  margin-bottom: 0;
}

/* ---------- Hover-only effects (desktop/mouse) ---------- */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }

  .ba-slider__knob:hover {
    transform: scale(1.15);
  }

  .ba-slider {
    cursor: ew-resize;
  }

  .service-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
  }

  .btn-show-more:hover {
    background: var(--dark-accent);
    transform: translateY(-2px);
  }

  .marquee-container:hover .marquee-track {
    animation-play-state: paused;
  }

  .service-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-left,
  .fade-in-right,
  .fade-in-up,
  .fade-in {
    opacity: 1;
    transform: none;
  }

  .mower-grass,
  .mower-machine,
  .mower-smoke {
    display: none;
  }
}

/* ==========================================
   RESPONSIVE — very small screens (< 380px)
   ========================================== */
@media (max-width: 379px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .cta-mid .btn {
    min-width: 0;
    width: 100%;
  }

  .testimonial-card {
    width: 260px;
  }
}

/* ==========================================
   RESPONSIVE — 480px+
   ========================================== */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   RESPONSIVE — 768px+
   ========================================== */
@media (min-width: 768px) {
  .hero {
    padding: 100px 0 110px;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-sub {
    font-size: 1.25rem;
  }

  .ba-slider {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .ba-slider__label {
    font-size: 0.85rem;
    padding: 5px 14px;
  }

  .section-divider svg {
    height: 80px;
  }

  .ba-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mower-divider {
    height: 140px;
  }

  .mower-curve {
    height: 100px;
  }

  .services,
  .meet-levi,
  .about,
  .why-us,
  .service-areas,
  .testimonials,
  .contact {
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* Timeline horizontal */
  .timeline {
    display: flex;
    padding-left: 0;
    justify-content: space-between;
    gap: 16px;
  }

  .timeline::before {
    left: 0;
    right: 0;
    top: 18px;
    bottom: auto;
    height: 3px;
    width: 100%;
  }

  .timeline-item {
    flex: 1;
    text-align: center;
    margin-bottom: 0;
    padding-top: 54px;
  }

  .timeline-icon {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service pages */
  .service-hero h1 {
    font-size: 2.6rem;
  }

  .service-detail-grid {
    grid-template-columns: 2fr 1fr;
  }

  .service-cta-box {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
  }
}

/* ==========================================
   RESPONSIVE — 1024px+
   ========================================== */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .container {
    padding: 0 40px;
  }

  .hero {
    padding: 100px 0 130px;
  }

  .hero h1 {
    font-size: 3.2rem;
    max-width: 800px;
    margin: 0 0 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .mobile-cta {
    display: none !important;
  }
}

/* ==========================================
   RESPONSIVE — 1200px+
   ========================================== */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}
