/* ---------- Full-screen navigation (desktop) ---------- */

/* Header buttons */
.fsnav-trigger {
  display: none;
  align-items: center;
  gap: 16px;
  margin: 26px 50px 0 auto;
  align-self: flex-start;
}

@media (min-width: 992px) {
  .fsnav-trigger { display: flex; }
  /* The old dropdown menu is replaced on desktop */
  #navbarSupportedContent { display: none !important; }
}

.fsnav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.fsnav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.fsnav-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.fsnav-btn-circle {
  width: 58px;
  padding: 0;
}

.fsnav-btn-pill {
  gap: 18px;
  padding: 0 30px 0 26px;
}

.fsnav-btn svg {
  display: block;
  flex: 0 0 auto;
}

/* Overlay */
.fsnav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #fff;
  background: linear-gradient(to bottom right, var(--color-1) 0%, #3d6b10 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fsnav[hidden] {
  display: none;
}

.fsnav.is-open {
  opacity: 1;
}

.fsnav-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 50px 0 50px;
}

.fsnav-logo img {
  display: block;
  width: 220px;
  height: auto;
  margin-top: 4px;
}

.fsnav-actions {
  display: flex;
  gap: 16px;
}

.fsnav-actions .fsnav-btn {
  background: transparent;
}

.fsnav-toggle {
  min-width: 190px;
}

.fsnav-actions .fsnav-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
}

.fsnav-panel {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 7vh 50px 50px;
}

.fsnav-panel[hidden] {
  display: none;
}

/* Burger icon: three lines that morph into an x */
.fsnav-burger {
  position: relative;
  display: block;
  width: 32px;
  height: 20px;
}

.fsnav-burger span {
  position: absolute;
  left: 0;
  height: 2.2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, width 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.fsnav-burger span:nth-child(1) { top: 1px;  width: 32px; }
.fsnav-burger span:nth-child(2) { top: 9px;  width: 24px; }
.fsnav-burger span:nth-child(3) { top: 17px; width: 16px; }

.fsnav-toggle.is-x .fsnav-burger span:nth-child(1) {
  top: 9px;
  width: 26px;
  left: 3px;
  transform: rotate(45deg);
}

.fsnav-toggle.is-x .fsnav-burger span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.fsnav-toggle.is-x .fsnav-burger span:nth-child(3) {
  top: 9px;
  width: 26px;
  left: 3px;
  transform: rotate(-45deg);
}

/* Menu panel: section names, each opens its links */
.fsnav-menu {
  max-width: 860px;
}

.fsnav-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.fsnav-section-title {
  margin: 0;
  font-size: inherit;
}

.fsnav-acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 4px;
  color: #fff;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.fsnav-acc:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Plus that turns into a minus */
.fsnav-plus {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: 24px;
}

.fsnav-plus::before,
.fsnav-plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.fsnav-plus::after {
  transform: rotate(90deg);
}

.fsnav-section.is-open .fsnav-plus::after {
  transform: rotate(0deg);
}

/* Slide open and closed by animating the row height */
.fsnav-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.fsnav-section.is-open .fsnav-sub {
  grid-template-rows: 1fr;
}

.fsnav-sub > ul {
  min-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0 4px;
}

.fsnav-sub li {
  margin: 0 0 14px;
}

.fsnav-sub li:first-child {
  margin-top: 2px;
}

.fsnav-sub li:last-child {
  margin-bottom: 26px;
}

.fsnav-sub a {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.35;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}

.fsnav-sub a:hover,
.fsnav-sub a:focus-visible,
.fsnav-sub a[aria-current="page"] {
  background-size: 100% 1.5px;
}

.fsnav-sub a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.fsnav.is-open .fsnav-section {
  animation: fsnavIn 0.4s ease both;
}

.fsnav.is-open .fsnav-section:nth-child(2) { animation-delay: 0.05s; }
.fsnav.is-open .fsnav-section:nth-child(3) { animation-delay: 0.1s; }
.fsnav.is-open .fsnav-section:nth-child(4) { animation-delay: 0.15s; }

@keyframes fsnavIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Label above the search field */
.fsnav-heading {
  display: block;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e6eedb;
}

.fsnav-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  max-width: 860px;
  margin-top: 40px;
  font-size: 1.05rem;
}

.fsnav-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid #fff;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.fsnav-contact a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.fsnav-contact a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Search panel */
.fsnav-search {
  max-width: 820px;
  margin: 0 auto;
}

.fsnav-search-field {
  position: relative;
}

.fsnav-search-field svg {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.fsnav-search input {
  width: 100%;
  padding: 14px 0 14px 50px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 2rem;
  outline: none;
}

.fsnav-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.fsnav-search input::placeholder {
  color: #d7e2c8;
}

.fsnav-search input:focus {
  border-bottom-color: #fff;
}

.fsnav-results {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.fsnav-results a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

.fsnav-results a:hover,
.fsnav-results a:focus-visible,
.fsnav-results a.is-active {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.fsnav-results .fsnav-r-icon {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.fsnav-results .fsnav-r-body {
  flex: 1;
  min-width: 0;
}

.fsnav-results .fsnav-r-title {
  display: block;
  font-size: 1.1rem;
}

.fsnav-results .fsnav-r-sub {
  display: block;
  font-size: 0.9rem;
  color: #e6eedb;
}

.fsnav-results mark {
  padding: 0;
  color: inherit;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fsnav-status {
  margin-top: 24px;
  color: #e6eedb;
}

html.fsnav-locked {
  scrollbar-gutter: stable;
}

html.fsnav-locked,
html.fsnav-locked body {
  overflow: hidden;
}

@media (max-width: 991px) {
  .fsnav-top { padding: 18px 20px 0; }
  .fsnav-panel { padding: 40px 20px; }
  .fsnav-acc { font-size: 1.6rem; }
  .fsnav-search input { font-size: 1.4rem; }
}
