/* ==========================================================================
   Services Page Specific Styles
   ========================================================================== */

.services-page {
  width: 100%;
}

/* ==========================================================================
   1. Services Hero Section
   ========================================================================== */

.services-hero-section {
  position: relative;
  width: 100%;
  min-height: 290px;
  background-color: var(--primary-navy);
  background-image: 
    linear-gradient(rgba(5, 12, 70, 0.55), rgba(5, 12, 70, 0.55)),
    url("../assets/services-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 200px; /* Space for overlaid transparent header */
  padding-bottom: 5%;
  overflow: hidden;
}

/* Subtle darker/transparent circular decorative shape toward left */
.services-hero-shape {
  position: absolute;
  bottom: -90px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 40, 0.35) 0%, rgba(0, 0, 40, 0.18) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.services-hero-title {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 2.75rem; /* ~44px */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.services-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-main);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   2. Services Listing Section
   ========================================================================== */

.services-list-section {
  background-color: var(--page-bg);
  padding: 75px 0 90px;
  width: 100%;
}

.services-list-header {
  margin-bottom: 2.75rem;
  text-align: left;
}

.services-list-main-title {
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 2.25rem; /* ~36px */
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

/* Service Card Item */
.service-item-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-image-wrap {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: #e2e8f0;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-item-card:hover .service-card-img {
  transform: scale(1.03);
}

.service-card-title {
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 1.25rem; /* ~20px */
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.service-card-text {
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 0.95rem; /* ~15px */
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Second Row with Prominent Spacing */
.services-second-row {
  margin-top: 3.5rem;
}

/* Book A Consultation Button Container */
.services-cta-btn-wrap {
  margin-top: 4.5rem;
  margin-bottom: 1rem;
}

/* Book A Consultation Button */
.btn-services-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--primary-navy);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  min-width: 230px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 9, 75, 0.2);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-services-action i {
  font-size: 0.95rem;
  color: var(--white);
  transition: transform 0.2s ease;
}

.btn-services-action:hover {
  background-color: #051478;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 9, 75, 0.28);
}

.btn-services-action:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   3. Call-CTA Section ("We're here to help! Call Us Today!")
   ========================================================================== */

.final-cta-section {
  background-color: var(--page-bg);
  padding: 30px 0 100px;
}

.final-cta-wrapper {
  overflow: hidden;
  background-color: var(--primary-navy);
}

.final-cta-left-pane {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-color: #e2e8f0;
}

.final-cta-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.final-cta-image:not([src]),
.final-cta-image[src=""] {
  background-color: #e2e8f0;
  min-height: 380px;
}

.final-cta-right-pane {
  background-color: var(--primary-navy);
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.final-cta-title {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 2.35rem; /* ~38px */
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
}

/* Phone Button */
.btn-final-cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--white);
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-final-cta-phone i {
  font-size: 1.05rem;
  color: var(--primary-navy);
}

.btn-final-cta-phone:hover {
  background-color: #f8f9fc;
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet Landscape & Small Desktop (1024px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-list-main-title {
    font-size: 2.15rem;
  }

  .final-cta-right-pane {
    padding: 3.5rem 2.5rem;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991.98px) {
  .services-hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height-mobile, 78px) + 2rem);
    padding-bottom: 60px;
  }

  .services-hero-title {
    font-size: 2.25rem;
  }

  .services-hero-shape {
    width: 260px;
    height: 260px;
    bottom: -60px;
    left: -60px;
  }

  .services-list-section {
    padding: 60px 0 70px;
  }

  .services-list-main-title {
    font-size: 2rem;
  }

  .services-list-header {
    margin-bottom: 2rem;
  }

  .services-second-row {
    margin-top: 1.5rem;
  }

  .services-cta-btn-wrap {
    margin-top: 3rem;
  }

  .final-cta-section {
    padding: 20px 0 70px;
  }

  .final-cta-right-pane {
    padding: 3rem 2rem;
  }

  .final-cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .final-cta-left-pane,
  .final-cta-image {
    min-height: 320px;
  }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767.98px) {
  .services-hero-section {
    padding-top: calc(var(--header-height-mobile, 78px) + 1.25rem);
    padding-bottom: 50px;
  }

  .services-hero-title {
    font-size: 2rem; /* ~32px */
  }

  .services-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .services-list-section {
    padding: 45px 0 55px;
  }

  .services-list-main-title {
    font-size: 1.65rem;
  }

  .services-second-row {
    margin-top: 0;
  }

  .services-cta-btn-wrap {
    margin-top: 2.5rem;
  }

  .btn-services-action {
    width: 100%;
    justify-content: center;
  }

  .final-cta-right-pane {
    padding: 2.5rem 1.5rem;
  }

  .final-cta-title {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }

  .btn-final-cta-phone {
    width: 100%;
    justify-content: center;
  }

  .final-cta-left-pane,
  .final-cta-image {
    min-height: 250px;
  }
}

/* Small Mobile (<= 480px / 375px) */
@media (max-width: 480px) {
  .services-hero-section {
/*    padding-top: 45px;
    padding-bottom: 45px;*/
  }

  .services-hero-title {
    font-size: 1.85rem;
  }

  .services-hero-subtitle {
    font-size: 0.9rem;
  }

  .services-list-main-title {
    font-size: 1.45rem;
  }

  .final-cta-right-pane {
    padding: 2rem 1.25rem;
  }

  .final-cta-title {
    font-size: 1.45rem;
  }
}
