/*
 * Stylesheet for the Anonymous Angel Charitable Foundation website.
 *
 * This file defines the colour palette, typography and layout used
 * throughout the site. The goal is to echo the gentle turquoise and
 * blue hues found in the supplied PDF while keeping content legible
 * over a textured background. The navigation bar is sticky so that
 * visitors can quickly jump between pages. Sections use a flexible
 * layout to display text alongside the original PDF images without
 * altering them. Media queries ensure everything stacks gracefully
 * on smaller screens.
 */

/* Colour variables inspired by the PDF */
:root {
  --primary-color: #008080;      /* deep teal for headings and highlights */
  --secondary-color: #003f3f;    /* dark teal for body text */
  --accent-color: #00a99d;       /* brighter turquoise for subtle accents */
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--secondary-color);
}

/* Use the first PDF page as a fixed background image */
body {
  background-image: url("images/page-01.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* An overlay container that provides a light backdrop for content */
.overlay {
  background: rgba(255, 255, 255, 0.9);
  max-width: 1200px;
  margin: 80px auto;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Sticky navigation bar */
nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

nav .logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: capitalize;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Generic section styling */
.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
}

.section .text {
  flex: 1 1 400px;
  padding: 20px;
}

.section .image {
  flex: 1 1 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
  line-height: 1.6;
}

strong {
  color: var(--primary-color);
}

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

a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }
  .overlay {
    margin: 80px 20px;
    padding: 20px;
  }
  .section {
    flex-direction: column;
  }
  .section .text,
  .section .image {
    flex: 1 1 100%;
    padding: 10px;
  }
}