/* =========================================================================
 * Brandmuller Blocks: Hero (split image + color)
 * ========================================================================= */

.bm-hero-split {
  --bm-bg:      var(--wp--preset--color--bg, #F1F2F3);
  --bm-bg-card: var(--wp--preset--color--bg-card, #FFFFFF);
  --bm-ink:     var(--wp--preset--color--ink, #1A1915);
  --bm-ink-2:   var(--wp--preset--color--ink-2, #4A4740);
  --bm-rule:    var(--wp--preset--color--rule, #DCDFE2);
  --bm-accent:  var(--wp--preset--color--accent, #B8694A);
  --bm-green:   var(--wp--preset--color--green, #3F6B3A);

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--bm-bg);
  color: var(--bm-ink);
  overflow: hidden;
}

.bm-hero-split--image-left  { grid-template-areas: "image color"; }
.bm-hero-split--image-right { grid-template-areas: "color image"; }
.bm-hero-split-image-side { grid-area: image; }
.bm-hero-split-color-side { grid-area: color; }

/* Section heights */
.bm-hero-split.bm-hero-split--height-short    { min-height: 50vh; }
.bm-hero-split.bm-hero-split--height-standard { min-height: 70vh; }
.bm-hero-split.bm-hero-split--height-full     { min-height: 100vh; }

/* Alignment */
body .bm-hero-split.alignfull {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}
body .bm-hero-split.alignwide {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1240px !important;
}

@media (max-width: 860px) {
  .bm-hero-split,
  .bm-hero-split--image-left,
  .bm-hero-split--image-right {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "color";
  }
  .bm-hero-split.bm-hero-split--height-short,
  .bm-hero-split.bm-hero-split--height-standard,
  .bm-hero-split.bm-hero-split--height-full { min-height: 0; }
  .bm-hero-split-image-side { min-height: 280px; }
}

/* ---- Image side ---- */

.bm-hero-split-image-side {
  position: relative;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
}
.bm-hero-split-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bm-hero-split-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  border: 1px dashed rgba(0,0,0,0.15);
}

/* ---- Color side ---- */

.bm-hero-split-color-side {
  display: flex;
  align-items: center;
  padding: 80px 8vw;
}

@media (max-width: 720px) {
  .bm-hero-split-color-side { padding: 56px 24px; }
}

/* Color variants */
.bm-hero-split.bm-hero-split--color-bg .bm-hero-split-color-side {
  background: var(--bm-bg);
  color: var(--bm-ink);
}
.bm-hero-split.bm-hero-split--color-bg-card .bm-hero-split-color-side {
  background: var(--bm-bg-card);
  color: var(--bm-ink);
}
.bm-hero-split.bm-hero-split--color-ink .bm-hero-split-color-side {
  background: var(--bm-ink);
  color: #ffffff;
}
.bm-hero-split.bm-hero-split--color-accent .bm-hero-split-color-side {
  background: var(--bm-accent);
  color: #ffffff;
}

/* ---- Inner ---- */

.bm-hero-split-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 600px;
}
.bm-hero-split.bm-hero-split--align-center .bm-hero-split-color-side { justify-content: center; }
.bm-hero-split.bm-hero-split--align-right  .bm-hero-split-color-side { justify-content: flex-end; }
.bm-hero-split.bm-hero-split--align-center .bm-hero-split-inner { align-items: center; }
.bm-hero-split.bm-hero-split--align-right  .bm-hero-split-inner { align-items: flex-end; }
.bm-hero-split--align-center .bm-hero-split-inner > * { text-align: center; }
.bm-hero-split--align-right  .bm-hero-split-inner > * { text-align: right; }

/* ---- Eyebrow ---- */

.bm-hero-split-eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.bm-hero-split--color-bg .bm-hero-split-eyebrow,
.bm-hero-split--color-bg-card .bm-hero-split-eyebrow { color: var(--bm-accent); }
.bm-hero-split--color-ink .bm-hero-split-eyebrow { color: rgba(255,255,255,0.7); }
.bm-hero-split--color-accent .bm-hero-split-eyebrow { color: rgba(255,255,255,0.7); }

/* ---- Headline ---- */

.bm-hero-split-headline {
  font-family: 'Inter Tight', 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.034em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.bm-hero-split-headline-em {
  font-family: 'Instrument Serif', 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
}

/* ---- Sub ---- */

.bm-hero-split-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.5;
  max-width: 50ch;
  margin: 6px 0 0;
}
.bm-hero-split--color-bg .bm-hero-split-sub,
.bm-hero-split--color-bg-card .bm-hero-split-sub { color: var(--bm-ink-2); }
.bm-hero-split--color-ink .bm-hero-split-sub,
.bm-hero-split--color-accent .bm-hero-split-sub { color: rgba(255,255,255,0.85); }

/* ---- CTAs ---- */

.bm-hero-split-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bm-hero-split--align-center .bm-hero-split-ctas { justify-content: center; }
.bm-hero-split--align-right  .bm-hero-split-ctas { justify-content: flex-end; }

.bm-hero-split-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.bm-hero-split-cta svg { width: 14px; height: 14px; }

/* CTA colors per side variant */
.bm-hero-split--color-bg .bm-hero-split-cta--primary,
.bm-hero-split--color-bg-card .bm-hero-split-cta--primary {
  background: var(--bm-ink); color: #fff; border: 1px solid var(--bm-ink);
}
.bm-hero-split--color-bg .bm-hero-split-cta--primary:hover,
.bm-hero-split--color-bg-card .bm-hero-split-cta--primary:hover {
  background: var(--bm-accent); border-color: var(--bm-accent);
}
.bm-hero-split--color-bg .bm-hero-split-cta--secondary,
.bm-hero-split--color-bg-card .bm-hero-split-cta--secondary {
  background: transparent; color: var(--bm-ink); border: 1px solid var(--bm-rule);
}
.bm-hero-split--color-bg .bm-hero-split-cta--secondary:hover,
.bm-hero-split--color-bg-card .bm-hero-split-cta--secondary:hover {
  background: var(--bm-ink); color: #fff; border-color: var(--bm-ink);
}

.bm-hero-split--color-ink .bm-hero-split-cta--primary,
.bm-hero-split--color-accent .bm-hero-split-cta--primary {
  background: #fff; color: var(--bm-ink); border: 1px solid #fff;
}
.bm-hero-split--color-ink .bm-hero-split-cta--primary:hover,
.bm-hero-split--color-accent .bm-hero-split-cta--primary:hover {
  background: var(--bm-accent); color: #fff; border-color: var(--bm-accent);
}
.bm-hero-split--color-ink .bm-hero-split-cta--secondary,
.bm-hero-split--color-accent .bm-hero-split-cta--secondary {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
}
.bm-hero-split--color-ink .bm-hero-split-cta--secondary:hover,
.bm-hero-split--color-accent .bm-hero-split-cta--secondary:hover {
  background: #fff; color: var(--bm-ink); border-color: #fff;
}

/* ---- Promises ---- */

.bm-hero-split-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}
.bm-hero-split--align-center .bm-hero-split-promises { justify-content: center; }
.bm-hero-split--align-right  .bm-hero-split-promises { justify-content: flex-end; }

.bm-hero-split-promise {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
.bm-hero-split-promise svg { width: 14px; height: 14px; }
.bm-hero-split--color-bg .bm-hero-split-promise svg,
.bm-hero-split--color-bg-card .bm-hero-split-promise svg { color: var(--bm-green); }
.bm-hero-split--color-ink .bm-hero-split-promise svg,
.bm-hero-split--color-accent .bm-hero-split-promise svg { color: rgba(255,255,255,0.85); }
