/* Custom tweaks atop Tailwind CDN */
.hero-gradient {
  background: linear-gradient(135deg, #eaf7ff 0%, #ffffff 50%, #e0f3ff 100%);
}

.map-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.6rem;
  min-height: 220px;
  max-height: 300px;
}

.service-card .service-body {
  flex: 1;
}

.service-card i {
  font-size: 1.4rem;
}

.service-icon {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1f3ff, #f2f9ff);
  color: #0b63a3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.service-carousel {
  overflow: hidden;
  position: relative;
}

.service-carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scrollServices 30s linear infinite;
}

.service-carousel:hover .service-carousel-track {
  animation-play-state: paused;
}

.service-carousel-card {
  width: 280px;
  flex: 0 0 auto;
}

@keyframes scrollServices {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.category-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.category-header {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(90deg, #e7f5ff 0%, #ffffff 70%);
  margin-bottom: 1rem;
}

.category-header-0 {
  background: linear-gradient(90deg, #e7f5ff 0%, #ffffff 70%);
}

.category-header-1 {
  background: linear-gradient(90deg, #e6fffb 0%, #ffffff 70%);
}

.category-header-2 {
  background: linear-gradient(90deg, #fff7ed 0%, #ffffff 70%);
}

.category-header-3 {
  background: linear-gradient(90deg, #f5f3ff 0%, #ffffff 70%);
}

.services-carousel {
  position: relative;
}

.services-carousel-viewport {
  overflow: hidden;
  padding: 0 3rem;
}

.services-carousel-track {
  position: relative;
  min-height: 360px;
}

.services-carousel-track-mobile {
  display: none;
}

.services-carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.services-carousel-slide.hidden {
  opacity: 0;
  pointer-events: none;
}

.services-carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.services-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.services-carousel-btn {
  pointer-events: auto;
  height: 40px;
  width: 40px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cfe8ff;
  color: #0b63a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  margin: 0 8px;
  font-size: 20px;
  line-height: 1;
}

.services-carousel-icon {
  width: 18px;
  height: 18px;
}

.hero-bg {
  background: radial-gradient(120% 120% at 20% 20%, #e7f6ff, #ffffff 60%), linear-gradient(135deg, #d8f1ff 0%, #eef7ff 45%, #ffffff 100%);
}

.hero-splash {
  position: relative;
  overflow: hidden;
}

.hero-portrait-wrap {
  width: min(520px, 100%);
  padding: 12px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.hero-portrait {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 26px;
}

.section-splash {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 15% 20%, #edf5ff 0%, #ffffff 55%),
    radial-gradient(90% 120% at 85% 30%, rgba(200, 221, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #f1f7ff 0%, #f7f9ff 45%, #ffffff 100%);
}

.section-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(100, 149, 237, 0.2) 0, rgba(100, 149, 237, 0) 70%),
    radial-gradient(2px 2px at 22% 30%, rgba(100, 149, 237, 0.16) 0, rgba(100, 149, 237, 0) 70%),
    radial-gradient(2px 2px at 30% 18%, rgba(100, 149, 237, 0.16) 0, rgba(100, 149, 237, 0) 70%),
    radial-gradient(2px 2px at 45% 40%, rgba(100, 149, 237, 0.14) 0, rgba(100, 149, 237, 0) 70%);
  opacity: 0.6;
  pointer-events: none;
}

.section-splash::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 80%);
}

.section-splash > div {
  position: relative;
  z-index: 1;
}

.section-splash-soft {
  background:
    radial-gradient(100% 120% at 20% 25%, #f0f7ff 0%, #ffffff 60%),
    linear-gradient(135deg, #f6fbff 0%, #ffffff 100%);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  z-index: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 1024px) {
  .services-carousel-slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-carousel-track {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .hero-portrait-wrap {
    margin: 0 auto;
    max-width: 320px;
  }

  .hero-portrait {
    height: 300px;
    object-position: 50% 18%;
  }

  .services-carousel-track-desktop {
    display: none;
  }

  .services-carousel-track-mobile {
    display: block;
  }

  .services-carousel-viewport {
    padding: 0 2.25rem;
  }

  .services-carousel-slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-carousel-track {
    min-height: 360px;
  }

  .services-carousel-btn {
    height: 36px;
    width: 36px;
    margin: 0 6px;
  }

  .services-carousel-icon {
    width: 16px;
    height: 16px;
  }

  .service-card {
    min-height: 160px;
    gap: 0.4rem;
  }

  .service-card .service-cta {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .hero-portrait {
    height: 450px;
    object-position: 50% 40%;
  }
}
