/* ============================================
   MOE'S TIRE CENTER — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* --- Navigation --- */
#nav {
  background: rgba(255, 254, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
  transition: box-shadow 0.3s ease;
}
#nav.scrolled {
  box-shadow: 0 4px 30px rgba(6, 78, 59, 0.1);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* --- Hero --- */
.hero-shape {
  position: absolute;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}
.shape-circle-1 {
  width: 400px; height: 400px;
  background: #34d399;
  border-radius: 50%;
  top: -100px; right: -80px;
  animation-delay: 0s;
}
.shape-circle-2 {
  width: 200px; height: 200px;
  background: #6ee7b7;
  border-radius: 50%;
  bottom: 10%; left: 5%;
  animation-delay: 2s;
}
.shape-circle-3 {
  width: 120px; height: 120px;
  background: #a7f3d0;
  border-radius: 50%;
  top: 30%; left: 10%;
  animation-delay: 4s;
}
.shape-square-1 {
  width: 160px; height: 160px;
  background: #10b981;
  border-radius: 24px;
  top: 15%; right: 10%;
  transform: rotate(45deg);
  animation-delay: 1s;
}
.shape-square-2 {
  width: 80px; height: 80px;
  background: #34d399;
  border-radius: 16px;
  bottom: 20%; right: 20%;
  transform: rotate(20deg);
  animation-delay: 3s;
}
.shape-triangle-1 {
  width: 0; height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid #6ee7b7;
  top: 60%; right: 5%;
  animation-delay: 2.5s;
}
.shape-triangle-2 {
  width: 0; height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 87px solid #a7f3d0;
  top: 10%; left: 25%;
  transform: rotate(-15deg);
  animation-delay: 5s;
}
.shape-dots {
  width: 200px; height: 200px;
  background-image: radial-gradient(circle, #34d399 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  bottom: 5%; left: 30%;
  opacity: 0.2;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

/* Badge */
.hero-badge {
  animation: badgeIn 0.6s ease-out both;
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* --- CTA Buttons --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #064e3b;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  animation: ctaIn 0.6s 0.2s ease-out both;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.15);
  background: #f0fdf4;
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 60px;
  border: 2px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.25s ease;
  animation: ctaIn 0.6s 0.35s ease-out both;
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
@keyframes ctaIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- CTA Banner Buttons --- */
.cta-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #064e3b;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
.cta-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); background: #f0fdf4; }
.cta-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 60px;
  border: 2px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.25s ease;
}
.cta-cta-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }

/* --- Badge Tags --- */
.badge-tag {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #059669;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 6px 16px;
  border-radius: 50px;
}

/* --- Service Cards --- */
.service-card { perspective: 800px; }
.service-card-inner {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(5, 150, 105, 0.08);
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}
.service-card:hover .service-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(6, 78, 59, 0.12);
  border-color: rgba(5, 150, 105, 0.2);
}
.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  transform: scale(1.05);
}

/* --- Reason Cards --- */
.reason-card { perspective: 800px; }
.reason-card-inner {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(5, 150, 105, 0.08);
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}
.reason-card:hover .reason-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(6, 78, 59, 0.1);
}

/* --- Form Inputs --- */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1fae5;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: #064e3b;
  background: #f0fdf4;
  transition: all 0.2s ease;
  outline: none;
}
.input-field:focus {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}
.input-field::placeholder { color: #94a3b8; }

/* --- Submit Button --- */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
  transition: all 0.25s ease;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(5, 150, 105, 0.4);
}
.btn-submit:active { transform: translateY(0); }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-shape { animation: none; }
  .scroll-indicator { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Mobile Menu --- */
.mobile-link { transition: color 0.2s ease; }
.mobile-link:hover { color: #059669; }
