/* Shared responsive layer for the public site header/nav.
   Page content itself uses fluid grid/clamp values inline, so this file only
   needs to handle the one thing inline styles can't: the mobile nav toggle. */

.navlink.active { color: #2f6b3c; }
.navlink.active:after { right: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.brand-text {
  line-height: 1.05;
  min-width: 0;
}

.brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: .05em;
  color: #2f6b3c;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 12px;
  color: #5c6159;
  margin-top: 3px;
  letter-spacing: .01em;
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  color: #3a4138;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  color: #2f6b3c;
  cursor: pointer;
  flex: none;
}

@media (max-width: 920px) {
  .brand-tagline { display: none; }
}

@media (max-width: 780px) {
  .brand-logo { width: 46px; height: 46px; }
  .brand-name { font-size: 17px; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 12px 24px rgba(20, 40, 24, .12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }

  .site-header-right.is-open { display: flex; }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    white-space: normal;
  }

  .main-nav a {
    padding: 14px clamp(16px, 4vw, 32px);
    border-top: 1px solid #f1f1ec;
  }

  .navlink:after { display: none; }

  .btn-login {
    margin: 12px clamp(16px, 4vw, 32px) 0;
    justify-content: center;
  }
}
