/* Insights Section - CivicWire Design System */
:root {
  /* CivicWire Brand Colors */
  --civic-gold: #ffd700;
  --civic-dark: #1a1a1a;
  --civic-medium: #2d2d2d;
  --civic-light: #f8f9fa;
  --civic-gray: #666;
  --civic-light-gray: #e0e0e0;
  --civic-white: #ffffff;
  --civic-black: #000000;
  
  /* Design System Variables */
  --background: var(--civic-white);
  --foreground: var(--civic-dark);
  --primary: var(--civic-gold);
  --primary-foreground: var(--civic-dark);
  --secondary: var(--civic-light);
  --secondary-foreground: var(--civic-dark);
  --muted: var(--civic-light-gray);
  --muted-foreground: var(--civic-gray);
  --accent: var(--civic-gold);
  --accent-foreground: var(--civic-dark);
  --border: var(--civic-light-gray);
  --card: var(--civic-white);
  --card-foreground: var(--civic-dark);
  --radius: 0.5rem;
  
  /* Animation Variables */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

/* Insights Section */
.insights-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
}

.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.insights-header {
  text-align: center;
  margin-bottom: 4rem;
}

.insights-title {
    margin-top: 60px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: gold;
  margin-bottom: 2rem;
  font-family: 'Lora', serif;
  line-height: 1.2;
}

.benefit-intro {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--muted-foreground);
  max-width: 60rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Subsections */
.insights-subsection {
  margin-bottom: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.insights-subsection:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.subsection-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  cursor: pointer;
  background: var(--card);
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition-smooth);
}

.subsection-toggle:hover {
  background: var(--secondary);
}

.subsection-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  font-family: 'Lora', serif;
}

.subsection-icon {
  font-size: 1.5rem;
}

.toggle-indicator {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  transition: var(--transition-bounce);
}

.subsection-toggle[aria-expanded="true"] .toggle-indicator {
  transform: rotate(45deg);
}

/* Subsection Content */
.subsection-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  padding: 0 2rem;
  opacity: 0;
}

.subsection-content.expanded {
  max-height: none;
  padding: 0 2rem 2rem;
  opacity: 1;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Technology Section */
.tech-headline h4,
.difference-headline h4,
.impact-headline h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
}

.difference-headline p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Workflow Diagram */
.workflow-container {
  margin: 3rem 0;
}

.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.workflow-step {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.workflow-step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.step-label {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.step-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.workflow-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .workflow-diagram {
    flex-direction: column;
  }
  .workflow-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
}

.supporting-copy p {
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.7;
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
}

/* Three Pillars */
.three-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pillar {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
}

.pillar-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Testimonial */
.testimonial-callout {
  background: var(--secondary);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

}

.testimonial-photo {
  flex-shrink: 0;
}

.placeholder-headshot .placeholder-headshot-image{
  width: 80px;
  height: 80px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.testimonial-quote {
   font-size: clamp(12px, 2.5vw, 28px);
  font-style: italic;
  color: var(--foreground);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.testimonial-attribution {
  font-weight: 600;
  color: var(--muted-foreground);
  display: block;
  margin-top: 1rem;
}

/* Quote Carousel */
.endorsements-section {
  margin: 3rem 0;
}

.endorsements-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.quote-carousel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  
}

.carousel-container {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  margin-bottom: 10px;
}

.quote-slide1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: var(--transition-smooth);
}

.quote-slide1.active {
  opacity: 1;
  transform: translateX(0);
}

.quote-slide1 blockquote {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 2rem;
  
}




.quote-slide1 cite {
  color: var(--muted-foreground);
  font-weight: 500;
}

.carousel-controls1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0rem;
  
}

.carousel-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--foreground);
  color: var(--background);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Impact Examples */
.impact-examples {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.impact-example {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.impact-example:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.example-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
}

.example-description {
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.example-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
}

.metric-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.download-link:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.download-icon {
  font-size: 1.25rem;
}

/* CTA Section */
.insights-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: var(--secondary);
  border-radius: var(--radius);
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 2rem;
  font-family: 'Lora', serif;
}

.cta-button-insights {
  display: inline-block;      /* allows it to size to content */
  max-width: 100%;            /* prevents overflow */
  white-space: normal;        /* allow wrapping if needed */
  word-break: break-word;     /* break long words */
  text-align: center;         /* center the text */
  font-size: clamp(12px, 2.5vw, 28px);
  padding: 0.75rem 1.5rem;
  box-sizing: border-box; 
  background-color: gold; 
  border-radius: 10px; 
  font-weight: bold; /* include padding in width */
}



.cta-button:hover {
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:active .cta-ripple {
  width: 300px;
  height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .insights-section {
    padding: 3rem 0;
  }
  
  .subsection-toggle {
    padding: 1.5rem;
  }
  
  .subsection-title {
    font-size: 1.5rem;
  }
  
  .testimonial-content {
    flex-direction: column;
    text-align: center;
  }
  
  .three-pillars {
    grid-template-columns: 1fr;
  }
  
  .example-metrics {
    justify-content: center;
  }


  .quote-slide1 blockquote {
  font-size: 0.75rem;
  
  
}
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation Delays */
.workflow-step:nth-child(1) { animation-delay: 0.1s; }
.workflow-step:nth-child(3) { animation-delay: 0.2s; }
.workflow-step:nth-child(5) { animation-delay: 0.3s; }
.workflow-step:nth-child(7) { animation-delay: 0.4s; }
.workflow-step:nth-child(9) { animation-delay: 0.5s; }

.pillar:nth-child(1) { animation-delay: 0.1s; }
.pillar:nth-child(2) { animation-delay: 0.2s; }
.pillar:nth-child(3) { animation-delay: 0.3s; }


#real-world-result, #bythenumbers, #why-it-matters{
   font-family: 'Lora', serif; 
   font-size: 1.12rem;
   margin-bottom: 1rem;
   font-weight: 600;
   color:gold;
   
}


#why-it-matters{
    margin-top: 40px;
}

#real-world-result-list{
    margin-bottom: 20px;
    margin-left: 20px;
}

.rwrl{
    margin-bottom: 5px;
    list-style:disc;
}