.hero {
  background-color: var(--color-brand-blue);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(220, 234, 247, 0.07) 0px,
      rgba(220, 234, 247, 0.07) 1px,
      transparent 1px,
      transparent 28px
    ),
    linear-gradient(160deg, var(--color-brand-blue) 0%, var(--color-brand-blue-dark) 100%);
  padding: 0 var(--gutter);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: var(--hero-split) 1fr;
  align-items: center;
  gap: var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 420px;
}

/* The ratio matches the photo, so cover never crops it. */
.hero__figure {
  aspect-ratio: var(--hero-aspect);
  max-height: var(--hero-height);
  margin: var(--space-12) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__copy {
  padding: var(--space-12) 0;
}

.hero__heading {
  margin: 0 0 var(--space-5);
  font-size: var(--text-display);
  font-weight: var(--weight-semi);
}

.hero__heading-line {
  display: block;
  color: var(--color-white);
}

.hero__heading-line--accent {
  color: var(--color-brand-sky-light);
}

.hero__subtext {
  margin: 0 0 var(--space-8);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  max-width: 30rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__note {
  margin: var(--space-4) 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--control-height);
  background: var(--color-white);
  padding: 0 var(--space-5) 0 var(--space-2);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero__phone:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.hero__phone-icon {
  width: calc(var(--control-height) - var(--space-2));
  height: calc(var(--control-height) - var(--space-2));
  border-radius: 50%;
  background: var(--color-brand-orange-bg);
  color: var(--color-brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero__phone-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hero__phone-number {
  font-size: var(--text-md);
  font-weight: var(--weight-semi);
  color: var(--color-brand-blue);
}

.why__section-text {
  font-size: var(--text-md);
  color: var(--color-text-mid);
  margin: var(--space-4) 0 var(--space-10);
  max-width: var(--measure);
  line-height: var(--leading-loose);
}

.why__section-text em {
  color: var(--color-brand-blue);
  font-weight: var(--weight-medium);
  font-style: italic;
}

.why__section-text:has(+ .injection) {
  margin-bottom: var(--space-6);
}

.injection {
  max-width: var(--measure);
  margin: 0 0 var(--space-10);
  padding: var(--space-6);
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand-orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.injection__heading {
  font-size: var(--text-xl);
  color: var(--color-brand-blue);
  margin: 0 0 var(--space-2);
}

.injection__text {
  margin: 0;
  color: var(--color-text-mid);
  font-size: var(--text-md);
  line-height: var(--leading-loose);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}

.why__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Stretch plus flex splits the column height between the two images, so both columns end level. */
.why__images {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.why__image,
.why__image_2 {
  flex: 1;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}

.why__image {
  background-image: url('../../images/tech1.webp');
}

.why__image_2 {
  background-image: url('../../images/tech2.jpeg');
}

.why__review {
  max-width: var(--measure);
  margin-top: var(--space-10);
}

.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.services-preview__cta {
  text-align: center;
}

.reviews__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.partners__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.partners__header h2 {
  margin: 0;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  align-items: center;
  margin: 0;
  padding: 0;
}

@media (max-width: 960px) {
  .hero__inner {
    display: block;
    min-height: 0;
    padding: var(--space-12) 0;
  }

  .hero__figure {
    margin: var(--space-8) 0 0;
  }

  .hero__copy {
    padding: 0;
  }

  .hero__subtext {
    font-size: var(--text-md);
  }

  .why__image_2 {
    display: none;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .why__image {
    min-height: 300px;
  }

  .services-preview__grid,
  .reviews__grid,
  .partners__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero__heading {
    font-size: var(--text-hero);
  }

  .services-preview__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .partners__grid {
    gap: var(--space-6);
  }

  .partners__header {
    margin-bottom: var(--space-8);
  }
}
