/* ============================================================================
   Northbeam Advisory — demo site stylesheet.
   Extracted from the imported claude.ai/design prototype (inline styles + the
   custom `style-hover` attribute, which only works in the design runtime) and
   converted to a real stylesheet: base + shared chrome (header/footer) + hover
   utility classes (replacing style-hover) + the language switcher + overrides
   that restyle the search & contact plugin widgets (rw-* classes) to match this
   site. This is a fictional DEMO site.
   ============================================================================ */

/* ---- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f8fafc; color: #0f172a;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5 { font-family: 'Archivo', 'Public Sans', sans-serif; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: #0f172a; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; text-decoration: underline; }
ul, ol { margin: 0; padding-left: 1.15em; }
input, button, textarea, select { font-family: inherit; }
::selection { background: #bfdbfe; }

/* the flex wrapper each page body uses so the footer sits at the bottom */
.nb-app { min-height: 100vh; display: flex; flex-direction: column; background: #f8fafc; }
.nb-app > main { flex: 1; }

/* ---- header / chrome ----------------------------------------------------- */
.nb-siteheader { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid #e5eaf1; }
.nb-head { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex;
  align-items: center; gap: 22px; height: 70px; }
.nb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.nb-logo:hover { text-decoration: none; }
.nb-logo-badge { width: 32px; height: 32px; background: #2563eb; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 17px; }
.nb-logo-word { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; color: #0f172a; }
.nb-nav { display: flex; gap: 24px; align-items: center; margin-left: 6px; flex: 1; flex-wrap: wrap; }
.nb-navlink { color: #334155; font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nb-navlink:hover { color: #2563eb; text-decoration: none; }
.nb-navlink.is-active { color: #2563eb; border-bottom-color: #2563eb; }
.nb-cta { background: #0f172a; color: #fff; padding: 0 18px; height: 42px; display: inline-flex;
  align-items: center; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none;
  white-space: nowrap; flex: none; }
.nb-cta:hover { background: #1e293b; text-decoration: none; }

/* language switcher — compact, unobtrusive, header-matched */
.nb-lang { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.nb-lang a { color: #64748b; font-weight: 600; font-size: 12px; letter-spacing: 0.03em;
  text-decoration: none; padding: 5px 7px; border-radius: 7px; text-transform: uppercase; }
.nb-lang a:hover { color: #2563eb; background: #f1f5f9; text-decoration: none; }
.nb-lang a.is-current { color: #2563eb; background: #eff6ff; cursor: default; }

/* ---- footer -------------------------------------------------------------- */
.nb-sitefooter { background: #0f172a; color: #cbd5e1; margin-top: auto; }
.nb-sitefooter .nb-wrap { max-width: 1200px; margin: 0 auto; padding: 64px 24px 32px; }
.nb-foot { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.nb-foot-brand-col { max-width: 330px; }
.nb-foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.nb-foot-brand .nb-logo-badge { border-radius: 8px; }
.nb-foot-brand-word { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px; color: #fff; }
.nb-foot-tagline { color: #94a3b8; font-size: 14px; line-height: 1.65; }
.nb-foot-col-h { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.09em; text-transform: uppercase; color: #e2e8f0; margin-bottom: 16px; }
.nb-foot-links { margin: 0; padding: 0; }
.nb-foot-links li { margin: 0 0 11px; list-style: none; }
.nb-footlink { color: #94a3b8; font-size: 14px; text-decoration: none; }
.nb-footlink:hover { color: #ffffff; text-decoration: none; }
.nb-demo { margin-top: 44px; padding: 18px 20px; background: #0b1220; border: 1px solid #1e293b;
  border-radius: 14px; display: flex; gap: 14px; align-items: flex-start; }
.nb-demo-badge { flex: none; background: #f59e0b; color: #0b1220; font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 11px; letter-spacing: 0.1em; padding: 5px 9px; border-radius: 6px; margin-top: 2px; }
.nb-demo-text { font-size: 13.5px; color: #94a3b8; line-height: 1.65; margin: 0; }
.nb-demo-text strong { color: #e2e8f0; }
.nb-foot-bottom { margin-top: 24px; padding-top: 22px; border-top: 1px solid #1e293b;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #64748b; font-size: 13px; }

/* ---- hover utilities (replace the prototype's style-hover on page bodies) - */
.nb-h-primary:hover { background: #1d4ed8 !important; text-decoration: none; }
.nb-h-dark:hover { background: #1e293b !important; text-decoration: none; }
.nb-h-outline:hover { border-color: #94a3b8 !important; text-decoration: none; }
.nb-h-lift:hover { box-shadow: 0 24px 40px -28px rgba(15,23,42,0.4) !important;
  transform: translateY(-3px); text-decoration: none; }
.nb-h-card:hover { box-shadow: 0 24px 40px -28px rgba(15,23,42,0.4) !important;
  border-color: #c7d2fe !important; transform: translateY(-3px); text-decoration: none; }
.nb-h-row:hover { border-color: #c7d2fe !important; background: #fbfdff !important; text-decoration: none; }
.nb-h-ghost:hover { background: rgba(255,255,255,0.2) !important; text-decoration: none; }
.nb-h-eff:hover { background: #eff6ff !important; text-decoration: none; }
.nb-h-underline:hover { text-decoration: underline; }

/* ---- search plugin widget (rw-search-*) restyled to match Northbeam ------ */
/* header instance: the site pill; its inline results are suppressed (results belong on /search) */
#site-search .rw-search-box { display: flex; align-items: center; gap: 6px; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 0 5px 0 12px; height: 42px; margin: 0; }
#site-search .rw-search-box-input { border: 0; background: transparent; outline: none;
  font-size: 14px; width: 150px; color: #0f172a; }
#site-search .rw-search-box-submit { border: 0; background: #2563eb; color: #fff; border-radius: 8px;
  height: 32px; padding: 0 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
#site-search .rw-search-box-submit:hover { background: #1d4ed8; }
#site-search .rw-search-count, #site-search .rw-search-empty, #site-search .rw-search-hits { display: none; }

/* results-page instance: a full-width box + a clean result list */
#search-box .rw-search-box { display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid #cbd5e1; border-radius: 12px; padding: 4px 4px 4px 16px; max-width: 640px; }
#search-box .rw-search-box-input { border: 0; background: transparent; outline: none; flex: 1;
  font-size: 17px; color: #0f172a; height: 48px; }
#search-box .rw-search-box-submit { border: 0; background: #2563eb; color: #fff; border-radius: 9px;
  height: 42px; padding: 0 22px; font-weight: 600; font-size: 15px; cursor: pointer; }
#search-box .rw-search-box-submit:hover { background: #1d4ed8; }
#search-box .rw-search-count { color: #64748b; font-size: 15px; margin: 26px 0 4px; }
#search-box .rw-search-empty { color: #475569; font-size: 17px; margin: 26px 0; }
#search-box .rw-search-hits { list-style: none; padding: 0; margin: 12px 0 0; }
#search-box .rw-search-hit { padding: 20px 0; border-bottom: 1px solid #e5e7eb; }
#search-box .rw-search-hit-link { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 19px;
  color: #2563eb; text-decoration: none; }
#search-box .rw-search-hit-link:hover { text-decoration: underline; }
#search-box .rw-search-hit-snippet { color: #475569; font-size: 15px; margin: 6px 0 0; }
#search-box .rw-search-hit-snippet mark { background: #dbeafe; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---- contact plugin widget (rw-contact-*) restyled to match Northbeam ---- */
#contact-form .rw-contact { display: flex; flex-direction: column; gap: 16px; }
#contact-form .rw-contact-label { display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; font-size: 14px; color: #0f172a; }
#contact-form .rw-contact-input { border: 1px solid #cbd5e1; border-radius: 11px; padding: 12px 14px;
  font-size: 15px; color: #0f172a; background: #fff; font-weight: 400; }
#contact-form .rw-contact-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
#contact-form .rw-contact-submit { align-self: flex-start; background: #2563eb; color: #fff; border: 0;
  border-radius: 11px; padding: 14px 26px; font-weight: 600; font-size: 16px; cursor: pointer; }
#contact-form .rw-contact-submit:hover { background: #1d4ed8; }
#contact-form .rw-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-form .rw-contact-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 11px; padding: 12px 14px; font-size: 14.5px; margin: 0; }
#contact-form .rw-contact-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
  border-radius: 12px; padding: 18px 20px; font-size: 16px; margin: 0; }

/* ---- responsive (mirrors the prototype breakpoints) ---------------------- */
@media (max-width: 860px) {
  .nb-grid2 { grid-template-columns: 1fr !important; }
  .nb-grid3 { grid-template-columns: 1fr !important; }
  .nb-grid4 { grid-template-columns: 1fr 1fr !important; }
  .nb-foot { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 1080px) {
  .nb-head { flex-wrap: wrap; height: auto; min-height: 70px; padding-top: 12px; padding-bottom: 12px; row-gap: 12px; }
  .nb-nav { order: 4; flex: 0 0 100% !important; margin-left: 0; justify-content: flex-start; padding-top: 2px; }
}
@media (max-width: 560px) {
  #site-search { display: none; }
}
