/* ── Services Section — 4-col scroll-reveal grid ── */

.bh-services-section-main {
  background-color: #f8f7f4;
  position: relative;
}

/* ── Section header ── */
.bh-services-header {
  padding: 75px 0 48px;
}

.bh-services-header .bh-title-h2 {
  font-family: var(--font-family-primary);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-black);
  text-align: center;
  margin: 0;
}

/* ── Grid — 4 equal columns, vertical dividers ── */
.bh-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bh-services-grid > .bh-service-col {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.bh-services-grid > .bh-service-col:last-child {
  border-right: none;
}

/* ── Heading line-by-line reveal ── */
.bh-services-header .bh-title-h2 span {
  display: inline-block;
  overflow: hidden;
}

.bh-services-header .bh-title-h2 span span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bh-services-header.bh-header-visible .bh-title-h2 span span {
  transform: translateY(0);
}

/* ── Service card ── */
.bh-service-card {
  padding: 2.4rem;
  box-sizing: border-box;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  /* GSAP will handle opacity + transform */
}

.bh-service-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 48px;
}

/* ── Icon circle ── */
.bh-service-icon {
  width: 64px;
  height: 64px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.bh-service-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ── Card content ── */
.bh-service-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.bh-service-content-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bh-service-content-header h4 {
  font-family: var(--font-family-primary);
  font-size: var(--fs-subtitle);
  font-weight: 600;
  color: var(--color-text-black);
  margin: 0;
  line-height: 1.3;
}

.bh-service-content-header p {
  font-family: var(--font-family-primary);
  font-size: var(--fs-para);
  font-weight: 500;
  color: var(--color-text-black);
  margin: 0;
  line-height: 1.6;
}

/* ── Card CTA button (transparent bordered) ── */
.bh-service-btn {
  font-family: var(--font-family-primary);
  font-size: var(--fs-para);
  font-weight: 600;
  color: var(--color-text-black);
  border-radius: 3rem;
  cursor: pointer;
  padding: 14px 24px;
  line-height: 1.26;
  border: 2px solid var(--color-text-black);
  background-color: transparent;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  width: fit-content;
}

.bh-service-btn:hover {
  background-color: var(--color-text-black);
  color: #fff;
}

.bh-service-btn .bh-text-original,
.bh-service-btn .bh-text-hover {
  display: flex;
  overflow: hidden;
}

.bh-service-btn .bh-text-original span,
.bh-service-btn .bh-text-hover span {
  display: block;
  transition: transform 0.2s ease;
}

.bh-service-btn .bh-text-hover {
  position: absolute;
  left: 24px;
  overflow: hidden;
}

.bh-service-btn .bh-text-hover span {
  transform: translateY(-1.3em);
}

.bh-service-btn:hover .bh-text-original span {
  transform: translateY(1.3em);
}

.bh-service-btn:hover .bh-text-hover span {
  transform: translateY(0);
}

/* ── View All Services button ── */
.bh-view-all-services {
  text-align: center;
  padding: 48px 0 64px;
  background: #f8f7f4;
}

.bh-view-all-services a {
  font-family: var(--font-family-primary);
  font-size: var(--fs-para);
  font-weight: 600;
  color: #1163fb;
  border-radius: 3rem;
  cursor: pointer;
  padding: 20px 32px;
  line-height: 1.26;
  border: 2px solid #1163fb;
  background-color: transparent;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.bh-view-all-services a:hover {
  background-color: #1163fb;
  color: #fff;
}

.bh-view-all-services a:hover .bh-button-icon-svg path {
  fill: #fff;
}

.bh-view-all-services .bh-button-icon-svg path {
  fill: #1163fb;
  transition: fill 0.3s ease;
}

.bh-view-all-services .bh-text-original,
.bh-view-all-services .bh-text-hover {
  display: flex;
  overflow: hidden;
}

.bh-view-all-services .bh-text-original span,
.bh-view-all-services .bh-text-hover span {
  display: block;
  transition: transform 0.2s ease;
}

.bh-view-all-services .bh-text-hover {
  position: absolute;
  left: 32px;
  overflow: hidden;
}

.bh-view-all-services .bh-text-hover span {
  transform: translateY(-1.3em);
}

.bh-view-all-services a:hover .bh-text-original span {
  transform: translateY(1.3em);
}

.bh-view-all-services a:hover .bh-text-hover span {
  transform: translateY(0);
}

/* ── Layout container for header ── */
.bh-layout-container-sm {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0 48px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1440px) {
  .bh-services-header { padding: 60px 0 38px; }
  .bh-service-card-inner { gap: 38px; }
  .bh-service-icon { width: 51px; height: 51px; }
  .bh-service-icon img { width: 24px; height: 24px; }
  .bh-service-content { gap: 38px; }
  .bh-service-content-header { gap: 20px; }
}

@media (max-width: 1200px) {
  .bh-service-card { padding: 2rem; }
  .bh-service-card-inner { gap: 32px; }
  .bh-service-icon { width: 42px; height: 42px; }
  .bh-service-icon img { width: 20px; height: 20px; }
  .bh-service-content-header { gap: 16px; }
  .bh-service-content { gap: 24px; }
  .bh-service-content-header h4 { font-size: 16px; }
  .bh-service-content-header p { font-size: 12px; }
  .bh-service-btn { padding: 12px 16px; font-size: 10px; }
  .bh-view-all-services { padding: 32px 0 48px; }
}

@media (max-width: 1024px) {
  .bh-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bh-services-grid > .bh-service-col:nth-child(2n) {
    border-right: none;
  }
  .bh-services-grid > .bh-service-col {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .bh-service-icon { width: 48px; height: 48px; }
  .bh-service-card { padding: 2rem; }
  .bh-service-card-inner { gap: 24px; }
  .bh-service-content { gap: 24px; }
}

@media (max-width: 768px) {
  .bh-services-header { padding: 40px 0 24px; }
  .bh-services-header .bh-title-h2 { text-align: left; }
  .bh-services-grid {
    grid-template-columns: 1fr;
  }
  .bh-services-grid > .bh-service-col {
    border-right: none;
    border-bottom: none;
  }
  .bh-service-card {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
  }
  .bh-service-card-inner { gap: 24px; }
  .bh-service-content { gap: 24px; }
  .bh-service-content-header h4 { font-size: 18px; }
  .bh-layout-container-sm { padding: 0 24px; }
  .bh-view-all-services { padding: 24px 16px 48px; }
  .bh-view-all-services a {
    width: 100%;
    justify-content: center;
    border-width: 1px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bh-services-header .bh-title-h2 span span {
    transform: none;
    transition: none;
  }
}
