@import url('./services.css');

.hero {
  padding: 4.5rem 0 2.75rem;
  text-align: left;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 11ch;
}

.lead {
  margin: 0 0 1.45rem;
  max-width: 44rem;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.45rem;
  align-items: stretch;
}

.detail-hero-grid > :first-child {
  max-width: 44rem;
}

.detail-hero-visual {
  position: relative;
  min-height: clamp(400px, 42vw, 560px);
  overflow: hidden;
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(120% 120% at 82% 18%, rgba(36, 160, 237, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(36, 160, 237, 0.12), rgba(124, 58, 237, 0.1));
}

.detail-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: saturate(1.05) contrast(1.04) brightness(0.9);
}

.detail-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(6, 21, 32, 0.78) 0%, rgba(6, 21, 32, 0.48) 28%, rgba(6, 21, 32, 0.18) 62%, rgba(6, 21, 32, 0.1) 100%),
    linear-gradient(180deg, rgba(6, 21, 32, 0.03) 0%, rgba(6, 21, 32, 0.08) 36%, rgba(6, 21, 32, 0.42) 100%);
}

.detail-hero-visual__content {
  position: absolute;
  top: 50%;
  left: 1.8rem;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  padding: 0;
  max-width: 28rem;
}

.detail-hero-visual__content strong {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.35;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.detail-hero-visual__content p {
  margin: 0;
  color: #d5e2ec;
  font-size: 0.95rem;
  line-height: 1.7;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}


.detail-hero-visual__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-hero-visual__chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(6, 21, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d9e7f0;
  font-size: 0.83rem;
}

@media (max-width: 980px) {
  .hero h1 {
    max-width: none;
  }

  .detail-hero-grid > :first-child {
    max-width: none;
  }

  .detail-hero-visual {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 2.35rem;
  }

  .detail-hero-visual {
    min-height: 300px;
  }

  .detail-hero-visual__content {
    top: auto;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    transform: none;
    max-width: none;
  }
}

body[data-page="services/data-cabling"] .detail-hero-image {
  object-position: 56% center;
}

body[data-page="services/networking-wifi"] .detail-hero-image {
  object-position: 58% center;
}

body[data-page="services/cyber-security"] .detail-hero-image {
  object-position: 56% center;
}
