/* === Nitumekazi Company Limited - Main Stylesheet === */
:root {
  /* Primary colors - using Envotec's green theme with blues for tech feel */
  --primary-green: #1e3a5f;
  --primary-green-dark: #152a45;
  --secondary-blue: #2563eb;
  --secondary-blue-dark: #1d4ed8;
  --accent-orange: #f59e0b;
  --accent-yellow: #fbbf24;
  
  /* Neutral colors */
  --white: #ffffff;
  --black: #000000;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f5f5;
  --lighter-gray: #e5e5e5;
  
  /* Status colors */
  --success-color: #2563eb;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Spacing and sizing */
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --box-shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-green-dark);
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link img {
  height: 40px;
  width: auto;
}

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

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  margin: 0;
}

.logo-subtitle {
  font-size: 0.875rem;
  color: var(--secondary-blue);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

/* Navigation */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
  padding: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark-gray);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-green);
}

/* CTA Button */
.cta-nav {
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  white-space: nowrap;
}

.cta-nav:hover {
  background-color: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Mobile navigation styles */
@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    z-index: 999;
    border-left: 1px solid var(--lighter-gray);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--lighter-gray);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .cta-nav {
    display: none;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 500px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

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

.btn-green:hover {
  background-color: var(--primary-green-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-green);
}

.stat-item p {
  font-size: 1rem;
  color: var(--medium-gray);
  margin: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  border-radius: 50%;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-green-dark);
  flex-grow: 1;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--medium-gray);
  line-height: 1.5;
}

.service-link {
  display: inline-block;
  margin-top: auto;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  text-decoration: underline;
}

/* About Preview */
.about-preview {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-green-dark);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--medium-gray);
}

.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

/* Technology Section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tech-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary-green-dark);
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* CTA Section - Dark Gradient */
.hero.dark-gradient {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, #152a45 100%);
}

.hero.dark-gradient .hero-content {
  text-align: center;
}

.hero.dark-gradient h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero.dark-gradient .lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-gray);
  color: var(--lighter-gray);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

.footer-logo div {
  display: flex;
  flex-direction: column;
}

.footer-logo h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.footer-logo p {
  font-size: 0.875rem;
  color: var(--lighter-gray);
  margin: 0.25rem 0 0;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--lighter-gray);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-contact a {
  color: var(--lighter-gray);
  text-decoration: underline;
  font-weight: 500;
}

.footer-contact a:hover {
  opacity: 0.8;
}

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

.footer-envotec-link p {
  font-size: 0.875rem;
  color: var(--lighter-gray);
}

.footer-envotec-link a {
  color: var(--secondary-blue);
  text-decoration: underline;
  font-weight: 500;
}

.footer-envotec-link a:hover {
  opacity: 0.8;
}

.footer-copyright p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Page Header Styles */
.page-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: #ffffff !important;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 { color: #ffffff !important;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p { color: #ffffff !important;
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-content,
  .about-preview,
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-image,
  .about-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle,
  .page-header p { color: #ffffff !important;
    font-size: 1.125rem;
  }
  
  .footer-top {
    flex-wrap: wrap;
  }
  
  .footer-links,
  .footer-contact {
    width: 100%;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .header-inner {
    flex-wrap: wrap;
  }
  
  .nav-links {
    margin-top: 1rem;
  }
  
  .hero-buttons,
  .footer-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-buttons a,
  .footer-buttons a {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero-buttons a:last-child,
  .footer-buttons a:last-child {
    margin-bottom: 0;
  }
}

.service-detail-image { flex: 1; min-width: 250px; display: flex; justify-content: center; align-items: center; }
.service-detail-image img { max-width: 100%; height: auto; border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow); }
.service-detail { margin-bottom: 3rem; }
.service-detail-content { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.service-detail-text { flex: 2; min-width: 300px; }
.service-detail-text ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.service-detail-text li { margin-bottom: 0.5rem; color: var(--medium-gray); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { font-size: 1.5rem; min-width: 30px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--lighter-gray); border-radius: var(--border-radius); font-family: inherit; font-size: 1rem; }
.form-group textarea { min-height: 120px; resize: vertical; }
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--success-color); color: #fff; padding: 1rem 2rem; border-radius: var(--border-radius); transform: translateY(100px); opacity: 0; transition: var(--transition); z-index: 9999; }
.toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }


/* Hero text color fixes */
.hero .hero-content h1 { color: #ffffff; }
.hero .hero-content h2 { color: #ffffff; }
.hero .hero-content p { color: rgba(255,255,255,0.95); }
.hero .hero-content .lead { color: rgba(255,255,255,0.9); }
.hero .hero-subtitle { color: rgba(255,255,255,0.9); }
.hero .hero-text { color: #ffffff; }

.hero.dark-gradient .hero-content h2 { color: #ffffff !important; }
.hero.dark-gradient .hero-content p { color: rgba(255,255,255,0.9) !important; }

/* ===== COLOR FIXES ===== */
/* Nav CTA button - white text on dark bg */
.cta-nav, .cta-nav:hover, .cta-nav:visited, .cta-nav.active {
  color: #ffffff !important;
  background-color: #1e3a5f !important;
}

/* Hero section - all white text */
.hero h1, .hero h2, .hero h3, .hero p, .hero .hero-subtitle {
  color: #ffffff !important;
}

/* Page header - all white text */
.page-header h1, .page-header h2, .page-header p {
  color: #ffffff !important;
}

/* CTA dark gradient - white text */
.hero[style*="gradient"] h2, .hero[style*="gradient"] p {
  color: #ffffff !important;
}

/* Button outlines in hero */
.hero .btn-outline {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Service detail images */
.service-detail-image {
  flex: 1;
  min-width: 250px;
  display: flex !important;
  justify-content: center;
  align-items: center;
}
.service-detail-image img {
  max-width: 100%;
  height: auto;
  display: block !important;
  border-radius: 8px;
}

/* Contact page styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  font-size: 1.5rem;
  min-width: 30px;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e3a5f;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
