/* ============================================
   Jack Jack Mobile Mechanic — Main Stylesheet
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Nunito:wght@400;600;800;900&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f5e6d3;
  color: #1a1a1a;
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Utility ---------- */
.max-w {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #c13028;
  border-bottom: 4px solid #8a211a;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  padding: 0.75rem 1rem;
}

.navbar__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.navbar__logo:hover {
  transform: scale(1.05);
}

.navbar__logo svg {
  height: 3rem;
  width: auto;
}

.navbar__links {
  display: none;
  gap: 2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}

.navbar__links a {
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: #e5e5e5;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5e6d3;
  color: #c13028;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.875rem;
  border: 2px solid #333;
  box-shadow: 0 4px 0 #333;
  transition: all 0.15s;
}

.navbar__cta:hover {
  box-shadow: 0 2px 0 #333;
  transform: translateY(2px);
}

.navbar__cta-full {
  display: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: #f5e6d3;
  padding: 8rem 1rem 4rem;
  overflow: hidden;
  position: relative;
}

.hero__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero__text {
  flex: 1;
  text-align: center;
  z-index: 10;
}

/* Slide-in from left */
.hero__text {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.6s ease forwards;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #facc15;
  color: #713f12;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  border: 2px solid #eab308;
}

.hero__title {
  font-family: 'Luckiest Guy', cursive;
  color: #c13028;
  font-size: 3.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 4px 4px 0 #fff;
}

.hero__subtitle {
  display: block;
  font-family: 'Luckiest Guy', cursive;
  color: #333;
  font-size: 2.25rem;
  text-shadow: 2px 2px 0 #fff;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #c13028;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fff;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: 4px solid #c13028;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 #333;
  margin-bottom: 2rem;
}

.hero__desc {
  font-family: 'Nunito', sans-serif;
  font-size: 1.125rem;
  color: #374151;
  font-weight: 600;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #c13028;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  border: 4px solid #c13028;
  box-shadow: 0 6px 0 #8a211a;
  transition: all 0.15s;
}

.hero__cta:hover {
  box-shadow: 0 3px 0 #8a211a;
  transform: translateY(3px) scale(1.03);
}

.hero__cta svg {
  animation: bounce 1s infinite;
}

.hero__image {
  flex: 1;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 0.6s ease 0.2s forwards;
}

.hero__image img {
  width: 100%;
  max-width: 28rem;
  object-fit: contain;
  transition: transform 0.3s;
}

.hero__image img:hover {
  transform: rotate(5deg) scale(1.05);
}

.hero__bg-wrench {
  position: absolute;
  top: 5rem;
  right: 2.5rem;
  color: #c13028;
  opacity: 0.1;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: #fffdf9;
  padding: 6rem 1rem;
  border-top: 4px solid #333;
  border-bottom: 4px solid #333;
}

.services__inner {
  max-width: 80rem;
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.services__title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 3rem;
  color: #c13028;
  margin-bottom: 1rem;
}

.services__sub {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  color: #374151;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.services__card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 8px 8px 0 #333;
  border: 4px solid #333;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.services__card:nth-child(odd):hover {
  transform: scale(1.05) rotate(2deg);
}

.services__card:nth-child(even):hover {
  transform: scale(1.05) rotate(-2deg);
}

.services__card-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.services__card:hover .services__card-overlay {
  opacity: 0.1;
}

.services__card-overlay--brakes   { background: #f4a261; }
.services__card-overlay--oil      { background: #e9c46a; }
.services__card-overlay--lights   { background: #2a9d8f; }
.services__card-overlay--battery  { background: #e76f51; }
.services__card-overlay--diag     { background: #457b9d; }
.services__card-overlay--susp     { background: #ff9f1c; }

.services__card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-bottom: 4px solid #333;
  overflow: hidden;
  position: relative;
  background: #fffdf9;
}

.services__card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  padding: 1rem;
}

.services__card-body {
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.services__card-body h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5rem;
  color: #333;
}

.services__card-body p {
  font-family: 'Nunito', sans-serif;
  color: #c13028;
  font-weight: 700;
  margin-top: 0.5rem;
}

.services__bottom-cta {
  text-align: center;
  margin-top: 4rem;
}

.services__bottom-btn {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  border: 4px solid #333;
  box-shadow: 0 6px 0 #1a1a1a;
  transition: all 0.15s;
}

.services__bottom-btn:hover {
  box-shadow: 0 3px 0 #1a1a1a;
  transform: translateY(3px) scale(1.03);
}

.services__seo-text {
  max-width: 56rem;
  margin: 3rem auto 0;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  text-align: center;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: #f5e6d3;
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

.about__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 10;
}

.about__image-wrap {
  flex: 1;
  width: 100%;
  max-width: 28rem;
}

.about__image-frame {
  position: relative;
}

.about__image-bg {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  right: 0;
  bottom: 0;
  background: #c13028;
  border-radius: 1.5rem;
  z-index: -1;
  transform: rotate(3deg);
  box-shadow: 8px 8px 0 #333;
  border: 4px solid #333;
}

.about__image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 4px solid #333;
  background: #fff;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.1));
  padding: 1.5rem;
}

.about__text {
  flex: 1;
  text-align: center;
}

.about__label {
  display: inline-block;
  background: #2a9d8f;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.25rem;
  box-shadow: 4px 4px 0 #1e7268;
  border: 2px solid #1e7268;
  margin-bottom: 1.5rem;
  transform: rotate(-2deg);
}

.about__heading {
  font-family: 'Luckiest Guy', cursive;
  font-size: 3rem;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 2px 2px 0 #fff;
}

.about__bio {
  font-family: 'Nunito', sans-serif;
  font-size: 1.125rem;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.625;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.about__feature-icon {
  padding: 0.75rem;
  border-radius: 9999px;
  border: 2px solid #333;
  box-shadow: 4px 4px 0 #333;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__feature-icon--yellow  { background: #e9c46a; }
.about__feature-icon--orange  { background: #f4a261; }
.about__feature-icon--teal    { background: #2a9d8f; }

.about__feature-icon svg {
  width: 28px;
  height: 28px;
}

.about__feature h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5rem;
  color: #333;
}

.about__feature p {
  font-family: 'Nunito', sans-serif;
  color: #374151;
  font-weight: 600;
}

.about__blob {
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: #fde047;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(48px);
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #333;
  color: #fff;
  padding: 4rem 1rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.footer__contact {
  flex: 1;
  text-align: center;
}

.footer__heading {
  font-family: 'Luckiest Guy', cursive;
  font-size: 3rem;
  color: #f4a261;
  margin-bottom: 1.5rem;
}

.footer__desc {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #c13028;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  border: 4px solid #c13028;
  box-shadow: 0 6px 0 #8a211a;
  transition: all 0.15s;
  margin-bottom: 2rem;
}

.footer__phone:hover {
  box-shadow: 0 3px 0 #8a211a;
  transform: translateY(3px);
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer__social-icon {
  background: rgba(255,255,255,.1);
  padding: 0.75rem;
  border-radius: 9999px;
  transition: background 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social-icon:hover {
  background: #c13028;
  border-color: #fff;
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: #d1d5db;
  margin-left: 1rem;
}

.footer__location svg {
  color: #e9c46a;
}

.footer__flyer {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer__flyer-frame {
  position: relative;
  transform: rotate(6deg);
  transition: transform 0.3s;
  box-shadow: 10px 10px 0 rgba(0,0,0,.5);
  border: 4px solid #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 16rem;
  background: #fff;
}

.footer__flyer-frame:hover {
  transform: rotate(2deg);
}

.footer__flyer-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.footer__bottom {
  max-width: 80rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 4px solid rgba(255,255,255,.2);
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: #9ca3af;
}

.footer__bottom p:last-child {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

.footer__bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50rem;
  height: 50rem;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  to { opacity: 1; transform: translateY(0); }
}

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

/* Scroll-reveal: elements start hidden */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* ============================================
   RESPONSIVE — sm (≥ 640px)
   ============================================ */
@media (min-width: 640px) {
  .navbar {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .navbar__cta {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
  }

  .navbar__cta-full {
    display: inline;
  }

  .navbar__cta-short {
    display: none;
  }

  .hero__cta-wrap {
    flex-direction: row;
  }

  .services {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .about {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ============================================
   RESPONSIVE — md (≥ 768px)
   ============================================ */
@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }

  .hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }

  .hero__inner {
    flex-direction: row;
  }

  .hero__text {
    text-align: left;
  }

  .hero__title {
    font-size: 6rem;
  }

  .hero__subtitle {
    font-size: 3.75rem;
  }

  .hero__desc {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.25rem;
  }

  .hero__cta-wrap {
    justify-content: flex-start;
  }

  .hero__cta {
    font-size: 1.5rem;
  }

  .hero__image img {
    max-width: 32rem;
  }

  .services__title {
    font-size: 4.5rem;
  }

  .services__card {
    width: calc(33.333% - 1.5rem);
  }

  .about__inner {
    flex-direction: row-reverse;
  }

  .about__text {
    text-align: left;
  }

  .about__heading {
    font-size: 3.75rem;
  }

  .footer__inner {
    flex-direction: row;
  }

  .footer__contact {
    text-align: left;
  }

  .footer__desc {
    margin-left: 0;
  }

  .footer__socials {
    justify-content: flex-start;
  }

  .footer__flyer {
    justify-content: flex-end;
  }

  .footer__flyer-frame {
    width: 20rem;
  }

  .footer__heading {
    font-size: 3.75rem;
  }

  .footer__phone {
    font-size: 1.875rem;
  }
}

/* ============================================
   RESPONSIVE — lg (≥ 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .navbar {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .services {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .about {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
