/* Second Cure v5 header, mobile menu and footer, scoped so it can sit on pages
   that still use their own page styles (desktop.css / motion.css / inline CSS).
   Mirrors the header, .mnav and footer rules in css/v5.css. Light only, no yellow. */
header.site,.mnav,footer:has(.foot){
  --bg:#F7F6F2;--ink:#0F1A14;--green:#1E4D35;--green-d:#163B28;--grey:#4F5B55;--line:#DCDDD8;--teal:#2F8F7A;
  --ease:cubic-bezier(.2,.7,.2,1);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.6;color:var(--ink);
}
header.site *,.mnav,.mnav *,footer:has(.foot) *{box-sizing:border-box}
header.site{position:sticky;top:0;z-index:50;background:rgba(247,246,242,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid transparent;transition:border-color .3s,box-shadow .3s}
header.site.scrolled{border-color:var(--line);box-shadow:0 6px 20px -16px rgba(15,26,20,.35)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:80px;max-width:1280px;margin:0 auto;padding:0 40px;transition:min-height .3s}
header.site.scrolled .wrap{min-height:66px}
header.site .logo,footer:has(.foot) .logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);flex:0 0 auto;justify-content:flex-start!important;width:fit-content!important;min-width:0!important}
header.site .logo img,footer:has(.foot) .logo img{height:34px;width:auto;max-width:100%;display:block}
header.site .nav{position:static!important;display:flex!important;gap:28px;padding:0!important;margin:0;height:auto!important;width:auto;background:none!important;border:0!important;box-shadow:none!important;font-size:16px;font-weight:500;white-space:nowrap;transition:none!important}
header.site .nav a{position:relative;display:inline-block;color:var(--ink);text-decoration:none;padding:6px 0;white-space:nowrap;font-size:16px;font-weight:500;min-height:0!important}
header.site .nav a::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--teal);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease)}
header.site .nav a:hover::after{transform:scaleX(1)}
header.site .nav a[aria-current="page"]{font-weight:700;color:var(--green)}
header.site .nav a[aria-current="page"]::after{transform:scaleX(1)}
header.site .head-r{display:flex;align-items:center;gap:18px;flex:0 0 auto}
header.site .head-r .login{color:var(--grey);text-decoration:none;font-size:16px;font-weight:500;white-space:nowrap}
header.site .head-r .login:hover{color:var(--ink)}
header.site .btn,.mnav .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:inherit;font-weight:600;text-decoration:none;border:0;cursor:pointer;border-radius:999px;background:var(--green);color:#fff;transition:background .2s,color .2s}
header.site .btn:hover,.mnav .btn:hover{background:var(--green-d);color:#fff}
header.site .head-r .btn{min-height:46px;padding:0 20px;font-size:16px;line-height:1;white-space:nowrap}
header.site .menu-btn{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer;padding:10px;min-height:44px}
header.site .menu-btn span{display:block;height:2px;background:var(--ink);margin:6px 0;transition:transform .3s,opacity .3s}
.mnav{display:none}

footer:has(.foot){display:block!important;background:transparent;padding:72px 0 48px!important;border-top:1px solid var(--line);text-align:left}
footer:has(.foot) .wrap{max-width:1280px;margin:0 auto;padding:0 40px}
footer:has(.foot) .foot{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:36px 24px!important}
footer:has(.foot) .foot>div:first-child{grid-column:1/-1}
footer:has(.foot) .foot h4{margin:0 0 12px;font-size:16px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--grey)}
footer:has(.foot) .foot a{display:block!important;color:var(--ink);text-decoration:none;font-size:16px;padding:5px 0;min-width:0!important;min-height:0!important;overflow-wrap:break-word}
footer:has(.foot) .foot a:hover{color:var(--green)}
footer:has(.foot) .foot .logo{padding:0;margin-bottom:14px;display:flex!important}
footer:has(.foot) .foot p{margin:0;max-width:30ch;font-size:16px;color:var(--grey)}
footer:has(.foot) .legal{margin-top:56px;padding-top:24px;border-top:1px solid var(--line);display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between;gap:24px!important;flex-wrap:wrap;font-size:16px;color:var(--grey);text-align:left!important}

@media (max-width:1180px){
  header.site .wrap{gap:16px;padding:0 28px}
  header.site .nav{gap:18px}
  header.site .head-r{gap:14px}
  header.site .head-r .btn{padding:0 16px}
  footer:has(.foot) .foot{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:32px 28px!important}
}
@media (max-width:1040px){
  header.site .wrap{gap:12px;padding:0 24px}
  header.site .nav{gap:14px}
  header.site .logo img{height:30px}
  header.site .head-r{gap:12px}
}
@media (max-width:960px){
  header.site .wrap{padding:0 20px}
  header.site .nav,header.site .head-r .login{display:none!important}
  header.site .menu-btn{display:block}
  header.site .head-r .btn{display:none}
  .mnav{position:fixed;inset:66px 0 auto 0;background:var(--bg);border-bottom:1px solid var(--line);padding:12px 20px 24px;z-index:49;flex-direction:column;max-height:calc(100vh - 66px);overflow-y:auto}
  .mnav.open{display:flex}
  .mnav a{color:var(--ink);text-decoration:none;font-size:20px;font-weight:600;padding:14px 0;border-bottom:1px solid var(--line)}
  .mnav a[aria-current="page"]{color:var(--green)}
  .mnav a.btn{border-bottom:0;padding:0 28px;min-height:54px;color:#fff;font-size:17px}
  footer:has(.foot) .wrap{padding:0 20px}
  footer:has(.foot){padding-left:0!important;padding-right:0!important}
  footer:has(.foot) .foot{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:767px){
  footer:has(.foot) .foot a{display:block!important}
}
