/* -----------------------------------
   SPRYLIFE MEDICAL CENTRE — SERVICES PAGE
   Version: 2.1 (Final Professional Consistency)
   Requires: style.css, head.css for variables and base styles.
----------------------------------- */

/* BANNER */
.banner {
  position: relative;
  /* ACTION: Ensure you update this path to your final image file */
  background: url('../images/about1.png') center/cover no-repeat; 
  color: var(--white);
  padding: 8rem 0 8rem; /* Consistent padding */
  text-align: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  /* Lighter Blue Gradient to match Index/About pages */
  background: linear-gradient(135deg, rgba(25, 148, 209, 0.70) 0%, rgba(15, 23, 42, 0.40) 100%); 
}

.banner-inner {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

.banner h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.banner p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  color: var(--white);
}

/* SERVICE GRID */
.services {
  padding: 6rem 0; /* Consistent padding */
  background: var(--bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: contain; /* Cover for a cleaner card image crop */
  transition: transform 0.4s ease;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.card-content {
  padding: 2.5rem 1.5rem; 
  text-align: center;
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.service-card p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-5px); 
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.service-card:hover img {
  transform: scale(1.03); 
}

/* SUMMARY SECTION (Solid Blue Match) */
.summary {
  background: var(--color-primary);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}

.summary h2 {
  font-size: 2.25rem; /* Consistent Heading size */
  margin-bottom: 1.25rem;
  color: var(--white);
  font-weight: 700;
}

.summary p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  opacity: 0.95;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-toggle {
  display: none;
}