@import url("cards.css");

/* --- Home Page Sections --- */
.home-page section {
  margin-bottom: 3rem;
}

.home-page h2 {
  font-size: 1.8rem;
  color: #002868;
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-overlay h1 {
  color: #fff;
}

/* --- About Section --- */
.about {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #444;
}

/* --- Service Carousel --- */
.service-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.service-carousel {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
  width: max-content;
}

.service-carousel .service-card {
  flex: 0 0 220px; /* fixed width for carousel */
}

/* --- Diagnostics Tool --- */
.diagnostics-preview {
  background: #f0f4f9;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.diagnostics-preview p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #333;
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.reviews-grid blockquote {
  background: #fff;
  border-left: 5px solid #002868;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-style: italic;
}

.reviews-grid cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #555;
}

/* --- CTA Banner --- */
.cta-banner {
  background: #002868;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 10px;
}

.cta-banner h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #fff;
}

.cta-banner a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.cta-banner a:hover {
  text-decoration: underline;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
  .home-page h2 {
    font-size: 1.5rem;
  }

  .about p,
  .diagnostics-preview p {
    font-size: 1rem;
  }

  .service-carousel .service-card {
    flex: 0 0 180px; /* slightly smaller on tablets */
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .service-carousel .service-card {
    flex: 0 0 160px;
  }

  .cta-banner h2 {
    font-size: 1.2rem;
  }

  .cta-banner {
    padding: 2rem 1rem;
  }
}
