header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 53, 31, .12);
  box-shadow: 0 2px 18px rgba(20, 53, 31, .06);
}

header nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--pine);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--pine);
  color: #fff;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 19px;
  line-height: 1;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: rgba(20, 53, 31, .62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f2015;
  font-size: 16px;
  font-weight: 800;
}

.nav-links > a,
.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 7px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.nav-links > a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  color: var(--pine);
  background: rgba(20, 53, 31, .06);
  border-radius: 6px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-chevron {
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  transition: transform .2s;
  font-size: 10px;
  line-height: 1;
}

.nav-chevron::before {
  content: "\25BC";
}

.nav-dropdown[open] .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(20,53,31,.12);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(10,30,18,.2);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  inset: -11px 0 auto;
  height: 12px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--pine);
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}

.dropdown-menu a:hover {
  color: var(--pine);
  background: var(--cream);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
  padding-left: 4px;
  border-left: 0;
}

.nav-actions .btn {
  min-height: 42px;
  padding: 11px 22px;
  border-radius: 7px;
  background: #2f6f50;
  color: #fff;
  box-shadow: none;
  white-space: nowrap;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pine);
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
}

.nav-phone:hover {
  color: #2f6f50;
}

.nav-phone::before {
  content: "\260E";
  font-size: 22px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(20, 53, 31, .18);
  border-radius: 8px;
  background: transparent;
  color: var(--pine);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 72px);
    padding: 12px 20px 24px;
    overflow-y: auto;
    background: rgba(255,255,255,.99);
    border-bottom: 1px solid rgba(20, 53, 31, .12);
    box-shadow: 0 18px 44px rgba(10,30,18,.16);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a,
  .nav-dropdown summary {
    width: 100%;
    min-height: 48px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(20, 53, 31, .08);
  }

  .nav-links > a:hover,
  .nav-dropdown summary:hover,
  .nav-dropdown[open] summary {
    background: transparent;
    border-radius: 0;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 4px 0 10px 14px;
    background: rgba(20, 53, 31, .04);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu a {
    padding: 11px 12px;
    color: rgba(20, 53, 31, .76);
    border-bottom: 1px solid rgba(20, 53, 31, .06);
  }

  .dropdown-menu a:hover {
    color: var(--pine);
    background: rgba(20, 53, 31, .06);
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 14px 0 0;
    padding: 4px 0 0;
    border-left: 0;
  }

  .nav-actions .btn {
    text-align: center;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 640px) {
  header nav {
    height: 66px;
  }

  .nav-links {
    inset-block-start: 66px;
    max-height: calc(100vh - 66px);
  }

  .brand span {
    display: none;
  }
}
