/* ==========================================================================
   mb-hero.module — Methylene Blue hero
   Figma: "Methylene Blue - Desktop" › Section (13274:570)
   ========================================================================== */

.mb-hero {
  --mb-blue: var(--color-blue-ocean, #0077BA);
  --mb-blue-dark: var(--color-blue-dark, #005381);
  --mb-blue-accent: #7FB4D8;
  --mb-blue-mid: #508AC5;
  --mb-blue-pale: #8CCAE5;
  --mb-card: #D5E9F4;
  --mb-bg-soft: #E7F2FA;
  --mb-text: #4A5B67;
  --mb-muted: #55697A;
  --mb-body: var(--color-gray-dark, #3C3C3C);
  --mb-orange: var(--color-cta-primary, #F96F48);
  --mb-orange-hover: var(--color-cta-primary-hover, #E05C34);
  --mb-font-head: 'Montserrat', sans-serif;
  --mb-font-body: 'Source Sans Pro', 'Lato', sans-serif;
  --mb-shell: 1200px;
  --mb-pad-y: 96px;
  --mb-pad-x: 120px;
  position: relative;
  overflow: hidden;
  padding: 0 var(--mb-pad-x);
  background: #F9F9F9;
  font-family: var(--mb-font-body);
}

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

/* The parent theme sets `li { margin: .7rem }`, which insets every grid and
   flex item by 11.2px per side and knocks card rows out of alignment with the
   full-width panels around them. Lists here space themselves with `gap`. */
.mb-hero ul,
.mb-hero ol {
  margin: 0;
  padding: 0;
}

.mb-hero li {
  margin: 0;
}

/* Right-hand photo, faded into the flat background on its left edge */
.mb-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 52.71%;
}

.mb-hero__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-hero__media-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #F9F9F9 0%, rgba(249, 249, 249, 0) 31.058%);
}

.mb-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 708px;
  max-width: var(--mb-shell);
  margin: 0 auto;
  padding: 68px 0;
}

.mb-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 620px;
}

.mb-hero__eyebrow {
  margin: 0;
  color: var(--mb-blue);
  font-size: 18px;
  line-height: 1.5;
}

.mb-hero__heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--mb-font-head);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  color: var(--mb-blue);
}

.mb-hero__subheading {
  margin: 0;
  max-width: 620px;
  color: var(--mb-body);
  font-size: 18px;
  line-height: 1.5;
}

/* Two-up pill grid */
.mb-hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  column-gap: 8px;
  row-gap: 10px;
  width: 100%;
  max-width: 408px;
}

.mb-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.mb-hero__trust-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.mb-hero__trust-text {
  color: var(--mb-body);
  font-size: 16px;
  line-height: 1.5;
}

.mb-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

/* Shared CTA buttons — Figma: 8px/32px padding, 8px radius, 18px/1.5 label */
.mb-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--mb-font-body);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.mb-hero__btn--primary {
  background: var(--mb-orange);
  color: #FFFFFF;
}

.mb-hero__btn--primary:hover,
.mb-hero__btn--primary:focus {
  background: var(--mb-orange-hover);
  color: #FFFFFF;
}

.mb-hero__btn--outline {
  background: transparent;
  border-color: var(--mb-blue);
  color: var(--mb-blue);
}

.mb-hero__btn--outline:hover,
.mb-hero__btn--outline:focus {
  background: var(--mb-blue);
  color: #FFFFFF;
}


/* --------------------------------------------------------------------------
   Full-bleed inside drag-and-drop areas
   The parent @hubspot/growth theme gives .dnd-section side gutters, a centred
   max-width and vertical padding. This section is designed edge-to-edge, so it
   releases those constraints on the wrapper it sits in. :has() is already used
   this way in the theme — see pdp-hero.module.
   -------------------------------------------------------------------------- */
.dnd-section:has(.mb-hero) {
  max-width: none !important;
  padding: 0 !important;
}

.dnd-section:has(.mb-hero) > .row-fluid,
.dnd-section:has(.mb-hero) .dnd-row,
.dnd-section:has(.mb-hero) .dnd-column,
.dnd-section:has(.mb-hero) .widget-span {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Fallback for engines without :has() — 100vw overhangs by the scrollbar width,
   which child.css clips via `overflow-x: clip` on html/body. */
@supports not selector(:has(*)) {
  .mb-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50%% - 50vw);
    margin-right: calc(50%% - 50vw);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .mb-hero__media { left: 46%; }
  .mb-hero__heading { font-size: 40px; }
}

@media (max-width: 900px) {
  .mb-hero { padding: 0; }

  .mb-hero__inner { display: block; min-height: 0; padding: 0; max-width: none; }

  .mb-hero__media {
    position: relative;
    left: auto;
    height: 320px;
  }

  .mb-hero__media-fade {
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0) 60%, #F9F9F9 100%);
  }

  .mb-hero__content {
    max-width: none;
    padding: 32px var(--mb-pad-x) 48px;
  }

  .mb-hero__heading { font-size: 34px; }

  .mb-hero__trust {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .mb-hero__ctas { width: 100%; }
  .mb-hero__btn { flex: 1 1 auto; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Shared gutter scale — every mb-* section steps down together so blocks stay
   edge-aligned with each other at every width.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .mb-hero { --mb-pad-x: 40px; --mb-pad-y: 64px; }
}

@media (max-width: 599px) {
  .mb-hero { --mb-pad-x: 20px; --mb-pad-y: 48px; }
}
