/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
  Editorial colour palette
  Deep blue backgrounds with off‑white text and a muted blue accent.
  The site now uses a monochrome blue system to evoke a calm, archival feeling.
*/
:root {
  /* primary backgrounds */
  --bg-dark: #081f3b;      /* dark navy for page backgrounds */
  --bg-darker: #06172f;    /* slightly deeper shade for framed sections */
  /* typography colours */
  --text-light: #f0f4f8;   /* off‑white for primary text */
  --text-medium: #b4c5e0;  /* soft blue for secondary copy */
  /* accent colours */
  --accent: #6488c4;       /* muted blue accent used for headings and highlights */
  --accent-hover: #5173b3; /* darker tone for hover states */
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-light);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

/* Hero navigation */
.hero-nav {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 3;
}
.hero-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.hero-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.hero-nav a:hover {
  color: var(--accent);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text-light);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('images/bannockburn_aerial.png');
  background-size: cover;
  background-position: center;
  /* Reduce the frosted effect and zoom so the village image is clearer. */
  filter: grayscale(0.2) saturate(0.8) brightness(0.75) blur(1.5px);
  transform: scale(1.02);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Dark blue gradient overlay to match the new palette */
  background: linear-gradient(to bottom,
    rgba(8, 31, 59, 0.75),
    rgba(8, 31, 59, 0.65) 40%,
    rgba(8, 31, 59, 0.85));
  z-index: -1;
}

/* Hero content positioning */
.hero-content {
  position: absolute;
  top: 4rem;
  left: 2rem;
  /* Allow the heading to span a larger portion of the viewport so the full
     word SCANNOCKBURN remains visible. */
  max-width: 85vw;
  z-index: 2;
}
.hero-content h1 {
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  /* Keep the project name on a single line and scale it responsively to fit the viewport */
  white-space: nowrap;
  font-size: clamp(3.5rem, 10vw, 9rem);
}
.hero-mission {
  font-size: 1.25rem;
  margin: 1.5rem 0;
  max-width: 40ch;
  color: var(--text-medium);
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid var(--text-light);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary {
  /* Primary buttons are now white to stand out against the dark hero.
     Text and border adopt the dark background colour for contrast. */
  background-color: #ffffff;
  color: var(--bg-dark);
  border-color: #ffffff;
}
.btn-primary:hover {
  background-color: #e6e6e6;
  border-color: #e6e6e6;
  color: var(--bg-dark);
}
.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Base section styling */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  max-width: 75ch;
}
.section ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  list-style: disc;
}
.section li {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}
.section li strong {
  color: var(--accent);
}

/* Why It Matters grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.why-item {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.why-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.why-item p {
  font-size: 1rem;
  color: var(--text-medium);
}

/* Plan list */
.plan-list {
  list-style: disc;
  margin-left: 1.5rem;
}
.plan-list li strong {
  color: var(--accent);
}

/* Gear / Equipment section */
.gear-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.gear-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: left;
}
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.gear-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.gear-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 8px;
}
.gear-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-light);
}
.gear-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--accent);
}
.gear-item p {
  margin: 0;
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.5;
}

/* Map container */
.map-container {
  margin-top: 1.5rem;
  border: 1px solid var(--accent);
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}
.map-container small {
  display: block;
  margin-top: 0.5rem;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-medium);
}

/* Involved list */
.involved-list {
  list-style: disc;
  margin-left: 1.5rem;
}
.involved-list li {
  margin-bottom: 0.75rem;
}
.involved-list li strong {
  color: var(--accent);
}

/* Donation section */
.donation-section {
  margin: 6rem 0;
  padding: 6rem 2rem;
  background-color: var(--bg-darker);
  text-align: center;
}
.donation-section h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.donation-copy {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-medium);
  line-height: 1.6;
}
.donation-widget {
  /* Constrain the donation widget so the embedded form is centered and doesn't stretch across the section. */
  max-width: 600px;
  margin: 0 auto;
}
.donation-widget dbox-widget {
  width: 100% !important;
  max-width: none !important;
}

/* Footer */
footer {
  background-color: var(--bg-darker);
  color: var(--text-medium);
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 6rem;
}
footer p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
footer .footnotes {
  font-size: 0.75rem;
  color: var(--text-medium);
}
footer .footnotes span + span {
  display: block;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .hero-nav {
    top: 1rem;
    right: 1rem;
  }
  .hero-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 4px;
  }
  .hero-content {
    top: 7rem;
    left: 1rem;
    max-width: 90vw;
  }
  .hero-content h1 {
    /* On small screens reduce the clamp values so the long name fits on one line */
    font-size: clamp(2.5rem, 12vw, 5rem);
  }
  .hero-mission {
    font-size: 1rem;
    max-width: 90vw;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .section h2 {
    font-size: 2rem;
  }
  .donation-section {
    padding: 4rem 1rem;
  }
  .donation-section h2 {
    font-size: 2.25rem;
  }
  .donation-copy {
    font-size: 1rem;
  }
}