/* =========================================================
   HEADER + FOOTER 2026 OVERRIDES
========================================================= */
:root{--nso-header-h:78px}

body.nso-theme .nso-header{
  top:0;
  background:rgba(247,242,233,.78);
  border-bottom:1px solid rgba(74,64,57,.075);
  box-shadow:none;
  backdrop-filter:blur(20px) saturate(145%);
}
body.nso-theme .nso-header.is-scrolled{
  background:rgba(255,253,249,.90);
  box-shadow:0 14px 40px rgba(41,35,31,.075);
}
body.nso-theme .nso-header__inner{
  width:min(calc(100% - 32px),1320px);
  height:var(--nso-header-h);
  grid-template-columns:150px minmax(0,1fr) auto;
  gap:24px;
}
body.nso-theme .nso-brand{max-width:150px}
body.nso-theme .nso-header .nso-brand__logo img.custom-logo{
  width:auto!important;height:58px!important;max-width:138px!important;max-height:58px!important;object-fit:contain!important
}
body.nso-theme .nso-nav__list{gap:24px}
body.nso-theme .nso-nav__list a{min-height:44px;color:var(--nso-ink-2);font-size:.86rem;font-weight:780;letter-spacing:-.01em}
body.nso-theme .nso-nav__list>li>a::after{height:1.5px;bottom:5px;background:linear-gradient(90deg,var(--nso-pink),#d783ad)}
body.nso-theme .nso-nav__list .sub-menu{top:calc(100% + 4px);min-width:260px;padding:10px;border-radius:20px;background:rgba(255,253,249,.96);box-shadow:0 26px 70px rgba(41,35,31,.13);backdrop-filter:blur(18px)}
body.nso-theme .nso-nav__list .sub-menu a{padding:9px 11px;border-radius:13px}
body.nso-theme .nso-nav__list .sub-menu a:hover{background:linear-gradient(90deg,rgba(232,61,155,.08),rgba(149,165,107,.06))}

body.nso-theme .nso-header__actions{gap:8px}
body.nso-theme .nso-header__portal{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 12px;border:1px solid var(--nso-line);border-radius:999px;background:rgba(255,255,255,.56);color:var(--nso-ink);font-size:.8rem;font-weight:900;backdrop-filter:blur(10px)}
body.nso-theme .nso-header__portal:hover{border-color:rgba(232,61,155,.22);background:#fff;color:var(--nso-pink)}
body.nso-theme .nso-header__portal .nso-icon{width:16px;height:16px}
body.nso-theme .nso-header__cta{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:11px 16px;border-radius:999px;background:linear-gradient(135deg,var(--nso-pink),#db3b91);color:#fff;box-shadow:0 12px 28px rgba(232,61,155,.18)}
body.nso-theme .nso-header__cta:hover{box-shadow:0 16px 34px rgba(232,61,155,.27)}
body.nso-theme .nso-header__cta .nso-icon{width:16px;height:16px}

body.nso-theme .nso-menu-toggle{width:44px;height:44px;border:1px solid var(--nso-line);border-radius:14px;background:rgba(255,255,255,.68);box-shadow:var(--nso-shadow-xs)}
body.nso-theme .nso-mobile-menu{inset:var(--nso-header-h) 0 0;padding:12px;background:rgba(25,23,22,.34);backdrop-filter:blur(8px)}
body.nso-theme .nso-mobile-menu__panel{margin-left:auto;width:min(100%,430px);padding:18px;border:1px solid rgba(255,255,255,.55);border-radius:26px;background:rgba(255,253,249,.97);box-shadow:0 26px 80px rgba(30,26,23,.22)}
body.nso-theme .nso-mobile-menu__list{display:grid;gap:4px;margin:0;padding:0;list-style:none}
body.nso-theme .nso-mobile-menu__list a{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 14px;border-radius:14px;color:var(--nso-ink);font-size:.96rem;font-weight:850}
body.nso-theme .nso-mobile-menu__list a:hover{background:rgba(232,61,155,.07);color:var(--nso-pink)}
body.nso-theme .nso-mobile-menu__list .sub-menu{display:grid;gap:2px;margin:0 0 8px;padding:0 0 0 14px;list-style:none}
body.nso-theme .nso-mobile-menu__list .sub-menu a{min-height:42px;color:var(--nso-muted);font-size:.86rem}
body.nso-theme .nso-mobile-menu__actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid var(--nso-line)}

/* Footer: more editorial, less bulky */
body.nso-theme .nso-footer{
  background:
    radial-gradient(circle at 84% 0,rgba(232,61,155,.12),transparent 31%),
    radial-gradient(circle at 8% 100%,rgba(149,165,107,.10),transparent 33%),
    linear-gradient(180deg,#211e1c 0%,#151312 100%);
}
body.nso-theme .nso-footer::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.13;background-image:radial-gradient(rgba(255,255,255,.22) .55px,transparent .55px);background-size:9px 9px;mask-image:linear-gradient(to bottom,black,transparent 70%)}
body.nso-theme .nso-footer__main{position:relative;grid-template-columns:minmax(300px,.9fr) minmax(0,1.45fr);gap:92px;padding:72px 0 42px}
body.nso-theme .nso-footer__brand{max-width:420px}
body.nso-theme .nso-footer__logo{margin-bottom:18px}
body.nso-theme .nso-footer__logo img.custom-logo{height:64px!important;max-width:118px!important;max-height:64px!important}
body.nso-theme .nso-footer__kicker{border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.06);font-size:.7rem;letter-spacing:.06em;text-transform:uppercase}
body.nso-theme .nso-footer h2{font-size:clamp(2rem,3.2vw,2.8rem);letter-spacing:-.055em}
body.nso-theme .nso-footer p{font-size:.92rem;line-height:1.68}
body.nso-theme .nso-footer__grid{gap:48px}
body.nso-theme .nso-footer__links{gap:10px}
body.nso-theme .nso-footer__links a{font-size:.88rem}
body.nso-theme .nso-footer__locations span{background:rgba(255,255,255,.055);font-size:.72rem}

@media(max-width:1180px){
  body.nso-theme .nso-header__inner{grid-template-columns:130px minmax(0,1fr) auto;gap:16px}
  body.nso-theme .nso-nav__list{gap:16px}
  body.nso-theme .nso-nav__list a{font-size:.81rem}
  body.nso-theme .nso-header__portal{display:none}
  body.nso-theme .nso-header .nso-brand__logo img.custom-logo{height:54px!important;max-width:126px!important;max-height:54px!important}
}

@media(max-width:980px){
  :root{--nso-header-h:70px}
  body.nso-theme .nso-header__inner{grid-template-columns:1fr auto;width:calc(100% - 24px);gap:10px}
  body.nso-theme .nso-nav--desktop,body.nso-theme .nso-header__cta{display:none}
  body.nso-theme .nso-brand{max-width:122px}
  body.nso-theme .nso-header .nso-brand__logo img.custom-logo{height:51px!important;max-width:118px!important;max-height:51px!important}
  body.nso-theme .nso-menu-toggle{display:inline-flex}
  body.nso-theme .nso-footer__main{grid-template-columns:1fr;gap:44px;padding-top:58px}
}

@media(max-width:600px){
  :root{--nso-header-h:66px}
  body.nso-theme .nso-header__inner{width:calc(100% - 20px)}
  body.nso-theme .nso-brand{max-width:108px}
  body.nso-theme .nso-header .nso-brand__logo img.custom-logo{height:46px!important;max-width:104px!important;max-height:46px!important}
  body.nso-theme .nso-menu-toggle{width:42px;height:42px}
  body.nso-theme .nso-mobile-menu{padding:8px}
  body.nso-theme .nso-mobile-menu__panel{width:100%;border-radius:22px;padding:14px}
  body.nso-theme .nso-mobile-menu__actions{grid-template-columns:1fr}
  body.nso-theme .nso-footer__main{padding:50px 0 32px}
  body.nso-theme .nso-footer__grid{grid-template-columns:1fr;gap:28px}
  body.nso-theme .nso-footer__contact{grid-column:auto}
}

/* =========================================================
   v1.1.1 · RESPONSIVE BRAND + FOOTER NORMALIZATION
   Keeps the logo proportional and the shell balanced on all screens.
========================================================= */

/* Header brand: size by width, never by forced image height. */
body.nso-theme .nso-header .nso-brand{
  min-width:0;
  display:flex;
  align-items:center;
}
body.nso-theme .nso-header .nso-brand__logo{
  width:clamp(78px, 7vw, 104px);
  max-width:100%;
  flex:0 0 auto;
}
body.nso-theme .nso-header .nso-brand__logo .custom-logo-link{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  line-height:0!important;
}
body.nso-theme .nso-header .nso-brand__logo img.custom-logo{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  max-height:52px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left center!important;
}

/* Footer logo: intentionally smaller than header; it is a signature, not a hero. */
body.nso-theme .nso-footer__logo{
  display:block!important;
  width:82px!important;
  max-width:82px!important;
  margin:0 0 16px!important;
  line-height:0!important;
}
body.nso-theme .nso-footer__logo .custom-logo-link{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  line-height:0!important;
}
body.nso-theme .nso-footer__logo img.custom-logo{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  max-height:48px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left center!important;
}
body.nso-theme .nso-footer__logo-fallback{
  display:inline-flex;
  color:#fff;
  font-family:var(--nso-title);
  font-size:1rem;
  font-weight:900;
  line-height:1.1;
}

/* Desktop footer rhythm */
body.nso-theme .nso-footer__main{
  align-items:start;
}
body.nso-theme .nso-footer__brand{
  max-width:390px;
}
body.nso-theme .nso-footer h2{
  font-size:clamp(1.7rem, 2.4vw, 2.35rem);
  line-height:1.08;
}
body.nso-theme .nso-footer p{
  max-width:390px;
}
body.nso-theme .nso-footer__cta .nso-btn{
  min-height:44px;
  padding:11px 16px;
  font-size:.86rem;
}

@media (max-width:1099px){
  body.nso-theme .nso-header .nso-brand__logo{
    width:88px;
  }
  body.nso-theme .nso-header .nso-brand__logo img.custom-logo{
    max-height:48px!important;
  }
  body.nso-theme .nso-footer__logo{
    width:76px!important;
    max-width:76px!important;
  }
  body.nso-theme .nso-footer__logo img.custom-logo{
    max-height:44px!important;
  }
}

@media (max-width:767px){
  body.nso-theme .nso-header .nso-brand__logo{
    width:76px;
  }
  body.nso-theme .nso-header .nso-brand__logo img.custom-logo{
    max-height:42px!important;
  }
  body.nso-theme .nso-footer__main{
    gap:36px;
    padding:44px 0 30px;
  }
  body.nso-theme .nso-footer__brand{
    max-width:100%;
  }
  body.nso-theme .nso-footer__logo{
    width:68px!important;
    max-width:68px!important;
    margin-bottom:14px!important;
  }
  body.nso-theme .nso-footer__logo img.custom-logo{
    max-height:40px!important;
  }
  body.nso-theme .nso-footer h2{
    font-size:1.65rem;
  }
  body.nso-theme .nso-footer p{
    max-width:34rem;
    font-size:.9rem;
    line-height:1.62;
  }
  body.nso-theme .nso-footer__grid{
    gap:28px 22px;
  }
  body.nso-theme .nso-footer__bottom{
    padding:18px 0 calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width:420px){
  body.nso-theme .nso-header .nso-brand__logo{
    width:70px;
  }
  body.nso-theme .nso-header .nso-brand__logo img.custom-logo{
    max-height:38px!important;
  }
  body.nso-theme .nso-footer__logo{
    width:62px!important;
    max-width:62px!important;
  }
  body.nso-theme .nso-footer__logo img.custom-logo{
    max-height:36px!important;
  }
  body.nso-theme .nso-footer__cta{
    gap:8px;
  }
  body.nso-theme .nso-footer__cta .nso-btn{
    width:100%;
    min-height:46px;
  }
}
