/* Homepage Specific Styles */

/* Hero Section - Homepage specific */
.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  max-width: 48rem;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

.hero-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #2274FF 0%, #3b82f6 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.badge-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
}

/* Services Grid - Homepage */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  /* Center cards */
}

/* When there are 4 cards (after removing Persoonlijke verzorging), center them */
.services-grid:has(.service-card:nth-child(4):last-child) {
  justify-content: center;
}

.service-card {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  border-color: rgba(34, 116, 255, 0.3);
  box-shadow: 0 12px 32px rgba(34, 116, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #2274FF 0%, #3b82f6 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(34, 116, 255, 0.25);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.service-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-description {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2274FF;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #1557cc;
  gap: 0.75rem;
}

.link-icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.3s ease;
}

.service-link:hover .link-icon {
  transform: translateX(4px);
}

/* Decorative Arrow Icons Between Service Cards */
.service-card:nth-child(1)::after,
.service-card:nth-child(2)::after,
.service-card:nth-child(3)::after {
  content: '';
  display: none;
  /* Hidden by default, shown on larger screens */
}

@media (min-width: 768px) {

  .service-card:nth-child(1)::after,
  .service-card:nth-child(2)::after,
  .service-card:nth-child(3)::after {
    content: '';
    position: absolute;
    right: -4.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 3rem;
    height: 3rem;
    background-image: url('data:image/svg+xml,%3Csvg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M8 24L16 16M16 16L24 8L32 16M16 16V40L32 40V16M40 24L32 32" stroke="%232274FF" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
  }
}

@media (min-width: 1024px) {

  .service-card:nth-child(1)::after,
  .service-card:nth-child(2)::after,
  .service-card:nth-child(3)::after {
    right: -5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Logeeropvang Section */
.logeeropvang-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Locations Grid */
.locations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;
}

.location-card {
  position: relative;
  height: 320px;
  flex: 1 1 300px;
  max-width: 380px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.location-card:hover .location-img {
  transform: scale(1.1);
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.location-content {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.location-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.location-region {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.location-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Image Slider/Carousel (Deprecated/Removed in HTML but styles kept for safety or if reverted) */
.image-slider {
  display: none;
}

/* Availability Block */
.availability-block {
  max-width: 48rem;
  margin: 0 auto;
  background: linear-gradient(135deg, #2274FF 0%, #1e5dd6 100%);
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  text-align: center;
  color: white;
  box-shadow: 0 20px 40px rgba(34, 116, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.availability-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.availability-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.availability-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 10;
}

.availability-number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  margin: 0.5rem 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.availability-block .btn {
  position: relative;
  z-index: 10;
}

.availability-block .btn-primary {
  background: white;
  color: #2274FF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.availability-block .btn-primary:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Responsive Styles */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {

  .stat-value {
    font-size: 2.5rem;
  }

  .slider-container {
    height: 600px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Center the 4th card when there are only 4 cards */
  .services-grid:has(.service-card:nth-child(4):last-child) .service-card:nth-child(4) {
    grid-column: 2 / 3;
    /* Place in middle column */
  }

  .slider-container {
    height: 650px;
  }
}