/* ---------- Brand ---------- */
:root {
  --green: #316500;
  --green-hover: #008000;
  --gold: #e0b61e;
  --gold-hover: #f0c93a;
  --blue: #0047ab;
  --ink: #333;
}

/* ---------- General ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--ink);
}

h1 {
  color: white;
  text-align: center;
}

h2 {
  color: var(--blue);
  text-align: center;
}

h3 {
  text-align: center;
}

a {
  text-decoration: none;
  color: var(--blue);
}

img {
  max-width: 100%;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* Text for screen readers only */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--green);
  color: white;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 72px;
}

.carousel-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease;
}

.carousel-image {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Darkens the photos so the white text stays readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Top navigation */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 16px 20px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
}

.site-nav a {
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--gold);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content .logo {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.hero-content h1 {
  font-family: "Playfair", serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 16px 0 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content > p {
  font-size: 1.2rem;
  margin: 0 0 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Donate (PayPal form, restyled to the brand) */
.donate-form {
  display: inline-grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0;
}

.donate-button {
  background-color: var(--gold);
  color: #1a1a1a;
  border: none;
  border-radius: 25px;
  min-width: 11.625rem;
  height: 2.75rem;
  padding: 0 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.donate-button:hover {
  background-color: var(--gold-hover);
}

.powered-by {
  font-size: 0.75rem;
  margin: 0;
}

.powered-by img {
  height: 0.875rem;
  vertical-align: middle;
}

/* Slideshow pause / play */
.carousel-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
}

.carousel-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-toggle-icon {
  font-size: 0.7rem;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.cta-button {
  display: inline-block;
  background-color: var(--green);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.cta-button:hover {
  background-color: var(--green-hover);
}

/* ---------- About ---------- */
.about-us {
  padding: 40px 20px;
  text-align: center;
  background: #f9f9f9;
}

.about-us h2 {
  color: var(--green);
}

.about-highlights {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 0;
}

.highlight {
  background: white;
  border-radius: 15px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.highlight p {
  margin: 0;
}

.highlight .highlight-figure {
  color: var(--green);
  font-weight: bold;
  font-size: 1.17rem;
  margin-bottom: 12px;
}

/* ---------- Initiatives ---------- */
.initiatives {
  color: #f9f9f9;
  background-color: #333;
  padding: 40px 20px;
}

.initiatives h2 {
  color: var(--gold);
}

.initiative-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.initiative {
  color: black;
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* ---------- Stories of Impact ---------- */
.impact-stories {
  padding: 40px 20px;
  background: #f1f1f1;
}

.impact-stories h2 {
  color: var(--green);
}

.stories-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.story {
  width: 290px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
}

.story-image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.story .content {
  padding: 4px 20px 20px;
}

/* ---------- Events ---------- */
.events {
  background-position: center -140px;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 128px 20px;
  background-image: url(IMG_0028.JPG);
  text-align: center;
  display: flex;
  justify-content: center;
}

.event-section {
  border-radius: 25px;
  color: white;
  background-color: rgba(0, 0, 0, 0.75);
  text-align: center;
  padding: 20px 32px;
  max-width: 640px;
}

.event-section h2 {
  color: var(--gold);
}

.event-section h3 {
  color: var(--gold);
  font-size: 1rem;
  margin: 24px 0 8px;
}

.events-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.events-list li {
  margin-bottom: 10px;
}

.past-events .events-list li {
  opacity: 0.85;
}

.events-empty {
  margin: 0;
}

.event-section a {
  color: var(--gold);
  text-decoration: underline;
}

/* ---------- Contact ---------- */
.contact-us {
  padding: 40px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contact-us h2 {
  color: var(--green);
}

.contact-us p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #555;
}

.office {
  margin-top: 32px;
}

.office h3 {
  color: var(--green);
  margin: 0 0 8px;
}

.office address {
  font-style: normal;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.map-link {
  color: var(--green);
  font-weight: bold;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
  background: #161616;
  color: white;
  text-align: center;
  padding: 20px 10px;
}

.footer-address {
  font-style: normal;
  margin-top: 4px;
}

footer p {
  margin: 4px 0 12px;
}

.footer-links a {
  margin: 0 10px;
  color: white;
  text-decoration: underline;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .carousel {
    transition: none;
  }
}

/* ---------- Tablets ---------- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 85vh;
    min-height: 85svh;
    padding: 96px 16px 72px;
  }

  .hero-content .logo {
    width: 130px;
    height: 130px;
  }

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

  .hero-content > p {
    font-size: 1rem;
  }

  .site-nav ul {
    gap: 4px 18px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .events {
    background-position: center;
    padding: 60px 10px;
  }

  .event-section {
    padding: 20px;
  }

  .initiative-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .about-highlights {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .highlight {
    width: min(100%, 260px);
  }

  .story {
    width: 100%;
    max-width: 420px;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .footer-links a {
    display: block;
    margin-bottom: 10px;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 84px;
  }

  .hero-content .logo {
    width: 110px;
    height: 110px;
  }

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

  .hero-content > p {
    font-size: 0.95rem;
  }

  .site-nav {
    padding: 12px 10px;
  }

  .carousel-toggle {
    right: 50%;
    transform: translateX(50%);
    bottom: 12px;
  }

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

  .footer-links a {
    font-size: 0.9rem;
  }
}
