/* ===== Services Section ===== */
.services-section {
  scroll-margin-top: 2.5rem;
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .services-section {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .services-section {
    padding: 5rem 0;
  }
}

.services-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .services-container {
    padding: 0 1.5rem;
  }
}

/* Header */
.services-header {
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .services-header {
    margin-bottom: 3.5rem;
  }
}

.services-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

@media (min-width: 640px) {
  .services-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .services-title {
    font-size: 2.25rem;
  }
}

.services-description {
  margin: 0.75rem auto 0;
  max-width: 48rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .services-description {
    margin-top: 1rem;
    font-size: 1rem;
  }
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Card wrapper (animation) */
.service-card-wrapper {
  height: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.service-card-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0.75rem;
  perspective: 1000px;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-card-inner {
  /* used for tilt */
}

/* Header gradients */
.service-card-header {
  position: relative;
  display: flex;
  height: 140px;
  align-items: center;
  justify-content: center;
  height: 9rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}

@media (min-width: 640px) {
  .service-card-header {
    height: 10rem;
  }
}

.service-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-header-img {
  transform: scale(1.08);
}

.gradient-sky {
  background: linear-gradient(to bottom right, #0ea5e9, #f37021);
}
.gradient-cyan {
  background: linear-gradient(to bottom right, #0891b2, #0f766e);
}
.gradient-amber {
  background: linear-gradient(to bottom right, #f59e0b, #ea580c);
}
.gradient-emerald {
  background: linear-gradient(to bottom right, #10b981, #15803d);
}
.gradient-indigo {
  background: linear-gradient(to bottom right, #6366f1, #6d28d9);
}

.service-card-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15),
    transparent
  );
  pointer-events: none;
}

.service-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-box {
  transform: scale(1.1);
}

@media (min-width: 640px) {
  .service-icon-box {
    width: 3.5rem;
    height: 3.5rem;
  }
  .service-icon-box svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Body */
.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

@media (min-width: 640px) {
  .service-card-body {
    padding: 1.5rem;
  }
}

.service-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.375;
  color: #0f172a;
}

@media (min-width: 640px) {
  .service-card-title {
    font-size: 1.125rem;
  }
}

.service-card-desc {
  margin: 0.5rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #475569;
}

@media (min-width: 640px) {
  .service-card-desc {
    margin-top: 0.75rem;
  }
}

/* Highlights */
.services-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid #cbd5e1;           /* border xám nhận diện */
  border-radius: 1rem;
  /* nền giống card */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 246, 236, 0.96) 100%
  );
  box-shadow: 0 8px 20px rgba(243, 112, 33, 0.12);
}

@media (min-width: 640px) {
  .services-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 1.5rem;
  }
}

.services-highlight {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .services-highlight {
    gap: 1rem;
  }

  /* Vertical divider */
  .services-highlight:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3.5rem;
    background: #e2e8f0;
  }
}

.services-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  /* nền icon = nền khối highlights (cùng tông kem) */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 246, 236, 0.96) 100%
  );
  color: #f37021;                      /* icon cam */
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 14px rgba(243, 112, 33, 0.22); /* shadow cam nhẹ */
}

@media (min-width: 640px) {
  .services-highlight-icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.services-highlight-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
  color: #f37021;
}

/* Nếu style.css đang ép icon nền cam + trắng, ghi đè trong services: */
.services-highlights .services-highlight-icon {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 246, 236, 0.96) 100%
  ) !important;
  color: #f37021 !important;
  box-shadow: 0 6px 14px rgba(243, 112, 33, 0.22) !important;
}

.services-highlights .services-highlight-icon svg {
  color: #f37021 !important;
  stroke: currentColor;
}

.services-highlight-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #0f172a;
}

.services-highlight-desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #475569;
}