/*
  Stylesheet for Sober Living Eau Claire website

  This file defines the color palette, typography, layout and responsive
  behaviours used across all pages. The goal is to create a clean and
  calming design with sufficient contrast, accessible navigation and
  responsive layouts that work well on both desktop and mobile devices.
*/

/* CSS variables for easy theme adjustments */
:root {
  --color-primary: #184E77; /* deep blue for headings and primary buttons */
  --color-secondary: #2A9D8F; /* calming teal for highlights */
  --color-accent: #E9C46A; /* warm accent colour used sparingly */
  --color-light: #F8F9FA; /* very light grey for section backgrounds */
  --color-dark: #333333; /* dark grey for body text */
  --font-base: 'Arial', 'Helvetica', sans-serif;
}

/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header and navigation */
header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav li {
  position: relative;
}

nav a {
  font-size: 1rem;
  color: var(--color-dark);
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus,
nav a[aria-current='page'] {
  color: var(--color-primary);
  font-weight: bold;
}

/* Hero section */
.hero {
  min-height: 60vh;
  background: linear-gradient(rgba(24, 78, 119, 0.4), rgba(24, 78, 119, 0.4)),
              url('../images/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #133a5c;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Section styles */
section {
  padding: 3rem 0;
}

.mission {
  background-color: var(--color-light);
}

.mission h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.mission p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mission-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* Donation cards */
.donation-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.donation-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.5rem;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.donation-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.donation-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.donation-card .btn {
  align-self: flex-start;
}

/* Supply list */
.supply-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
}

.supply-list li {
  background-color: var(--color-light);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Community resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-card {
  background-color: #ffffff;
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resource-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.resource-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.resource-card a {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

/* Footer */
footer {
  background-color: var(--color-light);
  color: var(--color-dark);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
}

footer .citations {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #555555;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .mission p {
    font-size: 0.9rem;
  }
}