/* =========================================================
   Shared Service Page CSS
   Used by EICR, consumer units, fault finding, EV chargers,
   rewires and commercial electrical service pages.
   ========================================================= */

.eicr-hero {
  background:
    linear-gradient(135deg, rgba(0,0,0,.92), rgba(35,35,35,.88)),
    url("/images/nse-home-hero-photo.jpeg") center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.eicr-hero__content {
  max-width: 780px;
}

.eicr-eyebrow {
  color: greenyellow !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px !important;
}

.eicr-hero h1,
.eicr-cta h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 42px;
  line-height: 1.15;
}

.eicr-hero p,
.eicr-cta p {
  color: rgba(255,255,255,.92);
  font-size: 17px;
  line-height: 1.7;
}

.eicr-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.eicr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: #444;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.eicr-btn:hover {
  background: greenyellow;
  color: #000 !important;
}

.eicr-btn--light {
  background: #fff;
  color: #000 !important;
}

.eicr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.eicr-card {
  padding: 22px;
  background: #f8f8f8;
  border-left: 4px solid greenyellow;
  border-radius: 10px;
}

.eicr-card i {
  font-size: 30px;
  margin-bottom: 10px;
  color: #222;
}

.eicr-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.eicr-service {
  padding: 18px;
  background: #f4f4f4;
  border-radius: 8px;
  font-weight: 700;
}

.eicr-note {
  background: #f7f7f7;
  border-left: 5px solid #333;
  border-radius: 8px;
  padding: 18px;
}

.eicr-cta {
  background: linear-gradient(135deg, #111 0%, #2f2f2f 100%);
  color: #fff;
}

.eicr-links a,
.eicr-note a {
  color: #111;
  font-weight: bold;
}

/* =========================================================
   Service internal link hub
   This fixes the plain inline link issue on homepage/service pages.
   ========================================================= */

.service-link-hub {
  text-align: center;
}

.service-link-hub p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.service-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
  text-align: left;
}

.service-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #f8f8f8;
  border-left: 4px solid greenyellow;
  border-radius: 10px;
  color: #111 !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.service-link-card i {
  font-size: 24px;
  color: #2d6a2d;
  min-width: 28px;
}

.service-link-card span {
  line-height: 1.35;
}

@media screen and (max-width: 760px) {
  .eicr-hero h1,
  .eicr-cta h2 {
    font-size: 31px;
  }

  .eicr-grid,
  .eicr-services,
  .service-link-grid {
    grid-template-columns: 1fr;
  }

  .eicr-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .eicr-btn {
    width: 100%;
    box-sizing: border-box;
  }

  .service-link-card {
    width: 100%;
    box-sizing: border-box;
  }
}
