/* ! =========================
   SERVICES HERO
========================= */

.services-hero-section {
  position: relative;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  background: #10202c;
  isolation: isolate;
}

/* =========================
   BACKGROUND IMAGE
========================= */

.services-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================
   OVERLAY
========================= */

.services-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 40, 67, 0.78) 0%,
      rgba(25, 74, 104, 0.56) 32%,
      rgba(32, 54, 69, 0.38) 58%,
      rgba(14, 24, 32, 0.52) 100%
    ),
    linear-gradient(180deg, rgba(7, 18, 25, 0.12) 0%, rgba(7, 18, 25, 0.3) 100%);
}

/* =========================
   WRAPPER
========================= */

.services-hero-wrapper {
  position: relative;
  z-index: 3;
  width: min(100% - 32px, 1320px);
  min-height: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   CONTENT
========================= */

.services-hero-content {
  width: 100%;
  max-width: 1000px;
  padding: 70px 0;
  color: #ffffff;
  text-align: center;
}

/* Kicker */

.services-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-hero-kicker::before,
.services-hero-kicker::after {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #00b2e9;
}

/* H1 */

.services-hero-content h1 {
  max-width: 1000px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(2.7rem, 5vw, 3rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(7, 18, 25, 0.24);
}

/* Subtitle */

.services-hero-content p {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  font-weight: 500;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  .services-hero-section,
  .services-hero-wrapper {
    min-height: 400px;
  }

  .services-hero-content {
    padding: 60px 0;
  }

  .services-hero-content h1 {
    max-width: 820px;
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}

@media (max-width: 767.98px) {
  .services-hero-section,
  .services-hero-wrapper {
    min-height: 460px;
  }

  .services-hero-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .services-hero-image {
    object-position: center;
  }

  .services-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 32, 50, 0.66) 0%,
      rgba(6, 27, 42, 0.82) 100%
    );
  }

  .services-hero-content {
    padding: 56px 0;
  }

  .services-hero-kicker {
    margin-bottom: 18px;
    font-size: 0.72rem;
  }

  .services-hero-kicker::before,
  .services-hero-kicker::after {
    width: 30px;
  }

  .services-hero-content h1 {
    font-size: 2.35rem;
    line-height: 0.98;
  }

  .services-hero-content p {
    margin-top: 18px;
    font-size: 1.15rem;
  }
}

/* ! =========================
   SERVICES INTRO
========================= */

.services-intro-section {
  padding: 48px 0;
  background: #f0f1f3;
}

.services-intro-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

.services-intro-content {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.services-intro-content p {
  margin: 0;
  color: #2d333b;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.5;
  font-weight: 400;
}

.services-intro-content strong,
.services-intro-content b {
  color: #161b21;
  font-weight: 800;
}

/* Responsive */

@media (max-width: 767.98px) {
  .services-intro-section {
    padding: 38px 0;
  }

  .services-intro-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .services-intro-content p {
    font-size: 0.98rem;
    line-height: 1.55;
  }
}

/* ! =========================
   SERVICES CARDS
========================= */

.services-cards-section {
  padding: 80px 0;
  background: transparent;
}

.services-cards-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.services-cards-header {
  margin-bottom: 24px;
}

.services-cards-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #263444;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-cards-kicker::after {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #00b2e9;
}

.services-cards-header h2 {
  margin: 0;
  color: #263444;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

/* =========================
   GRID
========================= */

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* =========================
   CARD
========================= */

.service-preview-card {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  background: #071c29;
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.service-preview-card:hover,
.service-preview-card:focus {
  color: #ffffff;
  text-decoration: none;
}

.service-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.18);
}

.service-preview-card:focus-visible {
  outline: 3px solid #00b2e9;
  outline-offset: 4px;
}

/* =========================
   IMAGE
========================= */

.service-preview-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition:
    transform 0.55s ease,
    filter 0.4s ease;
}

.service-preview-card:hover .service-preview-media img {
  transform: scale(1.06);
  filter: saturate(1.07);
}

/* =========================
   OVERLAY
========================= */

.service-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(5, 20, 30, 0.04) 0%,
    rgba(5, 20, 30, 0.18) 28%,
    rgba(5, 25, 38, 0.72) 58%,
    rgba(4, 22, 34, 0.98) 100%
  );
  transition: background 0.35s ease;
}

.service-preview-card:hover .service-preview-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 178, 233, 0.06) 0%,
    rgba(5, 44, 61, 0.28) 30%,
    rgba(4, 38, 54, 0.76) 60%,
    rgba(4, 24, 36, 0.98) 100%
  );
}

/* =========================
   CONTENT
========================= */

.service-preview-content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

/* Icon */

.service-preview-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00b2e9;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 178, 233, 0.3);
}

/* Title */

.service-preview-content h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.05em;
}

/* Subtitle */

.service-preview-subtitle {
  display: block;
  margin-bottom: 17px;
  color: #00b2e9;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Description */

.service-preview-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* =========================
   CTA
========================= */

.service-preview-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #122331;
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.service-preview-cta::after {
  content: "→";
  margin-left: 9px;
  font-size: 1rem;
  transition: transform 0.22s ease;
}

.service-preview-card:hover .service-preview-cta {
  background: #00b2e9;
  color: #ffffff;
}

.service-preview-card:hover .service-preview-cta::after {
  transform: translateX(4px);
}

/* =========================
   TABLET
========================= */

@media (max-width: 991.98px) {
  .services-cards-section {
    padding: 68px 0;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
  }

  .service-preview-card {
    min-height: 480px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767.98px) {
  .services-cards-section {
    padding: 52px 0;
  }

  .services-cards-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .services-cards-header h2 {
    font-size: 2rem;
  }

  .service-preview-card {
    min-height: 520px;
    border-radius: 16px;
  }

  .service-preview-content {
    padding: 24px;
  }

  .service-preview-content h3 {
    font-size: 2rem;
  }

  .service-preview-content p {
    font-size: 0.9rem;
  }
}
