/**
 * Brand Reasons block (atsko/brand-reasons).
 *
 * Centred eyebrow + headline over three reason cards. Brand colour tints the
 * band, the eyebrow, and the card headings. Grew out of the brand landing
 * “More Reasons” row; orange matches Figma Color options-3-up (730:7152).
 *
 * @package Atsko
 */

.brand-reasons,
.brand-reasons--orange {
  padding: 5.5rem max(2rem, calc((100% - var(--atsko-container)) / 2)) 7rem;
  background-color: color-mix(in srgb, var(--atsko-orange-bright) 5%, white);
  border-bottom: 8px solid #ffc2b2;
  box-sizing: border-box;
}

.brand-reasons--green {
  background-color: color-mix(in srgb, var(--atsko-green) 5%, white);
  border-bottom-color: color-mix(in srgb, var(--atsko-green) 32%, white);
}

.brand-reasons--blue {
  background-color: #e8f5ff;
  border-bottom-color: #c5e4ff;
}

.brand-reasons.alignfull,
.brand-page__content > .brand-reasons.alignfull {
  width: 100%;
  max-width: none;
  padding-inline: max(2rem, calc((100% - var(--atsko-container)) / 2));
}

/*
 * Break out of a constrained wrapper. Skipped inside .page-main__content and
 * .brand-page__content, which are already full width — 100vw counts the
 * scrollbar and would overflow there.
 */
.container .brand-reasons.alignfull,
.entry-content:not(.page-main__content):not(.brand-page__content) .brand-reasons.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.brand-reasons__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 35rem;
  margin: 0 auto 2.5rem !important;
  text-align: center;
}

.brand-reasons__eyebrow {
  margin: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5 !important;
  color: var(--atsko-orange) !important;
}

.brand-reasons--green .brand-reasons__eyebrow,
.brand-reasons--green .brand-reasons__card-title {
  color: var(--atsko-green) !important;
}

.brand-reasons--blue .brand-reasons__eyebrow,
.brand-reasons--blue .brand-reasons__card-title {
  color: var(--atsko-blue) !important;
}

.brand-reasons--orange .brand-reasons__eyebrow,
.brand-reasons--orange .brand-reasons__card-title {
  color: var(--atsko-orange) !important;
}

.brand-reasons__title {
  margin: 0 !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: var(--atsko-charcoal) !important;
  text-align: center;
}

.brand-reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0;
  width: 100%;
  align-items: stretch;
}

.brand-reasons__card {
  background: var(--atsko-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

.brand-reasons__card-title {
  margin: 0 !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--atsko-orange) !important;
}

.brand-reasons__card-body {
  margin: 0 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: var(--atsko-charcoal) !important;
}

@media (max-width: 1200px) {
  .brand-reasons__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .brand-reasons {
    padding-block: 3.5rem 4.5rem;
  }
}
