/* Common Ground Athens - Custom CSS Design
   Unique warm earth tones representing Athens, Georgia community
   No framework - pure custom CSS */

:root {
  --primary-green: #4a7c59;
  --primary-dark: #2d5a3d;
  --accent-terracotta: #d4a574;
  --accent-gold: #c9a96e;
  --text-dark: #2c3e2d;
  --text-light: #f8f6f3;
  --bg-cream: #faf8f5;
  --bg-warm: #f5f0e8;
  --bg-olive: #e8ebe3;
  --shadow-soft: rgba(74, 124, 89, 0.1);
  --shadow-medium: rgba(45, 90, 61, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.2rem; }

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-medium);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.logo-text h1 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin: 0;
}

.logo-text span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Navigation */
nav {
  background: rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.85) 0%, rgba(74, 124, 89, 0.75) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--accent-terracotta);
  color: var(--text-light);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-dark);
  text-decoration: none;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Content Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-warm);
}

.section-olive {
  background: var(--bg-olive);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-soft);
  transition: var(--transition);
}

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

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

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #666;
  font-size: 0.95rem;
}

/* Feature Box */
.feature-box {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.feature-box.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.feature-image img {
  width: 100%;
  height: auto;
}

.feature-content {
  flex: 1;
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.95rem;
  color: #666;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
  color: var(--text-light);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer-about p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Content Page */
.content-page {
  padding: 4rem 0;
}

.content-main {
  max-width: 800px;
  margin: 0 auto;
}

.content-main img {
  border-radius: 12px;
  margin: 2rem 0;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: var(--bg-warm);
  padding: 2rem;
  border-radius: 16px;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* 404 Page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content h1 {
  font-size: 6rem;
  color: var(--accent-gold);
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-box,
  .feature-box.reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .header-top {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav ul.active {
    display: flex;
  }

  nav a {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero {
    height: auto;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .section {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .card-content {
    padding: 1rem;
  }
}
