/* ============================================
   MWANGAZABIZ - MAIN STYLESHEET
   Primary: Green (#2e7d32)
   Secondary: Maroon (#8b1a1a)
   ============================================ */

/* ----- ROOT VARIABLES ----- */
:root {
  --primary-green: #2e7d32;
  --primary-green-dark: #1b5e20;
  --primary-maroon: #8b1a1a;
  --primary-maroon-light: #ef9a9a;
  --text-dark: #2c3e50;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Raleway', sans-serif;
  --font-tertiary: 'Nunito', sans-serif;
}

/* ----- GLOBAL RESET & BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: var(--primary-green);
  transition: 0.3s;
}

a:hover {
  color: var(--primary-green-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
}

/* ----- UTILITY CLASSES ----- */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

.section {
  padding: 60px 0;
  scroll-margin-top: 80px;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--text-dark);
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-green);
  bottom: 0;
  left: calc(50% - 25px);
}

.section-title p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

.light-background {
  background-color: var(--bg-light);
}

.dark-background {
  background-color: #1a1a2e;
}

/* ----- HEADER & NAVIGATION ----- */
.header {
  background: #ffffff;
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.header.sticky-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.header .logo img {
  max-height: 50px;
  width: auto;
}

/* Nav Menu */
.navmenu {
  padding: 0;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navmenu li {
  position: relative;
}

.navmenu a,
.navmenu a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  transition: 0.3s;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover > a {
  color: var(--primary-green);
}

/* Dropdown */
.navmenu .dropdown ul {
  display: block;
  position: absolute;
  visibility: hidden;
  opacity: 0;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
  padding: 10px 0;
  z-index: 99;
  min-width: 200px;
}

.navmenu .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.navmenu .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
  color: var(--text-dark);
}

.navmenu .dropdown ul a:hover {
  color: var(--primary-green);
  background: #f1f1f1;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--text-dark);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

/* Header Social Links */
.header-social-links a {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-left: 15px;
  transition: color 0.3s;
  display: inline-block;
}

.header-social-links a:hover {
  color: var(--primary-green);
}

/* ----- FOOTER ----- */
.footer {
  color: #ffffff;
  background-color: #1a1a2e;
  padding: 60px 0 30px 0;
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-bottom: 30px;
}

.footer .footer-about .logo img {
  max-height: 50px;
  margin-bottom: 15px;
  background: white;
  padding: 5px;
  border-radius: 5px;
}

.footer .footer-contact p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.footer .footer-contact strong {
  color: var(--primary-green);
  margin-right: 5px;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.footer h4::after {
  content: '';
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-green);
  bottom: 0;
  left: 0;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li a {
  color: #e0e0e0;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul li a:hover {
  color: var(--primary-green);
}

/* Newsletter Form */
.footer .newsletter-form {
  margin-top: 15px;
}

.footer .newsletter-form input[type="email"] {
  border: 1px solid #444;
  background: #2c2c2c;
  color: #fff;
  padding: 10px;
  border-radius: 4px 0 0 4px;
  flex: 1;
  outline: none;
}

.footer .newsletter-form input[type="email"]::placeholder {
  color: #999;
}

.footer .newsletter-form input[type="submit"] {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.footer .newsletter-form input[type="submit"]:hover {
  background: var(--primary-green-dark);
}

.footer .trust-badges .badge {
  display: inline-block;
  background: rgba(46, 125, 50, 0.2);
  color: #a5d6a7;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 10px;
  color: #ffffff;
  transition: 0.3s;
  font-size: 16px;
}

.footer .social-links a:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-size: 13px;
}

.footer .copyright strong {
  color: var(--primary-green);
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary-green);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #ffffff;
  line-height: 0;
}

.scroll-top:hover {
  background: var(--primary-green-dark);
  color: #ffffff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* ----- RESPONSIVE HEADER & NAV ----- */
@media (max-width: 1200px) {
  .navmenu a {
    padding: 10px 0 10px 20px;
  }
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .navmenu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    padding: 10px 0;
    border-radius: 4px;
  }
  
  .navmenu ul.active {
    display: flex;
  }
  
  .navmenu li {
    width: 100%;
  }
  
  .navmenu a {
    padding: 12px 20px;
    justify-content: flex-start;
  }
  
  .navmenu .dropdown ul {
    position: static;
    visibility: visible;
    opacity: 1;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: none;
  }
  
  .navmenu .dropdown.active > ul {
    display: block;
  }
  
  .navmenu .dropdown ul a {
    padding-left: 40px;
  }
  
  .header-social-links {
    display: none;
  }
}

@media (min-width: 992px) {
  .navmenu .dropdown ul {
    visibility: hidden;
    opacity: 0;
  }
  .navmenu .dropdown:hover > ul {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 26px;
  }
  
  .footer {
    padding: 40px 0 20px 0;
  }
  
  .footer .footer-top {
    padding-bottom: 20px;
  }
}