/**
 * brand-story.css
 * Seção "Por que a Marmitissima é diferente" do design system
 * (marmitissima-design, assets/css/brand-story.css) — bento grid com os
 * diferenciais da marca.
 *
 * No PageBuilder: Linha "Full Width" com a classe mm-brand + um elemento HTML
 * com o grid (.brand-story__eyebrow + .brand-story__bento com os .bento-tile).
 * Valores em px (o design usa rem com raiz 16px; no Magento a raiz é 10px).
 */
[data-content-type='row'].mm-brand {
  padding-top: 48px !important;
  padding-bottom: 56px !important;
  background-color: #f4f4f4 !important;
}

.mm-brand {
  --mm-brand-accent: #ed3237;
  --mm-brand-accent-dark: #be282c;
  --mm-brand-dark: #000000;
  --mm-brand-text-secondary: #6e6c6c;
  --mm-brand-soft: #ededed;
  font-family: 'Manrope', sans-serif;
}

.mm-brand .brand-story__eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-brand-accent-dark);
}

/* ===== Bento grid =====
   hero 2x2 (topo-esquerda), ultracongelado em cima à direita, separado +
   família na linha de baixo à direita, pioneirismo como faixa larga. */
.mm-brand .brand-story__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    'hero hero ultra ultra'
    'hero hero sep familia'
    'pioneiro pioneiro pioneiro pioneiro';
  gap: 16px;
}

.mm-brand .bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 28px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.mm-brand .bento-tile:hover {
  transform: translateY(-3px);
}

.mm-brand .bento-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
}

.mm-brand .bento-tile__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.mm-brand .bento-tile__title {
  margin: 0 0 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
}

.mm-brand .bento-tile__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

/* ===== Tile 1: hero — "Não é marmita. É Marmitissima." ===== */
.mm-brand .bento-tile--hero {
  grid-area: hero;
  background-color: var(--mm-brand-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mm-brand .bento-tile--hero .bento-tile__title {
  margin-bottom: 16px;
  font-size: 32px;
  color: #ffffff;
}

.mm-brand .bento-tile--hero .bento-tile__title span {
  color: var(--mm-brand-accent);
}

.mm-brand .bento-tile--hero .bento-tile__text {
  max-width: 420px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
}

/* ===== Tile 2: ultracongelado — vermelho ===== */
.mm-brand .bento-tile--ultra {
  grid-area: ultra;
  background-color: var(--mm-brand-accent);
}

.mm-brand .bento-tile--ultra .bento-tile__icon {
  background-color: rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.mm-brand .bento-tile--ultra .bento-tile__title {
  font-size: 22px;
  color: #ffffff;
}

.mm-brand .bento-tile--ultra .bento-tile__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Tile 3: 100% separado — foto da embalagem por baixo, com gradiente
   escuro pro texto ficar legível. A foto é um <img class="bento-tile__bg">
   (troca no HTML pelo admin). ===== */
.mm-brand .bento-tile--sep {
  grid-area: sep;
  justify-content: flex-end;
  background-color: #2a1d1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.mm-brand .bento-tile__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.mm-brand .bento-tile--sep::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 12, 10, 0.05) 0%, rgba(20, 12, 10, 0.88) 100%);
}

.mm-brand .bento-tile--sep > :not(.bento-tile__bg) {
  position: relative;
  z-index: 2;
}

.mm-brand .bento-tile--sep .bento-tile__title {
  font-size: 15px;
  color: #ffffff;
}

.mm-brand .bento-tile--sep .bento-tile__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Tile 4: receita de família — branco ===== */
.mm-brand .bento-tile--familia {
  grid-area: familia;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.mm-brand .bento-tile--familia .bento-tile__icon {
  background-color: var(--mm-brand-soft);
  color: var(--mm-brand-dark);
}

.mm-brand .bento-tile--familia .bento-tile__title {
  font-size: 15px;
  color: var(--mm-brand-dark);
}

.mm-brand .bento-tile--familia .bento-tile__text {
  color: var(--mm-brand-text-secondary);
}

/* ===== Tile 5: pioneirismo — faixa larga preta com destaque vermelho ===== */
.mm-brand .bento-tile--pioneiro {
  grid-area: pioneiro;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background-color: var(--mm-brand-dark);
}

.mm-brand .bento-tile--pioneiro .bento-tile__icon {
  margin-bottom: 0;
  background-color: rgba(237, 50, 55, 0.2);
  color: var(--mm-brand-accent);
}

.mm-brand .bento-tile--pioneiro .bento-tile__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.mm-brand .bento-tile--pioneiro .bento-tile__text strong {
  font-weight: 800;
  color: #ffffff;
}

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .mm-brand .brand-story__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'hero hero'
      'ultra ultra'
      'sep familia'
      'pioneiro pioneiro';
  }

  .mm-brand .bento-tile--hero .bento-tile__title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  [data-content-type='row'].mm-brand {
    padding-top: 36px !important;
    padding-bottom: 44px !important;
  }

  .mm-brand .brand-story__bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      'hero'
      'ultra'
      'sep'
      'familia'
      'pioneiro';
  }

  .mm-brand .bento-tile {
    padding: 22px;
  }

  /* No mobile o tile da foto fica mais alto, pra foto aparecer */
  .mm-brand .bento-tile--sep {
    min-height: 220px;
  }

  .mm-brand .bento-tile--hero .bento-tile__title {
    font-size: 24px;
  }

  .mm-brand .bento-tile--pioneiro {
    flex-direction: row;
  }
}
