/* ================================
   COLOR VARIABLES
   ================================ */
:root {
  /* Light theme */
  --primary-color: #1C2B4A;
  --secondary-color: #D4AF37;
  --light-bg: #F9F9F9;
  --accent: #A6BDA5;
  --text-color: #333;

  /* Dark theme defaults */
  --dark-bg: #121212;
  --dark-surface: #1E1E1E;
  --dark-text: #E4E4E4;
  --dark-accent: #3E5C76;
}

/* ================================
   DARK MODE OVERRIDES
   ================================ */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode header {
  background-color: var(--dark-surface);
}

body.dark-mode footer {
  background-color: var(--dark-surface);
}

body.dark-mode .section-box,
body.dark-mode .program-box,
body.dark-mode .donate-box,
body.dark-mode .contact-info,
body.dark-mode .contact-form,
body.dark-mode .cta-box {
  background-color: var(--dark-surface);
  color: var(--dark-text);
}

body.dark-mode .section-box h3,
body.dark-mode .program-box h3,
body.dark-mode .donate-box h3,
body.dark-mode .contact-info h3,
body.dark-mode .contact-form h3,
body.dark-mode .cta-box h3 {
  color: var(--secondary-color);
}

body.dark-mode nav.nav-links a {
  color: var(--dark-text);
}

body.dark-mode nav.nav-links a.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* ================================
   GLOBAL STYLES
   ================================ */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

main {
  flex: 1; /* Push footer down */
}

h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* Link defaults (prevent purple visited) */
a,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
}

/* ================================
   HEADER
   ================================ */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

header h1 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 2rem;
}

/* Navigation links */
nav.nav-links {
  display: flex;
}

nav.nav-links a {
  color: white;
  margin-left: 1.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav.nav-links a:hover {
  color: var(--secondary-color);
}

/* Active link highlight */
nav.nav-links a.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 2px;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ================================
   HERO
   ================================ */
.hero {
  background: linear-gradient(rgba(28, 43, 74, 0.6), rgba(28, 43, 74, 0.6)),
              url('hero-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

/* ================================
   CONTENT SECTIONS
   ================================ */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.section-box,
.program-box,
.donate-box,
.contact-info,
.contact-form {
  background-color: white;
  padding: 1.5rem 2rem;
  border-left: 5px solid var(--accent);
  margin-bottom: 2rem;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect for content boxes */
.section-box:hover,
.program-box:hover,
.donate-box:hover,
.contact-info:hover,
.contact-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.section-box h3,
.program-box h3,
.donate-box h3,
.contact-info h3,
.contact-form h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.section-box:nth-child(even),
.program-box:nth-child(even),
.donate-box:nth-child(even) {
  border-left-color: var(--secondary-color);
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

.cta-box {
  background: white;
  flex: 1 1 250px;
  max-width: 300px;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border-top: 5px solid var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cta-box h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.cta-box a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--secondary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-box a:hover {
  background: #b9962f;
  color: white;
}

/* ================================
   FORMS
   ================================ */
form input,
form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
}

form button {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #b9962f;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ================================
   RESPONSIVE STYLES
   ================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav.nav-links {
    flex-direction: column;
    background: var(--primary-color);
    position: fixed;
    top: 0;
    right: -220px;
    width: 200px;
    height: 100%;
    padding: 2rem 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  nav.nav-links.open {
    right: 0;
  }

  nav.nav-links a {
    margin: 1rem 0;
    font-size: 1.1rem;
  }
}
