/* ============================================================
   Gelai Infotech — Services Page
   Figma: Services (814:75) | Hero — Frame 48 style (same as About)
   ============================================================ */

.services-page {
  background: var(--white);
  font-family: var(--font);
}

/* ===================== HERO (Frame 48 — 849px) ===================== */
.services-hero {
  position: relative;
  min-height: 849px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-header-offset, 168px);
  background:
    radial-gradient(
      ellipse 95% 90% at 88% 6%,
      #0c6eb7 0%,
      #569acd 32%,
      rgba(255, 255, 255, 0) 70%
    ),
    #ffffff;
}

.services-hero__header {
  z-index: 3;
  padding-top: 0;
  flex-shrink: 0;
}

.services-hero__header .hero__logo img {
  width: 150px;
  height: auto;
}

.services-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 565px) minmax(0, 760px);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 81px;
  padding-bottom: 56px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.services-hero__content {
  min-width: 0;
  max-width: 100%;
}

.services-hero__title {
  font-family: var(--font);
  font-size: clamp(32px, 3.6vw, var(--fs-title-hero));
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 24px;
  max-width: 100%;
  text-shadow: var(--title-shadow);
}

.services-hero__desc {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  max-width: 100%;
  margin: 0 0 32px;
}

.services-hero__cta {
  margin-top: 0;
}

.services-hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -20px;
  min-width: 0;
  max-width: 100%;
}

.services-hero__visual img {
  width: 100%;
  max-width: min(760px, 100%);
  height: auto;
  aspect-ratio: 760 / 548;
  object-fit: contain;
  display: block;
}

.services-hero__visual.reveal-fade {
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out);
}

@media (max-width: 1200px) {
  .services-hero__body {
    grid-template-columns: 1fr;
    margin-top: 48px;
    text-align: left;
  }

  .services-hero__visual {
    justify-content: center;
    margin-top: 0;
  }

  .services-hero__visual img {
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .services-hero {
    min-height: auto;
    overflow-x: clip;
  }

  .services-hero__title {
    font-size: clamp(28px, 7.5vw, 32px);
  }

  .services-hero__desc {
    font-size: clamp(14px, 3.8vw, 17px);
  }

  .services-hero__body {
    margin-top: 32px;
    padding-bottom: 40px;
  }

  .services-hero__visual {
    width: 100%;
  }

  .services-hero__visual img {
    max-width: 100%;
    width: 100%;
  }
}

/* ===================== WHAT WE OFFER ===================== */
.svc-offer {
  padding: 88px 0 96px;
  background: var(--white);
}

.svc-offer__header {
  margin-bottom: 56px;
}

.svc-offer__title {
  margin-bottom: 20px;
}

.svc-offer__lead {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.svc-offer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.svc-card {
  --svc-accent-start: #0c6eb7;
  --svc-accent-end: #235377;
  --svc-glow: rgba(12, 110, 183, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(12, 110, 183, 0.14);
  box-shadow: 0 10px 36px rgba(35, 43, 64, 0.07);
  overflow: hidden;
}

.svc-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.svc-card--link {
  cursor: pointer;
  padding: 0;
}

.svc-card--link .svc-card__link {
  padding: 28px 26px 30px;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    220px circle at var(--glow-x, 12%) var(--glow-y, 8%),
    var(--svc-glow) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.svc-card--mobile {
  --svc-accent-start: #e07a3a;
  --svc-accent-end: #c45a20;
  --svc-glow: rgba(224, 122, 58, 0.14);
}

.svc-card--cloud {
  --svc-accent-start: #569acd;
  --svc-accent-end: #0c6eb7;
  --svc-glow: rgba(86, 154, 205, 0.16);
}

.svc-card--uiux {
  --svc-accent-start: #5b7fd4;
  --svc-accent-end: #3d5fa8;
  --svc-glow: rgba(91, 127, 212, 0.14);
}

.svc-card--devops {
  --svc-accent-start: #235377;
  --svc-accent-end: #232b40;
  --svc-glow: rgba(35, 83, 119, 0.14);
}

.svc-card--marketing {
  --svc-accent-start: #2a9d8f;
  --svc-accent-end: #1f7a6f;
  --svc-glow: rgba(42, 157, 143, 0.14);
}

.svc-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.svc-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--svc-accent-start) 0%, var(--svc-accent-end) 100%);
  box-shadow: 0 6px 16px rgba(35, 43, 64, 0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.svc-card__title {
  font-family: var(--font);
  font-size: var(--fs-title-card);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}

.svc-card__desc {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(35, 43, 64, 0.78);
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}

.svc-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.svc-card__tags li {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 110, 183, 0.06);
  border: 1px solid rgba(12, 110, 183, 0.16);
}

.svc-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.svc-card__features li {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  padding-left: 22px;
  position: relative;
}

.svc-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--blue);
  clip-path: polygon(50% 0%, 62% 38%, 100% 38%, 68% 58%, 80% 100%, 50% 76%, 20% 100%, 32% 58%, 0% 38%, 38% 38%);
  opacity: 0.9;
}

/* ===================== WHY CHOOSE US ===================== */
.svc-why {
  padding: 88px 0 100px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(86, 154, 205, 0.12) 0%, transparent 70%),
    #f7fbff;
}

.svc-why__header {
  margin-bottom: 48px;
}

.svc-why__title {
  margin-bottom: 0;
}

.svc-why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.svc-why__card {
  padding: 28px 24px 32px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(12, 110, 183, 0.12);
  box-shadow: 0 8px 28px rgba(35, 43, 64, 0.06);
  position: relative;
  overflow: hidden;
}

.svc-why__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(12, 110, 183, 0.12) 0%, rgba(86, 154, 205, 0.18) 100%);
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svc-why__card-title {
  font-family: var(--font);
  font-size: var(--fs-title-card);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.svc-why__card-text {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(35, 43, 64, 0.78);
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .svc-offer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .svc-offer,
  .svc-why {
    padding: 56px 0 64px;
  }

  .svc-offers-detail .msvc-offer {
    padding: 48px 0;
  }

  .svc-offer__header {
    margin-bottom: 36px;
  }

  .svc-offer__lead {
    font-size: 17px;
  }

  .svc-offer__grid,
  .svc-why__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .svc-offer__title,
  .svc-why__title {
    font-size: clamp(32px, 8vw, 48px);
  }
}

/* Light offer detail blocks (moved from service pages) */
.svc-offers-detail {
  background: var(--white);
}

.svc-offers-detail .msvc-offer {
  padding: 72px 0;
}

.svc-offers-detail .msvc-offer + .msvc-offer {
  border-top: 1px solid rgba(35, 43, 64, 0.06);
}
