/* ─── Callback bar (lead gen) ───────────────────────────────────────────
   Shared across the homepage, About and Insights. Anchored to the bottom
   edge, full width. Non-modal: the page stays usable while it is up, so no
   backdrop and no focus trap. Self-contained - relies only on the design
   tokens (--red, --cream, --ink, --maxw, --pad-x, --ease-out-expo). */

.callback {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--red);
  color: var(--cream);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.3);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 560ms var(--ease-out-expo), visibility 0s linear 560ms;
}
.callback.is-open {
  transform: none;
  visibility: visible;
  transition: transform 560ms var(--ease-out-expo), visibility 0s;
}
/* Steps aside while the contact section is on screen, and while scrolling down. */
.callback.is-hidden { transform: translateY(100%); }

.callback__panel {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 2.6vw, 34px) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.callback__intro {
  display: flex; align-items: center;
  gap: clamp(16px, 1.8vw, 24px);
  min-width: 0;
}
/* Fixed size, with the copy block given the same min-height, so the two sit
   as equal-height blocks. (Stretch + aspect-ratio sizes circularly.) */
.callback__avatar {
  position: relative;
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(244,239,232,0.14);
  box-shadow: 0 0 0 2px rgba(244,239,232,0.45);
}
.callback__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 999px;
  display: block;
}
/* Small "available" dot - signals a person, not a form. */
.callback__avatar-badge {
  position: absolute;
  right: 3px; bottom: 3px;
  width: 15px; height: 15px;
  border-radius: 999px;
  background: #5fd08a;
  box-shadow: 0 0 0 3px var(--red);
}
.callback__copy {
  min-width: 0;
  min-height: 84px;
  display: flex; flex-direction: column; justify-content: center;
}
.callback__title {
  font-family: 'Acumin', sans-serif;
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 100;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--cream);
  margin: 0;
}
.callback__who {
  display: flex; align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 7px 0 0;
  font-family: 'Acumin', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.callback__who strong {
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 100;
  color: var(--cream);
}
.callback__who span {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(244,239,232,0.6);
}
.callback__who span::before { content: '·'; margin-right: 8px; }
.callback__sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244,239,232,0.78);
  margin: 9px 0 0;
  max-width: 46ch;
}

.callback__form {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(10px, 1.1vw, 14px);
  min-width: 0;
}
/* Rounded fields to match the mark - and easier to read as inputs than a
   hairline underline on a saturated background. */
.callback__input {
  width: 100%;
  min-width: 0;
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  color: var(--cream);
  background: rgba(244,239,232,0.12);
  border: 1px solid rgba(244,239,232,0.28);
  border-radius: 999px;
  padding: 15px 22px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.callback__input::placeholder { color: rgba(244,239,232,0.55); }
/* Phone field: dial-code picker sits inside the same pill as the number. */
.callback__phone {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: rgba(244,239,232,0.12);
  border: 1px solid rgba(244,239,232,0.28);
  border-radius: 999px;
  transition: border-color 200ms ease, background 200ms ease;
}
.callback__phone:focus-within {
  border-color: var(--cream);
  background: rgba(244,239,232,0.18);
}
/* Custom control rather than a native <select>: the OS popup renders as a
   translucent blur panel over the red bar, which cannot be styled. */
.callback__cc {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 20px;
  background: transparent;
  border: none;
  border-radius: 999px 0 0 999px;
  color: rgba(244,239,232,0.9);
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.callback__cc-flag { font-size: 16px; line-height: 1; }
.callback__cc-arrow { opacity: 0.55; flex-shrink: 0; margin-left: 1px; }
.callback__cc[aria-expanded="true"] .callback__cc-arrow { transform: rotate(180deg); }
/* Ring the whole pill rather than the button: an outline on the button alone
   follows its half-rounded radius, and that straight right edge reads as a
   divider line next to the number. */
.callback__cc:focus-visible { outline: none; }
.callback__phone:has(.callback__cc:focus-visible) {
  border-color: var(--cream);
  box-shadow: 0 0 0 1px var(--cream);
}
/* Fallback where :has() is unavailable. */
@supports not selector(:has(*)) {
  .callback__cc:focus-visible { outline: 2px solid var(--cream); outline-offset: -3px; border-radius: 999px; }
}

.callback__cc-list {
  position: absolute;
  left: 0; bottom: calc(100% + 10px);
  z-index: 5;
  width: 244px;
  max-height: 268px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--cream);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  /* The native scrollbar sits inside the panel and cuts across the rounded
     corners - keep it thin and unobtrusive instead. */
  scrollbar-width: thin;
  scrollbar-color: rgba(29,29,27,0.22) transparent;
}
.callback__cc-list::-webkit-scrollbar { width: 5px; }
.callback__cc-list::-webkit-scrollbar-track { background: transparent; }
.callback__cc-list::-webkit-scrollbar-thumb {
  background: rgba(29,29,27,0.18);
  border-radius: 999px;
}
.callback__cc-list::-webkit-scrollbar-thumb:hover { background: rgba(29,29,27,0.3); }
.callback__cc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(29,29,27,0.82);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.callback__cc-list li > span:first-child { font-size: 15px; line-height: 1; }
.callback__cc-list li:hover,
.callback__cc-list li:focus { background: rgba(29,29,27,0.06); outline: none; }
.callback__cc-list li[aria-selected="true"] {
  background: var(--red);
  color: var(--cream);
}
.callback__cc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callback__cc-dial {
  flex-shrink: 0;
  color: rgba(29,29,27,0.42);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
}
.callback__cc-list li[aria-selected="true"] .callback__cc-dial { color: rgba(244,239,232,0.72); }

.callback__phone .callback__input {
  flex: 1 1 auto;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 999px;
  /* Clears the overlaid prefix. Fixed rather than measured, sized for the
     longest dial code (+351) so it never shifts between countries. */
  padding-left: 106px;
}
.callback__phone .callback__input:focus { background: transparent; }
/* Browsers inject their own controls into a focused tel/email field (contacts
   picker, credentials button, decoration container). Those can render as a
   sliver at the edge of the field, which reads as a divider inside the pill. */
.callback__phone .callback__input {
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
}
.callback__phone .callback__input::-webkit-contacts-auto-fill-button,
.callback__phone .callback__input::-webkit-credentials-auto-fill-button,
.callback__phone .callback__input::-webkit-caps-lock-indicator {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  width: 0; margin: 0;
}
.callback__phone .callback__input::-webkit-textfield-decoration-container {
  margin: 0; padding: 0;
}
@media (max-width: 680px) {
  .callback__cc { padding: 0 10px 0 16px; font-size: 14px; }
  .callback__phone .callback__input { padding-left: 94px; }
  .callback__cc-list { width: min(244px, calc(100vw - 44px)); max-height: 232px; }
}
.callback__input:focus {
  border-color: var(--cream);
  background: rgba(244,239,232,0.18);
}
/* Chrome paints its own near-white background on autofilled fields, which
   wrecks the pill on a red bar. There is no property to switch that off, so
   use the long-transition trick and force the text colour back. */
.callback__input:-webkit-autofill,
.callback__input:-webkit-autofill:hover,
.callback__input:-webkit-autofill:focus,
.callback__cc:-webkit-autofill {
  -webkit-text-fill-color: var(--cream);
  caret-color: var(--cream);
  transition: background-color 600000s 0s, color 600000s 0s;
}
.callback__input:autofill {
  -webkit-text-fill-color: var(--cream);
  transition: background-color 600000s 0s, color 600000s 0s;
}
.callback__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.callback__actions {
  grid-column: 1 / -1;
  display: flex; align-items: stretch;
  gap: 10px;
}
.callback__submit {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  background: var(--cream);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-family: 'Acumin', sans-serif;
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 100;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease;
}
.callback__submit:hover { background: var(--ink); color: var(--cream); }
.callback__submit:disabled { opacity: 0.6; background: var(--cream); color: var(--ink); }
.callback__call {
  flex-shrink: 0;
  width: 52px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--cream);
  border: 1px solid rgba(244,239,232,0.42);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.callback__call:hover { background: var(--cream); color: var(--red); border-color: var(--cream); }
/* Empty status must not reserve a row - that leaves a dead band in the bar. */
.callback__status {
  grid-column: 1 / -1;
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  min-height: 0;
  margin: 0;
  color: rgba(244,239,232,0.8);
}
.callback__status:empty { display: none; }
.callback__status.is-error { color: #ffd9de; }
.callback__status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.callback__status a:hover { color: var(--cream); }

/* Tucked into the corner, borderless - it should read as a dismiss, not as a
   second button competing with the CTA. */
.callback__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: rgba(244,239,232,0.6);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.callback__close:hover { background: rgba(244,239,232,0.14); color: var(--cream); }
.callback__close:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* Success state: everything else drops out and the confirmation becomes the
   whole bar, centred, rather than a line appended under the form heading. */
.callback__done { display: none; }
.callback.is-done .callback__form,
.callback.is-done .callback__sub,
.callback.is-done .callback__title,
.callback.is-done .callback__who { display: none; }
.callback.is-done .callback__done { display: block; }
.callback.is-done .callback__panel {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-top: clamp(26px, 3vw, 38px);
  padding-bottom: clamp(26px, 3vw, 38px);
}
.callback.is-done .callback__intro { padding-right: 0; }
.callback.is-done .callback__copy { min-height: 0; }
.callback__done-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Acumin', sans-serif;
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 100;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0;
}
.callback__done-check {
  flex-shrink: 0;
  color: #5fd08a;
}
.callback__done-sub {
  font-family: 'Arimo', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244,239,232,0.78);
  margin: 7px 0 0;
}
@media (max-width: 680px) {
  .callback__done-title { font-size: 16px; }
  .callback__done-sub { font-size: 13px; }
}

/* ─── Collapsed tab ───────────────────────────────────────────────────
   Closing the bar leaves this behind, so the offer stays reachable instead
   of disappearing for a month. Permanent once closed. */
.callback__tab {
  position: fixed;
  right: var(--pad-x); bottom: 0;
  z-index: 199;
  display: flex; align-items: center;
  padding: 10px 20px 11px;
  background: var(--red);
  color: var(--cream);
  border: none;
  border-radius: 16px 16px 0 0;
  font-family: 'Acumin', sans-serif;
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 100;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.22);
  /* Peeks above the edge by a sliver so it reads as something to pull up. */
  transform: translateY(calc(100% - 7px));
  transition: transform 420ms var(--ease-out-expo), background 200ms ease;
}
.callback__tab-face {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: url('/assets/images/team/tijmen.jpg') 50% 18% / cover;
  box-shadow: 0 0 0 1.5px rgba(244,239,232,0.5);
}
.callback__tab-label { margin: 0 4px 0 12px; }
.callback__tab-arrow { opacity: 0.85; margin-left: 4px; }
.callback__tab.is-visible { transform: none; }
.callback__tab.is-visible:hover { transform: translateY(-3px); }
.callback__tab.is-hidden { transform: translateY(100%); }
.callback__tab:hover { background: var(--ink); }

@media (max-width: 1100px) {
  .callback__panel {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 26px);
    padding-top: clamp(22px, 3vw, 30px);
    padding-bottom: clamp(22px, 3vw, 30px);
  }
  .callback__intro { padding-right: 44px; }
  .callback__form { grid-template-columns: 1fr 1fr auto; }
  .callback__actions { grid-column: auto; }
}
@media (max-width: 680px) {
  .callback__panel {
    padding-top: 20px; padding-bottom: 20px;
    gap: 16px;
    max-height: 78dvh; overflow-y: auto;
  }
  /* The country list opens upward, out of the panel. A scroll container clips
     it, so the panel stops being one while the list is open - there is nothing
     to scroll to at that moment anyway. */
  .callback__panel.is-picking { max-height: none; overflow: visible; }
  .callback__form { grid-template-columns: 1fr; gap: 10px; }
  .callback__actions { grid-column: 1 / -1; }
  /* Photo + headline only - name, role and the sub line are noise at this size. */
  .callback__who, .callback__sub { display: none; }
  .callback__intro { align-items: center; gap: 14px; }
  .callback__avatar { width: 52px; height: 52px; }
  .callback__copy { min-height: 0; }
  .callback__avatar-badge { width: 11px; height: 11px; right: 0; bottom: 0; box-shadow: 0 0 0 2.5px var(--red); }
  .callback__title { font-size: 16px; line-height: 1.25; }
  /* Icon-only tab on small screens. */
  .callback__tab { right: 12px; padding: 8px 12px 9px; }
  .callback__tab-label { display: none; }
  .callback__tab-arrow { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .callback, .callback__tab { transition-duration: 1ms; }
}

/* The site's cursor dot is red and would disappear against the bar. */
.cursor-dot.is-over-callback {
  background: rgba(244,239,232,0.92);
  box-shadow: 0 0 0 1px rgba(29,29,27,0.15);
}
