/* CX3 Strategy - Professional Website Styles */

/* ============================================
   DESIGN SYSTEM & VARIABLES
   ============================================ */

:root {
  /* Colors - Professional with Bold Accents */
  --color-primary: #0A1929;        /* Deep Navy */
  --color-secondary: #1E3A5F;      /* Medium Blue */
  --color-accent: #FF6B35;         /* Bold Orange */
  --color-text: #1A1A1A;           /* Near Black */
  --color-text-light: #4A5568;     /* Medium Gray */
  --color-background: #FFFFFF;     /* White */
  --color-background-alt: #f5f5f5; /* Subtle warm gray for alternating sections */
  --color-border: #E2E8F0;         /* Light Border */
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --border-radius: 2px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  color: var(--color-text-light);
}

strong {
  color: var(--color-primary);
  font-weight: 600;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
  justify-content: center;
}

/* Contact Info Bar */
.contact-info-bar {
  background: #d0d0d0;
  border-bottom: 2px solid #b0b0b0;
  padding: var(--spacing-md) 0;
  text-align: center;
}

.contact-info-text {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-text);
}

.contact-info-text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-info-text a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-text a:hover {
  color: var(--color-accent);
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--color-background-alt);
  opacity: 1;
}

.nav-link.active {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-primary);
  opacity: 1;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: var(--spacing-xs);
  grid-column: 2;
  justify-self: end;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

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

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.hero-attribution {
  font-size: 1rem !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8) !important;
  margin-top: var(--spacing-sm) !important;
  margin-bottom: 0 !important;
}

.hero-contact {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-top: var(--spacing-md);
}

.hero-contact strong {
  color: white;
  font-weight: 700;
}

.hero-contact a {
  color: white;
  text-decoration: underline;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--spacing-xl) 0;
}

.section-alt {
  background: var(--color-background-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   PROBLEM STATEMENT
   ============================================ */

.problem-highlight {
  background: var(--color-accent);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 768px) {
  .problem-highlight {
    font-size: 1.2rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ============================================
   THREE STATES CARDS
   ============================================ */

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.state-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 2px solid var(--color-border);
  transition: var(--transition);
}

.state-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.state-card h3 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.state-card.state-leapfrog {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(255,107,53,0.05) 0%, rgba(255,107,53,0.02) 100%);
}

/* ============================================
   STATS / OUTCOMES
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.stat-card {
  text-align: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-accent);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

.stat-description {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Table Disclaimer */
.table-disclaimer {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text);
  margin: var(--spacing-md) auto var(--spacing-sm);
  max-width: 85%;
}

/* Impact Table - Simple and Clean */
.impact-table {
  max-width: 85%;
  margin: var(--spacing-sm) auto var(--spacing-lg);
  border-collapse: collapse;
  text-align: center;
}

.impact-table thead th {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  border-right: 3px solid white;
}

.impact-table thead th:last-child {
  border-right: none;
}

.impact-table tbody td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-right: 2px solid #e1e4e8;
  border-bottom: 1px solid #e1e4e8;
  vertical-align: top;
}

.impact-table tbody td:last-child {
  border-right: none;
}

.impact-table tbody tr:last-child td {
  border-bottom: none;
}

.impact-table .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.impact-table .stat-description {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Mobile: Stack table */
@media (max-width: 768px) {
  .impact-table {
    max-width: 100%;
  }
  
  .impact-table, .impact-table thead, .impact-table tbody, .impact-table th, .impact-table td, .impact-table tr {
    display: block;
  }
  
  .impact-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .impact-table tbody td {
    border: none;
    border-bottom: 1px solid #e1e4e8;
    position: relative;
    padding: var(--spacing-md);
  }
  
  .impact-table tbody td:before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .impact-table tbody tr {
    margin-bottom: var(--spacing-md);
    border: 1px solid #e1e4e8;
    border-radius: var(--border-radius);
  }
}

/* ============================================
   FORMULA SECTION
   ============================================ */

.formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.formula-item {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--color-accent);
}

.formula-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

.formula-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   PILLARS
   ============================================ */

.pillars-grid {
  display: grid;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.pillar {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 6px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pillar p {
  margin-bottom: 0;
  line-height: 1.7;
}

.pillar h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
}

.pillar-highlight {
  background: var(--color-background-alt);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-md);
  font-style: italic;
  border-left: 3px solid var(--color-accent);
}

.pillar-delivers {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.framework-overview {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: var(--spacing-md) 0;
  text-align: center;
}

.pillar-delivers strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.pillar-delivers ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pillar-delivers li {
  padding-left: 1.75rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  line-height: 1.6;
}

.pillar-delivers li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.pillar-delivers li:last-child {
  margin-bottom: 0;
}

.pillars-conclusion {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
}

/* ============================================
   BIO SECTION
   ============================================ */

.bio-highlight {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-background-alt);
  border-left: 6px solid var(--color-accent);
  border-radius: var(--border-radius);
}

.bio-insight {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-section strong {
  color: white;
  font-weight: 700;
}

.cta-list {
  list-style: none;
  margin: var(--spacing-lg) 0;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-list li {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: rgba(255, 255, 255, 0.9);
}

.cta-list li::before {
  content: '→';
  color: var(--color-accent);
  font-weight: bold;
  margin-right: var(--spacing-sm);
}

.cta-highlight {
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--spacing-lg) 0;
  color: white;
}

.cta-commitment {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
  font-size: 1.125rem;
  color: white !important;
}

.cta-commitment strong {
  color: white !important;
  font-weight: 700;
}

.cta-rallying-cry {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: var(--spacing-lg) 0;
  color: white;
}

.founding-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  text-align: left;
  max-width: 280px;
  color: white;
}

.founding-box p {
  font-size: 0.95rem !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .founding-box {
    max-width: 100%;
    margin-top: var(--spacing-md);
  }
  
  /* Flywheel section mobile - stack vertically */
  section img[alt*="Flywheel"] {
    max-width: 100% !important;
  }
}

/* ============================================
   FAQ PAGE
   ============================================ */

.faq-section {
  margin-bottom: var(--spacing-xl);
}

.faq-item {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.faq-item p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: #E55A2A;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
  opacity: 1;
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
  opacity: 1;
}

.btn-group {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--color-accent) !important;
}

.social-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-align: center;
  line-height: 24px;
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--spacing-lg) auto 0;
  padding: var(--spacing-md) var(--spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .contact-info-text {
    font-size: 0.85rem;
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .stats-grid,
  .formula-grid,
  .states-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger delays for multiple elements */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}
