/* ========= Global typography (headings + body) ========= */

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* Headings + nav use a stronger display font */
h1, h2, h3, h4, h5, h6,
.alt-font,
.section-title01 h1,
.section-title01 h2 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

/* Calmer section titles (outside hero) */
.section-title01 h2 {
  font-size: clamp(26px, 3vw, 34px);
}

/* Slightly smaller body text in key content sections */
.process-style01 p,
.about-style01 p,
.services-style01 p,
.portfolio-style01 p,
footer p {
  font-size: 0.92rem;
}

/* ========= News & Blog cards ========= */

.news-style01 {
  padding-top: 90px;
  padding-bottom: 90px;
}

.news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 20px 22px 22px;
}

.news-card-title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.news-card-title a {
  color: #111111;
}

.news-card-title a:hover {
  color: var(--ema-green, #36a94b);
}

.news-card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999999;
  margin-bottom: 0.5rem;
}

.news-card-text {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.news-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========= Quick links strip (Upcoming Events / Twitter / YouTube analogue) ========= */

.quick-links-strip {
  background-color: #f4faf6;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.quick-link-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 22px 20px 24px;
  height: 100%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.quick-link-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.quick-link-box p {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

/* Smaller CTA variant */
.btn-style01.btn-sm .btn-text {
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
}

/* ========= Richer luminous green palette ========= */

:root {
  /* main Eco Metering green (richer, like Mazingira) */
  --ema-green: #36a94b;
  --ema-green-dark: #2f8f3e;
  /* deep blue band colour for mid sections */
  --ema-deep-blue: #031f3a;
}

/* replace default theme primary with richer green */
.text-primary {
  color: var(--ema-green) !important;
}

.bg-primary {
  background-color: var(--ema-green) !important;
}

/* buttons + hover */
.btn-style01,
.btn-style01.white.primary-hover:hover {
  background-color: var(--ema-green);
  border-color: var(--ema-green);
}

.btn-style01 .btn-text {
  color: #ffffff;
}

.btn-style01:hover {
  background-color: var(--ema-green-dark);
  border-color: var(--ema-green-dark);
}

/* links using primary colour */
a.text-primary:hover {
  color: var(--ema-green-dark) !important;
}

/* ========= Brand-backed layout tweaks ========= */

/* Deep blue utility background for mid content bands */
.bg-deep-blue {
  background-color: var(--ema-deep-blue) !important;
}

/* Persistent dark header over hero/video sections */
header.header-style1 .navbar-default {
  background: rgba(3, 10, 24, 0.9) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* Make nav links white by default for contrast */
header.header-style1 .navbar-default .navbar-nav > li > a,
header.header-style1 .navbar-default .attr-nav > ul > li > a,
header.header-style1 .navbar-default .attr-nav i {
  color: #ffffff;
}

/* Active + hover states in EMA green */
header.header-style1 .navbar-default .navbar-nav > li.current > a,
header.header-style1 .navbar-default .navbar-nav > li.active > a,
header.header-style1 .navbar-default .navbar-nav > li > a:hover {
  color: var(--ema-green) !important;
}

/* Solutions section body copy */
.services-style01 .services-item p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* About section extra copy and list styling */
.about-style01 p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-style01 ul {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-left: 1.1rem;
}

.about-style01 ul li {
  margin-bottom: 0.25rem;
}

/* === Global header + mobile menu fixes (from gallery page) === */

/* Keep header above overlays */
.header-style1 {
  position: relative;
  z-index: 1050;
}

/* Desktop header background */
.header-style1 .navbar-default {
  background-color: #000 !important;
  border-bottom: 1px solid #333 !important;
}

/* Top-level nav links */
.header-style1 .navbar-nav > li > a {
  color: #fff !important;
  font-weight: 500;
}

.header-style1 .navbar-nav > li > a:hover,
.header-style1 .navbar-nav > li > a.active {
  color: #00c853 !important;
}

/* Dropdown (Resources -> Blog / Gallery, etc.) */
.header-style1 .navbar-nav .dropdown .dropdown-menu {
  background-color: #000 !important;
  border: none;
  margin-top: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header-style1 .navbar-nav .dropdown .dropdown-menu > li > a {
  color: #fff !important;
  padding: 10px 20px !important;
  transition: background 0.3s ease, color 0.3s ease;
}

.header-style1 .navbar-nav .dropdown .dropdown-menu > li > a:hover {
  background-color: #1a1a1a !important;
  color: #00c853 !important;
}

/* Mobile toggle button – EMA green */
.navbar-toggler {
  background-color: #00c853 !important;
}

/* Mobile menu background + text */
@media (max-width: 991.98px) {
  .menu_area nav.navbar,
  .menu_area .navbar-nav,
  #nav,
  #nav > li,
  #nav > li > a {
    background: #000 !important;
  }

  #nav li ul {
    background: #000 !important;
    border: none !important;
  }

  #nav li ul li a {
    color: #fff !important;
  }

  .menu_area .navbar-nav li a {
    color: #fff !important;
  }

  .menu_area .navbar-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu_area .navbar-nav {
    position: relative;
    z-index: 1051;
  }
}
