/* Silvercrest site header + mobile menu (menus redesign 2026-10-11).
   Shared by every page in site/. Markup lives in each page's <header class="site-header">,
   behaviour in /assets/js/nav.js. The header box keeps a fixed 80px height in every state,
   so the scroll state never shifts the page. */

.site-header, .sh-mobile {
  --sh-green: #1b4d3e;
  --sh-green-deep: #12362c;
  --sh-ink: #0f2a23;
  --sh-gold: #b8925a;
  --sh-gold-deep: #8a6a3a;
  --sh-cream: #faf7f0;
  --sh-text: #3d4644;
  --sh-ease: cubic-bezier(0.32, 0.72, 0, 1);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 80px;
  background: transparent; border: 0; box-shadow: none;
}

.sh-bar {
  position: relative; height: 80px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(184, 146, 90, 0.28);
  transition: height .6s var(--sh-ease), background-color .6s var(--sh-ease), box-shadow .6s var(--sh-ease), border-color .6s var(--sh-ease);
}
.site-header.is-scrolled .sh-bar {
  height: 66px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom-color: rgba(18, 54, 44, 0.08);
  box-shadow: 0 18px 40px -24px rgba(18, 54, 44, 0.45);
}
/* Thin gold rule that draws in once the page scrolls. */
.sh-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sh-gold) 20%, var(--sh-gold) 80%, transparent);
  transform: scaleX(0); transform-origin: center; opacity: 0;
  transition: transform .9s var(--sh-ease), opacity .6s var(--sh-ease);
}
.site-header.is-scrolled .sh-bar::after { transform: scaleX(1); opacity: .55; }

.sh-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px;
}
.site-header .brand { flex: none; display: block; border-radius: 8px; line-height: 0; }
.site-header .brand-logo { height: 46px; width: auto; display: block; transition: height .6s var(--sh-ease); }
.site-header.is-scrolled .brand-logo { height: 40px; }

.site-header a:focus-visible, .site-header button:focus-visible, .sh-mobile a:focus-visible, .sh-mobile button:focus-visible {
  outline: 2px solid var(--sh-gold); outline-offset: 3px;
}

/* ---------- desktop nav ---------- */
.sh-nav { flex: 1; display: flex; justify-content: center; }
.sh-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.sh-link, .sh-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font: 500 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .005em;
  color: var(--sh-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .3s var(--sh-ease), background-color .3s var(--sh-ease);
}
.sh-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px;
  background: var(--sh-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--sh-ease);
}
.sh-link:hover, .sh-trigger:hover, .sh-item.open > .sh-trigger { color: var(--sh-green-deep); background: rgba(27, 77, 62, 0.05); }
.sh-link:hover::after, .sh-link[aria-current="page"]::after { transform: scaleX(1); }
.sh-link[aria-current="page"], .sh-trigger.is-current { color: var(--sh-green-deep); font-weight: 600; }
.sh-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .65; transition: transform .5s var(--sh-ease); }
.sh-item.open > .sh-trigger .sh-caret { transform: rotate(180deg); }

/* Mega panel: full-width editorial sheet under the bar. */
.sh-item { position: static; }
.sh-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 10px 20px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .45s var(--sh-ease), transform .55s var(--sh-ease), visibility 0s linear .55s;
  z-index: 60;
}
.sh-item.open > .sh-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sh-panel-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr 0.95fr; gap: 10px;
  padding: 10px; border-radius: 26px;
  background: var(--sh-cream);
  box-shadow: 0 0 0 1px rgba(184, 146, 90, 0.22), 0 40px 80px -40px rgba(18, 54, 44, 0.5), inset 0 1px 0 #fff;
}
.sh-panel-intro { padding: 22px 22px 18px; display: flex; flex-direction: column; }
.sh-eyebrow {
  display: inline-block; width: max-content; margin: 0 0 14px; padding: 5px 10px; border-radius: 999px;
  font: 700 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sh-gold-deep); background: rgba(184, 146, 90, 0.12); box-shadow: inset 0 0 0 1px rgba(184, 146, 90, 0.3);
}
.sh-panel-title { margin: 0 0 10px; font: 700 23px/1.2 Georgia, "Times New Roman", serif; color: var(--sh-green-deep); }
.sh-panel-text { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #5a6361; }
.sh-textlink { margin-top: auto; font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--sh-green); text-decoration: none; }
.sh-textlink span { display: inline-block; transition: transform .5s var(--sh-ease); }
.sh-textlink:hover span { transform: translateX(4px); }

.sh-links {
  list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(18, 54, 44, 0.06);
}
.sh-links a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; transition: background-color .3s var(--sh-ease); }
.sh-links a:hover { background: var(--sh-cream); }
.sh-links strong { display: block; font: 600 14.5px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--sh-green-deep); }
.sh-links small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: #66706d; }
.sh-ico {
  flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(27, 77, 62, 0.06); color: var(--sh-green); box-shadow: inset 0 0 0 1px rgba(27, 77, 62, 0.08);
  transition: background-color .3s var(--sh-ease), color .3s var(--sh-ease);
}
.sh-links a:hover .sh-ico { background: var(--sh-green); color: #fff; }
.sh-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.sh-feature { position: relative; display: flex; align-items: flex-end; min-height: 250px; overflow: hidden; border-radius: 18px; background: var(--sh-ink); text-decoration: none; }
.sh-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform 1.2s var(--sh-ease); }
.sh-feature:hover img { transform: scale(1.04); }
.sh-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 42, 35, 0.96) 15%, rgba(15, 42, 35, 0.5) 60%, rgba(15, 42, 35, 0.1)); z-index: 1; }
.sh-feature-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 20px; color: #fff; }
.sh-chip { width: max-content; padding: 5px 10px; border-radius: 999px; font: 700 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .2em; text-transform: uppercase; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.sh-feature-title { font: 700 19px/1.25 Georgia, "Times New Roman", serif; }
.sh-feature-go { font: 600 13.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #e7cf9f; }

/* ---------- actions ---------- */
.sh-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.sh-phone { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 5px; border-radius: 999px; text-decoration: none; color: var(--sh-green-deep); transition: background-color .3s var(--sh-ease); }
.sh-phone:hover { background: rgba(27, 77, 62, 0.05); }
.sh-phone-ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(184, 146, 90, 0.14); color: var(--sh-gold-deep); box-shadow: inset 0 0 0 1px rgba(184, 146, 90, 0.3); }
.sh-phone-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.sh-phone-num { font: 600 14.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }

.sh-login { position: relative; }
.sh-login-btn { font-weight: 600; color: var(--sh-green-deep); }
.sh-panel-sm { left: auto; right: -8px; width: 290px; padding: 10px 0 0; }
.sh-mini { padding: 6px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(184, 146, 90, 0.25), 0 30px 60px -30px rgba(18, 54, 44, 0.5); }
.sh-mini a { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: background-color .3s var(--sh-ease); }
.sh-mini a:hover { background: var(--sh-cream); }
.sh-mini strong { display: block; font: 600 14.5px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--sh-green-deep); }
.sh-mini small { display: block; margin-top: 2px; font-size: 12.5px; color: #66706d; }

.sh-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; padding: 0 6px 0 20px; border-radius: 999px;
  background: var(--sh-green); color: #fff; text-decoration: none;
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(18, 54, 44, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: background-color .4s var(--sh-ease), transform .4s var(--sh-ease);
}
.sh-cta:hover { background: var(--sh-green-deep); }
.sh-cta:active { transform: scale(.98); }
.sh-cta-ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sh-gold); color: #fff; transition: transform .5s var(--sh-ease); }
.sh-cta:hover .sh-cta-ico { transform: translate(2px, -1px) scale(1.05); }
.sh-cta-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sh-burger { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sh-green-deep); cursor: pointer; }
.sh-burger span { position: absolute; left: 14px; width: 18px; height: 1.5px; border-radius: 2px; background: #fff; transition: transform .5s var(--sh-ease); }
.sh-burger span:first-child { top: 19px; }
.sh-burger span:last-child { top: 26px; }
.sh-burger:hover span:first-child { transform: translateY(-1px); }
.sh-burger:hover span:last-child { transform: translateY(1px); }

/* ---------- mobile sheet ---------- */
.sh-mobile {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(184, 146, 90, 0.22), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(47, 125, 99, 0.35), transparent 65%),
    #0f2a23;
  color: #fff;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .5s var(--sh-ease), transform .6s var(--sh-ease);
}
.sh-mobile[hidden] { display: none; }
.sh-mobile.is-open { opacity: 1; transform: none; }
.sh-m-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: env(safe-area-inset-top) 20px 0; }
.sh-m-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.sh-m-brand img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 2px; }
.sh-m-brand span { font: 700 19px/1 Georgia, "Times New Roman", serif; letter-spacing: .04em; }
.sh-m-brand small { display: block; margin-top: 4px; font: 600 9.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .38em; text-transform: uppercase; color: #e1c896; }
.sh-m-close { position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); cursor: pointer; }
.sh-m-close span { position: absolute; left: 14px; top: 22px; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; }
.sh-m-close span:first-child { transform: rotate(45deg); }
.sh-m-close span:last-child { transform: rotate(-45deg); }

.sh-m-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px 24px; }
.sh-m-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(225, 200, 150, 0.16); }
.sh-m-row {
  border-bottom: 1px solid rgba(225, 200, 150, 0.16);
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--sh-ease), transform .7s var(--sh-ease);
}
.sh-mobile.is-open .sh-m-row { opacity: 1; transform: none; }
.sh-m-link {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 0;
  border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none;
  font: 400 31px/1.05 Georgia, "Times New Roman", serif; color: #fff; letter-spacing: -.005em;
}
.sh-m-link[aria-current="page"] { color: #e7cf9f; }
.sh-m-num { flex: none; width: 22px; font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .14em; color: rgba(225, 200, 150, 0.7); }
.sh-m-plus { position: relative; margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: transform .5s var(--sh-ease), background-color .3s; }
.sh-m-plus::before, .sh-m-plus::after { content: ""; position: absolute; left: 14px; top: 21px; width: 16px; height: 1.5px; background: #fff; border-radius: 2px; }
.sh-m-plus::after { transform: rotate(90deg); }
.sh-m-acc[aria-expanded="true"] .sh-m-plus { transform: rotate(45deg); background: rgba(255, 255, 255, 0.08); }
.sh-m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--sh-ease); }
.sh-m-sub > ul { overflow: hidden; list-style: none; margin: 0; padding: 0 0 0 36px; visibility: hidden; transition: visibility 0s linear .55s; }
.sh-m-acc[aria-expanded="true"] + .sh-m-sub { grid-template-rows: 1fr; }
.sh-m-acc[aria-expanded="true"] + .sh-m-sub > ul { visibility: visible; transition-delay: 0s; padding-bottom: 12px; }
.sh-m-sub a { display: flex; align-items: center; min-height: 48px; font: 500 16.5px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.sh-m-sub a:hover, .sh-m-sub a[aria-current="page"] { color: #e7cf9f; }

.sh-m-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; border: 0; }
.sh-m-logins a {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 72px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font: 600 15.5px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff; text-decoration: none;
}
.sh-m-logins small { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(225, 200, 150, 0.8); }

.sh-m-foot {
  flex: none; padding: 16px 22px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(225, 200, 150, 0.16); background: rgba(15, 42, 35, 0.92);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--sh-ease) .25s, transform .7s var(--sh-ease) .25s;
}
.sh-mobile.is-open .sh-m-foot { opacity: 1; transform: none; }
.sh-cta-lg { display: flex; width: 100%; height: 56px; padding-left: 24px; font-size: 16px; background: var(--sh-gold); color: #1a1408; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.sh-cta-lg:hover { background: #c9a36b; }
.sh-cta-lg .sh-cta-ico { width: 42px; height: 42px; background: var(--sh-green-deep); }
.sh-m-call { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff; text-decoration: none; }

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

/* ---------- breakpoints ---------- */
@media (max-width: 1240px) {
  .sh-phone-num { display: none; }
  .sh-phone { padding: 0 5px; }
  .sh-link, .sh-trigger { padding: 0 11px; }
}
@media (max-width: 1120px) {
  .sh-nav, .sh-login { display: none; }
  .sh-burger { display: block; }
  .sh-inner { padding: 0 20px; }
}
@media (max-width: 560px) {
  .sh-inner { padding: 0 14px; gap: 10px; }
  .site-header .brand-logo { height: 36px; }
  .site-header.is-scrolled .brand-logo { height: 34px; }
  .sh-actions > .sh-cta { display: none; }
  .sh-phone { width: 46px; height: 46px; justify-content: center; padding: 0; box-shadow: inset 0 0 0 1px rgba(27, 77, 62, 0.14); }
  .sh-phone-ico { background: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .sh-mobile, .sh-mobile * { transition-duration: 0s !important; transition-delay: 0s !important; }
}
