/* ManufacturingFlow.ai - Hybrid Theme Stylesheet
   Dark hero + Light body sections, DM Sans typography
   Version 3.0 | February 2026
*/

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

:root {
  --green: #22C55E;
  --green-hover: #16A34A;
  --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;
  --border-light: #E2E8F0;
  --text-body: #6B7280;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate-dark);
  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: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); }

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

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

/* =============================================
   NAVIGATION - Dark with shield logo
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon { width: 40px; height: 40px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text-top {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9CA3AF;
}

.logo-text-bottom {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #E5E7EB;
  transition: color 0.2s;
}

nav a:hover { color: var(--green); }
nav a.active { color: var(--green); font-weight: 600; }

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

.nav-cta:hover {
  background: var(--green-hover);
  color: var(--white) !important;
}

/* 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 - Dark with green glow
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, var(--slate-dark) 0%, #1a2a3a 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  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.2rem;
  color: #D1D5DB;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.hero-cta:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

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

/* Page Hero (shorter for internal pages) */
.page-hero {
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, var(--slate-dark) 0%, #1a2a3a 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

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

.page-hero h1 { margin-bottom: 16px; color: var(--white); }
.page-hero p { font-size: 1.2rem; color: #D1D5DB; max-width: 600px; line-height: 1.8; }

/* =============================================
   SECTION PATTERNS - Light & Dark alternation
   ============================================= */

/* --- Light Sections --- */
.light-section {
  background: var(--slate-pale);
  color: var(--slate-dark);
  padding: 5rem 0;
}

.light-section h2,
.light-section h3 { color: var(--slate-dark); }
.light-section p { color: var(--text-body); }

/* --- Dark Sections --- */
.dark-section {
  background: var(--forest-dark);
  color: var(--white);
  padding: 5rem 0;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.dark-section h2,
.dark-section h3 { color: var(--white); }
.dark-section p { color: #D1D5DB; }

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

.section-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p.large {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* =============================================
   STATS BAR - Dark
   ============================================= */
.stats {
  padding: 3.5rem 0;
  background: var(--forest-dark);
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

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

.stat { text-align: center; }

.stat-value {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #D1D5DB;
  font-weight: 500;
}

/* =============================================
   CARDS - Light and Dark variants
   ============================================= */

/* Light cards (for light sections) */
.card-light {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s;
}

.card-light:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.card-light h3 { color: var(--slate-dark); margin-bottom: 0.75rem; }
.card-light p { color: var(--text-body); line-height: 1.8; }

/* Dark cards (for dark sections) */
.card-dark {
  background: var(--slate);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.15);
  transition: all 0.3s;
}

.card-dark:hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.05);
}

.card-dark h3 { color: var(--white); margin-bottom: 0.75rem; }
.card-dark p { color: #D1D5DB; line-height: 1.7; }

/* =============================================
   PROBLEM SECTION (Light)
   ============================================= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* =============================================
   SOLUTION SECTION (Dark)
   ============================================= */
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-text h2 { margin-bottom: 1rem; }
.solution-text p.large { margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.8; }

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

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  color: #D1D5DB;
}

.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);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.flow-header {
  text-align: center;
  margin-bottom: 2rem;
}

.flow-header h3 { color: var(--white); margin-bottom: 8px; }
.flow-header p { font-size: 0.875rem; color: var(--slate-light); }

.flow-stages {
  display: flex;
  gap: 1.5rem;
  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-light); }
.stage-3 .stage-icon { background: var(--green); color: var(--forest-dark); }

/* =============================================
   PROGRAM SECTION (Light)
   ============================================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.program-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

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

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

.program-topics li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.95rem;
}

.dark-section .program-topics li {
  border-bottom-color: rgba(255,255,255,0.05);
  color: #D1D5DB;
}

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

/* =============================================
   RESULTS SECTION (Dark)
   ============================================= */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.result-card {
  padding: 2.5rem;
  text-align: center;
}

.result-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.result-label {
  color: #D1D5DB;
  font-size: 1rem;
  line-height: 1.6;
}

/* =============================================
   CTA SECTION (Light)
   ============================================= */
.cta-section {
  text-align: center;
}

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

.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { font-size: 1.1rem; margin-bottom: 2rem; }

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

.cta-button:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

/* =============================================
   FOOTER - Dark forest
   ============================================= */
footer {
  background: var(--forest-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.9rem;
  color: #9CA3AF;
  max-width: 300px;
}

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

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

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  color: #D1D5DB;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.8rem; color: #9CA3AF; }

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

.footer-social a {
  color: #D1D5DB;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--green); }
.footer-social svg { width: 20px; height: 20px; }

/* =============================================
   CONTENT SECTIONS (for internal pages)
   ============================================= */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.content-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content-block p { margin-bottom: 1.5rem; }

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

.content-block ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.light-section .content-block ul li { color: var(--text-body); }
.dark-section .content-block ul li { color: #D1D5DB; }

.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: 2rem;
}

.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: 1.25rem;
}

.light-section .service-icon { background: rgba(34, 197, 94, 0.08); }

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

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

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

.team-photo {
  width: 140px;
  height: 140px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
}

.dark-section .team-photo { background: var(--slate); }

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

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

.value-card {
  padding: 2rem;
  border-radius: 10px;
  border-left: 3px solid var(--green);
}

.light-section .value-card { background: var(--white); border: 1px solid var(--border-light); border-left: 3px solid var(--green); }
.dark-section .value-card { background: var(--slate); border: 1px solid rgba(34,197,94,0.15); border-left: 3px solid var(--green); }

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

.timeline-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

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

.light-section .timeline-item::after { background: var(--border-light); }
.dark-section .timeline-item::after { 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);
}

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

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.light-section .form-group label { color: var(--slate-dark); }
.dark-section .form-group label { color: var(--white); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.light-section .form-group input,
.light-section .form-group textarea,
.light-section .form-group select {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--slate-dark);
}

.dark-section .form-group input,
.dark-section .form-group textarea,
.dark-section .form-group select {
  background: var(--slate);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}

.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-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--forest-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

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

.faq-item { border-bottom: 1px solid var(--border-light); }
.dark-section .faq-item { border-bottom-color: rgba(255,255,255,0.1); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.light-section .faq-question { color: var(--slate-dark); }
.dark-section .faq-question { color: var(--white); }

.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: 1.5rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .solution-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  .light-section,
  .dark-section { padding: 3.5rem 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: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .problem-grid,
  .program-grid,
  .results-grid,
  .services-grid,
  .team-grid,
  .values-grid { grid-template-columns: 1fr; }

  .flow-stages {
    flex-direction: column;
    gap: 2rem;
  }

  .flow-stages::before { display: none; }

  .footer-links { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}

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