/* NCMA Hero — full-bleed wide banner on .hero__grid
   Man on right, soft white/blue fade on left for text overlay. */
:root {
  --hero-primary: #0699D8;
  --hero-primary-deep: #0578AB;
  --hero-sky: #38BDF8;
  --hero-teal: #14B8A6;
  --hero-ink: #0F172A;
  --hero-muted: #64748B;
  --hero-soft: #94A3B8;
  --hero-line: #E2E8F0;
  --hero-white: #FFFFFF;
  --hero-radius: 0;
  --hero-font: "Inter", system-ui, -apple-system, sans-serif;
  --hero-script: "Caveat", "Segoe Script", cursive;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 0;
  background:
    radial-gradient(ellipse 48% 52% at 78% 40%, rgba(186, 230, 253, 0.35), transparent 62%),
    linear-gradient(180deg, #F7FBFF 0%, #FFFFFF 48%, #F8FBFF 100%);
  font-family: var(--hero-font);
  color: var(--hero-ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.1rem, 2.5vw, 2.1rem) 0 clamp(1.4rem, 2.8vw, 2.1rem);
}

/* Full-bleed banner block: photo spans entire grid */
.hero__grid {
  position: relative;
  display: block;
  min-height: clamp(420px, 52vw, 560px);
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 3.25rem)
    clamp(4.5rem, 8vw, 6.5rem);
  border-radius: var(--hero-radius);
  overflow: hidden;
  background-color: #EAF4FF;
  background-image: var(--hero-banner);
  background-repeat: no-repeat;
  background-size: cover;
  /* Keep left fade for text; crop from the right if needed */
  background-position: left center;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 34rem;
  padding-top: 0.2rem;
}

.hero__label {
  margin: 0 0 0.95rem;
  color: #7C93B5;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero__title {
  margin: 0 0 1.05rem;
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: var(--hero-ink);
}

.hero__title-accent {
  color: var(--hero-primary);
}

.hero__lead-strong {
  margin: 0 0 0.45rem;
  color: #1E293B;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero__lead {
  margin: 0 0 1.55rem;
  color: var(--hero-muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.58;
  max-width: 31rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.72rem 1.35rem;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.hero__btn:hover {
  transform: translateY(-1px);
}

.hero__btn--primary {
  background: var(--hero-primary);
  color: var(--hero-white);
  box-shadow: 0 10px 22px rgba(6, 153, 216, 0.28);
}

.hero__btn--primary:hover {
  background: var(--hero-primary-deep, #0578AB);
  color: var(--hero-white);
}

.hero__btn--secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--hero-primary);
  border: 1.5px solid #7DD3FC;
}

.hero__btn--secondary:hover {
  background: #E6F6FC;
  color: var(--hero-primary-deep, #0578AB);
  border-color: var(--hero-primary);
}

.hero__btn-arrow {
  display: inline-grid;
  place-items: center;
}

/* Bottom stats bar — overlaps bottom of grid */
.hero-stats {
  position: relative;
  z-index: 5;
  margin-top: clamp(-40px, -5vw, -56px);
}

.hero-stats__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.7rem 0.7rem 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.hero-stats__list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
}

.hero-stats__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.7rem;
  border-right: 1px solid #E2E8F0;
}

.hero-stats__item:last-child {
  border-right: 0;
}

.hero-stats__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--hero-primary);
  background: #E6F6FC;
}

.hero-stats__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.hero-stats__text strong {
  color: var(--hero-primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-stats__text span {
  color: #64748B;
  font-size: 0.78rem;
  line-height: 1.3;
}

.hero-stats__cta {
  flex: 0 0 min(248px, 28%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem 0.85rem 1.05rem;
  border-radius: 0;
  background: var(--hero-primary);
  color: var(--hero-white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-stats__cta:hover {
  background: var(--hero-primary-deep, #0578AB);
  color: var(--hero-white);
}

.hero-stats__cta:hover .hero-stats__cta-arrow {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.32);
}

.hero-stats__cta-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.hero-stats__cta-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-stats__cta-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  color: var(--hero-white);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero[data-hero-ready] .hero__grid,
.hero[data-hero-ready] .hero-stats__panel {
  animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero[data-hero-ready] .hero-stats__panel {
  animation-delay: 0.12s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-hero-ready] .hero__grid,
  .hero[data-hero-ready] .hero-stats__panel {
    animation: none;
  }

  .hero__btn:hover,
  .hero-stats__cta:hover .hero-stats__cta-arrow {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero-stats__panel {
    flex-direction: column;
  }

  .hero-stats__cta {
    flex: 1 1 auto;
    min-height: 68px;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    min-height: clamp(480px, 70vw, 560px);
    padding: 1.5rem 1.35rem 5rem;
    /* Prefer person visibility on narrower viewports while keeping left readable */
    background-position: 70% center;
  }

  .hero__copy {
    max-width: 28rem;
    /* Soft scrim if photo creeps under text on tablet */
    padding: 0.85rem 1rem 1rem;
    margin: -0.5rem -0.65rem 0;
    border-radius: 18px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.72) 70%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero-stats {
    margin-top: -28px;
  }

  .hero-stats__list {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats__item {
    border-right: 0;
    padding: 0.7rem;
  }

  .hero-stats__item:nth-child(odd) {
    border-right: 1px solid #E2E8F0;
  }

  .hero-stats__item:nth-child(-n + 2) {
    border-bottom: 1px solid #E2E8F0;
  }
}

@media (max-width: 640px) {
  .hero__grid {
    min-height: min(520px, 78vh);
    padding: 1.25rem 1.05rem 4.25rem;
    background-position: 78% center;
  }

  .hero__copy {
    max-width: 100%;
    margin: -0.35rem -0.35rem 0;
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .hero-stats {
    margin-top: -16px;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8.5vw, 2.25rem);
  }

  .hero__lead-strong,
  .hero__lead {
    font-size: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats__list {
    grid-template-columns: 1fr;
  }

  .hero-stats__item,
  .hero-stats__item:nth-child(odd),
  .hero-stats__item:nth-child(-n + 2) {
    border: 0;
    border-bottom: 1px solid #E2E8F0;
  }

  .hero-stats__item:last-child {
    border-bottom: 0;
  }

  .hero-stats__cta {
    min-height: 56px;
  }
}
