/* ─────────────────────────────────────────────
   M5 Automotive Group — Custom Styles
   Forest Green + Off-White · Vibrant Modern
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Geometric Background Shapes ── */
.geo-shape { position: absolute; pointer-events: none; }

.geo-circle-1 {
  top: 8%;
  left: 5%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,94,32,0.08) 0%, transparent 70%);
  animation: floatShape 8s ease-in-out infinite;
}

.geo-square-1 {
  top: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  background: rgba(27,94,32,0.06);
  border-radius: 24px;
  transform: rotate(45deg);
  animation: floatShape 10s ease-in-out infinite reverse;
}

.geo-circle-2 {
  bottom: 20%;
  left: 3%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(27,94,32,0.05);
  animation: floatShape 12s ease-in-out infinite;
}

.geo-dots {
  top: 40%;
  right: 3%;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(27,94,32,0.15) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.6;
  animation: floatShape 9s ease-in-out infinite;
}

.geo-line-1 {
  bottom: 30%;
  right: 12%;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(27,94,32,0.15), transparent);
  transform: rotate(-30deg);
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* ── Hero Floating Cards ── */
.hero-card {
  animation: floatCard 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

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

/* ── Service Cards Hover ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1B5E20, #4a8a4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* ── Review Cards ── */
.review-card {
  position: relative;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(27,94,32,0.07);
  line-height: 1;
  pointer-events: none;
}

/* ── Diagonal Clip for Why Section ── */
.clip-diagonal {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Navbar Scroll State ── */
#nav.scrolled {
  background: rgba(254,254,247,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(27,94,32,0.08);
}

/* ── Mobile Menu ── */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Utility ── */
@media (max-width: 767px) {
  .clip-diagonal {
    clip-path: none;
  }
}
