/* =================== RESET STYLES =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #fabfc063;
  font-family: 'Times New Roman', Times, serif;
} 

/* =================== HEADER NAV =================== */
header nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: maroon;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* Logo */
.logo img {
  max-width: 180px;
  height: auto;
}

/* Navigation menu */
.nav-menu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 25px; /* space between links on desktop */
}

.nav-menu ul li a {
  text-decoration: none;
  color: white;
  font-size: 25px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.nav-menu ul li a:hover {
  background-color: white;
  color: maroon;
  border-radius: 8px;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* =================== MOBILE STYLES =================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex; /* show toggle */
  }

  .nav-menu {
    position: absolute;
    top: 100%; /* dropdown appears below nav */
    left: 0;
    width: 100%;
    background-color: maroon;
    display: none; /* hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
  }

  .nav-menu.active {
    display: flex; /* show when toggle clicked */
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px; /* vertical spacing between links */
    width: 100%;
    text-align: center;
  }

  .nav-menu ul li a {
    font-size: 25px;        /* bigger for mobile */
    padding: 12px 20px;     /* more touch-friendly */
  }
}

/* =================== IMPACT SECTION =================== */
.content {
  padding-top: 100px; /* offset for fixed nav */
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 20px;
}

.impact-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 300px;
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 0.4s ease;
}

.impact-card:hover img {
  transform: scale(1.05);
}

.impact-card .overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  max-width: 80%;
}

.impact-card .overlay h2 {
  font-size: 25px;
  font-weight: bold;
}

.impact-card .overlay p {
  font-size: 20px;
  margin-top: 8px;
}

/* Large hero */
.impact-card.large {
  height: 70vh;
  border-radius: 0;
  overflow: hidden;
}

.impact-card.large img {
  filter: brightness(60%);
}

.impact-card.large .overlay {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 80%;
}

.impact-card.large .overlay h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

.impact-card.large .overlay p {
  font-size: 25px;
  line-height: 1.4;
}

/* =================== FOOTER =================== */
:root {
  --brand-white: #ffffff;
  --text-light: #f0f0f0;
  --footer-border: #dcdcdc;
  --text-muted: #bfbfbf;
}

.footer {
  background-color: #800000;
  color: var(--brand-white);
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.footer-logo-container {
  flex-shrink: 0;
  min-width: 180px;
  text-align: center;
}

.footer-logo {
  max-height: 90px;
  width: auto;
}

.footer-sections {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--brand-white);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 700;
}

.footer-section p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.contact-info a {
  color: var(--text-light);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
  color: var(--brand-white);
}

.footer-follow .social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-follow .social-icons a img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  object-fit: contain;
  background-color: rgb(240,38,38);
  padding: 5px;
  transition: background-color 0.3s;
}

.footer-follow .social-icons a img:hover {
  background-color: black;
}

.footer-bottom {
  border-top: 2px solid var(--footer-border);
  margin-top: 30px;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: var(--text-light);
  text-decoration: none;
}

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

/* =================== RESPONSIVE =================== */

/* Medium screens */
@media (min-width: 768px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-card.large {
    grid-column: span 2;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    background-color: maroon;
    border-top: 1px solid white;
  }

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

@media (max-width: 500px) {
  .impact-card.large .overlay h2 {
    font-size: 1.5rem;
  }
  .impact-card.large .overlay p {
    font-size: 1rem;
  }

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

  .footer-follow .social-icons {
    justify-content: center;
  }

  .footer-logo-container {
  width: 100%;        /* take full width */
  text-align: center; /* center the logo horizontally */
  margin-bottom: 20px; /* optional spacing below logo */
  flex-shrink: 0;     /* keep logo size intact */
}

}

/* Center footer-bottom on small screens */
@media (max-width: 500px) {
  .footer-bottom {
    flex-direction: column;   /* stack items vertically */
    align-items: center;      /* center horizontally */
    text-align: center;       /* center text inside <p> and links */
    gap: 10px;                /* spacing between copyright & links */
  }

  .footer-bottom a {
    margin: 0 5px;            /* spacing between links */
  }

  .footer-logo-container {
    text-align: center;       /* ensure logo above footer-bottom is centered too */
    margin-bottom: 20px;      /* optional spacing above links */
  }
}
