/* =====================================================
   EHI Services Grid widget — ehi-services-grid.css
   ===================================================== */

.ehi-services-grid {
  background:
    radial-gradient(
      circle at top center,
      rgba(196, 30, 42, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #0d0d0d;
  padding: 72px 24px 80px;
}

.ehi-sg-container {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.ehi-sg-header {
  margin: 0 auto 48px;
  max-width: 1080px;
}

.ehi-sg--align-left .ehi-sg-header {
  text-align: left;
}

.ehi-sg--align-center .ehi-sg-header {
  text-align: center;
}

.ehi-sg--align-right .ehi-sg-header {
  text-align: right;
}

.ehi-sg-title {
  margin: 0;
  color: #ffffff;
  font-family: "Base Neue", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-transform: uppercase;
}

.ehi-sg-rule {
  width: 70px;
  height: 6px;
  margin: 24px auto 22px;
  background: #c41e2a;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}

.ehi-sg--align-left .ehi-sg-rule {
  margin-left: 0;
  margin-right: auto;
}

.ehi-sg--align-right .ehi-sg-rule {
  margin-left: auto;
  margin-right: 0;
}

.ehi-sg-brands {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.65;
}

.ehi-sg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ehi-sg-card {
  min-width: 0;
  height: 100%;
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    #1a1a1a;
  box-shadow: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.ehi-sg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.22s ease;
}

.ehi-sg-card:hover {
  transform: translateY(-4px);
  border-color: #c41e2a;
  box-shadow: 0 0 30px rgba(196, 30, 42, 0.15);
}

.ehi-sg-card:hover::before {
  background: #c41e2a;
}

.ehi-sg-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.ehi-sg-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    #111111;
}

.ehi-sg-icon i {
  font-size: 26px;
  color: #ffffff;
}

.ehi-sg-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.ehi-sg-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.ehi-sg-card-title {
  margin: 0;
  color: #ffffff;
  font-family: "Base Neue", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ehi-sg-points {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.68);
}

.ehi-sg-points li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 16px;
  line-height: 1.55;
}

.ehi-sg-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c41e2a;
}

.ehi-sg-points li:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .ehi-services-grid {
    padding: 60px 20px 72px;
  }

  .ehi-sg-header {
    margin-bottom: 38px;
  }

  .ehi-sg-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .ehi-sg-card {
    padding: 20px 16px 18px;
    border-radius: 6px;
  }

  .ehi-sg-card-top {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .ehi-sg-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 6px;
  }

  .ehi-sg-icon i,
  .ehi-sg-icon svg,
  .ehi-sg-icon img {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }

  .ehi-sg-card-title {
    font-size: 0.88rem;
  }

  .ehi-sg-points {
    padding-left: 0;
  }

  .ehi-sg-points li {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
}

@media (max-width: 430px) {
  .ehi-services-grid {
    padding: 52px 14px 64px;
  }

  .ehi-sg-grid {
    gap: 14px;
  }

  .ehi-sg-card {
    padding: 18px 12px 16px;
  }

  .ehi-sg-card-title {
    font-size: 0.8rem;
  }

  .ehi-sg-points li {
    font-size: 0.84rem;
    line-height: 1.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ehi-sg-card {
    transition: none !important;
    transform: none !important;
  }
}
