/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: white;
  color: black;
    font-family: var(--bs-font-1);
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   SECTION WRAPPER
   ============================================= */
.services-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 90px 32px 100px;
}

/* =============================================
   SECTION HEADER
   ============================================= */
.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-block;
    font-family: var(--bs-font-1);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #55ABE1;
  margin-bottom: 14px;
}

.section-title {
    font-family: var(--bs-font-1);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.1;
  color: black;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: black;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* =============================================
   GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* =============================================
   CARD
   ============================================= */
.service-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  cursor: pointer;
  background: #1a1814;
}

/* Image layer */
.card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.65s ease;
  filter: brightness(0.72) saturate(0.85);
}

/* Gradient overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px 22px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(10,8,5,0.78) 75%,
    rgba(10,8,5,0.92) 100%
  );
  transition: background 0.4s ease;
}

/* Number badge */
.card-number {
    font-family: var(--bs-font-1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #55ABE1;
  background: rgba(15,14,12,0.55);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 4px;
  padding: 3px 9px;
  align-self: flex-start;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Card content (bottom) */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-title {
    font-family: var(--bs-font-1);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: #f2ede6;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.card-desc {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(230, 222, 210, 0.78);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #55ABE1;
  text-decoration: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, gap 0.25s ease;
  margin-top: 2px;
}

.card-link .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* =============================================
   HOVER STATES
   ============================================= */
.service-card:hover .card-image img {
  transform: scale(1.06);
  filter: brightness(0.55) saturate(0.75);
}

.service-card:hover .card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.15) 35%,
    rgba(10,8,5,0.86) 65%,
    rgba(10,8,5,0.97) 100%
  );
}

.service-card:hover .card-desc {
  max-height: 80px;
  opacity: 1;
}

.service-card:hover .card-link {
  max-height: 40px;
  opacity: 1;
}

.service-card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* Gold accent line at bottom on hover */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #55ABE1;
  z-index: 2;
  transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::after {
  width: 100%;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-section {
    padding: 60px 20px 70px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    aspect-ratio: 16 / 9;
  }

  /* Always show desc on mobile (no hover) */
  .card-desc,
  .card-link {
    max-height: 80px;
    opacity: 1;
  }
}