/*
   ==========================================================================
   SERVICES / AANBOD SECTIE  –  css/services.css
   ==========================================================================
   Stijlen voor de diensten-sectie op de homepage (index.php #aanbod).
   Werkt samen met css/style.css:
     - CSS-variabelen (kleuren, schaduwen, radius) komen uit :root in style.css
     - .btn-secondary wordt hier gedefinieerd (aanvulling op .btn in style.css)
   Let op: .services-section padding wordt hier gezet op 8rem.
           In style.css staat een override van 5rem (sectie 14).
           Pas beide aan als je de spacing wil wijzigen.
   ==========================================================================
*/
.services-section {
  padding: 2.5rem 0; /* Verminderd van 8rem voor minder witruimte */
  background: var(--bg-color);
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.services-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr; 
  gap: 2.5rem;
  width: 100%;
  margin-top: 3rem; /* Verminderd van 6rem */
}

.service-block {
  position: relative;
  background: var(--white);
  padding: 4.5rem 1.5rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-block:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.service-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Copperplate Bold", "Copperplate", serif;
  font-size: 1.6rem;
  font-weight: bold;
  box-shadow: 0 8px 15px rgba(167, 214, 204, 0.4);
  z-index: 2;
}

.service-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}

.service-title {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  color: var(--secondary-color);
  font-family: "Copperplate Bold", "Copperplate", serif;
  line-height: 1.5;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  margin-top: auto;
  width: fit-content;
  align-self: center;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Tablet: 2 kolommen */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 2.5rem;
  }
}

/* Mobiel: 1 kolom */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 6rem;
  }
}
