/* ==========================================================================
   GECM Consulting - Hero Section (BEM)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Background image + overlay ── */
.hero__background {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 27, 64, 0.93) 0%,
    rgba(0, 43, 91, 0.85) 45%,
    rgba(0, 43, 91, 0.55) 100%
  );
}

/* ── Content wrapper ── */
.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--container-padding) 0;
}

/* ── Text block ── */
.hero__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: var(--space-3xl);
}

.hero__text {
  max-width: 560px;
}

/* ── Label ── */
.hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.hero__label-line {
  width: 32px;
  height: 2px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* ── Title ── */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

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

.hero__title--accent {
  display: block;
  color: var(--color-accent);
}

/* ── Description ── */
.hero__description {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.80);
  line-height: var(--lh-relaxed);
  max-width: 460px;
}

/* ── Pillars bar ── */
.hero__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 20, 55, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  transition: background var(--transition-base);
}

.hero__pillar:last-child {
  border-right: none;
}

.hero__pillar:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero__pillar-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-top: 2px;
}

.hero__pillar-title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-2xs);
}

.hero__pillar-text {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--lh-relaxed);
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .hero {
    min-height: 100svh;
  }

  .hero__background {
    background-position: 70% center;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 27, 64, 0.95) 0%,
      rgba(0, 43, 91, 0.88) 60%,
      rgba(0, 27, 64, 0.96) 100%
    );
  }

  .hero__content {
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

  .hero__body {
    padding-bottom: var(--space-2xl);
  }

  .hero__description {
    font-size: var(--fs-sm);
    max-width: 100%;
  }

  /* Stack pillars vertically on mobile */
  .hero__pillars {
    grid-template-columns: 1fr;
  }

  .hero__pillar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding: var(--space-lg) var(--space-md);
  }

  .hero__pillar:last-child {
    border-bottom: none;
  }
}

/* ── Tablet ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  }

  .hero__pillar {
    padding: var(--space-lg) var(--space-md);
  }
}

/* ── Desktop large ── */
@media (min-width: 1024px) {
  .hero__content {
    padding-top: calc(var(--header-height) + var(--space-4xl));
  }

  .hero__pillar {
    padding: var(--space-xl);
  }

  .hero__pillar-icon {
    width: 32px;
    height: 32px;
  }

  .hero__pillar-title {
    font-size: var(--fs-base);
  }

  .hero__pillar-text {
    font-size: var(--fs-sm);
  }
}
