/* ============================================
   SERVICES OVERVIEW PAGE
   Styles for services-overview.ejs
   ============================================ */

/* Services Overview Page Container */
.services-overview-page {
  min-height: 100vh;
}

/* ============================================
   HERO SECTION WITH WAVE PATTERN
   ============================================ */
.services-hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 60px 0 80px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .services-hero-section {
    padding: 80px 0 100px;
  }
}

/* Wave Pattern (top of hero) */
.services-hero-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

@media (min-width: 768px) {
  .services-hero-section::before {
    height: 80px;
  }
}

.services-hero-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-on-blue);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .services-hero-headline {
    font-size: 48px;
    margin-bottom: 20px;
  }
}

.services-hero-subheadline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .services-hero-subheadline {
    font-size: 22px;
  }
}

/* ============================================
   SERVICES GRID SECTION
   ============================================ */
.services-grid-section {
  padding: var(--section-spacing) 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .services-grid-section {
    padding: 80px 0;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   SERVICE CARD
   ============================================ */
.service-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-blue);
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Service Card Image */
.service-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-main);
}

@media (min-width: 768px) {
  .service-card-image {
    height: 250px;
  }
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

/* Service Card Content */
.service-card-content {
  padding: var(--card-padding);
}

@media (min-width: 768px) {
  .service-card-content {
    padding: 24px;
  }
}

.service-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .service-card-title {
    font-size: 22px;
    margin-bottom: 16px;
  }
}

.service-card-description {
  font-size: var(--font-small);
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .service-card-description {
    font-size: var(--font-body);
    margin-bottom: 20px;
  }
}

.service-card-cta {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: var(--font-small);
  transition: color var(--transition-fast);
  display: inline-block;
}

.service-card:hover .service-card-cta {
  color: var(--secondary-blue);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .service-card-cta {
    font-size: var(--font-body);
  }
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
.fade-in-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for cards */
.service-card:nth-child(1) {
  transition-delay: 0s;
}

.service-card:nth-child(2) {
  transition-delay: 0.1s;
}

.service-card:nth-child(3) {
  transition-delay: 0.2s;
}

.service-card:nth-child(4) {
  transition-delay: 0.1s;
}

.service-card:nth-child(5) {
  transition-delay: 0.2s;
}

.service-card:nth-child(6) {
  transition-delay: 0.3s;
}

.service-card:nth-child(7) {
  transition-delay: 0.2s;
}

.service-card:nth-child(8) {
  transition-delay: 0.3s;
}

.service-card:nth-child(9) {
  transition-delay: 0.4s;
}

.service-card:nth-child(10) {
  transition-delay: 0.3s;
}

.service-card:nth-child(11) {
  transition-delay: 0.4s;
}

/* ============================================
   CTA SECTION WITH WAVE
   ============================================ */
.services-cta-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .services-cta-section {
    padding: 100px 0;
  }
}

/* Wave Pattern (top of CTA) */
.services-cta-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .services-cta-section::before {
    height: 80px;
  }
}

.services-cta-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.services-cta-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-on-blue);
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .services-cta-headline {
    font-size: 42px;
    margin-bottom: 40px;
  }
}

.services-cta-container .btn {
  min-width: 200px;
  background-color: #FFFFFF;
  color: var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.services-cta-container .btn:hover {
  background-color: var(--bg-main);
  color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .services-cta-container .btn {
    min-width: 240px;
  }
}

@media (min-width: 768px) {
  .services-cta-container .btn:hover {
    transform: translateY(-2px);
  }
}