/* === THEME VARIABLES === */
:root {
  /* neutrals */
  --bg: #ffffff;
  --text: #333333;
  --muted: #9e9e9e;
  --card: #f9f9f9;
  --surface: #f5f5f5;
  --divider: #cccccc;

  /* CRRFPA (current green) */
  --brand-900: #003400;
  --brand-800: #004d00; /* navbar/footer + links */
  --brand-700: #0a6e0a;
  --brand-400: #4caf50;
  --brand-200: #e8f5e9;
  --accent:    #b29a36; /* h3 gold */
}

/* SA Smoke & Braai (braai/fire) — activate with body.theme-sasab */
body.theme-sasab {
  --bg: #ffffff;
  --text: #212121;
  --muted: #9e9e9e;
  --card: #f9f9f9;
  --surface: #f5f5f5;
  --divider: #cccccc;

  --brand-900: #1a0f0a;  /* deep ember/charcoal */
  --brand-800: #212121;  /* navbar/footer charcoal */
  --brand-700: #e65100;  /* ember orange (primary) */
  --brand-400: #ff8a50;  /* hover/lighter */
  --brand-200: #fff3e0;  /* soft section bg */
  --accent:    #b71c1c;  /* flame red for CTAs / h3 if desired */
}

/* Optional helpers for section backgrounds */
.bg-wood   { background: #795548; color: #fff; }
.bg-beige  { background: #f5f5dc; }
.bg-ash    { background: #e0e0e0; }

/* === BASE / RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

h3 {
  color: var(--accent) !important;
  font-family: Roboto, sans-serif;
  font-size: 22px;
}

.img-circle {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: block;
}

/* === SITE BRANDING === */
.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--surface);
  margin-bottom: 0;
}

.site-branding img {
  height: 150px;
  width: auto;
}

.site-branding h1 {
  font-size: 1.6rem;
  color: var(--brand-800);
  margin: 0;
}

/* === BANNER === */
.banner { margin-bottom: 0; }
.banner img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--brand-800);
  padding: 0.75rem 1rem;
  color: #fff;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.navbar .nav-links li a {
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Active link */
.nav-links a.active {
  font-weight: bold;
  background-color: #ffffff20; /* subtle highlight on dark navbar */
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* === CONTENT BLOCKS === */
.content-block { padding: 2rem; }

.columns {
  display: flex;
  gap: 1rem;
}

.column {
  flex: 1;
  background-color: var(--brand-200); /* was #e0e0e0 */
  padding: 1rem;
  border-radius: 5px;
}

.divider {
  border: 0;
  height: 2px;
  background: var(--divider);
  margin: 2rem 0;
}

/* === CARD === */
.card {
  max-width: 300px;
  background-color: var(--card);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 1rem auto;
  text-align: center;
}

.card img {
  width: 60%;
  height: auto;
  display: block;
  margin: auto;
}

.card p {
  padding: 0.5rem 1rem 1rem;
  font-size: 0.95rem;
}

/* === DOCUMENT LIST === */
.document-list {
  border: 1px solid #ccc;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background-color: var(--card);
  max-width: 700px;
  margin: 1rem auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-list ul { list-style-type: none; padding-left: 0; }

.document-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ccc;
}

.document-list li:last-child { border-bottom: none; }

.document-list a {
  text-decoration: none;
  color: var(--brand-800);
}

.document-list a:hover {
  text-decoration: underline;
  color: var(--brand-700);
}

/* === FOOTER === */
footer {
  background-color: var(--brand-800);
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* === BUTTONS (optional) === */
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 6px;
  background: var(--brand-700);
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { background: var(--brand-400); }
.btn--outline {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--brand-700);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--brand-800);
    width: 100%;
    padding: 1rem;
  }
  .navbar .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .columns { flex-direction: column; }
}

/* === CONTACT CARDS === */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  justify-content: center;
}

.contact-card {
  flex: 1 1 250px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 300px;
}
