/*
Theme Name: Dedunga Energies
Theme URI: https://dedunga.co.ke
Author: Dedunga Energies Team
Author URI: https://dedunga.co.ke
Description: Custom WordPress theme for Dedunga Energies Limited, featuring clean renewable solar energy solutions, fully responsive layout across desktop and mobile, video showcases, and custom page templates.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dedunga-energies
Tags: solar, renewable-energy, responsive-layout, custom-header, custom-menu, featured-images
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --color-orange: #F68942;
  --color-green-dark: #0D8244;
  --color-cream: #F5EAD6;
  --color-[#FAFAFA]: #FAFAFA;
}

/* Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #FAFAFA;
  color: #111111;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

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

/* Container */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.brand-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
}

.brand-title-top {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  color: #0D8244;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-title-orange {
  color: #F68942;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  margin-top: 4px;
}

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

.desktop-nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #0D8244;
}

.header-cta-btn {
  background-color: #F68942;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 6px -1px rgba(246, 137, 66, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-cta-btn:hover {
  background-color: #e57832;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle Button */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #0D8244;
}

.mobile-toggle-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Mobile Drawer Menu */
.mobile-drawer-menu {
  display: none;
  background-color: #ffffff;
  border-bottom: 2px solid #0D8244;
  padding: 1rem 1.25rem 1.5rem 1.25rem;
}

.mobile-drawer-menu.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-links a:hover {
  color: #F68942;
}

/* Hero Sections */
.hero-section {
  position: relative;
  padding: 6rem 1.25rem;
  background-color: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 65vh;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 130, 68, 0.9), rgba(0, 0, 0, 0.75));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #f3f4f6;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.btn-group-responsive {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.btn-primary-orange {
  background-color: #F68942;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 15px -3px rgba(246, 137, 66, 0.4);
  transition: background-color 0.2s ease;
}

.btn-primary-orange:hover {
  background-color: #e57832;
}

.btn-outline-white {
  border: 2px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: #0D8244;
}

/* Section Common Layouts */
.section-padding {
  padding: 5rem 1.25rem;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  color: #F68942;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0D8244;
  margin-top: 0.5rem;
}

/* Grids */
.grid-responsive-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

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

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

.grid-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: center;
}

/* Fixed Parallax for Mission/Vision Section */
.bg-fixed-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Dedicated Contact Banner Section WITH BACKGROUND IMAGE */
.contact-banner-section {
  position: relative;
  padding: 6rem 1.25rem;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 130, 68, 0.92) 0%, rgba(0, 0, 0, 0.82) 100%);
  z-index: 1;
}

.contact-banner-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile & Tablet Responsiveness Breakpoints */
@media (max-width: 1024px) {
  .grid-responsive-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-partners {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Header Mobile Layout */
  .desktop-nav,
  .header-cta-btn {
    display: none !important;
  }

  .mobile-toggle-btn {
    display: block !important;
  }

  /* Typography Scale for Mobile */
  .hero-title {
    font-size: 2.1rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .section-title {
    font-size: 1.75rem !important;
  }

  .section-padding {
    padding: 3.5rem 1rem !important;
  }

  /* Grids Mobile Stack */
  .grid-responsive-4,
  .grid-responsive-3,
  .grid-responsive-2 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .grid-partners {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Buttons Full Width on Mobile */
  .btn-group-responsive {
    flex-direction: column !important;
  }

  .btn-primary-orange,
  .btn-outline-white {
    width: 100% !important;
    text-align: center !important;
  }

  /* Disable fixed parallax on iOS/mobile to avoid scroll artifacts */
  .bg-fixed-parallax {
    background-attachment: scroll !important;
  }
}
