/* Production House Site Tools v3 */

/* SITE HEADER AND FOOTER */
body.phst-chrome {
  overflow-x: hidden;
}

body.phst-chrome .wp-site-blocks > header.wp-block-template-part,
body.phst-chrome .wp-site-blocks > footer.wp-block-template-part {
  display: none !important;
}

.phx-site-header,
.phx-site-footer,
.phx-site-header *,
.phx-site-footer * {
  box-sizing: border-box;
}

.phx-site-header a,
.phx-site-footer a {
  color: inherit;
  text-decoration: none;
}

.phx-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  border-bottom: 1px solid rgba(29, 43, 13, 0.14);
  background: rgba(245, 244, 238, 0.96);
  color: #1d2b0d;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  backdrop-filter: blur(14px);
}

body.admin-bar .phx-site-header {
  top: 32px;
}

.phx-site-header__inner {
  display: grid;
  width: min(1240px, calc(100% - 56px));
  min-height: 88px;
  margin-inline: auto;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.phx-site-brand {
  display: inline-flex;
  width: fit-content;
  max-width: 240px;
  align-items: center;
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1;
}

.phx-site-brand strong,
.phx-site-footer__brand strong {
  font-weight: 800;
}

.phx-site-brand__logo {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.phx-site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(21px, 2.4vw, 34px);
}

.phx-site-nav a {
  position: relative;
  padding: 34px 0 31px;
  color: #3f4738;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
}

.phx-site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: #365010;
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 160ms ease, transform 160ms ease;
}

.phx-site-nav a:hover::after,
.phx-site-nav a:focus-visible::after,
.phx-site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.phx-site-nav__dropdown {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
}

.phx-site-nav__dropdown > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phx-site-nav__chevron {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.phx-site-nav__dropdown:hover .phx-site-nav__chevron,
.phx-site-nav__dropdown:focus-within .phx-site-nav__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.phx-site-nav__submenu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 1001;
  display: grid;
  min-width: 215px;
  padding: 10px;
  border: 1px solid rgba(29, 43, 13, 0.14);
  border-radius: 6px;
  background: #f5f4ee;
  box-shadow: 0 18px 55px rgba(20, 27, 15, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 9px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.phx-site-nav__dropdown:hover .phx-site-nav__submenu,
.phx-site-nav__dropdown:focus-within .phx-site-nav__submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.phx-site-nav__submenu a {
  padding: 13px 14px;
  border-radius: 3px;
  color: #30372a;
  font-size: 0.83rem;
  line-height: 1.25;
}

.phx-site-nav__submenu a::after {
  display: none;
}

.phx-site-nav__submenu a:hover,
.phx-site-nav__submenu a:focus-visible,
.phx-site-nav__submenu a[aria-current="page"] {
  background: #dfe5d8;
  color: #365010;
}

.phx-site-header__cta {
  display: inline-flex;
  min-height: 46px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid #365010;
  border-radius: 4px;
  background: #365010;
  color: #ffffff !important;
  font-size: 0.79rem;
  font-weight: 780;
  letter-spacing: 0.015em;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.phx-site-header__cta:hover,
.phx-site-header__cta:focus-visible {
  border-color: #1d2b0d;
  background: #1d2b0d;
  transform: translateY(-1px);
}

.phx-mobile-menu {
  position: relative;
  display: none;
  justify-self: end;
}

.phx-mobile-menu summary {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 13px 11px;
  border: 1px solid rgba(29, 43, 13, 0.2);
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
  place-content: center;
  gap: 5px;
}

.phx-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.phx-mobile-menu summary span {
  display: block;
  width: 23px;
  height: 2px;
  background: #1d2b0d;
  transition: transform 160ms ease, opacity 160ms ease;
}

.phx-mobile-menu[open] summary span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.phx-mobile-menu[open] summary span:nth-child(2) {
  opacity: 0;
}

.phx-mobile-menu[open] summary span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.phx-mobile-menu > nav {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  width: min(340px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(29, 43, 13, 0.14);
  border-radius: 6px;
  background: #f5f4ee;
  box-shadow: 0 18px 55px rgba(20, 27, 15, 0.16);
}

.phx-mobile-menu > nav > a {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(29, 43, 13, 0.1);
  color: #30372a;
  font-size: 0.95rem;
  font-weight: 700;
}

.phx-mobile-menu > nav > a[aria-current="page"] {
  color: #365010;
}

.phx-mobile-menu__group {
  display: grid;
  padding: 12px;
  border-bottom: 1px solid rgba(29, 43, 13, 0.1);
  gap: 2px;
}

.phx-mobile-menu__group > span {
  padding: 2px 0 8px;
  color: #30372a;
  font-size: 0.95rem;
  font-weight: 700;
}

.phx-mobile-menu__group > a {
  padding: 9px 12px;
  border-left: 2px solid rgba(54, 80, 16, 0.2);
  color: #596151;
  font-size: 0.86rem;
  font-weight: 680;
}

.phx-mobile-menu__group > a:hover,
.phx-mobile-menu__group > a:focus-visible,
.phx-mobile-menu__group > a[aria-current="page"] {
  border-left-color: #365010;
  background: #dfe5d8;
  color: #365010;
}

.phx-mobile-menu > nav > a:last-child {
  border-bottom: 0;
}

.phx-mobile-menu > nav .phx-mobile-menu__cta {
  margin-top: 10px;
  border-radius: 4px;
  background: #365010;
  color: #ffffff;
  text-align: center;
}

.phx-site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 84px 0 24px;
  background: #1d2b0d;
  color: #ffffff;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.phx-site-footer__inner,
.phx-site-footer__bottom {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

.phx-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(160px, 0.45fr) minmax(220px, 0.65fr);
  gap: clamp(48px, 8vw, 110px);
  padding-bottom: 72px;
}

.phx-site-footer__lead {
  max-width: 590px;
}

.phx-site-footer__brand {
  display: inline-block;
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 1;
}

.phx-site-footer__lead p {
  max-width: 520px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.phx-site-footer__cta {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 760;
  transition: background 160ms ease, color 160ms ease;
}

.phx-site-footer__cta:hover,
.phx-site-footer__cta:focus-visible {
  background: #ffffff;
  color: #1d2b0d;
}

.phx-site-footer__column h2 {
  margin: 2px 0 24px;
  color: #dce8ca;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.phx-site-footer__column nav {
  display: grid;
  gap: 14px;
}

.phx-site-footer__column a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 160ms ease;
}

.phx-site-footer__column a:hover,
.phx-site-footer__column a:focus-visible {
  color: #ffffff;
}

.phx-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
}

.phx-site-footer__bottom a:hover,
.phx-site-footer__bottom a:focus-visible {
  color: #ffffff;
}

@media (max-width: 980px) {
  .phx-site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .phx-site-nav,
  .phx-site-header__cta {
    display: none;
  }

  .phx-mobile-menu {
    display: block;
  }

  .phx-site-footer__inner {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(150px, 0.55fr));
    gap: 44px;
  }
}

@media (max-width: 760px) {
  body.admin-bar .phx-site-header {
    top: 46px;
  }

  .phx-site-header__inner,
  .phx-site-footer__inner,
  .phx-site-footer__bottom {
    width: min(1240px, calc(100% - 36px));
  }

  .phx-site-header__inner {
    min-height: 76px;
  }

  .phx-site-brand__logo {
    height: 42px;
  }

  .phx-site-footer {
    padding-top: 66px;
  }

  .phx-site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 30px;
    padding-bottom: 54px;
  }

  .phx-site-footer__lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .phx-site-header__inner,
  .phx-site-footer__inner,
  .phx-site-footer__bottom {
    width: min(1240px, calc(100% - 28px));
  }

  .phx-site-footer__inner {
    grid-template-columns: 1fr;
  }

  .phx-site-footer__lead {
    grid-column: auto;
  }

  .phx-site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
