/* ManufacturingFlow.ai - Main Stylesheet
   Typography-driven design, no AI aesthetic
   Version 2.0 | January 2026
*/

/* Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #22C55E;
  --green-light: #4ADE80;
  --green-pale: #DCFCE7;
  --forest-dark: #052E16;
  --forest: #14532D;
  --slate-dark: #0F172A;
  --slate: #1E293B;
  --slate-mid: #64748B;
  --slate-light: #94A3B8;
  --slate-pale: #F8FAFC;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--slate-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.serif { font-family: 'Instrument Serif', Georgia, serif; }
.italic { font-style: italic; }

h1, h2, h3 { font-weight: 500; line-height: 1.1; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--slate-light); }
p.large { font-size: 1.125rem; line-height: 1.7; }

a { color: inherit; text-decoration: none; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--forest-dark);
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  font-size: 0.875rem;
  color: var(--slate-light);
  transition: color 0.2s;
}

nav a:hover { color: var(--white); }

nav a.active { color: var(--white); }

.nav-cta {
  background: var(--green);
  color: var(--forest-dark) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--green-light); }

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: var(--slate-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 4px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .serif {
  color: var(--green);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--forest-dark);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
}

/* Page Hero (shorter for internal pages) */
.page-hero {
  padding: 160px 0 80px;
  background: var(--slate-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background: var(--forest-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Headers */
.section-header {
  max-width: 700px;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* Problem Section */
.problem {
  background: var(--slate-dark);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  padding: 32px;
  background: var(--slate);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.problem-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
}

.problem-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

/* Solution Section */
.solution {
  background: var(--forest-dark);
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.solution-text h2 {
  margin-bottom: 16px;
}

.solution-text p.large {
  margin-bottom: 32px;
}

.solution-list {
  list-style: none;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--slate-light);
}

.solution-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-list .check svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* Flow Diagram */
.flow-diagram {
  background: var(--slate-dark);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.05);
}

.flow-header {
  text-align: center;
  margin-bottom: 40px;
}

.flow-header h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.flow-header p {
  font-size: 0.875rem;
}

.flow-stages {
  display: flex;
  gap: 24px;
  position: relative;
}

.flow-stages::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  opacity: 0.3;
}

.flow-stage {
  flex: 1;
  text-align: center;
  position: relative;
}

.stage-icon {
  width: 48px;
  height: 48px;
  background: var(--slate);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--green);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.stage-name {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.stage-desc {
  font-size: 0.875rem;
  color: var(--slate-mid);
}

.stage-3 .stage-icon {
  background: var(--green);
  color: var(--forest-dark);
}

/* Program Section */
.program {
  background: var(--slate-dark);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.program-card {
  padding: 40px;
  background: var(--slate);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.program-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.program-card h3 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 8px;
}

.program-duration {
  color: var(--slate-mid);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.program-topics {
  list-style: none;
}

.program-topics li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--slate-light);
}

.program-topics li:last-child {
  border-bottom: none;
}

/* Results Section */
.results {
  background: var(--forest-dark);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.result-card {
  padding: 40px;
  background: var(--slate-dark);
  border-radius: 12px;
  text-align: center;
}

.result-value {
  font-size: 4rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
}

.result-label {
  color: var(--slate-light);
  font-size: 1rem;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  background: var(--slate-dark);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--forest-dark);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.cta-button:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--slate);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--slate-light);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--slate-mid);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--green);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* Content Sections for Internal Pages */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background: var(--slate);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-block h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--white);
}

.content-block p {
  margin-bottom: 24px;
}

.content-block ul {
  list-style: none;
}

.content-block ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--slate-light);
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 2px;
  background: var(--green);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  padding: 32px;
  background: var(--slate);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--green);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.team-photo {
  width: 160px;
  height: 160px;
  background: var(--slate);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
  color: var(--green);
  border: 2px solid var(--green);
}

.team-card h3 {
  margin-bottom: 4px;
  color: var(--white);
}

.team-card .role {
  color: var(--green);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--slate);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-mid);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--forest-dark);
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.value-card {
  padding: 32px;
  background: var(--slate);
  border-radius: 12px;
  border-left: 3px solid var(--green);
}

.value-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--slate);
}

.timeline-marker {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.timeline-year {
  font-weight: 600;
  color: var(--green);
}

.timeline-content h3 {
  margin-bottom: 8px;
  color: var(--white);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .solution-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .content-grid.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  
  nav ul {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav ul.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slate-dark);
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .problem-grid,
  .program-grid,
  .results-grid,
  .services-grid,
  .team-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .flow-stages {
    flex-direction: column;
    gap: 32px;
  }
  
  .flow-stages::before {
    display: none;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}
