/* ==========================================================================
   Services Page Specific Styles
   Page #29136 (Grid, Hero Header, Card Grid)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Services Hero / Header Banner
   -------------------------------------------------------------------------- */
.services-hero-section {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 40px 40px 40px 100px;
  margin-bottom: 60px;
  background-image: url('../images/services/services-hero.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.services-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-secondary);
  opacity: 0.25;
  z-index: 1;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-hero-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h1);
  font-weight: 300;
  line-height: var(--line-height-h1);
  color: var(--color-white);
}

.services-hero-subtitle {
  font-family: var(--font-family-base);
  font-size: 20px;
  line-height: 1.45;
  color: var(--color-white);
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   2. Services Grid Section
   -------------------------------------------------------------------------- */
.services-catalog-section {
  padding: 0 var(--container-padding-x);
  margin-bottom: 120px;
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Service Card (Template 179 layout) */
.service-catalog-card {
  position: relative;
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-catalog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.5s ease;
  z-index: 1;
}

.service-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-catalog-card:hover::before {
  background-color: rgba(0, 0, 0, 0.49);
}

.service-catalog-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.service-catalog-card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-catalog-card-category {
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  opacity: 0.9;
}

.service-catalog-card-title {
  font-family: var(--font-family-base);
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
}

.service-catalog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.service-catalog-card-title a:hover {
  opacity: 0.85;
}

.service-catalog-card-bottom {
  margin-top: auto;
}

.service-catalog-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid #ffffff;
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.service-catalog-card-btn:hover {
  background-color: #ffffff;
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   3. Bottom Consultation Box (Accent Card)
   -------------------------------------------------------------------------- */
.services-bottom-section {
  padding: 0 var(--container-padding-x);
  margin-bottom: 120px;
}

.services-consultation-box {
  max-width: var(--container-max-width);
  margin: 0 auto;
  background-color: var(--color-accent);
  border-radius: 40px;
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin-left: 0;
}

.services-consultation-tagline {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h3);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-secondary);
}

.services-consultation-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h2);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-secondary);
}

.services-consultation-desc {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  font-weight: 300;
  max-width: 600px;
}

.services-consultation-btn {
  align-self: flex-start;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   4. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-hero-section {
    min-height: 250px;
    padding: 40px 30px 40px 30px;
    margin-bottom: 60px;
  }

  .services-catalog-section {
    margin-bottom: 100px;
  }

  .services-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .service-catalog-card {
    min-height: 445px;
    padding: 30px;
  }

  .services-bottom-section {
    margin-bottom: 100px;
  }

  .services-consultation-box {
    padding: 60px;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .services-hero-section {
    min-height: 200px;
    padding: 20px 20px 20px 20px;
    margin-bottom: 40px;
  }

  .services-hero-title {
    font-size: 42px;
  }

  .services-hero-subtitle {
    font-size: 16px;
  }

  .services-catalog-section {
    margin-bottom: 80px;
    padding: 0 20px;
  }

  .services-catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-catalog-card {
    min-height: 435px;
    padding: 25px;
  }

  .service-catalog-card-title {
    font-size: 26px;
  }

  .services-bottom-section {
    margin-bottom: 80px;
    padding: 0 20px;
  }

  .services-consultation-box {
    padding: 40px 25px;
    border-radius: 25px;
  }

  .services-consultation-tagline {
    font-size: 28px;
  }

  .services-consultation-title {
    font-size: 38px;
  }
}
