/**
 * PMERIT About & Pricing Pages Styles
 * Version: 1.0
 * Last Updated: November 2025
 * 
 * Custom styles for About and Pricing pages following Phase 11 redesign
 * Inspired by Google's best-practice layouts with PMERIT brand identity
 * 
 * Dependencies: theme-variables.css, brand.css
 */

/* ========================================
   SHARED HERO SECTIONS
   ======================================== */

.about-hero,
.pricing-hero {
  background: var(--gradient-hero);
  color: var(--text-inverse);
  padding: var(--space-20) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before,
.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.hero-subtitle {
  font-size: var(--text-xl);
  opacity: 0.95;
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.hero-tagline {
  font-size: var(--text-lg);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: var(--space-2);
}

/* ========================================
   MISSION SECTION (Issue 1)
   ======================================== */

.mission-section {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-primary);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--text-primary);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.mission-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.mission-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.mission-card-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ========================================
   FOUNDER'S STORY TIMELINE (Issue 2)
   ======================================== */

.founder-story {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-secondary);
}

.timeline {
  max-width: 900px;
  margin: var(--space-12) auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--space-12);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-marker {
  position: absolute;
  left: 18px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--color-primary);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.timeline-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.timeline-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.timeline-list {
  list-style: none;
  margin-top: var(--space-3);
  padding-left: 0;
}

.timeline-list li {
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  position: relative;
  color: var(--text-secondary);
}

.timeline-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

/* ========================================
   STATS SECTION (Issue 3)
   ======================================== */

.stats-section {
  padding: var(--space-16) var(--space-4);
  background: linear-gradient(135deg, var(--color-primary), #1E4567);
  color: var(--text-inverse);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-base);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: var(--space-3);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  display: block;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-base);
  opacity: 0.9;
}

/* ========================================
   GLOBAL VISION & CAREER PATHWAYS (Issue 3)
   ======================================== */

.global-vision,
.career-pathways {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-primary);
}

.vision-grid,
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.vision-card,
.pathway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.vision-card:hover,
.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--gradient-teal-start), var(--gradient-teal-end));
  color: white;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.card-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ========================================
   CTA SECTION (Issue 4)
   ======================================== */

.cta-section {
  padding: var(--space-16) var(--space-4);
  background: var(--gradient-hero);
  color: var(--text-inverse);
  text-align: center;
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: white;
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: var(--border-radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  min-height: var(--mobile-touch-target);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-button.primary {
  background: var(--color-accent);
  color: white;
  border: 2px solid var(--color-accent);
}

.cta-button.primary:hover {
  background: var(--color-accent-dark, #E67E22);
  border-color: var(--color-accent-dark, #E67E22);
}

/* ========================================
   PRICING CARDS (Issue 5)
   ======================================== */

.pricing-section {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: var(--space-6);
  background: var(--color-accent);
  color: white;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.pricing-name {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.pricing-price {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pricing-price-period {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
}

.pricing-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.pricing-button {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  text-align: center;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  display: block;
  min-height: var(--mobile-touch-target);
}

.pricing-button:hover {
  background: var(--interactive-primary-hover);
}

.pricing-card.featured .pricing-button {
  background: var(--color-accent);
}

.pricing-card.featured .pricing-button:hover {
  background: var(--interactive-accent-hover);
}

/* ========================================
   PAY-FOR-ACCOUNTABILITY (Issue 6)
   ======================================== */

.accountability-section {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-secondary);
}

.accountability-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  transition: var(--transition-base);
}

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

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.step-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.accountability-note {
  background: var(--bg-card);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.accountability-note p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
}

.accountability-note strong {
  color: var(--color-primary);
}

/* Revenue Streams Grid */
.revenue-section {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-primary);
}

.revenue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* ========================================
   FAQ ACCORDION (Issue 7)
   ======================================== */

.faq-section {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 900px;
  margin: var(--space-8) auto 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5);
  background: transparent;
  border: none;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-base);
  min-height: var(--mobile-touch-target);
}

.faq-question:hover {
  background: var(--bg-primary);
}

.faq-icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-base);
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: var(--space-3);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease;
}

.faq-answer-content {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Increased for longer answers */
}

/* ========================================
   GROWTH PROJECTIONS (Issue 7)
   ======================================== */

.projections-section {
  padding: var(--space-16) var(--space-4);
  background: var(--bg-primary);
}

.projections-table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-8);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.projections-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.projections-table th,
.projections-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.projections-table th {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-weight: var(--weight-semibold);
  position: sticky;
  top: 0;
  z-index: 1;
}

.projections-table tr:hover {
  background: var(--bg-primary);
}

.projections-table td:first-child {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.projections-table td {
  color: var(--text-secondary);
}

/* Section description text */
.section-description {
  text-align: center;
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   RESPONSIVE DESIGN (Issue 8)
   ======================================== */

/* Mobile: 480px and below */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .mission-grid,
  .vision-grid,
  .pathways-grid,
  .stats-grid,
  .pricing-grid,
  .accountability-steps,
  .revenue-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 6px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }

  .about-hero,
  .pricing-hero {
    padding: var(--space-12) var(--space-4);
  }
}

/* Tablet: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .mission-grid,
  .vision-grid,
  .pathways-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop: 769px and above */
@media (min-width: 769px) {
  .mission-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ========================================
   ACCESSIBILITY ENHANCEMENTS (Issue 8)
   ======================================== */

/* Focus states for interactive elements */
.mission-card:focus-within,
.vision-card:focus-within,
.pathway-card:focus-within,
.pricing-card:focus-within,
.faq-question:focus,
.cta-button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Ensure adequate contrast */
@media (prefers-contrast: high) {
  .mission-card,
  .vision-card,
  .pathway-card,
  .pricing-card {
    border-width: 2px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .timeline-item {
    animation: none;
    opacity: 1;
  }

  .mission-card:hover,
  .vision-card:hover,
  .pathway-card:hover,
  .pricing-card:hover {
    transform: none;
  }
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
