/* Linkhome — shared site header (all pages) */
.site-header{
  --sh-bg:#fff; --sh-ink:#2E2C4F; --sh-muted:#5F5C78; --sh-line:#E4E2EC; --sh-accent:#E8573A; --sh-mint:#EEF8F7;
  position:sticky; top:0; z-index:100; background:var(--sh-bg); border-bottom:1px solid var(--sh-line);
  padding:0; margin:0; font-family:var(--font-sans);
}
.site-header.on-mint{--sh-bg:#EEF8F7; --sh-line:#D6ECEA}
.site-header *{box-sizing:border-box}
.sh-bar{display:flex; align-items:center; gap:clamp(16px,3vw,44px); width:100%; min-height:72px; padding:0 clamp(16px,2.5vw,40px)}

/* logo */
.site-header .logo{display:inline-flex; align-items:center; gap:.38em; flex:none; font-family:var(--font-display); font-weight:600;
  font-size:clamp(20px,1.1rem + .5vw,26px); line-height:1; color:var(--sh-ink); text-decoration:none; white-space:nowrap}
.site-header .logo-mark{height:1.15em; width:auto; display:block; flex:none}
.site-header .logo:hover{color:var(--sh-ink)}
.site-header .logo:hover .logo-mark{color:var(--sh-accent)}

/* nav (desktop) */
.sh-nav{flex:1; display:flex; align-items:center; justify-content:space-between; gap:24px; min-width:0}
.sh-menu,.sh-dd-panel{list-style:none; margin:0; padding:0}
.sh-menu{display:flex; align-items:center; gap:clamp(8px,1.6vw,28px)}
.sh-menu > li{position:relative}
.sh-link,.sh-dd-btn{display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 4px; font:inherit; font-size:14px; font-weight:500; letter-spacing:.25px;
  color:var(--sh-ink); text-decoration:none; background:none; border:0; cursor:pointer; white-space:nowrap; border-bottom:2px solid transparent}
.sh-link:hover,.sh-dd-btn:hover{color:var(--sh-accent)}
.sh-link[aria-current=page],.sh-dd-btn.is-current{border-bottom-color:var(--sh-ink); font-weight:600}
.sh-chev{width:12px; height:12px; transition:transform .15s}
.sh-dd-btn[aria-expanded=true] .sh-chev{transform:rotate(180deg)}

.sh-dd-panel{position:absolute; top:calc(100% + 10px); left:-16px; min-width:300px; background:#fff; border:1px solid var(--sh-line);
  border-radius:10px; box-shadow:0 14px 34px rgba(46,44,79,.14); padding:8px; display:none}
.sh-dd-panel.open{display:block}
.sh-dd-panel a{display:flex; gap:12px; align-items:flex-start; padding:12px; border-radius:8px; text-decoration:none; color:var(--sh-ink)}
.sh-dd-panel a:hover,.sh-dd-panel a[aria-current=page]{background:var(--sh-mint); color:var(--sh-ink)}
.sh-dd-num{flex:none; width:44px; height:44px; border-radius:50%; background:#2E2C4F; color:#7FD6E2; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:14px; letter-spacing:-.02em}
.sh-dd-panel b{display:block; font-size:15px; font-weight:600}
.sh-dd-panel small{display:block; font-size:13px; color:var(--sh-muted); margin-top:2px}

.sh-actions{display:flex; align-items:center; gap:clamp(10px,1.4vw,22px); flex:none}
.sh-phone{display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--sh-ink); text-decoration:none; font-size:14px; font-weight:500; white-space:nowrap}
.sh-login,.sh-action-link{display:inline-flex; align-items:center; min-height:44px; color:var(--sh-ink); text-decoration:none; font-size:14px; font-weight:500; white-space:nowrap;
  background:none; border:0; font-family:inherit; cursor:pointer; padding:0}
.sh-login:hover,.sh-phone:hover,.sh-action-link:hover{color:var(--sh-accent)}
.sh-action-link[aria-current=page]{font-weight:700}
.sh-actions form{display:inline; margin:0}
.sh-cta{display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 22px; border-radius:6px; background:var(--sh-accent);
  color:#fff !important; text-decoration:none; font-size:14px; font-weight:700; letter-spacing:.25px; white-space:nowrap; border:0}
.sh-cta:hover{filter:brightness(.94)}

/* menu toggle (mobile) */
.sh-toggle{display:none; margin-left:auto; align-items:center; gap:10px; min-height:44px; padding:0 14px; border:1px solid var(--sh-line);
  border-radius:999px; background:#fff; color:var(--sh-ink); font:inherit; font-size:15px; font-weight:600; cursor:pointer}
.sh-burger{position:relative; width:18px; height:2px; background:currentColor; border-radius:2px; transition:background .15s}
.sh-burger::before,.sh-burger::after{content:''; position:absolute; left:0; width:18px; height:2px; background:currentColor; border-radius:2px; transition:transform .2s}
.sh-burger::before{top:-6px}.sh-burger::after{top:6px}
.sh-toggle[aria-expanded=true] .sh-burger{background:transparent}
.sh-toggle[aria-expanded=true] .sh-burger::before{transform:translateY(6px) rotate(45deg)}
.sh-toggle[aria-expanded=true] .sh-burger::after{transform:translateY(-6px) rotate(-45deg)}

/* hide phone first when space gets tight */
@media (max-width:1180px){ .sh-actions .sh-phone{display:none} }

/* ---------- collapsed menu ---------- */
@media (max-width:960px){
  .sh-bar{min-height:64px}
  .js .sh-toggle{display:inline-flex}
  .js .sh-nav{display:none}
  .js .site-header.menu-open .sh-nav{display:flex}
  .sh-nav{position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0;
    background:#fff; border-bottom:1px solid var(--sh-line); box-shadow:0 18px 30px rgba(46,44,79,.12);
    max-height:calc(100vh - 64px); overflow-y:auto; padding:8px clamp(16px,2.5vw,40px) 20px}
  .sh-menu{flex-direction:column; align-items:stretch; gap:0}
  .sh-menu > li{border-bottom:1px solid var(--sh-line)}
  .sh-link,.sh-dd-btn{width:100%; justify-content:space-between; min-height:54px; font-size:17px; border-bottom:0}
  .sh-link[aria-current=page],.sh-dd-btn.is-current{color:var(--sh-accent)}
  .sh-dd-panel{position:static; box-shadow:none; border:0; min-width:0; padding:0 0 10px; border-radius:0}
  .sh-dd-panel a{padding:10px 4px}
  .sh-actions{flex-direction:column; align-items:stretch; gap:10px; padding-top:18px}
  .sh-actions .sh-phone{display:inline-flex; justify-content:center; font-size:16px}
  .sh-login,.sh-action-link{justify-content:center; min-height:48px; border:1px solid var(--sh-ink); border-radius:6px; font-weight:600}
  .sh-actions form .sh-action-link{width:100%}
  .sh-cta{min-height:50px; font-size:16px}
}
/* no-JS fallback: menu stays visible and stacks */
@media (max-width:960px){
  html:not(.js) .sh-bar{flex-wrap:wrap; padding-bottom:12px}
  html:not(.js) .sh-nav{position:static; box-shadow:none; border:0; padding:0; flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){ .sh-burger,.sh-burger::before,.sh-burger::after,.sh-chev{transition:none} }
html{scroll-padding-top:88px}
