/* ==========================================================================
   About Page Styles — NKMPV
   ---------------------------------------------------------------------------
   Sections: Hero, Anchor Nav, Story Timeline, Team, Accreditations, Values
   All values reference design-tokens.css.
   ========================================================================== */


/* ==========================================================================
   1. HERO
   ========================================================================== */

.about-hero {
  position: relative;
  background: var(--color-charcoal);
  padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-8);
  overflow: hidden;
}

.about-hero__gear-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/svg/gear-pattern.svg');
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.05;
  pointer-events: none;
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero .breadcrumb {
  margin-bottom: var(--space-5);
}

.about-hero .breadcrumb__link {
  color: var(--color-mist);
}

.about-hero .breadcrumb__link:hover {
  color: var(--color-cyan);
}

.about-hero .breadcrumb__current {
  color: var(--color-cloud-gray);
}

.about-hero .breadcrumb__item:not(:last-child)::after {
  color: var(--color-mist);
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.about-hero__subtitle {
  font-size: var(--text-body);
  color: var(--color-mist);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin-bottom: 0;
}


/* ==========================================================================
   2. STICKY ANCHOR NAV
   ========================================================================== */

.about-anchors {
  position: sticky;
  top: var(--header-height-scrolled);
  z-index: var(--z-sticky);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: var(--space-4) 0;
}

.about-anchors__row {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.about-anchors__row::-webkit-scrollbar {
  display: none;
}

.about-anchors__btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-cloud-gray);
  border-radius: var(--border-radius-full);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--color-slate-gray);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.about-anchors__btn:hover {
  border-color: var(--color-steel-blue);
  color: var(--color-charcoal);
}

.about-anchors__btn.is-active {
  background: var(--color-forest-green);
  color: var(--color-white);
  border-color: var(--color-forest-green);
}


/* ==========================================================================
   3. EYEBROW (shared)
   ========================================================================== */

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-badge);
  font-weight: var(--weight-semibold);
  color: var(--color-cyan-text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-3);
}


/* ==========================================================================
   4. STORY TIMELINE
   ========================================================================== */

.about-story__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.about-story__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--color-forest-green);
  margin-bottom: var(--space-4);
}

.about-story__intro {
  font-size: var(--text-body);
  color: var(--color-slate-gray);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Timeline container ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-cloud-gray);
  transform: translateX(-50%);
}

/* ── Timeline item ───────────────────────────────────────────────────── */
.timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-7);
  width: 50%;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item--left {
  padding-right: var(--space-7);
  text-align: right;
  justify-content: flex-end;
}

.timeline__item--right {
  margin-left: 50%;
  padding-left: var(--space-7);
}

/* ── Gear marker ─────────────────────────────────────────────────────── */
.timeline__marker {
  position: absolute;
  top: var(--space-2);
  width: 32px;
  height: 32px;
  color: var(--color-forest-green);
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline__item--left .timeline__marker {
  right: calc(-16px - var(--space-7) + var(--space-7));
  right: -16px;
}

.timeline__item--right .timeline__marker {
  left: -16px;
}

/* ── Year badge ──────────────────────────────────────────────────────── */
.timeline__year {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: var(--weight-semibold);
  color: var(--color-cyan-text);
  display: block;
  margin-bottom: var(--space-2);
}

/* ── Content card ────────────────────────────────────────────────────── */
.timeline__card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.timeline__item--left .timeline__card {
  border-right: 4px solid var(--color-forest-green);
}

.timeline__item--right .timeline__card {
  border-left: 4px solid var(--color-forest-green);
}

.timeline__title {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
}

.timeline__desc {
  font-size: var(--text-body);
  color: var(--color-slate-gray);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}


/* ==========================================================================
   5. TEAM
   ========================================================================== */

.about-team__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.about-team__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--color-forest-green);
  margin-bottom: var(--space-3);
}

.about-team__subtitle {
  font-size: var(--text-body);
  color: var(--color-mist);
  max-width: 600px;
  margin: 0 auto;
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ── Team card ───────────────────────────────────────────────────────── */
.team-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--color-steel-blue);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-off-white), var(--color-cloud-gray));
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.team-card:hover .team-card__photo {
  border-color: var(--color-cyan);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__initials {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-steel-blue);
  line-height: 1;
}

.team-card__name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-top: var(--space-5);
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-caption);
  color: var(--color-mist);
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-caption);
  color: var(--color-slate-gray);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}


/* ==========================================================================
   6. ACCREDITATIONS
   ========================================================================== */

.about-accred__header {
  margin-bottom: var(--space-7);
}

.about-accred__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--color-forest-green);
}

.about-accred__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

.about-accred__content {
  color: var(--color-charcoal);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.about-accred__content p {
  margin-bottom: var(--space-5);
}

/* ── Accreditation key points ────────────────────────────────────────── */
.accred-points {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
}

.accred-points__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-cloud-gray);
}

.accred-points__item:last-child {
  border-bottom: none;
}

.accred-points__icon {
  flex-shrink: 0;
  color: var(--color-forest-green);
  margin-top: 2px;
}

.accred-points__item strong {
  display: block;
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}

.accred-points__item span {
  font-size: var(--text-body);
  color: var(--color-slate-gray);
}

/* ── Certificate card ────────────────────────────────────────────────── */
.about-accred__sidebar {
  align-self: start;
}

.cert-card {
  border: 1px solid var(--color-cloud-gray);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}

.cert-card__preview {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-off-white), var(--color-cloud-gray));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-mist);
  margin-bottom: var(--space-4);
}

.cert-card__title {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}

.cert-card__meta {
  font-size: var(--text-caption);
  color: var(--color-mist);
  margin-bottom: var(--space-4);
}

.cert-card__btn {
  width: 100%;
  justify-content: center;
  gap: var(--space-2);
}


/* ==========================================================================
   7. VALUES
   ========================================================================== */

.about-values {
  background: var(--color-light-cyan);
}

.about-values__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.about-values__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--color-forest-green);
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ── Value block ─────────────────────────────────────────────────────── */
.value-block {
  text-align: center;
}

.value-block__icon {
  width: 72px;
  height: 72px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--color-forest-green);
  transition: background var(--transition-base), color var(--transition-base);
}

.value-block:hover .value-block__icon {
  background: var(--color-forest-green);
  color: var(--color-white);
}

.value-block__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

.value-block__desc {
  font-size: var(--text-body);
  color: var(--color-slate-gray);
  line-height: var(--leading-relaxed);
  max-width: 280px;
  margin: 0 auto;
}


/* ==========================================================================
   RESPONSIVE — Tablet (640px+)
   ========================================================================== */

@media (min-width: 640px) {

  .about-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-accred__grid {
    grid-template-columns: 3fr 2fr;
  }

  .about-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   RESPONSIVE — Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {

  .about-hero {
    padding: calc(var(--header-height) + var(--space-9)) 0 var(--space-9);
  }

  .about-team__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-accred__grid {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-9);
  }

  .about-accred__sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
  }

  .about-values__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================================
   RESPONSIVE — Mobile (<640px)
   ========================================================================== */

@media (max-width: 639px) {

  .about-hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .about-anchors__row {
    justify-content: flex-start;
    padding-right: var(--space-5);
  }

  /* Timeline: single column, line on left */
  .timeline__line {
    left: 16px;
    transform: none;
  }

  .timeline__item {
    width: 100%;
    padding-left: var(--space-8);
    padding-right: 0;
    text-align: left;
  }

  .timeline__item--left {
    justify-content: flex-start;
  }

  .timeline__item--right {
    margin-left: 0;
  }

  .timeline__marker {
    width: 24px;
    height: 24px;
    left: 4px !important;
    right: auto !important;
  }

  .timeline__marker svg {
    width: 24px;
    height: 24px;
  }

  .timeline__item--left .timeline__card,
  .timeline__item--right .timeline__card {
    border-right: none;
    border-left: 4px solid var(--color-forest-green);
  }

  .about-team__grid {
    grid-template-columns: 1fr;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
  }
}
