/* ─── CONTAINER (editor) ─────────────────────────────────────── */
.wp-block-kipo-kipo-functions-hero {
  container-type: inline-size;
}

/* ─── SECTION ────────────────────────────────────────────────── */
:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero {
  background: var(--hero-bg);
  padding: 80px;
  position: relative;
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -80px;
  left: 0px;
  right: 0px;
  height: 80px;
  background-color: #e9ecf7;
  border-radius: 0 0 50% 50% / 0 0 80px 80px;
  z-index: 1;
}

/* ─── INNER GRID ─────────────────────────────────────────────── */
:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ─── LEFT ───────────────────────────────────────────────────── */
:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline {
  font-family: 'Ubuntu Sans', sans-serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
  isolation: isolate;
}

@media (min-width: 1280px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline {
    padding-left: 40px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline::before {
    content: '';
    position: absolute;
    top: -23px;
    left: 0;
    width: 80%;
    height: 70%;
    background: #CCDEF9;
    border-radius: 12px;
    z-index: -1;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-subtitle {
    padding-left: 40px;
  }
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline strong {
  font-weight: 700;
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 32px;
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-subtitle strong {
  color: var(--navy);
  font-weight: 700;
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-btn {
  display: flex;
  justify-content: center;
  width: calc(100%);
}

/* ─── RIGHT / IMAGE ──────────────────────────────────────────── */
:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-placeholder {
  background: var(--blue);
  width: 100%;
  height: 320px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-placeholder span {
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── RESPONSIVE (< 1024px) ──────────────────────────────────── */
@media (max-width: 768px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero::after { bottom: -60px; height: 60px; border-radius: 0 0 50% 50% / 0 0 60px 60px; }
}

@media (max-width: 480px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero::after { bottom: -40px; height: 40px; border-radius: 0 0 50% 50% / 0 0 40px 40px; }
}

@media (max-width: 1024px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero {
    padding: 60px 40px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-inner {
    gap: 48px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline {
    font-size: 36px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-subtitle {
    font-size: 16px;
  }
}

/* ─── MOBILE (< 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero {
    padding: 48px 24px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-left {
    text-align: center;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline {
    font-size: 30px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-subtitle {
    font-size: 15px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-btn {
    margin-left: 0;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   EDITOR — container queries
   ═══════════════════════════════════════════════════════════════ */
@container (max-width: 1024px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero {
    padding: 60px 40px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-inner {
    gap: 48px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline {
    font-size: 36px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-subtitle {
    font-size: 16px;
  }
}

@container (max-width: 768px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero {
    padding: 48px 24px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-left {
    text-align: center;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-headline {
    font-size: 30px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-subtitle {
    font-size: 15px;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero-btn {
    margin-left: 0;
    width: 100%;
  }
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero::after { bottom: -60px; height: 60px; border-radius: 0 0 50% 50% / 0 0 60px 60px; }
}

@container (max-width: 480px) {
  :is(#kipo-landing, .wp-block-kipo-kipo-functions-hero) .functions-hero::after { bottom: -40px; height: 40px; border-radius: 0 0 50% 50% / 0 0 40px 40px; }
}
