/* --- Havenbridge Custom Styles --- */

/* Brand Colors */
:root {
  --green-dark: #14532d;
  --green-light: #d1fae5;
  --blue-dark: #1e3a8a;
}

/* Reset some default spacing */
body, h1, h2, h3, h4, h5, h6, p, a, div, nav, header, footer, section {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header Styling */
header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(20,83,45,0.04);
}

.logo {
  color: var(--green-dark);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  position: relative;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.2s;
}

.desktop-nav a:hover {
  background: var(--green-light);
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  font-size: 2rem;
  color: var(--green-dark);
  background: #fff;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(20,83,45,0.07);
  cursor: pointer;
  z-index: 100;
  transition: background 0.2s;
}
.hamburger-btn:hover,
.hamburger-btn:focus {
  background: var(--green-light);
  outline: none;
}

/* Mobile Menu */
.menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 1.5rem;
  background: #fff;
  box-shadow: 0 8px 32px rgba(20,83,45,0.08);
  border-radius: 0.5rem;
  min-width: 180px;
  padding: 1rem 0.5rem;
  z-index: 99;
  transition: opacity 0.2s, transform 0.2s;
}
.menu a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.2s;
}
.menu a:hover {
  background: var(--green-light);
}

/* Hide menu by default, show with JS */
.menu.hidden {
  display: none;
}

/* Responsive: Show hamburger, hide desktop nav on mobile */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
}

/* Responsive: Adjust header/nav spacing on mobile */
@media (max-width: 600px) {
  .navbar {
    padding: 0.6rem 0.8rem;
  }
  .menu {
    right: 0.5rem;
    top: 60px;
    min-width: 140px;
  }
}

/* Hero Section */
section.relative {
  margin-top: 70px; /* push down to avoid header overlap */
}
@media (max-width: 992px) {
  section.relative {
    margin-top: 60px;
  }
}

/* Footer */
footer {
  background: var(--green-dark);
  color: #fff;
}
footer nav a {
  color: #fff;
  opacity: 0.9;
  font-weight: 500;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: text-decoration 0.2s, color 0.2s;
}
footer nav a:hover {
  text-decoration: underline;
  color: var(--green-light);
}
footer p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Small animation for mobile menu */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}
.menu:not(.hidden) {
  animation: fade-in 0.22s ease;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: none;}
}
.animate-fade-in-up {
  animation: fade-in-up 1s cubic-bezier(0.33,1,0.68,1) 0.1s both;
}