/* 
 * 3E Energy Ghost Theme
 * Custom styles for solar and renewable energy company
 * Color palette inspired by the 3E Energy logo
 */

:root {
  /* Primary Colors from Logo */
  --color-primary-green: #4a9d5f;
  --color-primary-dark: #2d7a45;
  --color-primary-light: #6bc182;
  --color-accent-orange: #f4845f;
  --color-accent-blue: #7ec8cc;
  --color-accent-gray: #b8b8b8;
  
  /* Extended Palette */
  --color-success: #4a9d5f;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-gray-100: #f8f9fa;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-700: #495057;
  --color-gray-900: #212529;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-serif: Georgia, Times, serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Borders */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-black);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: var(--color-primary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 60px;
  width: auto;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.site-nav a {
  color: var(--color-gray-700);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary-green);
  background-color: var(--color-gray-100);
}

.btn-member-login {
  background-color: var(--color-primary-green);
  color: var(--color-white) !important;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  font-weight: 600;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-green) 100%);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

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

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary-green);
  border: 2px solid var(--color-primary-green);
}

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

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Project Cards - Style 1: Card Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.project-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-green);
}

.project-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--color-gray-200);
}

.project-card-content {
  padding: var(--spacing-md);
}

.project-card-title {
  color: var(--color-primary-green);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.project-card-teaser {
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.project-card .btn {
  width: 100%;
  justify-content: center;
}

/* Project Badges */
.project-badges {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-location {
  background-color: var(--color-accent-blue);
  color: var(--color-white);
}

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

.badge-status {
  background-color: var(--color-accent-orange);
  color: var(--color-white);
}

/* Content Sections */
.content-section {
  padding: var(--spacing-xl) 0;
}

.content-section:nth-child(even) {
  background-color: var(--color-gray-100);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary-green);
}

.section-subtitle {
  text-align: center;
  color: var(--color-gray-700);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.1rem;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary-green);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-gray-700);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-primary-green);
}

.modal-title {
  margin-bottom: var(--spacing-md);
  color: var(--color-primary-green);
}

/* Members Area */
.member-dashboard {
  padding: var(--spacing-lg) 0;
}

.member-welcome {
  background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
}

.member-projects-list {
  display: grid;
  gap: var(--spacing-md);
}

.member-project-item {
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.member-project-item:hover {
  border-color: var(--color-primary-green);
  box-shadow: var(--shadow-md);
}

/* Access Denied */
.access-denied {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.access-denied-icon {
  font-size: 4rem;
  color: var(--color-accent-orange);
  margin-bottom: var(--spacing-md);
}

/* Footer */
.site-footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

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

.footer-section li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: var(--color-gray-300);
}

.footer-section a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-700);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--color-gray-500);
}

/* Responsive Design */
/* @media (max-width: 768px) {
  
  .site-nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
.footer-content {
  grid-template-columns: 1fr;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary-green);
  margin: 5px 0;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}


*/

  /* Hamburger Menu Styles */



  .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }
  
  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-green);
    margin: 5px 0;
    transition: 0.3s;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  

/* Mobile Navigation */
@media (max-width: 768px) {
  
  .menu-toggle {
    display: block;
  }

  .site-header-inner {
    position: relative;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .site-nav.active {
    right: 0;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 0;
  }

  .site-nav li {
    width: 100%;
    border-bottom: 1px solid var(--color-gray-200);
  }

  .site-nav a {
    display: block;
    padding: var(--spacing-md) var(--spacing-sm);
    width: 100%;
  }

  .btn-member-login {
    margin-top: var(--spacing-sm);
    text-align: center;
  }

  /* Overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    align-items:center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .project-card-title { font-size: 1.3rem; }
  .footer-content {
    grid-template-columns: 1fr;
  }

  .btn-large {
    width: 90%;
    max-width: 95%;
    margin-bottom: 5px;
    margin-left: auto!important;
    margin-right:auto!important;
  }
}


/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
