/* Bento layout — inspired by https://bentogrids.com/shots/clzx31p650001akmmtks9ld59 */

.bento-page {
  padding: calc(var(--section-gap) - 20px) 0 var(--section-gap);
}

.bento-page__title {
  margin-bottom: 32px;
}

.bento-page__title h1 {
  margin-bottom: 12px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 16px;
}

.bento__cell {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bento__cell:hover {
  box-shadow: var(--shadow-card-hover);
}

.bento__cell--dark {
  background: linear-gradient(145deg, #1f2a44 0%, #0b0c10 100%);
  color: #e5e7eb;
}

.bento__cell--dark h2,
.bento__cell--dark h3,
.bento__cell--dark h4 {
  color: #fff;
}

.bento__cell--accent {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-color: rgba(249, 115, 22, 0.2);
}

.bento__cell--muted {
  background: var(--input-bg);
}

.bento__cell--image {
  padding: 0;
  position: relative;
  min-height: 200px;
}

.bento__cell--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: inherit;
}

.bento__cell--image .bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.bento__cell--image .bento__overlay h3 {
  color: #fff;
}

/* Spans — 12-column bento */
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.row-2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .span-8,
  .span-7,
  .span-6,
  .span-5 {
    grid-column: span 6;
  }
  .span-4,
  .span-3 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .span-12,
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3,
  .row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 12px;
}

.bento__step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffb347);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.bento__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 100%;
}

@media (max-width: 640px) {
  .bento__steps {
    grid-template-columns: 1fr;
  }
}

.bento__step {
  background: var(--input-bg);
  border-radius: var(--radius-input);
  padding: 16px;
  text-align: center;
}

.bento__step p {
  font-size: 14px;
  margin: 8px 0 0;
  color: var(--text);
}

.bento-review {
  height: 100%;
}

.bento-review__quote {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.bento-review__text {
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.bento-review__meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.bento-review__meta strong {
  display: block;
  color: var(--heading);
}

.bento-review__meta span {
  color: var(--muted);
}

.bento-fit__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .bento-fit__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-fit__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.bento__cell--dark .bento-fit__item {
  background: rgba(255, 255, 255, 0.06);
}

.bento-fit__item img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.bento-fit__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.bento-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.nav a.is-active {
  color: var(--accent);
}

.mobile-nav a.is-active {
  color: var(--accent);
}
