/* ===== COLOUR VARIABLES ===== */
:root {
  --primary-green: #2e7d32;
  --dark-green: #1b5e20;
  --accent-gold: gold;
  --muted-gold: #b8860b;
  --text-dark: #222;
  --text-light: #fff;
  --light-bg: #f4f4f4;
  --section-bg: #f9f9f9;
}

/* ===== GENERAL STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

section {
  scroll-margin-top: 90px;
}

a:focus,
button:focus {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

/* ===== STICKY HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--primary-green);
  color: var(--text-light);
}

.logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus {
  text-decoration: underline;
}

/* ===== MOBILE MENU BUTTON ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.donate-btn,
.btn {
  display: inline-block;
  background: var(--accent-gold);
  color: black;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.donate-btn:hover,
.btn:hover {
  opacity: 0.85;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 85vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/collage_for_website_header.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-light);
  text-align: center;
}

.hero-text {
  max-width: 750px;
  background: rgba(0, 0, 0, 0.35);
  padding: 2rem;
  border-radius: 10px;
}

.hero h2 {
  margin-bottom: 1rem;
  font-size: 2.7rem;
}

.hero p {
  font-size: 1.15rem;
}

/* ===== QUOTE ROTATOR ===== */
.quote-section {
  background: var(--dark-green);
  color: white;
  padding: 1.2rem 2rem;
  text-align: center;
}

.quote-section p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.1rem;
  font-style: italic;
}

/* ===== GENERAL SECTIONS ===== */
.section,
.image-section {
  padding: 3rem 2rem;
  text-align: center;
}

.light-section {
  background: var(--section-bg);
}

.section p {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== IMAGE GALLERY ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.image-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== IMAGE CARDS ===== */
.image-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.image-card {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.78)
  );
}

.image-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  color: white;
  text-align: left;
}

.image-card-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.image-card-content p {
  margin-left: 0;
  margin-right: 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  color: black;
  background: var(--accent-gold);
  padding: 0.5rem 0.9rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  opacity: 0.85;
}

/* ===== DONATE SECTION ===== */
.donate-section {
  background: var(--dark-green);
  color: var(--text-light);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--section-bg);
}

.faq-container {
  max-width: 950px;
  margin: 2rem auto 0;
  text-align: left;
}

.faq-container details {
  background: white;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border-left: 5px solid var(--primary-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-container summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--dark-green);
  font-size: 1rem;
}

.faq-container p,
.faq-container ul {
  margin-top: 1rem;
  line-height: 1.7;
}

.faq-container li {
  margin-bottom: 0.5rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 42px;
  height: 42px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--dark-green);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--primary-green);
  color: var(--text-light);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .donate-btn {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 1rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero-text {
    padding: 1.5rem;
  }

  .section,
  .image-section {
    padding: 2.5rem 1rem;
  }
}