/**
 * benefits-contact.css
 * Benefit Plans Contact Information page (node--section-landing-page.html.twig).
 * Replaces section-landing.css (pre-refresh) on 2026-10-27;
 * loaded by the plannera/benefits-contact library.
 *
 * Designs: 1920 and 414. Card and photo sit side by side down to 769px
 * and stack at 768px and below. The photo is 9:8 at every width.
 */

/* ---------- Top section ---------- */

.benefits-contact {
  padding-top: calc(var(--header-height, 72px) + 5rem);
  padding-bottom: clamp(64px, calc(64px + (80 - 64) * (100vw - 414px) / (1920 - 414)), 80px);
  background: linear-gradient(51deg, #f2edea 0%, #f4f4fc 99%);
}

.benefits-contact__title {
  margin: 24px 0 0;
  font-weight: 300;
  font-size: clamp(32px, calc(32px + (72 - 32) * (100vw - 414px) / (1920 - 414)), 72px);
  line-height: 1.22;
  color: #24125f;
}

.benefits-contact__label {
  margin-top: clamp(48px, calc(48px + (72 - 48) * (100vw - 414px) / (1920 - 414)), 72px);
  margin-bottom: clamp(32px, calc(32px + (40 - 32) * (100vw - 414px) / (1920 - 414)), 40px);
}

/* ---------- Card + photo ---------- */

.benefits-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  grid-template-areas: "card photo";
  gap: clamp(24px, calc(24px + (48 - 24) * (100vw - 992px) / (1920 - 992)), 48px);
}

.benefits-contact__grid--no-photo {
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  grid-template-areas: "card .";
}

.benefits-contact__card {
  grid-area: card;
  padding: clamp(24px, calc(24px + (40 - 24) * (100vw - 414px) / (1920 - 414)), 40px);
  background: #fff;
  border-radius: 16px;
  font-size: clamp(16px, calc(16px + (18 - 16) * (100vw - 414px) / (1920 - 414)), 18px);
  line-height: 1.6;
  color: #242935;
}

.benefits-contact__card p {
  margin: 0 0 1.5em;
}

.benefits-contact__card > :last-child,
.benefits-contact__card > * > :last-child,
.benefits-contact__card p:last-child {
  margin-bottom: 0;
}

.benefits-contact__card a {
  color: #7e61de;
  text-decoration: none;
}

.benefits-contact__card a:hover,
.benefits-contact__card a:focus {
  text-decoration: underline;
}

/*
 * The ::before spacer gives the cell its 9:8 height; if the card is taller
 * (narrow two-column widths), the cell stretches and the image covers it.
 * Every wrapper the formatter prints (field, media, contextual-region) is
 * pinned to the cell so the image fills it when logged in, too.
 */
.benefits-contact__photo {
  grid-area: photo;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.benefits-contact__photo img {
  border-radius: 16px;
}

.benefits-contact__photo .node .field--type-image {
  margin: unset;
}

.benefits-contact__photo::before {
  content: "";
  display: block;
  padding-top: 88.889%; /* 8 / 9 */
}

.benefits-contact__photo > * {
  position: absolute;
  inset: 0;
}

.benefits-contact__photo div,
.benefits-contact__photo article,
.benefits-contact__photo picture {
  height: 100%;
}

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

/* ---------- Notice banner ---------- */

.benefits-contact__notice {
  padding: clamp(56px, calc(56px + (88 - 56) * (100vw - 414px) / (1920 - 414)), 88px) 0 88px;
  background: #b9f9e3;
}

.benefits-contact__notice-text {
  max-width: 1190px;
  font-size: 18px;
  line-height: 1.6;
  color: #242935;
}

.benefits-contact__notice-text p {
  margin: 0 0 1.5em;
}

.benefits-contact__notice-text p:last-child {
  margin-bottom: 0;
}

.benefits-contact__notice-text strong,
.benefits-contact__notice-text b {
  font-weight: 600;
}

/* ---------- 992 ---------- */

@media (max-width: 992px) {
  .benefits-contact {
    padding-top: calc(var(--header-height, 72px) + 3rem);
  }
}

/* ---------- 768 ---------- */

@media (max-width: 768px) {
  .benefits-contact__grid,
  .benefits-contact__grid--no-photo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "card"
      "photo";
    gap: 40px;
  }

  .benefits-contact__grid--no-photo {
    grid-template-areas: "card";
  }
}
