/* Modern corporate, contact and editorial page experiences. */

.bef-corporate-page,
.bef-editorial-page {
  overflow: clip;
  background:
    radial-gradient(circle at 92% 8%, rgb(184 105 66 / 10%), transparent 24rem),
    linear-gradient(180deg, #f8f6f1 0%, #fff 35%, #f3f4ef 100%);
}

.bef-corporate-breadcrumbs,
.bef-editorial-page .breadcrumbs {
  position: relative;
  z-index: 2;
  padding-top: 1.25rem;
}

.bef-corporate-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.bef-corporate-hero::before {
  position: absolute;
  width: min(38vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid rgb(63 102 77 / 14%);
  border-radius: 50%;
  content: "";
  inset: auto auto -17rem -12rem;
}

.bef-corporate-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(28rem, 1.16fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.bef-corporate-hero__copy h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  color: var(--bef-color-night);
  font-size: clamp(2.65rem, 6.2vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.bef-corporate-hero__copy > p:not(.eyebrow) {
  max-width: 54ch;
  color: #50615b;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}

.bef-corporate-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.bef-corporate-hero__actions .button {
  gap: 0.55rem;
}

.bef-corporate-hero__actions .bef-icon {
  width: 1rem;
}

.bef-corporate-hero__media {
  position: relative;
  min-width: 0;
  margin: 0;
}

.bef-corporate-hero__media::before {
  position: absolute;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: clamp(1.15rem, 2.5vw, 2rem);
  content: "";
  inset: 0.85rem;
  pointer-events: none;
}

.bef-corporate-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 80px rgb(8 29 24 / 18%);
  object-fit: cover;
}

.bef-corporate-hero__media figcaption {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 2;
  display: flex;
  max-width: 22rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 1rem;
  background: rgb(9 35 31 / 84%);
  box-shadow: 0 12px 32px rgb(9 35 31 / 24%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  backdrop-filter: blur(12px);
}

.bef-corporate-hero__media figcaption span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bef-color-accent);
  place-items: center;
}

.bef-corporate-hero__media figcaption .bef-icon {
  width: 1.1rem;
}

.bef-corporate-values {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

.bef-corporate-value-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgb(63 102 77 / 16%);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 50px rgb(9 35 31 / 9%);
}

.bef-corporate-value-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.bef-corporate-value-grid article + article {
  border-left: 1px solid var(--bef-color-line);
}

.bef-corporate-value-grid article > span {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  grid-row: 1 / 3;
  border-radius: 0.85rem;
  background: #edf3ee;
  color: var(--bef-color-sage-dark);
  place-items: center;
}

.bef-corporate-value-grid .bef-icon {
  width: 1.35rem;
}

.bef-corporate-value-grid strong {
  color: var(--bef-color-night);
  font-size: 1rem;
}

.bef-corporate-value-grid p {
  margin: 0;
  color: #65746f;
  font-size: 0.84rem;
  line-height: 1.55;
}

.bef-corporate-story,
.bef-corporate-services,
.bef-contact-channels,
.bef-contact-main {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.bef-corporate-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.bef-corporate-story h2,
.bef-corporate-section-heading h2,
.bef-contact-form-card h2,
.bef-contact-office-card h2 {
  color: var(--bef-color-night);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.bef-corporate-story__content {
  color: #52625d;
  font-size: 1.04rem;
  line-height: 1.8;
}

.bef-corporate-story__content h2,
.bef-corporate-story__content h3 {
  margin-top: 2rem;
  color: var(--bef-color-night);
  font-size: 1.35rem;
}

.bef-corporate-story__content ul {
  padding-left: 1.2rem;
}

.bef-corporate-services {
  background: var(--bef-color-night);
  color: #d9e3df;
}

.bef-corporate-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.bef-corporate-section-heading > p {
  margin: 0;
  color: #66766f;
  line-height: 1.7;
}

.bef-corporate-services .bef-corporate-section-heading h2 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
}

.bef-corporate-services .bef-corporate-section-heading > p {
  color: #b9c8c2;
}

.bef-corporate-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.bef-corporate-service-grid article {
  min-height: 17rem;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 5%);
}

.bef-corporate-service-grid article > span {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 3.5rem;
  border-radius: 1rem;
  background: var(--bef-color-accent);
  color: #fff;
  place-items: center;
}

.bef-corporate-service-grid h3 {
  margin-bottom: 0.7rem;
  color: #fff;
  font-family: var(--bef-font-sans);
  font-size: 1.05rem;
}

.bef-corporate-service-grid p {
  margin: 0;
  color: #b9c8c2;
  font-size: 0.88rem;
  line-height: 1.65;
}

.bef-corporate-cta {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bef-color-sage-dark);
  color: #fff;
}

.bef-corporate-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.bef-corporate-cta h2 {
  max-width: 23ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
}

.bef-corporate-cta .button {
  flex: 0 0 auto;
  gap: 0.5rem;
}

/* Contact page */
.bef-contact-hero-call {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
  color: var(--bef-color-night);
  text-decoration: none;
}

.bef-contact-hero-call > span:first-child {
  display: grid;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bef-color-sage-dark);
  color: #fff;
  place-items: center;
}

.bef-contact-hero-call small,
.bef-contact-hero-call strong {
  display: block;
}

.bef-contact-hero-call small {
  color: #687771;
  font-size: 0.75rem;
}

.bef-contact-channels {
  background: #fff;
}

.bef-contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.bef-contact-channel {
  display: flex;
  min-width: 0;
  min-height: 15.5rem;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--bef-color-line);
  border-radius: 1.25rem;
  background: #fbfcfa;
  color: var(--bef-color-night);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a.bef-contact-channel:hover,
a.bef-contact-channel:focus-visible {
  border-color: var(--bef-color-sage);
  box-shadow: 0 16px 35px rgb(9 35 31 / 10%);
  transform: translateY(-3px);
}

.bef-contact-channel > span {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  background: #e9f0eb;
  color: var(--bef-color-sage-dark);
  place-items: center;
}

.bef-contact-channel--whatsapp > span {
  background: #e4f5e9;
  color: #176a37;
}

.bef-contact-channel small {
  margin-bottom: 0.35rem;
  color: #73817c;
  font-weight: 700;
}

.bef-contact-channel strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.bef-contact-channel em {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.4rem;
  color: var(--bef-color-sage-dark);
  font-size: 0.79rem;
  font-style: normal;
  font-weight: 800;
}

.bef-contact-channel em .bef-icon {
  width: 0.9rem;
}

.bef-contact-main {
  background: #eef1ec;
}

.bef-contact-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.bef-contact-form-card,
.bef-contact-office-card {
  border: 1px solid rgb(38 63 52 / 12%);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 20px 55px rgb(9 35 31 / 8%);
}

.bef-contact-form-card {
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
}

.bef-contact-form-card h2,
.bef-contact-office-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.bef-contact-form-card > p:not(.eyebrow) {
  max-width: 58ch;
  color: #65746f;
}

.bef-site-contact-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.bef-site-contact-form p {
  margin: 0;
}

.bef-site-contact-form label:not(:has(input[type="checkbox"])) {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--bef-color-night);
  font-size: 0.84rem;
  font-weight: 800;
}

.bef-site-contact-form input:not([type="checkbox"]),
.bef-site-contact-form select,
.bef-site-contact-form textarea {
  width: 100%;
  border-color: #cbd5cf;
  background: #fafbf9;
}

.bef-site-contact-form input:not([type="checkbox"]),
.bef-site-contact-form select {
  min-height: 50px;
}

.bef-site-contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.bef-contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bef-contact-form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #5c6b66;
  font-size: 0.78rem;
  line-height: 1.5;
}

.bef-contact-form__consent input {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.bef-site-contact-form .button {
  justify-self: start;
  gap: 0.55rem;
}

.bef-site-contact-form .button .bef-icon {
  width: 1rem;
}

.bef-contact-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-left: 4px solid #7a8983;
  border-radius: 0.7rem;
  margin-top: 1.25rem;
  background: #f3f5f2;
}

.bef-contact-notice--success {
  border-color: var(--bef-color-sage);
  background: #eaf3ec;
  color: #1d5634;
}

.bef-contact-notice--error {
  border-color: #a34237;
  background: #f9ecea;
  color: #7c2f28;
}

.bef-contact-notice .bef-icon {
  width: 1.3rem;
  flex: 0 0 auto;
  margin-top: 0.12rem;
}

.bef-contact-notice p,
.bef-contact-notice strong,
.bef-contact-notice span {
  display: block;
  margin: 0;
}

.bef-contact-notice span {
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.bef-contact-office-card {
  position: sticky;
  top: 7rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(circle at 100% 0%, rgb(184 105 66 / 18%), transparent 15rem),
    var(--bef-color-night);
  color: #c9d5d0;
}

.bef-contact-office-card__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 3rem;
  border-radius: 1rem;
  background: var(--bef-color-accent);
  color: #fff;
  place-items: center;
}

.bef-contact-office-card h2 {
  color: #fff;
}

.bef-contact-office-card__address {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 0;
  border-block: 1px solid rgb(255 255 255 / 12%);
}

.bef-contact-office-card__address .bef-icon {
  width: 1.1rem;
  flex: 0 0 auto;
  color: #efb494;
}

.bef-contact-office-card .entry-content {
  color: #aebeb8;
  font-size: 0.86rem;
}

.bef-contact-office-card .entry-content a {
  color: #ffd2bb;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.bef-contact-office-card .entry-content a:hover,
.bef-contact-office-card .entry-content a:focus-visible {
  color: #fff;
}

.bef-contact-office-card .entry-content h2,
.bef-contact-office-card .entry-content h3,
.bef-contact-office-card .entry-content ul {
  display: none;
}

.bef-contact-socials {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.bef-contact-socials > p {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.bef-contact-socials > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bef-contact-socials a {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  color: #fff;
  place-items: center;
}

.bef-contact-socials a:hover,
.bef-contact-socials a:focus-visible {
  border-color: var(--bef-color-accent);
  background: var(--bef-color-accent);
}

.bef-contact-socials .bef-icon {
  width: 1.1rem;
}

/* Editorial landing and square three-column cards. */
.bef-editorial-page {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.bef-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.bef-editorial-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  color: var(--bef-color-night);
  font-size: clamp(2.7rem, 7vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.bef-editorial-hero__lead {
  max-width: 53ch;
  color: #586862;
  font-size: 1.05rem;
  line-height: 1.75;
}

.bef-editorial-hero__note {
  padding: 1.5rem;
  border: 1px solid rgb(63 102 77 / 15%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 70%);
  color: #566660;
  line-height: 1.7;
  backdrop-filter: blur(10px);
}

.bef-editorial-hero__note > *:first-child {
  margin-top: 0;
}

.bef-editorial-hero__note > *:last-child {
  margin-bottom: 0;
}

.bef-editorial-collection {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgb(63 102 77 / 12%);
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 24px 70px rgb(9 35 31 / 8%);
}

.bef-editorial-collection__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bef-editorial-collection__heading h2 {
  margin: 0;
  color: var(--bef-color-night);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.bef-editorial-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.bef-editorial-card-grid .entry-card {
  overflow: hidden;
  border: 1px solid var(--bef-color-line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(9 35 31 / 7%);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.bef-editorial-card-grid .entry-card:hover,
.bef-editorial-card-grid .entry-card:focus-within {
  box-shadow: 0 18px 42px rgb(9 35 31 / 13%);
  transform: translateY(-4px);
}

.bef-editorial-card-grid .entry-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bef-color-night), var(--bef-color-sage));
}

.bef-editorial-card-grid .entry-card__media::after {
  position: absolute;
  background: linear-gradient(180deg, transparent 55%, rgb(6 29 24 / 28%));
  content: "";
  inset: 0;
}

.bef-editorial-card-grid .entry-card__media img {
  width: 100%;
  height: 100%;
  transition: transform 350ms ease;
  object-fit: cover;
}

.bef-editorial-card-grid .entry-card:hover .entry-card__media img,
.bef-editorial-card-grid .entry-card:focus-within .entry-card__media img {
  transform: scale(1.035);
}

.bef-editorial-card-grid .entry-card__media--placeholder {
  display: grid;
  color: rgb(255 255 255 / 72%);
  place-items: center;
}

.bef-editorial-card-grid .entry-card__media--placeholder .bef-icon {
  width: 4rem;
  height: 4rem;
}

.bef-editorial-card-grid .entry-card__body {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  padding: 1.35rem;
}

.bef-editorial-card-grid .entry-meta {
  margin-bottom: 0.8rem;
  color: #73817c;
  font-size: 0.73rem;
}

.bef-editorial-card-grid .entry-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
}

.bef-editorial-card-grid .entry-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #5c6b66;
  font-size: 0.88rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bef-editorial-card-grid .entry-summary p {
  margin: 0;
}

.bef-editorial-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--bef-color-sage-dark);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.bef-editorial-card__read .bef-icon {
  width: 0.9rem;
}

.bef-editorial-page .navigation.pagination {
  margin-top: 2rem;
}

@media (max-width: 1100px) {
  .bef-corporate-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    gap: 2.5rem;
  }

  .bef-corporate-service-grid,
  .bef-contact-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bef-editorial-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .bef-corporate-hero__grid,
  .bef-corporate-story__grid,
  .bef-contact-main__grid,
  .bef-editorial-hero {
    grid-template-columns: 1fr;
  }

  .bef-corporate-hero__copy h1,
  .bef-editorial-hero h1 {
    max-width: 15ch;
  }

  .bef-corporate-value-grid {
    grid-template-columns: 1fr;
  }

  .bef-corporate-value-grid article + article {
    border-top: 1px solid var(--bef-color-line);
    border-left: 0;
  }

  .bef-corporate-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .bef-contact-office-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .bef-corporate-hero {
    padding-top: 1.5rem;
  }

  .bef-corporate-hero__copy h1,
  .bef-editorial-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .bef-corporate-hero__media img {
    aspect-ratio: 4 / 3;
  }

  .bef-corporate-hero__media figcaption {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -1.3rem 0.75rem 0;
  }

  .bef-corporate-service-grid,
  .bef-contact-channel-grid,
  .bef-contact-form__row,
  .bef-editorial-card-grid {
    grid-template-columns: 1fr;
  }

  .bef-corporate-service-grid article,
  .bef-contact-channel {
    min-height: 13rem;
  }

  .bef-corporate-service-grid article > span {
    margin-bottom: 2rem;
  }

  .bef-corporate-cta__inner,
  .bef-editorial-collection__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bef-corporate-cta__inner {
    display: flex;
  }

  .bef-corporate-cta .button {
    width: 100%;
    justify-content: center;
  }

  .bef-editorial-collection {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bef-contact-channel,
  .bef-editorial-card-grid .entry-card,
  .bef-editorial-card-grid .entry-card__media img {
    transition: none;
  }
}
