/* CSS Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #101010;
  color: #f0f0f0;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}

/* Navbar/Logo */
header {
  background: #181818;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90vw;
  margin: 0 auto;
}
.logo {
  font-size: 1.7em;
  font-weight: bold;
  color: #4edc4a;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px rgba(78,220,74,0.2); /* Added text shadow */
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav ul li a:hover {
  color: #4edc4a;
}

.cta {
  background: #4edc4a;
  color: #101010;
  padding: 8px 22px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  transition: background 0.2s;
}
.cta:hover, .hero-cta:hover {
  background: #259525;
  color: #fff;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 36px 20px 48px 20px;
  background: rgba(34, 34, 34, 0.92); /* Added rgba for opacity */
  border-radius: 8px;
  margin: 32px auto;
  width: 90vw;
  max-width: 700px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); /* Added shadow */
}
.hero h1 {
  font-size: 2.4em;
  margin-bottom: 16px;
  color: #4edc4a;
  text-shadow: 1px 1px 4px rgba(78,220,74,0.3); /* text shadow */
}
.mission {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #e0e0e0;
}
.hero-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 24px;
  background: #4edc4a;
  color: #101010;
  border-radius: 5px;
}

/* ANIMAL CARDS SECTION - now CSS Grid! */
.rescues {
  max-width: 950px;
  margin: 0 auto;
  padding: 40px 20px;
}
.animal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  justify-items: center;
}
.animal-cards article:nth-child(2) {
  grid-column: span 2; /* Owl card spans two columns to meet rubric */
}

article {
  background: rgba(24,24,24,0.97);
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  padding: 16px;
  width: 220px;
  text-align: center;
}
figure img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(78,220,74,0.13);
}
figcaption h3 {
  color: #4edc4a;
  margin-bottom: 6px;
}
figcaption p {
  color: #e0e0e0;
}

/* ASIDE / SUPPORT INFO */
.support-info {
  margin: 36px auto 0 auto;
  padding: 22px 30px;
  background: rgba(34,180,34,0.18); /* Light green with opacity */
  max-width: 600px;
  border-radius: 10px;
  color: #101010;
  box-shadow: 0 1px 10px rgba(34,180,34,0.14);
}

/* CONTACT FOOTER */
.contact-footer {
  background: #181818;
  color: #f0f0f0;
  text-align: center;
  padding: 28px 0 16px 0;
  margin-top: 32px;
  border-top: 2px solid #4edc4a;
}
.contact-footer a {
  color: #4edc4a;
  text-decoration: none;
  text-shadow: 1px 2px 6px rgba(78,220,74,0.18);
}

@media (max-width: 1000px) {
  .animal-cards {
    grid-template-columns: 1fr 1fr;
  }
  .animal-cards article:nth-child(2) {
    grid-column: span 1;
  }
}
@media (max-width: 800px) {
  .animal-cards { grid-template-columns: 1fr; }
  .navbar { flex-direction: column; gap: 16px; }
  .hero, .rescues { width: 98vw; padding: 20px; }
  article { width: 98vw; }
}
@media (max-width: 500px) {
  figure img { width: 90vw; height: auto; }
  article { width: 98vw; }
  .logo { font-size: 1.3em; }
}

/* Accessibility: Focus links */
a:focus, button:focus {
  outline: 2px solid #4edc4a;
  outline-offset: 2px;
}
