/* Clean, modern styles for ELE CORP non-profit landing page - Light Theme */
:root {
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #212529;
  --muted: #6c757d;
  --accent: #28a745;
  --border: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.6 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--accent);
  border-bottom: none;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-decoration: none;
  font-size: 24px;
}

/* Header on green background */
.site-header .logo { color: #ffffff; }

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover, nav a:focus {
  color: #ffffff;
}

.nav-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 25px;
  background: #ffffff;
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 14px;
  margin-left: 24px;
}

.nav-button:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  color: var(--accent) !important;
}

.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--card); /* white section */
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
  color: var(--text);
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--muted);
}

.services {
  padding: 60px 0;
  background: var(--accent); /* green section */
  color: #ffffff;
}

.services h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(28px, 3vw, 36px);
  color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow);
}

.card-img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
}

/* Photo variant for cards (allows responsive width while preserving rounded card layout) */
.card-photo {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.card-photo-wrapper {
  display: block;
  margin-bottom: 20px; /* mimic original .card-img spacing */
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  padding: 40px 0;
  text-align: center;
  background: var(--card); /* white section */
  color: var(--text);
}

.cta p {
  margin: 0;
  font-size: 18px;
}

.cta .tiny {
  font-size: 14px;
  color: var(--muted);
}

.location {
  padding: 40px 0;
  background: var(--accent); /* green section */
  text-align: center;
  color: #ffffff;
}

.location h2 {
  margin-bottom: 20px;
  color: #ffffff;
}

.contact {
  padding: 60px 0;
  background: var(--card); /* white section */
}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form label {
  display: block;
  margin: 15px 0;
  font-weight: 500;
}

.form input, .form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

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

.form fieldset {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.hidden {
  display: none;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 16px;
}

.button:hover {
  background: #218838;
  transform: translateY(-2px);
}

.donate {
  padding: 60px 0;
  background: var(--accent); /* green section */
  text-align: center;
  color: #ffffff;
}

.donate h2 {
  margin-bottom: 20px;
  color: #ffffff;
}

.donate p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Ensure white cards in green donate section keep readable text */
.donate .card {
  color: var(--text);
}
.donate .card p {
  color: var(--muted);
}

.site-footer {
  padding: 30px 0;
  border-top: none;
  background: var(--accent);
  color: #ffffff;
  text-align: center;
}

.contact-info {
  margin-top: 30px;
}

.contact-info h3 {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 15px;
  }

  nav a {
    margin-left: 0;
    margin-right: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .form {
    padding: 20px;
  }
}
