/* ==========================================================================
   Foundation "Contact us" (measured on live nafas.com/foundation)
   Live: desktop/tablet .framer-1qiqswt (#contact), phone .framer-w9sez9 (#contact-mobile).
   Breakpoints (Framer CSS of this page): desktop >= 1200, tablet 810-1199.98, phone <= 809.98.
   - Column rule: section is full width with padding 0 12px 12px; the rounded photo frame is its child.
     Gap to the footer: 12px on desktop and phone, 24px on tablet (live column padding 12 + wrapper padding 12).
   - Desktop: frame padding 140, content box 936 x 148 (title at the top, paragraph pinned to the bottom).
   - Tablet: content column 100% wide, gap 40. Phone: frame padding 80 20, gap 20, smaller type, own photo crop.
   - Scroll reveal (js/70-contact.js): both texts fade 0 -> 1 in 0.4s cubic-bezier(.25,.3,.25,1) when half of the
     block is in view, and fade out again below half (live replays it both ways).
   ========================================================================== */

/* ---------- base (desktop >= 1200) ---------- */
.nf-fd-contact {
  position: relative; display: flex; justify-content: center;
  width: 100%; padding: 0 12px 12px; background-color: var(--nf-white);
}
.nf-fd-contact__frame {
  position: relative; flex: 1 0 0; width: 1px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
  padding: 140px; border-radius: 12px; overflow: hidden;
}
.nf-fd-contact__bg { position: absolute; inset: 0; border-radius: inherit; }
.nf-fd-contact__bg picture, .nf-fd-contact__bg img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.nf-fd-contact__bg img { object-fit: cover; object-position: center; }

.nf-fd-contact__body { position: relative; flex: 0 0 auto; width: 936px; height: 148px; overflow: hidden; }
.nf-fd-contact__title, .nf-fd-contact__text {
  position: absolute; left: 0; width: 100%;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
  font-family: var(--nf-font-regular); font-weight: 400; line-height: 1.2; letter-spacing: normal; text-align: left;
  color: var(--nf-white);
}
.nf-fd-contact__title { top: 0; font-size: 42px; }
.nf-fd-contact__text { bottom: 0; font-size: 24px; }

/* ---------- tablet (810 - 1199.98) ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .nf-fd-contact { padding-bottom: 24px; }
  .nf-fd-contact__body {
    width: 100%; height: auto;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
  }
  .nf-fd-contact__title, .nf-fd-contact__text { position: relative; top: auto; bottom: auto; left: auto; flex: 0 0 auto; }
}

/* ---------- phone (<= 809.98) ---------- */
@media (max-width: 809.98px) {
  .nf-fd-contact__frame { justify-content: flex-start; align-items: flex-start; gap: 20px; padding: 80px 20px; }
  .nf-fd-contact__body {
    width: 100%; height: auto; overflow: visible;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px;
  }
  .nf-fd-contact__title, .nf-fd-contact__text { position: relative; top: auto; bottom: auto; left: auto; flex: 0 0 auto; }
  .nf-fd-contact__title { font-size: 28px; }
  .nf-fd-contact__text { font-size: 16px; }
}

/* ---------- scroll reveal (js/70-contact.js toggles .is-inview) ---------- */
[data-fd-contact-inview] { opacity: 0; transition: opacity 0.4s cubic-bezier(0.25, 0.3, 0.25, 1); }
[data-fd-contact-inview].is-inview { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-fd-contact-inview] { opacity: 1; transition: none; }
}
