/**
 * About page – CEO / key team / culture (scoped).
 * Page chrome/background comes from page-dark.css via body.arsam-page-dark.
 */

.arsam-about-leadership {
  --aat-navy: #031a30;
  --aat-navy-soft: #0a2748;
  --aat-gold: #d7a53c;
  --aat-text: #172b45;
  --aat-muted: #5b6b7c;
  --aat-bg: transparent;
  --aat-radius: 14px;
  --aat-gap: 40px;
  background: var(--aat-bg);
  padding: 8px 0 8px;
}

.arsam-about-leadership .arsam-container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.arsam-about-ceo,
.arsam-about-team,
.arsam-about-culture {
  padding-block: 20px;
}

/* —— Photo slots —— */
.arsam-about-photo {
  overflow: hidden;
  border-radius: 12px;
}

.arsam-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.arsam-about-photo--empty {
  background: #edf0f4;
}

.arsam-about-ceo__photo.arsam-about-photo--empty {
  background: var(--aat-navy-soft);
}

/* —— CEO —— */
.arsam-about-ceo__panel {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 28px;
  align-items: stretch;
  background: var(--aat-navy);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  min-height: 0;
}

.arsam-about-ceo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.arsam-about-ceo__label {
  margin: 0 0 10px;
  color: var(--aat-gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.arsam-about-ceo__name {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.35;
}

.arsam-about-ceo__role {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.arsam-about-ceo__quote {
  margin: 0;
  position: relative;
  padding-inline-start: 28px;
}

.arsam-about-ceo__mark {
  position: absolute;
  inset-inline-start: 0;
  top: -6px;
  color: var(--aat-gold);
  font-size: 42px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.95;
}

.arsam-about-ceo__quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.9;
}

.arsam-about-ceo__photo {
  min-height: 280px;
  height: 100%;
  align-self: stretch;
}

/* —— Team —— */
.arsam-about-team__head {
  text-align: center;
  margin-bottom: 28px;
}

.arsam-about-team__head h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
}

.arsam-about-team__rule {
  display: block;
  width: 56px;
  height: 3px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--aat-gold);
}

.arsam-about-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.arsam-about-team-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(215, 165, 60, 0.28);
  border-radius: var(--aat-radius);
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.arsam-about-team-card__photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 0;
}

.arsam-about-team-card__photo.arsam-about-photo--empty {
  background: rgba(255, 255, 255, 0.06);
}

.arsam-about-team-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.arsam-about-team-card__name {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.arsam-about-team-card__role {
  margin: 0;
  color: var(--aat-gold);
  font-size: 13px;
  font-weight: 600;
}

.arsam-about-team-card__desc {
  margin: 4px 0 0;
  color: var(--aat-muted);
  font-size: 13px;
  line-height: 1.75;
  flex: 1;
}

.arsam-about-team-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 8px;
  border-radius: 8px;
  color: var(--aat-navy);
  border: 1px solid #e6e9ef;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.arsam-about-team-card__linkedin:hover,
.arsam-about-team-card__linkedin:focus-visible {
  color: var(--aat-gold);
  border-color: var(--aat-gold);
  background: rgba(215, 165, 60, 0.08);
  outline: none;
}

.arsam-about-team-card__linkedin:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 165, 60, 0.35);
}

.arsam-about-leadership .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Culture —— */
.arsam-about-culture__panel {
  background: var(--aat-navy);
  border-radius: 16px;
  padding: 36px 20px 28px;
  color: #fff;
}

.arsam-about-culture__panel > h2 {
  margin: 0 0 28px;
  text-align: center;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
}

.arsam-about-culture__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.arsam-about-culture__item {
  text-align: center;
  padding: 12px 16px;
  min-width: 0;
  position: relative;
}

.arsam-about-culture__item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 10%;
  inset-inline-start: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* In RTL, divider sits on the "start" edge of each item after the first visually —
   place divider on the left edge of items (physical) between columns. */
html[dir="rtl"] .arsam-about-culture__item:not(:last-child)::after,
.arsam-about-leadership[dir="rtl"] .arsam-about-culture__item:not(:last-child)::after {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.arsam-about-culture__icon {
  color: var(--aat-gold);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  width: 44px;
  height: 44px;
}

.arsam-about-culture__item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.arsam-about-culture__item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.75;
}

.arsam-about-partners__inner {
  margin-top: 0;
}

.arsam-about-partners .arsam-eyebrow {
  margin-bottom: 28px;
}

/* Hidden by default (code kept; re-enable via filter arsam_show_partners_section). */
.arsam-about-partners,
.arsam-partners.arsam-partners--marquee {
  display: none !important;
}

/* Soft infinite partner logo marquee (motion driven by partners-marquee.js) */
.arsam-partners.arsam-partners--marquee {
  display: block !important;
  flex-wrap: nowrap !important;
  margin: 0;
  padding: 8px 0 4px;
  gap: 0 !important;
  justify-content: unset !important;
}

.arsam-partners__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.arsam-partners__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  align-items: center;
  will-change: transform;
  /* CSS fallback if JS blocked; JS sets animation:none and drives transform */
  animation: arsamPartnersMarquee 42s linear infinite;
}

.arsam-partners__group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 48px;
  padding-inline-end: 48px;
  flex: 0 0 auto;
}

.arsam-partners__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 120px;
  height: 72px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #9a9a9a;
  border: 1px solid #000;
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.arsam-partners__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.arsam-partners__item img {
  display: block;
  max-width: 140px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}

@keyframes arsamPartnersMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Re-enable CSS fallback even when theme kills all animations */
@media (prefers-reduced-motion: reduce) {
  .arsam-partners.arsam-partners--marquee .arsam-partners__track {
    animation: arsamPartnersMarquee 55s linear infinite !important;
  }
}

@media (max-width: 768px) {
  .arsam-partners__group {
    gap: 28px;
    padding-inline-end: 28px;
  }

  .arsam-partners__item {
    min-width: 100px;
    height: 64px;
    padding: 8px 12px;
  }

  .arsam-partners__item img {
    max-width: 110px;
    max-height: 40px;
  }
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .arsam-about-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arsam-about-culture__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 0;
  }

  .arsam-about-culture__item:not(:last-child)::after {
    display: none;
  }

  .arsam-about-culture__item {
    padding: 16px 12px;
  }

  .arsam-about-culture__item:nth-child(3n + 1):nth-last-child(2),
  .arsam-about-culture__item:nth-child(3n + 1):nth-last-child(1) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .arsam-about-ceo__panel {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 20px;
  }

  .arsam-about-ceo__photo {
    min-height: 220px;
    aspect-ratio: 4 / 3;
    height: auto;
    order: 2;
  }

  .arsam-about-ceo__text {
    order: 1;
  }

  .arsam-about-ceo__name {
    font-size: 24px;
  }

  .arsam-about-leadership .arsam-container {
    width: min(100% - 24px, 1200px);
  }
}

@media (max-width: 560px) {
  .arsam-about-team__grid {
    grid-template-columns: 1fr;
  }

  .arsam-about-culture__grid {
    grid-template-columns: 1fr;
  }

  .arsam-about-culture__item {
    padding: 18px 8px;
  }

  .arsam-about-culture__item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .arsam-about-ceo__quote {
    padding-inline-start: 24px;
  }
}
