/* Services page only */

.service-hero {
  padding: 170px 0 90px;
  background: linear-gradient(rgba(10, 15, 28, 0.84), rgba(10, 15, 28, 0.84)),
    url("../img/marketing.jpeg") center center / cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.service-hero-content {
  max-width: 980px;
  margin: 0 auto;
}

.service-hero h1 {
  font-size: 58px;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.service-hero p {
  max-width: 820px;
  font-size: 21px;
  line-height: 1.85;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 15px;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-row i {
  color: var(--primary);
}

.service-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.service-pill:hover {
  transform: translateY(-2px);
  background: rgba(224, 58, 60, 0.28);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

/* Overview cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card .card-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #fff1f1;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #5f687b;
  margin-bottom: 0;
}

.service-card-content {
  flex: 1 1 auto;
}

.service-card-buttons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
}

.card-link,
.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.card-link {
  width: 100%;
}

.card-link.primary,
.detail-link.primary {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #ffffff;
}

.card-link.primary:hover,
.detail-link.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.card-link.secondary,
.detail-link.secondary {
  background: transparent;
  border: 1.5px solid rgba(224, 58, 60, 0.28);
  color: var(--primary);
}

.card-link.secondary:hover,
.detail-link.secondary:hover {
  background: #fff5f5;
  color: var(--primary);
}

.services-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 24px;
}

.services-bottom-cta p {
  margin: 0;
  font-size: 16px;
  color: var(--dark);
}

.services-bottom-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

/* Detail sections */
.service-detail-section {
  scroll-margin-top: 110px;
}

.premium-service-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border: 1px solid rgba(224, 58, 60, 0.08);
  border-radius: 24px;
  padding: 42px;
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.06),
    0 4px 18px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.premium-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, #e03a3c 0%, #ff7a7c 100%);
  border-radius: 0 0 12px 0;
}

.premium-service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.10),
    0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: rgba(224, 58, 60, 0.16);
}

.premium-service-card.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.premium-service-card.reverse .service-detail-text {
  order: 2;
}

.premium-service-card.reverse .premium-service-image {
  order: 1;
}

.service-detail-text {
  min-width: 0;
}

.service-detail-text h3 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #111111;
}

.service-detail-text p {
  color: #667085;
  line-height: 1.9;
  margin-bottom: 16px;
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.premium-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: #4d5768;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideUp 0.6s ease forwards;
}

.premium-list li:nth-child(1) {
  animation-delay: 0.12s;
}

.premium-list li:nth-child(2) {
  animation-delay: 0.22s;
}

.premium-list li:nth-child(3) {
  animation-delay: 0.32s;
}

.premium-list li i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}

.premium-service-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.premium-service-image::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(224, 58, 60, 0.10) 0%, rgba(224, 58, 60, 0.03) 45%, rgba(224, 58, 60, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.premium-service-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  display: block;
  border-radius: 18px;
  transform: translateY(0);
  animation: floatImage 5s ease-in-out infinite;
  transition: transform 0.35s ease;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.premium-service-card:hover .premium-service-image img {
  transform: translateY(-6px) scale(1.02);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.detail-actions .detail-link {
  width: auto;
  min-width: 185px;
  position: relative;
  overflow: hidden;
}

.detail-link.primary {
  box-shadow: 0 10px 20px rgba(224, 58, 60, 0.16);
}

.detail-link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(224, 58, 60, 0.22);
}

.detail-link.secondary:hover {
  transform: translateY(-2px);
}

/* Final CTA */
.services-final-cta .section-title {
  max-width: 860px;
  margin-bottom: 34px;
}

.services-final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Animations */
@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 0.75; }
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1399px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .service-hero {
    padding: 150px 0 80px;
  }

  .service-hero h1 {
    font-size: 46px;
  }

  .service-hero p {
    font-size: 19px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-service-card,
  .premium-service-card.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 26px;
  }

  .premium-service-card.reverse .service-detail-text,
  .premium-service-card.reverse .premium-service-image {
    order: unset;
  }

  .premium-service-image img {
    max-width: 260px;
  }

  .service-detail-text h3 {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .service-hero {
    padding: 130px 0 72px;
  }

  .service-hero h1 {
    font-size: 34px;
  }

  .service-hero p {
    font-size: 17px;
    line-height: 1.8;
  }

  .hero-trust-row {
    gap: 10px 14px;
    font-size: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .premium-service-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .premium-service-image::before {
    width: 220px;
    height: 220px;
  }

  .service-detail-text h3 {
    font-size: 27px;
  }

  .detail-actions .detail-link {
    width: 100%;
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-service-image::before,
  .premium-service-image img,
  .premium-list li {
    animation: none !important;
  }

  .premium-service-card,
  .detail-link {
    transition: none !important;
  }
}