/* Custom styles for the 8-item services grid — refined, minimal, elegant */
.services-grid {
  gap: 1.25rem;
}

.services-grid .col-md-3 {
  display: flex;
}

.services-grid .col-md-3 a {
  display: block;
  width: 100%;
  padding: 18px 18px 16px 18px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  transition: transform 240ms cubic-bezier(.2,.9,.2,1), box-shadow 240ms ease, border-color 240ms ease;
  text-decoration: none;
  color: inherit;
  min-height: 138px;
}

.services-grid .col-md-3 a:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(16, 24, 40, 0.10);
  border-color: rgba(37, 99, 235, 0.12);
}

/* top row: icon + number */
.services-grid .col-md-3 a > .d-flex {
  gap: 14px;
  align-items: center;
}

.services-grid .col-md-3 a .bg-light {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
  box-shadow: inset 0 -2px 6px rgba(16,24,40,0.03);
}

.services-grid i {
  color: #2563eb;
}

/* number badge styled as compact rounded rectangle */
.services-grid h1.mb-0 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0;
  font-size: 22px;
  color: #d1d1d1; /* lighter gray */
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f7f8 0%, #f0f2f7 100%);
  box-shadow: 0 8px 20px rgba(16,24,40,0.04);
}

.services-grid h6 {
  margin-top: 12px;
  color: #000000;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
}

.services-grid .col-md-3 a small {
  display: block;
  color: #6b7280;
}

/* responsive tweaks */
@media (max-width: 768px) {
  .services-grid .col-md-3 a { min-height: 120px; }
  .services-grid h1.mb-0 { width:60px; height:60px; font-size:20px; }
}

@media (max-width: 576px) {
  .services-grid { gap: 0.5rem; }
  .services-grid .col-md-3 a { padding: 12px; }
  .services-grid h1.mb-0 { width:52px; height:52px; font-size:18px; }
  .services-grid .col-md-3 { margin-bottom: 0.25rem; }
}

/* Remove gaps and gutters inside services grid */
.services-grid {
  gap: 0 !important;
}
.services-grid > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;
}
.services-grid .mb-4 { margin-bottom: 0 !important; }

/* keep internal tile padding so content doesn't touch edges */
.services-grid .col-md-3 a { padding-left: 14px; padding-right: 14px; }

/* XS: force two columns per row (col-6 behavior) */
@media (max-width: 480px) {
  .services-grid > .col-md-3,
  .services-grid > [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  /* ensure alignment inside the small tile */
  .services-grid .col-md-3 a { padding-top: 12px; padding-bottom: 12px; }
}

/* Scoped overlay: hide full-section overlay, create overlay only behind the right column */
.ftco-consultation .overlay { display: none; }
.ftco-consultation .heading-section-white {
  position: relative;
  z-index: 2;
}
.ftco-consultation .heading-section-white::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.65) 0%, rgba(2,6,23,0.55) 100%);
  border-radius: 6px;
  z-index: -1;
}

/* On very small screens, make the pseudo-overlay span full width under content */
@media (max-width: 768px) {
  .ftco-consultation .heading-section-white::before {
    left: -12px; right: -12px;
    border-radius: 4px;
  }
}
