/* ===== Services Page ===== */
@import url('common.css');

.services-grid-section {
  padding: 70px 24px;
  background: #fafbfc;
}

.services-hero {
  overflow: hidden;
}
.services-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) saturate(1.1);
  transform-origin: center;
  animation: servicesHeroZoom 14s ease-in-out infinite alternate;
}
.services-hero .overlay {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.52) 0%, rgba(26, 53, 83, 0.38) 100%);
}
.services-hero-content {
  text-align: left;
}
.services-hero-title,
.services-hero-sub {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.service-block {
  display: flex;
  align-items: stretch;
  gap: 28px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-left: 6px solid #1ab555;
  transition: opacity 0.78s cubic-bezier(.2,.7,.2,1), transform 0.78s cubic-bezier(.2,.7,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(10, 28, 47, 0.12);
  border-left-color: #1a3553;
}
.service-block-alt {
  flex-direction: row-reverse;
  border-left: 0;
  border-right: 6px solid #1a3553;
}
.service-block-alt:hover { border-right-color: #1ab555; }

.service-media {
  flex: 0 0 34%;
  min-height: 230px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 28, 47, 0.25), transparent 55%);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.2s ease;
}
.service-block:hover .service-media img {
  transform: scale(1.11);
}

.service-icon {
  flex-shrink: 0;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ab555 0%, #1a3553 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}
.service-text { flex: 1; }
.service-text h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #1a3553;
}
.service-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 14px;
}
.service-text ul {
  padding-left: 22px;
  color: #444;
  font-size: 0.95rem;
}
.service-text ul li { margin: 6px 0; }

.cta-strip {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 78px 24px;
}
.services-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.08) brightness(0.8);
  animation: servicesCtaZoom 16s ease-in-out infinite alternate;
}
.services-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 24, 40, 0.8) 0%, rgba(26, 53, 83, 0.58) 100%);
}
.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-heading {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 10px;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.cta-text {
  color: #e8f0f6;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 16px 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1ab555 0%, #16a44d 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 12px 28px rgba(26, 181, 85, 0.28), 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, gap 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}
.cta-button::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 55%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  transition: left 0.58s ease;
}
.cta-button span {
  display: inline-block;
  transition: transform 0.28s ease;
}
.cta-button:hover {
  transform: translateY(-4px);
  gap: 15px;
  color: #fff;
  filter: brightness(1.05);
  box-shadow: 0 18px 38px rgba(26, 181, 85, 0.34), 0 14px 30px rgba(0, 0, 0, 0.28);
}
.cta-button:hover::before {
  left: 115%;
}
.cta-button:hover span {
  transform: translateX(4px);
}
.cta-button:active {
  transform: translateY(-1px) scale(0.99);
}
.cta-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 4px;
}

@keyframes servicesHeroZoom {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}
@keyframes servicesCtaZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@media (max-width: 768px) {
  .service-block, .service-block-alt {
    flex-direction: column;
    text-align: left;
    padding: 24px;
  }
  .service-media {
    min-height: 210px;
    width: 100%;
  }
  .service-icon {
    width: 78px;
    height: 78px;
    font-size: 2rem;
  }
  .services-hero-content {
    text-align: center;
  }
  .cta-strip {
    min-height: 220px;
    padding: 58px 20px;
  }
  .cta-container {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero-bg,
  .services-cta-bg,
  .cta-button {
    animation: none !important;
    transform: none !important;
  }
  .cta-button,
  .cta-button::before,
  .cta-button span {
    transition: none !important;
  }
  .service-media img {
    transition: none !important;
    transform: none !important;
  }
}
