/* Homepage extras extracted from index.html — change colours here */

:root {
  --hero-mesh-glow: rgba(0, 209, 255, 0.35);
  --hero-mesh-grid: rgba(255, 255, 255, 0.04);
}

.hero-mesh {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--hero-mesh-glow), transparent),
    linear-gradient(var(--hero-mesh-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-mesh-grid) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.map-embed {
  border: 0;
}

.office-map {
  height: 420px;
  width: 100%;
  z-index: 0;
}

/* Case-study story: keep the summary card centred beside the narrative column */
@media (min-width: 1024px) {
  .story-split {
    align-items: center;
  }
}

.story-split > div > p {
  text-align: justify;
}

/* Service cards: equal size in every row; CTA sits 15px above the bottom edge */
.service-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
  row-gap: 15px;
}

.service-grid > a {
  height: 100%;
  padding-bottom: 15px;
}

.service-card-cta {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1b2456;
  transition: color 0.2s ease;
}

.service-grid > a:hover .service-card-cta,
.service-grid > a:focus-visible .service-card-cta {
  color: #00d1ff;
}

/* Product cards: fill the section width (3 + 2 on large screens) */
.product-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.product-grid > aside {
  height: 100%;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .product-grid > aside:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .product-grid > aside:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
}
