/* ============================================
   The Grand Plan - Stylesheet
   ============================================ */

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

:root {
  --green-dark: #1a3a2a;
  --green-mid: #2d5a3f;
  --green-light: #4a8c6a;
  --green-pale: #7bc4a0;
  --cream: #f5f0e8;
  --cream-dark: #e8dfd2;
  --text-dark: #1a1a1a;
  --text-mid: #3a3a3a;
  --text-light: #6a6a6a;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1100px;
  --transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--green-light);
}

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

/* ============================================
   Navigation
   ============================================ */

.nav {
  background: var(--green-dark);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  color: var(--white);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-logo:hover {
  color: var(--green-pale);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-style: italic;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

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

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

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

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

.btn-solid:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-alt .section {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-heading {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ============================================
   Cards Grid
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  color: var(--green-dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-mid);
}

.card .card-link:hover {
  color: var(--green-dark);
}

.card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */

.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ============================================
   Content (prose)
   ============================================ */

.content {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content h2 {
  font-size: 1.6rem;
  color: var(--green-dark);
  margin: 2.5rem 0 1rem;
}

.content h3 {
  font-size: 1.3rem;
  color: var(--green-mid);
  margin: 2rem 0 0.75rem;
}

.content p {
  margin-bottom: 1.25rem;
  color: var(--text-mid);
}

.content ul, .content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-mid);
}

.content li {
  margin-bottom: 0.5rem;
}

.content blockquote {
  border-left: 4px solid var(--green-light);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}

/* ============================================
   Blog
   ============================================ */

.blog-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.blog-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.blog-item:hover {
  transform: translateY(-2px);
}

.blog-item h3 {
  margin-bottom: 0.5rem;
}

.blog-item h3 a {
  color: var(--green-dark);
  font-size: 1.2rem;
}

.blog-item h3 a:hover {
  color: var(--green-mid);
}

.blog-item .blog-meta {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.blog-item p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
}

.footer a {
  color: var(--green-pale);
}

.footer a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   404 Page
   ============================================ */

.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--green-light);
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

/* ============================================
   Feature List
   ============================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature h3 {
  color: var(--green-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 13px;
  height: 13px;
  background: var(--green-mid);
  border: 3px solid var(--cream);
  border-radius: 50%;
  margin-left: -5px;
}

.timeline-item h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.timeline-item .timeline-date {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .page-header h1 {
    font-size: 1.85rem;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .content {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 1.25rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

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