/* =============================================================
   Joblio – About Us (standalone)
   Ported from the joblio-landing React app styles.
   Breakpoints: phone-sm 560px, phone 768px, tablet 992px, desktop 1180px
   ============================================================= */

:root {
  --primary-font: 'Rubik', sans-serif;

  --brand-primary: #0669b1;
  --brand-primary-darken: #044a7d;
  --brand-primary-lighten: #f0f7ff;

  --brand-secondary: #292b66;
  --brand-secondary-darken: #1b1c42;
  --brand-secondary-lighten: #f1f2fe;

  --red: #f63d74;
  --orange: #ff9457;
  --orange-darken: #e7844b;
  --orange-lighten: #fff5f0;

  --yellow-darken: #ebc94f;

  --green: #46d7c2;
  --green-darken: #2ac1ab;
  --green-lighten: #f2fcfb;

  --gray: #c3cbd2;
  --gray-darken-2: #677179;
  --gray-darken-1: #a3adb5;
  --gray-lighten-1: #e7e8ea;
  --gray-lighten-2: #f9f9f9;

  --dark: #222222;
  --white: #ffffff;

  --button-radius: 100px;
  --content-max: 1440px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5715;
  font-size: 12px;
  font-family:
    var(--primary-font),
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Roboto',
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant: tabular-nums;
  font-feature-settings: 'tnum';
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.page {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Full-bleed background helper (mirrors the fullWidthBkg mixin) */
.full-bleed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 100%;
  z-index: -1;
  background-color: inherit;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--brand-primary);
  border-radius: var(--button-radius);
  background-color: var(--brand-primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--brand-primary-darken);
  border-color: var(--brand-primary-darken);
  color: var(--white);
}

.btn--inverted {
  color: var(--brand-primary-darken);
  border-color: var(--brand-primary-darken);
  background-color: var(--white);
}

.btn--inverted:hover {
  color: var(--brand-primary-darken);
  background-color: var(--brand-primary-lighten);
}

.btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--white);
  z-index: 20;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 100%;
  z-index: -1;
  background-color: var(--white);
}

.header__logo {
  display: inline-flex;
  line-height: 0;
}

.logo {
  width: 110px;
  height: 50px;
}

.header__nav {
  display: none;
  gap: 24px;
}

.nav-link {
  color: var(--gray-darken-2);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--brand-primary-darken);
}

.nav-link--active {
  color: var(--brand-primary);
}

.header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.header__actions .btn {
  width: 100%;
}

.header__menu-button {
  border: none;
  background: transparent;
  padding: 0;
  line-height: 0;
}

.header__menu-button svg {
  width: 25px;
  height: 25px;
  fill: var(--gray-darken-2);
  transition: fill 0.3s ease-in-out;
}

.header__menu-button:hover svg {
  fill: var(--brand-primary-darken);
}

@media (min-width: 768px) {
  .header__actions {
    width: auto;
    flex-wrap: nowrap;
    gap: 24px;
  }

  .header__actions .btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }

  .header__menu-button {
    display: none;
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__panel {
  position: absolute;
  inset: 0;
  background: var(--white);
  padding: 12px 32px;
  min-height: 100vh;
  overflow-y: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: transparent;
  padding: 0;
  line-height: 0;
}

.mobile-menu__close svg {
  width: 24px;
  height: 25px;
}

.mobile-menu__logo {
  width: 81px;
  height: 37px;
  margin: 12px 0 36px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-lighten-1);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.mobile-menu__nav .nav-link {
  font-size: 16px;
  line-height: 24px;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 56px 20px;
}

@media (min-width: 768px) {
  .section {
    padding: 56px 80px;
  }
}

.section--primary-light {
  background-color: var(--brand-primary-lighten);
  z-index: 10;
}

.section--primary-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 100%;
  z-index: -1;
  background-color: var(--brand-primary-lighten);
}

/* Section title with the curved underline stroke */
.section-title {
  margin: 0 0 32px;
  font-size: 52px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.section-title--blue {
  color: var(--brand-primary);
}

.section-title__stroke {
  position: relative;
  z-index: 10;
  white-space: nowrap;
}

.section-title__stroke svg {
  width: 100%;
  height: 23px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  stroke: var(--green-darken);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

@media (max-width: 560px) {
  .section-title {
    font-size: 40px;
  }
}

@media (max-width: 420px) {
  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 380px) {
  .section-title {
    font-size: 30px;
  }
}

/* Title block: heading + subtitle */
.title-block {
  margin-bottom: 48px;
  text-align: center;
}

.title-block__heading {
  font-size: 36px;
  line-height: 48px;
  font-weight: 700;
  color: var(--dark);
}

@media (min-width: 992px) {
  .title-block__heading {
    font-size: 48px;
  }
}

.title-block__subtitle {
  margin-top: 24px;
  color: var(--gray-darken-2);
  font-size: 12px;
  line-height: 1.5715;
}

/* ---------- Mission statement ---------- */
.mission {
  padding-top: 110px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 1100px) {
  .mission {
    padding-left: 0;
    padding-right: 0;
  }

  .mission .section-title {
    padding: 0 20px;
  }
}

.mission__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mission__text {
  width: 40%;
  padding-right: 150px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-style: italic;
  color: var(--gray-darken-2);
  font-size: 12px;
  line-height: 1.5715;
}

.mission__video {
  width: 60%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.mission__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1200px) {
  .mission__text {
    padding-right: 100px;
  }
}

@media (max-width: 1100px) {
  .mission__content {
    flex-direction: column;
  }

  .mission__text {
    width: 100%;
    padding: 0 20px 32px;
  }

  .mission__video {
    width: 100vw;
  }
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 32px;
  font-style: normal;
}

.profile-card__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: var(--brand-secondary);
}

.profile-card__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--brand-secondary);
}

/* ---------- Benefits accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion__panel {
  --panel-color: var(--brand-primary);
  --panel-bg: var(--brand-primary-lighten);
  color: var(--panel-color);
  background-color: var(--panel-bg);
}

.accordion__panel--employer {
  --panel-color: var(--brand-primary);
  --panel-bg: var(--brand-primary-lighten);
}

.accordion__panel--employee {
  --panel-color: var(--brand-secondary);
  --panel-bg: var(--brand-secondary-lighten);
}

.accordion__panel--origination {
  --panel-color: var(--green-darken);
  --panel-bg: var(--green-lighten);
}

.accordion__panel--destination {
  --panel-color: var(--orange-darken);
  --panel-bg: var(--orange-lighten);
}

.accordion__heading {
  margin: 0;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  flex-direction: row-reverse;
}

.accordion__label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .accordion__label {
    font-size: 24px;
  }
}

.accordion__badge {
  display: inline-block;
  width: 48px;
  height: 48px;
  margin-right: 24px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
}

.accordion__badge--employer {
  background-image: url('../assets/icons/briefcase.svg');
}

.accordion__badge--employee {
  background-image: url('../assets/icons/profile2user.svg');
}

.accordion__badge--origination {
  background-image: url('../assets/icons/location.svg');
}

.accordion__badge--destination {
  background-image: url('../assets/icons/routing.svg');
}

.accordion__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.accordion__toggle svg {
  fill: currentColor;
}

.accordion__icon-plus {
  width: 20px;
  height: 19px;
}

.accordion__icon-minus {
  width: 20px;
  height: 2px;
  display: none;
}

.accordion__trigger[aria-expanded='true'] .accordion__icon-plus {
  display: none;
}

.accordion__trigger[aria-expanded='true'] .accordion__icon-minus {
  display: block;
}

.accordion__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion__body[hidden] {
  display: grid;
  grid-template-rows: 0fr;
}

.accordion__body-inner {
  overflow: hidden;
  padding: 0 24px;
}

.accordion__body:not([hidden]) .accordion__body-inner {
  padding-bottom: 24px;
}

.benefit-list {
  list-style: disc outside;
  padding-left: 24px;
}

.benefit-item {
  margin: 0;
}

.benefit-item::marker {
  color: currentColor;
}

.benefit-item:not(:last-child) {
  margin-bottom: 24px;
}

.benefit-item__title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: inherit;
}

.benefit-item__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--gray-darken-2);
}

/* ---------- Dashed ring around photos (dashedBorder mixin) ---------- */
.dashed-ring {
  --n: 8; /* number of dashes */
  --d: 22deg; /* gap between dashes */
  --t: 7px; /* ring thickness */
  --ring-color: var(--brand-primary-lighten);

  position: relative;
  padding: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(5px 0 40px rgba(41, 43, 107, 0.3));
}

.dashed-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: var(--t);
  background: var(--ring-color);
  transition: background 0.4s;
  -webkit-mask:
    linear-gradient(#0000 0 0) content-box,
    repeating-conic-gradient(
      from calc(var(--d) / 2),
      #000 0 calc(360deg / var(--n) - var(--d)),
      #0000 0 calc(360deg / var(--n))
    );
  mask:
    linear-gradient(#0000 0 0) content-box,
    repeating-conic-gradient(
      from calc(var(--d) / 2),
      #000 0 calc(360deg / var(--n) - var(--d)),
      #0000 0 calc(360deg / var(--n))
    );
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.dashed-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- Carousel (scroll-snap) ---------- */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px 4px 8px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--white);
  border-radius: 50%;
  line-height: 0;
  box-shadow: 0 12px 24px rgba(103, 113, 121, 0.15);
  transition: opacity 0.2s;
}

.carousel__arrow svg {
  width: 44px;
  height: 44px;
  fill: var(--brand-primary);
}

.carousel__arrow--prev {
  left: -12px;
}

.carousel__arrow--next {
  right: -12px;
}

.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 768px) {
  .carousel {
    padding: 0 56px;
  }

  .carousel__arrow--prev {
    left: 0;
  }

  .carousel__arrow--next {
    right: 0;
  }
}

/* Advisors: 1 / 2 / 4 per view */
@media (min-width: 560px) {
  .carousel--advisors .carousel__slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (min-width: 992px) {
  .carousel--advisors .carousel__slide {
    flex-basis: calc((100% - 72px) / 4);
  }
}

/* Leadership: 1 / 2 per view on mobile, wrapping grid on tablet+ */
@media (min-width: 560px) {
  .carousel--leadership .carousel__slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (min-width: 992px) {
  .carousel--leadership {
    padding: 0 80px;
  }

  .carousel--leadership .carousel__track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .carousel--leadership .carousel__slide {
    flex-basis: calc(100% / 3 - 48px);
  }

  .carousel--leadership .carousel__arrow {
    display: none;
  }
}

/* ---------- Leadership cards ---------- */
.leader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 48px;
}

.leader-card__photo {
  width: 100%;
  max-width: 270px;
  border: none;
  background: transparent;
  margin-bottom: 28px;
  padding: 22px;
}

.leader-card__photo:hover::after,
.leader-card__photo[aria-expanded='true']::after {
  background: var(--brand-primary);
  transition: background 0.8s;
}

.leader-card__info {
  width: 100%;
  padding: 15px 20px;
  border-radius: 53px;
  background: var(--white);
}

@media (min-width: 768px) {
  .leader-card__info {
    padding: 15px 30px;
  }
}

.leader-card__title {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--gray-darken-2);
  overflow-wrap: anywhere;
}

.leader-card__name {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: var(--dark);
  overflow-wrap: anywhere;
}

/* Bio popover (shown on hover / focus / tap) */
.leader-card__bio {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 40px);
  transform: translate(-50%, 8px);
  width: max-content;
  max-width: min(300px, calc(100vw - 40px));
  padding: 8px;
  border-radius: 6px;
  background: var(--white);
  color: var(--dark);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 30;
}

.leader-card__bio::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--white);
}

@media (min-width: 768px) {
  .leader-card__bio {
    max-width: 410px;
  }
}

.leader-card__photo:hover + .leader-card__bio,
.leader-card__photo:focus-visible + .leader-card__bio,
.leader-card.is-open .leader-card__bio {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* ---------- Advisor cards ---------- */
.advisor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 324px;
  margin: 0 auto 48px;
}

.advisor-card__photo {
  width: 100%;
  max-width: 206px;
  margin-bottom: 32px;
  padding: 15px;
}

.advisor-card__photo:hover::after {
  background: var(--brand-primary);
  transition: background 0.8s;
}

.advisor-card__location {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--gray-darken-2);
  overflow-wrap: anywhere;
}

.advisor-card__name {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: var(--dark);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 36px 15px 0;
  background-color: var(--brand-secondary);
  color: var(--gray);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 100%;
  z-index: -1;
  background-color: var(--brand-secondary);
}

@media (min-width: 768px) {
  .footer {
    padding: 36px 80px 0;
  }
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .footer__row {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__logo {
  width: 110px;
  height: 51px;
  fill: var(--white);
}

.footer__social {
  display: flex;
  column-gap: 16px;
}

.footer__social a {
  line-height: 0;
}

.footer__social svg {
  width: 25px;
  height: 25px;
  fill: #e2e8f0;
  transition: fill 0.2s;
}

.footer__social a:hover svg {
  fill: var(--white);
}

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 8px;
  padding: 10px;
  border-radius: var(--button-radius);
  background-color: var(--white);
  color: var(--brand-primary) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none !important;
}

@media (min-width: 768px) {
  .footer__cta {
    justify-content: space-between;
  }
}

.footer__cta-logo {
  width: 26px;
  height: 12px;
  fill: var(--brand-primary);
}

.footer__cta-arrow {
  width: 24px;
  height: 25px;
}

.footer__tagline {
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e4ed;
  font-size: 16px;
  line-height: 24px;
}

.footer__terms {
  padding: 24px 0;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel__track {
    scroll-behavior: auto;
  }

  .accordion__body,
  .leader-card__bio,
  .dashed-ring::after {
    transition: none;
  }
}
