.grl-hero-split {
  --grl-split-olive: #7d8354;
  --grl-split-olive-dark: #5d6138;
  --grl-split-ink: #1f2937;
  --grl-split-muted: #4b5563;
  background: var(--grl-split-bg, linear-gradient(to right, #f8ffef, #bcff6f));
  padding: 1.5rem 1rem 2.5rem;
  overflow: hidden;
}

.grl-hero-split__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.grl-hero-split__media {
  order: -1;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 220px;
  background: #eef3e4;
  isolation: isolate;
}

.grl-hero-split__media-img,
.grl-hero-split__media-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 340px;
  object-fit: cover;
}

.grl-hero-split__fallback {
  min-height: 220px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(135deg, #f7f7f4, #d9dcc8 55%, #9da670);
}

.grl-hero-split__fallback-logo {
  width: 7rem;
  max-width: 40%;
  height: auto;
}

.grl-hero-split__fallback-icon {
  font-size: 2.25rem;
  color: var(--grl-split-olive-dark);
}

.grl-hero-split__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grl-hero-split__accent {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--grl-split-olive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.grl-hero-split__copy {
  color: var(--grl-split-ink);
}

.grl-hero-split--align-left .grl-hero-split__copy { text-align: left; }
.grl-hero-split--align-center .grl-hero-split__copy { text-align: center; }
.grl-hero-split--align-right .grl-hero-split__copy { text-align: right; }

.grl-hero-split__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #5d6138;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.grl-hero-split--align-center .grl-hero-split__badge,
.grl-hero-split--align-center .grl-hero-split__actions {
  justify-content: center;
}

.grl-hero-split--align-right .grl-hero-split__badge,
.grl-hero-split--align-right .grl-hero-split__actions {
  justify-content: flex-end;
  margin-left: auto;
}

.grl-hero-split__badge-label {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}

.grl-hero-split__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 6vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: #1f2937;
  overflow-wrap: anywhere;
}

.grl-hero-split__subtitle {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #374151;
  overflow-wrap: anywhere;
}

.grl-hero-split__description {
  margin: 0 0 1.35rem;
  font-size: 1rem;
  color: var(--grl-split-muted);
  overflow-wrap: anywhere;
}

.grl-hero-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.grl-hero-split__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 2.75rem;
}

.grl-hero-split__btn:focus-visible {
  outline: 3px solid #7d8354;
  outline-offset: 3px;
}

.grl-hero-split__btn--primary {
  background: var(--grl-split-olive);
  color: #fff;
}

.grl-hero-split__btn--primary:hover {
  background: var(--grl-split-olive-dark);
}

.grl-hero-split__btn--secondary {
  background: #fff;
  color: var(--grl-split-olive-dark);
  border: 2px solid var(--grl-split-olive);
}

.grl-hero-split__btn--secondary:hover {
  background: var(--grl-split-olive);
  color: #fff;
}

@media (min-width: 768px) {
  .grl-hero-split {
    padding: 2.5rem 1.5rem 3rem;
  }

  .grl-hero-split__media,
  .grl-hero-split__media-img,
  .grl-hero-split__media-video,
  .grl-hero-split__fallback {
    min-height: 360px;
    max-height: 420px;
  }
}

@media (min-width: 1024px) {
  .grl-hero-split {
    padding: 3.5rem 2rem 4rem;
  }

  .grl-hero-split__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    min-height: 32rem;
  }

  .grl-hero-split__media {
    order: 0;
    min-height: 32rem;
    height: 100%;
  }

  .grl-hero-split__media-img,
  .grl-hero-split__media-video,
  .grl-hero-split__fallback {
    min-height: 32rem;
    max-height: none;
    height: 100%;
  }
}

.grl-hero-split--subtle .grl-hero-split__copy {
  animation: grlSplitFade 0.7s ease both;
}

.grl-hero-split--dynamic .grl-hero-split__copy {
  animation: grlSplitRise 0.8s ease both;
}

.grl-hero-split--dynamic .grl-hero-split__media-img,
.grl-hero-split--dynamic .grl-hero-split__media-video {
  animation: grlSplitKen 18s ease-in-out infinite alternate;
}

.grl-hero-split--dynamic .grl-hero-split__accent {
  animation: grlSplitFloat 3.2s ease-in-out infinite;
}

@keyframes grlSplitFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes grlSplitRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes grlSplitKen {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes grlSplitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .grl-hero-split--subtle .grl-hero-split__copy,
  .grl-hero-split--dynamic .grl-hero-split__copy,
  .grl-hero-split--dynamic .grl-hero-split__media-img,
  .grl-hero-split--dynamic .grl-hero-split__media-video,
  .grl-hero-split--dynamic .grl-hero-split__accent {
    animation: none !important;
  }
}
