:root {
    --dark-green: #101b05;
    --light-green: #f5fcf0;
    --accent-green: #378056;
    --mid-green: #5d825a;
    --teal: #37807A;
}
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--light-green);
    color: var(--dark-green);
}

main {
    flex: 1;
}

header {
    background: var(--light-green);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 1000;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-logo img {
    width: 3rem;
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    white-space: nowrap; 
    margin-left: auto;
}

.desktop-menu li a {
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 600;
    transition: color 0.3s ease;
}

.desktop-menu li a:hover {
    color: var(--accent-green);
}

.hamburger {
    display: none; /* hidden on desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
        margin-left: auto;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 3px;
    transition: 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    animation: menuSlide 0.25s ease-out;
    margin-top: 0.5rem; /* space below top row */
}

@keyframes menuSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu li {
    list-style: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu li a {
    text-align: center;
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green);
    text-decoration: none;
    width: 100%;
    transition: background 0.25s ease, color 0.25s ease;
}

.mobile-menu li a:hover {
    background: #f0f6f1;
    color: var(--accent-green);
}

@media (max-width: 900px) {

    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        text-align: center;
    }
    header .container {
        flex-wrap: wrap; /* only wrap on mobile */
    }
}

@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}

.footer {
    background-color: var(--dark-green);
    color: var(--light-green);
    padding: 3rem 2rem 1rem;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: var(--light-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--light-green);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-green);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    color: var(--light-green);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.social-icons a:hover .fa-facebook-f { color: #4f77c3; }
.social-icons a:hover .fa-instagram { color: #fb67a9; }
.social-icons a:hover .fa-x-twitter { color: #68d7ff; }
.social-icons a:hover .fa-linkedin-in { color: #146bb6; }

.newsletter {
    display: flex;
    border: 1px solid var(--mid-green);
    border-radius: 30px;
    overflow: hidden;
}

.newsletter input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--light-green);
}

.newsletter input::placeholder {
    color: #cbd5c7;
}

.newsletter button {
    background: var(--accent-green);
    color: var(--light-green);
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: var(--mid-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #cbd5c7;
}

@media (max-width: 768px) {
    .footer-container {
        text-align: center;
        justify-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter {
        max-width: 320px;
        margin: 0 auto;
    }

    .newsletter input {
        width: 65%;
    }

    .newsletter button {
        width: 35%;
    }
}

.news-link {
    text-decoration: none;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #f5fcf0;
    font-size: 0.95rem;
    margin: 1rem auto;
    max-width: 90%;
}

.breadcrumb a {
    color: var(--dark-green, #2f4f2f);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.35rem;
}

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

.breadcrumb span.separator {
    color: #9aa3a0;
    font-size: 1rem;
    padding: 0 0.2rem;
}

.breadcrumb .current {
    color: #6e7a74;
    font-weight: 600;
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 1rem;
        gap: 0.4rem;
        padding: 0.85rem 1rem;
        line-height: 1.35;
    }
}

/* ===============================
   HEADER SEARCH (FINAL)
================================ */

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Search pill */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5fcf0;
  border-radius: 999px;
  height: 44px;
  width: 44px;
  overflow: hidden;
  transition: width 0.35s ease, box-shadow 0.25s ease;
}

/* Expanded state */
.header-search.active {
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Magnifying glass */
.search-toggle {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  font-size: 1rem;
  color: #234f32;
  cursor: pointer;
  z-index: 2;
}

/* Input */
#siteSearch {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 1rem 0 2.4rem; /* space for icon */
  font-size: 0.95rem;
  color: #101b05;
  outline: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header-search.active #siteSearch {
  opacity: 1;
}

/* RESULTS DROPDOWN */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  max-height: 280px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.search-results.show {
  display: block;
}

.search-result {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #234f32;
  font-size: 0.9rem;
}

.search-result:hover {
  background: #f3faef;
}

.result-type {
  font-size: 0.75rem;
  color: #5d825a;
}

@media (max-width: 768px) {

  header {
    position: relative;
    z-index: 1000;
  }

  .header-search {
    position: relative;
    top: 100%;
    left: 0;
    width: 100%;
    background: #e8f1e8;
    overflow: visible;
    max-height: 300px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
    border-radius: 0;
    z-index: 9999;
  }

  .header-search.active {
    max-height: 90px;
    padding: 1rem;
  }

  .header-search input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 30px;
    border: 1px solid #cdd9cc;
  }

}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 2000;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #101b05;
  border-bottom: 1px solid #eee;
}

.search-result-item:hover {
  background: #f4f7f4;
}

.search-result-item span {
  display: block;
  font-size: 0.8rem;
  color: #5d825a;
}

.search-no-result {
  padding: 12px 16px;
  color: #888;
}
