/* ============================================
   FINVERRA CAPITAL — About Page Styles
   ============================================ */

/* Page Hero */
.page-hero {
  min-height: 50vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero .section-label {
  color: var(--accent-light);
}

.page-hero h1 {
  color: var(--white);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-body);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  font-size: var(--fs-xs);
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--accent);
}

.breadcrumb i {
  color: rgba(255,255,255,0.3);
  font-size: 0.6rem;
}

/* About Story */
.about-story {
  position: relative;
}

.about-story .grid {
  align-items: flex-start;
}

.about-story-image {
  position: relative;
  padding-top: 2rem;
}

.about-story-image img {
  border-radius: var(--radius-2xl);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-story-image .experience-badge {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-accent);
  text-align: center;
}

.experience-badge .stat-number {
  color: var(--primary-dark);
  font-size: 2.5rem;
}

.experience-badge .stat-label {
  color: var(--primary-dark);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-story-content h2 {
  margin-bottom: var(--space-lg);
}

.about-story-content p {
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

.about-story-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.highlight-item:hover {
  background: var(--off-white);
}

.highlight-item i {
  color: var(--accent);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.highlight-item span {
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
}

/* Vision Mission — Interactive Tabs */
.vm-section {
  background: var(--off-white);
  overflow: hidden;
}

.vm-tabs {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(11, 37, 69, 0.1);
  min-height: 360px;
}

/* Tab Navigation (Left Side) */
.vm-tab-nav {
  background: var(--gradient-dark);
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  gap: var(--space-sm);
  justify-content: center;
}

.vm-tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
}

.vm-tab-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-tab-btn.active::before {
  transform: translateY(-50%) scaleY(1);
}

.vm-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vm-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
}

.vm-tab-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.35s ease;
  flex-shrink: 0;
}

.vm-tab-btn.active .vm-tab-icon {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.35);
}

.vm-tab-btn:hover .vm-tab-icon {
  color: rgba(255, 255, 255, 0.8);
}

.vm-tab-label {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.35s ease;
  white-space: nowrap;
}

.vm-tab-btn.active .vm-tab-label {
  color: var(--white);
}

.vm-tab-btn:hover .vm-tab-label {
  color: rgba(255, 255, 255, 0.8);
}

/* Tab Panels (Right Side) */
.vm-tab-panels {
  position: relative;
  padding: var(--space-3xl);
}

.vm-tab-panel {
  display: none;
  animation: vmFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-tab-panel.active {
  display: block;
}

@keyframes vmFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vm-panel-accent {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-accent);
  margin-bottom: var(--space-lg);
}

.vm-panel-accent.mission {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.vm-panel-accent.values {
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.vm-panel-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-dark);
  background: rgba(212, 168, 67, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}

.vm-tab-panel h3 {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.vm-tab-panel p {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--mid-gray);
  margin-bottom: var(--space-xl);
}

.vm-panel-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.vm-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--dark-gray);
  background: var(--off-white);
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
}

.vm-highlight:hover {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.12);
}

.vm-highlight i {
  color: var(--accent);
  font-size: 0.85rem;
}

/* Core Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* 3-card layout — center aligned */
.values-grid.values-grid--center {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-card .icon-circle {
  margin: 0 auto var(--space-lg);
  transition: all var(--transition-base);
}

.value-card:hover .icon-circle {
  background: var(--accent);
  color: var(--white);
  transform: rotateY(180deg);
}

.value-card h4 {
  font-family: var(--font-primary);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: var(--fs-small);
  color: var(--mid-gray);
}

/* Leadership */
#leadership {
  padding-bottom: var(--space-2xl);
}

#advisors {
  padding-top: var(--space-2xl);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  justify-items: center;
  align-items: start;
}

/* No special centering for 6 members - perfect 3x2 grid */

/* Advisors grid - 3 cards centered */
.advisors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  gap: var(--space-2xl);
  justify-content: center;
  justify-items: center;
  align-items: start;
}

@media (max-width: 960px) {
  .advisors-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
}

@media (max-width: 640px) {
  .advisors-grid {
    grid-template-columns: minmax(0, 280px);
  }
}

/* Card container — NO 3D perspective (Safari-safe) */
.leader-card {
  border-radius: var(--radius-xl);
  max-width: 280px;
  width: 100%;
  text-align: center;
  position: relative;
  height: 300px;
  cursor: pointer;
}

/* Inner wrapper — NO preserve-3d */
.leader-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Front and back shared — stacked via absolute positioning */
.leader-front,
.leader-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
}

/* Front face */
.leader-front {
  background: var(--white);
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow:
    0 10px 24px rgba(11, 37, 69, 0.12),
    0 2px 6px rgba(11, 37, 69, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  z-index: 1;
}

.leader-card:hover .leader-front {
  box-shadow:
    0 18px 40px rgba(11, 37, 69, 0.18),
    0 4px 10px rgba(11, 37, 69, 0.08);
}

.leader-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  background: var(--gradient-dark);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 0;
}

.leader-card-image {
  width: 105px;
  height: 105px;
  margin: 28px auto var(--space-sm);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--off-white);
  border: 4px solid var(--white);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.15);
  position: relative;
  z-index: 1;
}

.leader-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.leader-card-info {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  position: relative;
  z-index: 1;
}

.leader-card-info h4 {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.leader-card-info .leader-title {
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: var(--fw-semibold);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Back face — overlay that fades in on hover (NO 3D transform) */
.leader-back {
  background: var(--gradient-dark);
  box-shadow:
    0 10px 24px rgba(11, 37, 69, 0.22),
    0 2px 6px rgba(11, 37, 69, 0.10);
  overflow: hidden;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.leader-card:hover .leader-back {
  opacity: 1;
  visibility: visible;
}

/* Small photo thumbnail on back — inline before name */
.leader-back-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.leader-back-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.leader-back-content {
  padding: 48px 16px 12px;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-behavior: smooth;
}

.leader-back-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Subtle fade at bottom when content overflows to hint at more content */
.leader-back-content.is-overflow {
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, rgba(0,0,0,0.25) 100%);
          mask-image: linear-gradient(to bottom, #000 88%, rgba(0,0,0,0.25) 100%);
}

/* Name row with photo + text side by side */
.leader-back-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.leader-back-header-text h4 {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 2px;
  text-align: left;
}

.leader-back-header-text .leader-title {
  font-size: 0.72rem;
  color: var(--accent-light);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  text-align: left;
}

/* Bio bullet list */
.leader-bio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
}

.leader-bio-list li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 3px;
}

.leader-bio-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* LinkedIn icon — rounded, top-right corner of back face */
.leader-linkedin-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  z-index: 3;
}

.leader-linkedin-icon:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  transform: scale(1.1);
}

/* LinkedIn icon on front face — sits in dark header area */
.leader-linkedin-front {
  z-index: 3;
}

.leader-linkedin-icon.disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Bio text on back (legacy single-line) */
.leader-bio {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.leader-card-info p {
  font-size: var(--fs-small);
  color: var(--mid-gray);
}

/* Stats Bar */
.stats-bar {
  background: var(--gradient-dark);
  color: var(--white);
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.stats-bar-item .stat-number {
  color: var(--accent);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.stats-bar-item .stat-label {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-small);
}

/* Responsive */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .about-story .grid-2,
  .vm-grid {
    grid-template-columns: 1fr;
  }

  .vm-tabs {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .vm-tab-nav {
    flex-direction: row;
    padding: var(--space-sm);
    gap: var(--space-xs);
    overflow-x: auto;
  }

  .vm-tab-btn {
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    flex-shrink: 0;
    min-width: 100px;
  }

  .vm-tab-btn::before {
    display: none;
  }

  .vm-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
  }

  .vm-tab-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .vm-tab-label {
    font-size: 0.8rem;
  }

  .vm-tab-panels {
    padding: var(--space-xl) var(--space-lg);
  }

  .vm-tab-panel h3 {
    font-size: 1.3rem;
  }

  .vm-panel-highlights {
    flex-direction: column;
  }

  .about-story-image img {
    height: 350px;
  }

  .about-story-highlights {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .leadership-grid .leader-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar-grid {
    grid-template-columns: 1fr;
  }
}
