/**
 * BotOnPlot Blog Hero — scoped styles
 * Source: main site .hero diagonal divider + .hero-grid-bg
 * Namespace: .bop-blog-hero
 *
 * Asset base: set --bop-asset-base on .bop-blog-hero if needed.
 * Default assumes WP Media upload path used in hero.html.
 */

.bop-blog-hero {
  --bop-orange: #f27b21;
  --bop-orange-dark: #c95009;
  --bop-ink: #0b1018;
  --bop-muted: #5f6670;
  --bop-warm: #fbfaf7;
  --bop-shadow: 0 24px 70px rgba(11, 16, 24, 0.11);
  --bop-asset-base: /wp-content/uploads/botonplot-blog;

  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  min-height: 0;
  /* Clear fixed header only — no large empty band above the title */
  padding: 110px 0 72px;
  /* Matches main site .hero — hard-stop diagonal divider */
  background: linear-gradient(115deg, #fff 0 54%, #faf8f4 54% 100%);
  color: var(--bop-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

/* Right-side grid texture — matches main site .hero-grid-bg */
.bop-blog-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 54%;
  opacity: 0.38;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 16, 24, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 16, 24, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(transparent, black 20% 80%, transparent);
  mask-image: linear-gradient(transparent, black 20% 80%, transparent);
}

.bop-blog-hero__container {
  position: relative;
  z-index: 2;
  width: min(1360px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 75px;
  align-items: start;
}

.bop-blog-hero__copy {
  padding-top: 12px;
}

.bop-blog-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--bop-orange-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bop-blog-hero__title {
  margin: 0 0 28px;
  max-width: 940px;
  font-size: clamp(3.3rem, 6vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--bop-ink);
}

.bop-blog-hero__title em {
  color: var(--bop-orange);
  font-style: normal;
}

.bop-blog-hero__desc {
  margin: 0;
  max-width: 640px;
  color: var(--bop-muted);
  font-size: 1.22rem;
  line-height: 1.7;
}

.bop-blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}

.bop-blog-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 9px;
  font-weight: 750;
  font-size: 0.94rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.bop-blog-hero__btn--primary {
  background: var(--bop-orange);
  color: #15100c;
  box-shadow: 0 8px 20px rgba(242, 123, 33, 0.2);
}

.bop-blog-hero__btn--primary:hover {
  transform: translateY(-2px);
  background: #ff8a30;
  color: #15100c;
  box-shadow: 0 12px 28px rgba(242, 123, 33, 0.28);
}

.bop-blog-hero__btn--ghost {
  background: transparent;
  color: var(--bop-ink);
  border: 1px solid rgba(11, 16, 24, 0.18);
  box-shadow: none;
}

.bop-blog-hero__btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 16, 24, 0.35);
  background: rgba(11, 16, 24, 0.03);
  color: var(--bop-ink);
}

/* Matches .about-hero-grid .reveal-right { margin-top: 79px } */
.bop-blog-hero__visual {
  margin-top: 79px;
  min-width: 0;
}

.bop-blog-hero__image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(11, 16, 24, 0.13);
  aspect-ratio: 16 / 9;
  background: #e9e7e1;
  box-shadow: var(--bop-shadow);
}

.bop-blog-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bop-blog-hero__image:hover img {
  transform: scale(1.018);
}

.bop-blog-hero a:focus-visible,
.bop-blog-hero button:focus-visible {
  outline: 3px solid rgba(242, 123, 33, 0.45);
  outline-offset: 3px;
}

/* —— Breakpoints (from globals.css) —— */

@media (max-width: 1100px) {
  .bop-blog-hero__container {
    /* grid gap unchanged; columns still 0.9 / 1.1 until 820 */
  }
}

@media (max-width: 820px) {
  .bop-blog-hero {
    min-height: 0;
    padding: 100px 0 56px;
    /* Matches main site .hero mobile — horizontal hard stop */
    background: linear-gradient(#fff 0 52%, #faf8f4 52%);
  }

  .bop-blog-hero::after {
    inset: 52% 0 0;
  }

  .bop-blog-hero__container {
    width: min(100% - 36px, 720px);
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bop-blog-hero__copy {
    padding-top: 0;
  }

  .bop-blog-hero__visual {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .bop-blog-hero__container {
    width: min(100% - 28px, 520px);
  }

  .bop-blog-hero__title {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .bop-blog-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bop-blog-hero__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bop-blog-hero__image img {
    transition: none;
  }

  .bop-blog-hero__image:hover img {
    transform: none;
  }

  .bop-blog-hero__btn,
  .bop-blog-hero__btn:hover {
    transition: none;
    transform: none;
  }
}
