/* Hero AV+ — Figma node 1283:2095 (1440 × 408) */

.avp-hero {
  --avp-green: #00b67d;
  --avp-light: #ecf8ff;
  --avp-deep-blue: #032638;
  --avp-pad-x: clamp(24px, 5.6vw, 80px);
  --avp-pad-top: clamp(40px, 4.9vw, 71px);
  --avp-pad-bottom: clamp(48px, 7.2vw, 103px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--avp-green);
  color: var(--avp-light);
}

.avp-hero *,
.avp-hero *::before,
.avp-hero *::after {
  box-sizing: border-box;
}

.avp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Figma: 1036 × 1036 shape centred on the frame, opacity baked into the SVG. */
.avp-hero__shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1036px, 120vw);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  user-select: none;
}

/* Figma: the 434px gradient only overlaps the lower third of the frame,
   so the visible part fades from 0 to roughly 25% opacity. */
.avp-hero__overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 40%;
  background: linear-gradient(180deg, rgba(3, 38, 56, 0) 0%, rgba(3, 38, 56, 0.25) 100%);
}

.avp-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--avp-pad-top) var(--avp-pad-x) var(--avp-pad-bottom);
}

.avp-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  text-align: center;
}

.avp-hero__copy > * {
  margin: 0 !important;
}

/* Beat theme-level heading colours — avoid :where() (0 specificity). */
.avp-hero .avp-hero__copy h1,
.avp-hero .avp-hero__copy h2,
.avp-hero .avp-hero__copy h3,
.avp-hero .avp-hero__copy .wp-block-heading {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 1036px;
  color: var(--avp-light) !important;
  font-family: "Poppins", sans-serif !important;
  font-style: normal;
  font-weight: 300 !important;
  font-size: clamp(32px, 4.45vw, 64px) !important;
  line-height: 1.125 !important; /* 72/64 */
  letter-spacing: normal;
  text-align: center;
}

.avp-hero .avp-hero__copy > p,
.avp-hero .avp-hero__copy p.wp-block-paragraph {
  margin: 0 !important;
  width: 100%;
  max-width: 906px;
  color: var(--avp-light) !important;
  font-family: "Poppins", sans-serif !important;
  font-style: normal;
  font-weight: 400 !important;
  font-size: clamp(16px, 1.67vw, 24px) !important;
  line-height: 1.5 !important;
  text-align: center;
}

.avp-hero .avp-hero__copy a {
  color: inherit;
  text-decoration: underline;
}

/* Editor canvas */
.avp-hero--edit {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.avp-hero--edit .block-editor-block-list__layout {
  width: 100%;
}

@media (max-width: 782px) {
  .avp-hero__copy {
    gap: 24px;
  }
}
