/* index.css – page‑specific styles for index.html */

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  background: var(--white);
  padding: .25rem 0;
}

.services h2 {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.75rem;
  text-align: center;
}

/* ==========================================================================
   Individual Service Cards
   ========================================================================== */
.service-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.service-card-content {
  display: flex;
  align-items: flex-start;
  gap: var(--gutter);
  flex-wrap: wrap;
}

.service-image-wrapper {
  width: 200px;
  height: 160px;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-card-content h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.service-card-content p {
  margin-bottom: 0.5rem;
}

.service-card-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  list-style: disc;
}

/* ==========================================================================
   Call‑to‑Action Buttons
   ========================================================================== */
.cta-button,
.more-info-button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  transition: background-color 0.2s;
}

.cta-button:hover,
.more-info-button:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   Responsive Tweaks
   ========================================================================== */
@media (max-width: 1024px) {
  .service-card-content {
    flex-direction: column;
  }
  .service-image-wrapper {
    margin: 0 auto 1rem;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 1rem 0;
  }
  .services h2 {
    font-size: 1.5rem;
  }

  /* Ensure cards stay white on mobile */
  .service-card {
    background: var(--white) !important;
  }

  /* Center images and stack content */
  .service-card-content {
    flex-direction: column;
  }
  .service-image-wrapper {
    margin: 0 auto 1rem;
  }

  /* Make sure buttons appear and center them */
  .cta-button,
  .more-info-button {
    display: block !important;
    visibility: visible;
    margin: 0.75rem auto 0;
    text-align: center;
  }
}
