/* ==========================================================================
   About us "Our mission" (measured on live nafas.com/about-us)
   Breakpoints: desktop >= 1440, tablet 810-1439.98, phone <= 809.98.
   - Frame: column, gap 40, padding 150/0/100 (tablet 120/0/90, phone 100/0), photo behind (cover, 50% 50%).
   - Heading row and copy: 60% wide (phone 80%); heading row has a 0.8px #222 bottom hairline.
   - Contact line 675 / 495 / 100%; form container 718 / 516 / 100% (phone with 20px side padding).
   - Load appear: the whole frame AND the heading, both copy blocks and the contact line each rise 50px -> 0 and
     fade 0 -> 1 (nested, so the text travels 100px), 0.6s cubic-bezier(.44,0,.56,1), ~0.4s after navigation.
   - Form (Framer form): inputs on rgba(187,187,187,.15) with a 1px black bottom line, 1px green outline on focus;
     checkbox 16px, r4, 1px black border, checked #09f with a white tick (focus border #09f); Submit pill 139x60,
     hover rgba(51,51,51,.85) over 0.2s with a white label; loading spinner (1 turn/s); success "Thank you".
   ========================================================================== */

/* ---------- base (desktop >= 1440) ---------- */
.nf-about { width: 100%; background-color: var(--nf-white); overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.nf-about__mission {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  gap: 40px; padding: 150px 0 100px; overflow: hidden;
}
.nf-about__bg { position: absolute; inset: 0; }
.nf-about__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.nf-about__head {
  position: relative; width: 60%; display: flex; flex-direction: row; justify-content: center; align-items: center;
  gap: 10px; padding: 10px 10px 10px 0; overflow: hidden;
}
.nf-about__head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; box-sizing: border-box;
  border-style: solid; border-color: #222; border-width: 0 0 0.8px 0;
}
.nf-about__title-box, .nf-about__text-box, .nf-about__contact-box {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: flex-start;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-about__title {
  white-space: pre-wrap; font-family: var(--nf-font-medium); font-weight: 500; font-size: 52px; line-height: 1.1;
  letter-spacing: normal; color: var(--nf-green); text-align: left;
}

.nf-about__body {
  position: relative; width: 60%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 50px; overflow: hidden;
}
.nf-about__body-inner {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 40px; overflow: hidden;
}
.nf-about__lead {
  white-space: pre-wrap; font-family: var(--nf-font-regular); font-weight: 400; font-size: 32px; line-height: 1.4;
  letter-spacing: normal; color: var(--nf-black); text-align: start;
}
.nf-about__link { color: inherit; text-decoration: none; }
.nf-about__para {
  white-space: pre-wrap; font-family: var(--nf-font-regular); font-weight: 400; font-size: 24px; line-height: 1.3;
  letter-spacing: normal; color: var(--nf-black); text-align: left;
}

.nf-about__contact {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 20px; padding: 50px 0 0; overflow: hidden;
}
.nf-about__contact-row {
  position: relative; width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center;
  gap: 10px; padding: 0; overflow: hidden;
}
.nf-about__contact-box { width: 675px; }
.nf-about__contact-text {
  white-space: pre-wrap; font-family: var(--nf-font-regular); font-weight: 400; font-size: 21px; line-height: 1.3;
  letter-spacing: normal; color: var(--nf-black); text-align: left;
}
.nf-about__form-wrap { position: relative; flex: 0 0 auto; width: 718px; }

/* form */
.nf-about__form {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  gap: 20px; padding: 20px; overflow: hidden;
}
.nf-about__field {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: flex-start;
  align-items: flex-start; gap: 10px;
}
.nf-about__label, .nf-about__check-label { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; white-space: pre; }
.nf-about__label-text, .nf-about__check-text {
  white-space: pre; font-family: var(--nf-font-regular); font-weight: 400; font-size: 18px; line-height: 1.2;
  letter-spacing: normal; color: var(--nf-black);
}
.nf-about__check-label { user-select: none; -webkit-user-select: none; }
.nf-about__check-text { font-family: var(--nf-font-sfns-display); }

.nf-about__input-wrap {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; align-items: center; padding: 12px;
  background: rgba(187, 187, 187, 0.15); overflow: hidden; transition-property: background, box-shadow;
}
.nf-about__input-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; box-sizing: border-box;
  border-style: solid; border-color: var(--nf-black); border-width: 0 0 1px 0;
}
.nf-about__input-wrap:focus-within::after { border-color: var(--nf-green); border-width: 1px; }
.nf-about__input {
  flex: 1 1 0%; width: auto; min-width: 0; padding: 0; margin: 0;
  font-family: "Nafas Inter", sans-serif; font-weight: 400; font-size: 18px; line-height: 1.2em; letter-spacing: 0;
  color: var(--nf-black); background: transparent; border: none; border-radius: 0; outline: none;
  text-overflow: ellipsis; white-space: nowrap; -webkit-appearance: none; appearance: none;
}
.nf-about__input::placeholder { color: rgba(153, 153, 153, 0); }
.nf-about__input-wrap--area { padding: 0; min-height: 100px; align-items: stretch; }
.nf-about__textarea {
  display: flex; width: 100%; min-height: inherit; padding: 12px; resize: vertical;
  white-space: break-spaces; overflow-y: auto;
}

.nf-about__textarea::-webkit-resizer {
  background: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2214%22 height=%2214%22><path d=%22m1.5 8 7-7M9 5.5l-3 3%22 stroke=%22%23999%22 stroke-width=%221.5%22 stroke-linecap=%22round%22></path></svg>") no-repeat;
}
.nf-about__textarea::-webkit-scrollbar { cursor: pointer; background: 0 0; }
.nf-about__textarea::-webkit-scrollbar-corner { background: 0 0; outline: none; }

.nf-about__check {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; flex-direction: row; justify-content: flex-start;
  align-items: center; gap: 10px;
}
.nf-about__checkbox {
  position: relative; flex: 0 0 auto; width: 16px; height: 16px; margin: 0; display: flex; justify-content: center;
  align-items: center; overflow: hidden; -webkit-appearance: none; appearance: none;
  background: rgba(187, 187, 187, 0.2); border-radius: 4px; transition-property: box-shadow, background;
}
.nf-about__checkbox::after {
  content: ""; position: absolute; inset: 0; box-sizing: border-box; border: 1px solid var(--nf-black); border-radius: 4px;
  background: transparent; transition-property: border-color, border-width, border-style;
}
.nf-about__checkbox::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none;
  background-color: var(--nf-white); opacity: 0; transition-property: opacity;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M 4 8 L 6.5 10.5 L 11.5 5.5' fill='transparent' stroke-width='2' stroke='rgb(255, 255, 255)' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M 4 8 L 6.5 10.5 L 11.5 5.5' fill='transparent' stroke-width='2' stroke='rgb(255, 255, 255)' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% center / contain no-repeat;
}
.nf-about__checkbox:checked { background-color: #09f; }
.nf-about__checkbox:checked::before { opacity: 1; }
.nf-about__checkbox:focus { outline: none; }
.nf-about__checkbox:focus::after { border-color: #09f; }

.nf-about__hp { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }

/* Cloudflare Turnstile (components/turnstile.js): a slot above the button that opens only when Cloudflare asks the
   visitor to tick "Verify you are human". While closed it takes no room: no height, and a margin that cancels the
   form's 20px gap. Full width, so the script can pick the box's size (300px wide, or the 150px compact one). */
.nf-about__turnstile { width: 100%; height: 0; margin-top: -20px; overflow: hidden; }
.nf-about__turnstile.is-shown { height: auto; margin-top: 0; overflow: visible; }

/* Submit button (Framer button component: Default / Hover / Loading / Success) */
.nf-about__btn-box { position: relative; flex: 0 0 auto; width: 139px; height: 40px; }
.nf-about__btn {
  position: relative; box-sizing: border-box; width: 100%; height: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center;
  gap: 0; padding: 30px; overflow: visible; cursor: pointer; border: none; border-radius: 32px;
  background-color: var(--nf-green); transition: background-color 0.2s cubic-bezier(0.44, 0, 0.56, 1);
}
.nf-about__btn-label { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; white-space: pre; user-select: none; -webkit-user-select: none; }
.nf-about__btn-text {
  white-space: pre; font-family: var(--nf-font-regular); font-weight: 400; font-size: 21px; line-height: 1.3;
  letter-spacing: normal; color: var(--nf-black); text-align: left;
}
.nf-about__btn-label--success, .nf-about__spinner { display: none; }
.nf-about__btn[data-state="loading"], .nf-about__btn[data-state="success"] { cursor: auto; }
.nf-about__btn[data-state="loading"] .nf-about__btn-label--default,
.nf-about__btn[data-state="success"] .nf-about__btn-label--default { display: none; }
.nf-about__btn[data-state="loading"] .nf-about__spinner { display: block; }
.nf-about__btn[data-state="success"] .nf-about__btn-label--success { display: flex; }
@media (hover: hover) {
  .nf-about__btn[data-state="default"]:hover { background-color: rgba(51, 51, 51, 0.85); }
  .nf-about__btn[data-state="default"]:hover .nf-about__btn-text { color: var(--nf-white); }
}
.nf-about__btn:focus { outline: none; }
.nf-about__btn:focus-visible { box-shadow: 0 0 0 2px var(--nf-black); }

.nf-about__spinner {
  position: relative; flex: 0 0 auto; width: 20px; height: 20px; overflow: hidden;
  -webkit-mask: url("../../../assets/images/about-form-spinner-mask.svg") center / cover no-repeat;
  mask: url("../../../assets/images/about-form-spinner-mask.svg") center / cover no-repeat;
}
.nf-about__spinner-conic {
  position: absolute; inset: 0; overflow: visible; display: block;
  background: conic-gradient(rgba(255, 255, 255, 0) 7.2deg, rgb(255, 255, 255) 342deg);
  animation: nf-about-spin 1s linear infinite;
}
.nf-about__spinner-dot {
  position: absolute; top: 0; left: 50%; width: 2px; height: 2px; border-radius: 1px; background-color: var(--nf-white);
  transform: translateX(-50%);
}
@keyframes nf-about-spin { to { transform: rotate(360deg); } }

/* ---------- tablet 810-1439.98 ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-about__mission { padding: 120px 0 90px; }
  .nf-about__title { font-size: 42px; }
  .nf-about__lead { font-size: 26px; }
  .nf-about__para { font-size: 16px; }
  .nf-about__contact-box { width: 495px; }
  .nf-about__contact-text { font-size: 16px; }
  .nf-about__form-wrap { width: 516px; }
  .nf-about__btn-text { font-size: 16px; }
}

/* ---------- phone <= 809.98 ---------- */
@media (max-width: 809.98px) {
  .nf-about__mission { padding: 100px 0; }
  .nf-about__head, .nf-about__body { width: 80%; }
  .nf-about__title-box { flex: 1 0 0px; width: 1px; }
  .nf-about__title { font-size: 32px; }
  .nf-about__lead { font-size: 24px; }
  .nf-about__para { font-size: 18px; line-height: 1.4; }
  .nf-about__contact { padding: 50px 20px 0; }
  .nf-about__contact-row { flex-direction: column; padding: 0 20px; }
  .nf-about__contact-box, .nf-about__form-wrap { width: 100%; }
  .nf-about__contact-text { font-size: 16px; }
  .nf-about__btn-text { font-size: 16px; }
}

/* ---------- load appear (JS adds .is-in) ---------- */
/* Off since 2026-11-19 (Danny): the first screen shows at once, so Google finds the main element. To bring the fade
   back, add the class nf-about--fade to the section. */
.nf-about--fade [data-about-fade] {
  opacity: 0; transform: translateY(50px); will-change: transform;
  transition: opacity 0.6s cubic-bezier(0.44, 0, 0.56, 1), transform 0.6s cubic-bezier(0.44, 0, 0.56, 1);
}
.nf-about--fade [data-about-fade].is-in { opacity: 1; transform: none; }
@media (scripting: none) { .nf-about--fade [data-about-fade] { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nf-about--fade [data-about-fade] { opacity: 1; transform: none; transition: none; }
  .nf-about__spinner-conic { animation-duration: 2s; }
}

/* Submit: standard pill, 21px / 54px tall on desktop and tablet, 15px / 35px on phone (was 60px tall, 16px from 1280
   down) (QC 2026-10-28). */
.nf-about__btn-box { width: auto; height: auto; }
.nf-about__btn { height: 54px; padding: 0 24px; }
.nf-about__btn-text { font-size: 21px; line-height: 1.2; }
@media (max-width: 809.98px) {
  .nf-about__btn { height: 35px; padding: 0 16px; }
  .nf-about__btn-text { font-size: 15px; }
}
