/* MODERN HEADER */

.hcr-modern-header {
  position: relative;
  z-index: 1000;
}

.hcr-masthead {
  background: #f3eee4;
  border-bottom: 1px solid rgba(75, 58, 40, 0.12);
}

.hcr-masthead-inner {
  min-height: 100px;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  position: relative;
  padding-left: clamp(2rem, 5vw, 5rem);
  padding-right: clamp(2rem, 5vw, 5rem);
}

.hcr-masthead-logo {
  justify-self: start;
  display: flex;
  align-items: center;
}

.hcr-masthead-logo img {
  width: 105px;
  height: 82px;
  object-fit: contain;
}

.hcr-masthead-center {
  justify-self: center;
  text-align: center;
}

.hcr-masthead-name {
  font-family: Georgia, "Times New Roman", serif;
  color: #40352c;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hcr-masthead-name:hover {
  color: #40352c;
}

.hcr-masthead-subline {
  margin-top: 0.15rem;
  color: #7a6c5d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.hcr-masthead-subline::before,
.hcr-masthead-subline::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #b79a62;
}

.hcr-masthead-utility {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.hcr-masthead-utility a {
  color: #62564b;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.hcr-masthead-utility i {
  margin-right: 0.35rem;
}

.hcr-member-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hcr-menu-bar {
  background: #d8c8aa;
}

.hcr-modern-nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.25rem);
}

.hcr-modern-nav .nav-link {
  padding: 0.9rem 0;
  color: #40382f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.hcr-modern-nav .nav-link:hover,
.hcr-modern-nav .nav-link.active {
  color: #163047;
}

.hcr-modern-nav .nav-link.active {
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 3px solid #163047;
}

.hcr-modern-toggler {
  display: none;
}

.hcr-menu-icon {
  width: 26px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hcr-menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #40352c;
}

@media (min-width: 992px) {
  .hcr-menu-bar .navbar-collapse {
    display: flex !important;
  }
}

@media (max-width: 991.98px) {
  .hcr-modern-toggler {
    display: block;
    margin-left: auto;
    border: 0;
    padding: 0.75rem 1.25rem;
    box-shadow: none !important;
  }

  .hcr-modern-toggler:focus {
    box-shadow: none !important;
  }

  .hcr-menu-bar .container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hcr-modern-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .hcr-modern-nav .nav-link {
    padding: 0.65rem 1.5rem;
    border-bottom: 1px solid rgba(64, 56, 47, 0.12);
  }

  .hcr-modern-nav .nav-link.active {
    border-bottom: 1px solid rgba(64, 56, 47, 0.12);
    border-left: 3px solid #163047;
  }
}

@media (max-width: 575.98px) {
  .hcr-masthead-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 1rem 0.9rem;
    gap: 0.25rem;
  }

  .hcr-masthead-logo {
    justify-content: center;
  }

  .hcr-masthead-logo img {
    width: 78px;
    height: 66px;
  }

  .hcr-masthead-center {
    width: 100%;
    text-align: center;
  }

  .hcr-masthead-name {
    display: block;
    font-size: 1.15rem;
    letter-spacing: 0.09em;
    white-space: normal;
  }

  .hcr-masthead-subline {
    margin-top: 0.25rem;
    font-size: 0.62rem;
    white-space: normal;
  }

  .hcr-masthead-subline::before,
  .hcr-masthead-subline::after {
    width: 18px;
  }

  .hcr-masthead-utility {
    display: none;
  }

  .hcr-modern-nav {
    width: 100%;
    align-items: center;
  }

  .hcr-modern-nav .nav-item {
    width: 100%;
    text-align: center;
  }

  .hcr-modern-nav .nav-link {
    width: 80%;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    border-left: 0;
  }

  .hcr-modern-nav .nav-link.active {
    border-left: 0;
    border-bottom: 2px solid #163047;
    width: fit-content;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ============================================================
   MODERN HEADER ACTIVE NAV STATE
   Override legacy Bootstrap/old-header .active colors so the
   modern menu keeps its dark green text with the active underline.
   ============================================================ */
.hcr-modern-header .hcr-modern-nav .nav-link.active,
.hcr-modern-header .hcr-modern-nav .nav-link[aria-current="page"] {
  color: #29422f !important;
}
