/* Basic styling for The Next Step Recovery site */

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Utility container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .logo a {
  font-size: 1.25rem;
  font-weight: bold;
  color: #005eb8;
  text-decoration: none;
}

.navbar nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.navbar nav a:hover {
  color: #005eb8;
}

/* Hamburger menu styles */
/* Hamburger button (only visible on pages that opt-in with the has-hamburger class) */
.navbar.has-hamburger .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.navbar.has-hamburger .hamburger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  /* Hide nav links by default on small screens */
  .navbar.has-hamburger nav {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 9;
  }
  /* Show nav when active class is toggled */
  .navbar.has-hamburger nav.active {
    display: flex;
  }
  /* Stack nav links vertically */
  .navbar.has-hamburger nav a {
    margin: 0.5rem 1rem;
    display: block;
  }
  /* Show hamburger icon */
  .navbar.has-hamburger .hamburger {
    display: flex;
  }
}

/* Hero section */
.hero {
  /* Use a blue gradient for the hero background. Images are optional and can
     be added to site/images/hero.jpg if desired. */
  background: linear-gradient(to bottom, rgba(0,94,184,0.8), rgba(0,94,184,0.4));
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

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

.hero-inner p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn, .btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s, color 0.2s;
}

.btn {
  background-color: #005eb8;
  color: #fff;
}

.btn:hover {
  background-color: #004c94;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: #005eb8;
}

/* Mission section */
.mission {
  padding: 2rem 0;
  text-align: center;
}

.mission h2 {
  color: #005eb8;
  margin-bottom: 1rem;
}

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.feature {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: #005eb8;
}

/* Bottom image */
.bottom-image {
  padding: 2rem 0;
  text-align: center;
}

.bottom-image img {
  width: 60%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
  background-color: #f1f1f1;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #e5e5e5;
}

.footer a {
  color: #005eb8;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}