/* GREEN Industrial Opportunities Platform - Master Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1B542D;
  --color-secondary: #0D9B7F;
  --color-accent: #D4AF37;
  --color-light: #F5F5F5;
  --color-dark: #333333;
  --color-text: #555555;
  --color-border: #E0E0E0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: #ffffff;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.3; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p { margin-bottom: 1rem; }

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--color-accent);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-primary:hover {
  background-color: #E5C158;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: white;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

section:nth-child(odd) {
  background-color: #fafafa;
}

/* FEATURE BOXES */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: var(--transition);
  border-top: 4px solid var(--color-secondary);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-box h3 {
  color: var(--color-primary);
  margin-top: 1rem;
}

.feature-box .icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
}

/* CARDS & PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.meta-item {
  color: #666;
}

.meta-label {
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.meta-value {
  font-size: 1rem;
}

/* FILTERS */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.filter-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  cursor: pointer;
}

/* TABS */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 2rem;
  gap: 2rem;
  overflow-x: auto;
}

.tab {
  padding: 1rem 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
  min-width: fit-content;
}

.tab:hover {
  color: var(--color-secondary);
}

.tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* COMPARISON TABLE */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comparison-table th {
  background: var(--color-primary);
  color: white;
  padding: 1.2rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table tr:hover {
  background-color: #fafafa;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* FORMS */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

input, textarea, select {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(13, 155, 127, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* CALL-TO-ACTION SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* FOOTER */
footer {
  background: var(--color-dark);
  color: #bbb;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid #444;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* BREADCRUMB */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: #ccc;
}

/* SUCCESS STATUS */
.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-primary {
  background-color: #d1ecf1;
  color: #0c5460;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
    justify-content: center;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.text-muted {
  color: #999;
}

.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2rem; }
.pt-2 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 1.5rem; }

.highlight {
  background-color: var(--color-accent);
  color: var(--color-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #155724;
}
