/* === Typography === */
body {
  font-family: 'Rubik', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

/* === Navbar === */
#mainNav {
  transition: background-color 0.3s, box-shadow 0.3s;
  background: transparent;
}

#mainNav.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNav .navbar-brand img {
  transition: filter 0.3s;
}

#mainNav:not(.scrolled) .navbar-brand img {
  filter: brightness(0) invert(1);
}

#mainNav:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

#mainNav:not(.scrolled) .nav-link:hover {
  color: #fff;
}

#mainNav .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

#mainNav:not(.scrolled) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

#mainNav:not(.scrolled) .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* === Hero === */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero .container {
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  font-size: 1.3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* === Sections === */
section {
  scroll-margin-top: 70px;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* === Cards === */
.card {
  border: none;
  border-radius: 0.5rem;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card-title i {
  font-size: 1.2rem;
}

/* === Brand colors (forest green for mountain community) === */
.btn-primary {
  background-color: #2c5f2d;
  border-color: #2c5f2d;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1e4620;
  border-color: #1e4620;
}

.btn-outline-primary {
  color: #2c5f2d;
  border-color: #2c5f2d;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #2c5f2d;
  border-color: #2c5f2d;
  color: #fff;
}

.text-primary {
  color: #2c5f2d !important;
}

/* === Footer === */
footer {
  scroll-margin-top: 70px;
}

footer .btn-outline-light:hover {
  color: #2c5f2d;
}

/* === Images === */
.img-fluid.shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* === Responsive === */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  #mainNav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  #mainNav .nav-link {
    color: #333 !important;
  }

  #mainNav .navbar-brand img {
    filter: none !important;
  }

  #mainNav .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
  }

  #mainNav .navbar-toggler-icon {
    filter: none !important;
  }
}

@media (max-width: 575.98px) {
  .hero {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
  }
}
