/* ===========================
   Global Styles
=========================== */
:root {
  --primary-color: #2e7d32; /* forest green */
  --accent-color: #f9a825;  /* safari gold */
  --bg-color: #f4f6f3;
  --text-color: #222;
  --max-width: 1200px;
  --card-radius: 16px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

/* ===========================
   Header
=========================== */
.site-header {
  background: var(--primary-color);
  color: #fff;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.site-header nav a {
  color: #fff;
  margin-left: 1.2rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent-color);
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
  background: linear-gradient(rgba(46,125,50,0.7), rgba(46,125,50,0.7)),
              url('https://images.unsplash.com/photo-1549887534-3db1bd59dcca?auto=format&fit=crop&w=1400&q=80')
              center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .btn {
  background: var(--accent-color);
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.hero-section .btn:hover {
  background: #ffce33;
}

/* ===========================
   Page Header
=========================== */
.page-header {
  text-align: center;
  margin: 3rem 0 1.5rem;
}

.page-header h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* ===========================
   Grid of Parks
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card h2 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card h2 a {
  text-decoration: none;
  color: inherit;
}

.card p {
  margin-bottom: 0.8rem;
}

.card .btn {
  align-self: flex-start;
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
}

.card .btn:hover {
  background: var(--accent-color);
  color: #000;
}

/* ===========================
   Pagination
=========================== */
.pagination {
  text-align: center;
  margin: 2rem 0 4rem;
}

.pagination .btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  margin: 0 0.4rem;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
}

.pagination .btn:hover {
  background: var(--accent-color);
  color: #000;
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: #333;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: auto;
}

.site-footer p {
  font-size: 0.9rem;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .site-header {
    flex-direction: column;
    gap: 0.6rem;
  }
}
