/* ============================================================
   HGM new design shell — pill header, brand lockup, new footer.
   All classes are nd- prefixed to avoid collisions with the
   existing design system. Theme-aware via CSS variables;
   tuned for the agentic theme (the site default).
   ============================================================ */

/* ---------- Brand lockup ---------- */
.nd-brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;flex:none}
.nd-brand-mark{height:42px;width:auto;display:block}
.nd-brand-sep{width:1px;align-self:stretch;margin:5px 0;flex:none;
  background:linear-gradient(180deg,transparent,var(--accent) 35%,var(--accent) 65%,transparent);opacity:.55}
.nd-brand-name{display:flex;flex-direction:column;justify-content:center;gap:3px;
  font-size:10.5px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  color:var(--ink);line-height:1.25;white-space:nowrap;font-family:var(--sans,inherit)}

/* ---------- Floating pill header ---------- */
.nd-head{position:sticky;top:12px;z-index:60;padding:0 16px;pointer-events:none}
.nd-pill{pointer-events:auto;max-width:1120px;margin:0 auto;display:flex;align-items:center;
  background:var(--pill-bg,rgba(10,14,11,.84));
  -webkit-backdrop-filter:blur(20px) saturate(1.1);backdrop-filter:blur(20px) saturate(1.1);
  border:1px solid var(--pill-line,rgba(211,168,106,.16));border-radius:999px;
  padding:8px 8px 8px 22px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
[data-theme="light"] .nd-pill{--pill-bg:rgba(255,255,255,.86);--pill-line:rgba(16,20,24,.08);box-shadow:0 10px 30px rgba(20,25,35,.08)}
.nd-links{display:flex;gap:2px;margin:0 auto}
.nd-links a{text-decoration:none;font-size:14px;font-weight:500;color:var(--ink-2);
  padding:9px 15px;border-radius:999px;transition:background .18s,color .18s}
.nd-links a:hover{background:var(--accent-wash);color:var(--ink)}
.nd-cta{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:600;font-size:14px;
  letter-spacing:.01em;padding:12px 22px;border-radius:999px;white-space:nowrap;
  background:var(--accent);color:var(--accent-ink);box-shadow:var(--glow,0 8px 22px rgba(0,0,0,.25));
  transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s,background .2s}
.nd-cta:hover{transform:translateY(-2px);background:var(--accent-deep)}
.nd-burger{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:none;
  border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer}
.nd-burger svg{width:18px;height:18px}
.nd-burger[aria-expanded="true"]{border-color:var(--accent);color:var(--accent-deep)}

/* mobile menu panel */
.nd-mmenu{pointer-events:auto;max-width:1120px;margin:8px auto 0;background:var(--card);
  border:1px solid var(--line);border-radius:18px;padding:10px;box-shadow:0 24px 60px rgba(0,0,0,.4)}
.nd-mmenu[hidden]{display:none}
.nd-mmenu a{display:flex;align-items:center;justify-content:space-between;text-decoration:none;
  color:var(--ink);font-weight:600;font-size:15px;padding:13px 16px;border-radius:12px}
.nd-mmenu a:hover{background:var(--accent-wash)}
.nd-mmenu .nd-mmenu-cta{margin-top:6px;background:var(--accent);color:var(--accent-ink);justify-content:center}
.nd-mmenu .nd-mmenu-cta:hover{background:var(--accent-deep)}

@media (max-width:1080px){
  .nd-links{display:none}
  .nd-burger{display:inline-flex}
  .nd-pill{gap:10px}
  .nd-cta{margin-left:auto}
}
@media (max-width:640px){
  .nd-head{padding:0 10px}
  .nd-pill{padding:7px 7px 7px 18px}
  .nd-brand-mark{height:36px}
  .nd-brand-name{font-size:9px;letter-spacing:.12em}
  .nd-brand{gap:8px}
  .nd-cta{padding:11px 18px;font-size:13px}
}

/* ---------- New footer ---------- */
.nd-footer{margin-top:96px;border-top:1px solid var(--line);background:var(--footer-bg,rgba(0,0,0,.25))}
[data-theme="light"] .nd-footer{--footer-bg:#f7f5f0}
.nd-foot-grid{max-width:1200px;margin:0 auto;padding:64px 30px 40px;
  display:grid;grid-template-columns:1.4fr 2fr 1.2fr;gap:48px;align-items:start}
.nd-foot-brand p{font-size:13.5px;color:var(--muted);max-width:32ch;line-height:1.7;margin:18px 0 0}
.nd-foot-contact{margin-top:18px!important;display:grid;gap:8px}
.nd-foot-contact a{font-size:13px;font-weight:600;color:var(--ink-2);text-decoration:none}
.nd-foot-contact a:hover{color:var(--accent-deep)}
/* transplanted link columns keep their refined.css styling; layout wrapper only */
.nd-foot-links .footer-links{display:grid;grid-template-columns:repeat(2,1fr);gap:32px}
.nd-foot-links .footer-links > div{min-width:0}
/* transplanted newsletter keeps its refined.css styling */
.nd-foot-bottom{border-top:1px solid var(--line);padding:26px 30px;max-width:1200px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;gap:14px 28px;flex-wrap:wrap}
.nd-legal{display:flex;gap:20px;flex-wrap:wrap}
.nd-legal a{font-size:12.5px;color:var(--muted);text-decoration:none;font-weight:600}
.nd-legal a:hover{color:var(--accent-deep)}
.nd-socials{display:flex;gap:10px}
.nd-socials a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  border:1px solid var(--line);border-radius:50%;color:var(--ink-2);text-decoration:none;
  transition:color .18s,border-color .18s,background .18s,transform .18s}
.nd-socials a:hover{color:var(--accent-deep);border-color:var(--accent);background:var(--accent-wash);transform:translateY(-2px)}
.nd-socials .fa-brands{font-size:14px}
.nd-copy{font-size:12px;color:var(--faint)}
.nd-tel{font-size:12.5px;font-weight:600;color:var(--ink-2);text-decoration:none}
.nd-tel:hover{color:var(--accent-deep)}

@media (max-width:1080px){
  .nd-foot-grid{grid-template-columns:1fr 1fr}
  .nd-foot-brand{grid-column:1/-1}
}
@media (max-width:640px){
  .nd-footer{margin-top:64px}
  .nd-foot-grid{grid-template-columns:1fr;padding:48px 22px 32px;gap:36px}
  .nd-foot-bottom{flex-direction:column;text-align:center;padding:26px 22px}
  .nd-legal{justify-content:center}
}

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  .nd-cta,.nd-links a,.nd-socials a{transition:none}
}

/* ---------- Stale design-system.css repairs (agentic) ----------
   design-system.css is deprecated; these overrides keep its button
   classes readable now that agentic is the default theme. */
[data-theme="agentic"] .dark-cta{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
[data-theme="agentic"] .dark-cta:hover{background:var(--accent-deep);border-color:var(--accent-deep);color:var(--accent-ink)}
