/* Shared styles for About / Why Choose Us / Corporate Details */

.who-hero.qf-hero {
  align-items: center;
  padding-top: clamp(88px, 12vh, 120px);
  padding-bottom: clamp(40px, 6vh, 64px);
}

.who-hero__bg--about {
  background: url("assets/about/hero.jpg") center / cover no-repeat;
}

.who-qafi-media {
  background: #0b0612;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 48px);
}

.who-qafi-media img {
  width: min(100%, 360px);
  height: auto;
}
.who-hero__bg--why {
  background: url("assets/why/brain.jpg") center / cover no-repeat;
}
.who-hero__bg--corp {
  background: url("assets/corp/hero.jpg") center / cover no-repeat;
}

.who-mission {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.who-mission li {
  padding: 24px 22px;
  background: var(--qf-soft);
  border: 1px solid rgba(96, 38, 158, 0.12);
}
.who-mission h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qf-accent);
}
.who-mission p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--qf-ink);
  font-weight: 550;
}

.who-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.who-services li {
  padding: 22px 20px;
  background: #fff;
  border: 1px solid rgba(96, 38, 158, 0.12);
}
.who-services h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
}
.who-services p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--qf-muted);
}

.who-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.who-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--qf-ink);
}
.who-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%),
    var(--qf-accent);
}
.who-checklist--light li { color: rgba(255, 255, 255, 0.9); }
.who-checklist--light li::before {
  background:
    radial-gradient(circle at 50% 50%, #1a0b2e 0 28%, transparent 30%),
    #fff;
}

.who-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.who-team li {
  background: #fff;
  border: 1px solid rgba(96, 38, 158, 0.12);
  overflow: hidden;
}
.who-team img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  background: #eee;
}
.who-team__meta {
  padding: 16px 16px 18px;
}
.who-team h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 650;
}
.who-team p {
  margin: 0;
  font-size: 13px;
  color: var(--qf-muted);
  line-height: 1.4;
}

.who-team__subgroup {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(96, 38, 158, 0.14);
}

.who-team__subgroup .qf-section-head {
  margin-bottom: 28px;
}

.who-certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}
.who-certs li {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(96, 38, 158, 0.1);
  min-height: 160px;
}
.who-certs img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.who-industries {
  margin-top: 8px;
}

.who-industries__layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  min-height: 420px;
  border: 1px solid rgba(96, 38, 158, 0.14);
  overflow: hidden;
  background: #fff;
}

.who-industries__nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #f7f4fb;
  border-right: 1px solid rgba(96, 38, 158, 0.12);
}

.who-industries__tab {
  appearance: none;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid rgba(96, 38, 158, 0.08);
  border-left: 3px solid transparent;
  background: transparent;
  color: rgba(40, 32, 52, 0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.who-industries__tab svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.who-industries__tab:hover {
  background: rgba(96, 38, 158, 0.06);
  color: var(--qf-ink);
}

.who-industries__tab[aria-selected="true"] {
  background: #fff;
  color: var(--qf-accent);
  border-left-color: var(--qf-accent);
}

.who-industries__panels {
  position: relative;
  min-height: 420px;
  background: #12081c;
}

.who-industries__panel {
  display: none;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.who-industries__panel.is-active {
  display: flex;
  align-items: flex-end;
  animation: whoPanelIn 0.35s ease;
}

.who-industries__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 6, 22, 0.88) 0%, rgba(12, 6, 22, 0.25) 55%, transparent 100%);
}

.who-industries__card {
  position: relative;
  z-index: 1;
  margin: 0 20px 20px;
  padding: 20px 22px;
  max-width: 420px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 4, 18, 0.18);
}

.who-industries__card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  color: var(--qf-ink);
}

.who-industries__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--qf-muted);
}

@keyframes whoPanelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .who-industries__layout {
    grid-template-columns: 1fr;
  }

  .who-industries__nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid rgba(96, 38, 158, 0.12);
  }

  .who-industries__tab {
    flex: 1 1 40%;
    border-left: 0;
    border-bottom: 0;
    border-top: 3px solid transparent;
  }

  .who-industries__tab[aria-selected="true"] {
    border-left-color: transparent;
    border-top-color: var(--qf-accent);
  }

  .who-industries__panels,
  .who-industries__panel {
    min-height: 360px;
  }
}

.who-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.who-stats li {
  padding: 22px 18px;
  text-align: center;
  background: var(--qf-soft);
  border: 1px solid rgba(96, 38, 158, 0.12);
}
.who-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--qf-accent);
}
.who-stats span {
  font-size: 14px;
  color: var(--qf-muted);
}

.who-policies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.who-policies li {
  padding: 22px 20px;
  background: #fff;
  border: 1px solid rgba(96, 38, 158, 0.12);
}
.who-policies h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
}
.who-policies p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--qf-muted);
}

.who-cta {
  background:
    linear-gradient(120deg, rgba(18, 8, 28, 0.92), rgba(96, 38, 158, 0.78)),
    url("assets/about/hero.jpg") center / cover no-repeat;
}

@media (max-width: 980px) {
  .who-mission,
  .who-services,
  .who-team,
  .who-certs,
  .who-stats,
  .who-policies {
    grid-template-columns: 1fr;
  }
}
