/* Public site header + footer (layouts/home/header.php, footer.php) -- every public page.
   Own class names (np-*) so nothing here touches the theme's page content. */
.np-site {
  --np-blue: #006AFC; --np-orange: #FD5100; --np-navy: #0D1B4C; --np-ink: #0F1E3D; --np-muted: #56627E; --np-line: #E6EBF5;
  --np-font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.np-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #fff; color: var(--np-blue); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.np-skip:focus { left: 12px; }
.np-site :focus-visible { outline: 3px solid rgba(0, 106, 252, .45); outline-offset: 3px; }

/* ---------- buttons ---------- */
.np-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-family: var(--np-font); font-weight: 700; font-size: 14.5px; text-decoration: none !important; border: 1.5px solid transparent; white-space: nowrap; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.np-btn:hover { transform: translateY(-1px); }
.np-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--np-orange), #FF8A3D); box-shadow: 0 10px 20px -10px rgba(253, 81, 0, .65); }
.np-btn-ghost { color: var(--np-blue) !important; background: rgba(0, 106, 252, .07); border-color: rgba(0, 106, 252, .14); }
.np-btn-ghost:hover { background: rgba(0, 106, 252, .12); }
.np-btn-white { color: var(--np-navy) !important; background: #fff; }
.np-btn-glass { color: #fff !important; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.np-btn-glass:hover { background: rgba(255, 255, 255, .22); }

/* ---------- header ---------- */
.np-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .9); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; font-family: var(--np-font); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 992px) { .np-header { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); } }
}
.np-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(13, 27, 76, .35); border-bottom-color: var(--np-line); }
.np-header-in { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.np-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.np-logo { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.np-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.np-nav > a { position: relative; color: #34405E !important; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 10px; text-decoration: none !important; transition: color .2s ease, background-color .2s ease; }
.np-nav > a:hover { color: var(--np-blue) !important; background: rgba(0, 106, 252, .06); }
.np-nav > a.active { color: var(--np-blue) !important; }
.np-nav > a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--np-blue), var(--np-orange)); }
.np-nav-cta { display: none; }
.np-actions { display: flex; gap: 10px; flex-shrink: 0; }
.np-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--np-line); border-radius: 12px; background: #fff; margin-left: auto; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.np-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--np-ink); transition: transform .25s ease, opacity .2s ease; }
.np-header.menu-open .np-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.np-header.menu-open .np-burger span:nth-child(2) { opacity: 0; }
.np-header.menu-open .np-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1099.98px) { .np-nav > a { padding: 10px 10px; font-size: 14.5px; } .np-actions .np-btn-ghost { display: none; } }
@media (max-width: 991.98px) {
  .np-header-in { min-height: 64px; }
  .np-logo { height: 38px; }
  .np-actions { display: none; }
  .np-burger { display: inline-flex; }
  .np-nav { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 16px 28px; background: #fff; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .np-header.menu-open .np-nav { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .np-nav > a { font-size: 17px; padding: 14px 16px; border-radius: 14px; }
  .np-nav > a.active { background: rgba(0, 106, 252, .07); }
  .np-nav > a.active::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; }
  .np-nav-cta { display: grid; gap: 10px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--np-line); }
  .np-nav-cta .np-btn { min-height: 50px; font-size: 16px; }
  body.np-noscroll { overflow: hidden; }
}

/* ---------- contact strip ---------- */
.np-prefoot { padding: 40px 0 0; background: #fff; position: relative; z-index: 1; margin-bottom: -56px; }
.np-prefoot-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 24px; color: #fff; font-family: var(--np-font);
  background: radial-gradient(600px 220px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(120deg, #006AFC 0%, #3D82FF 55%, #FF8A3D 130%); box-shadow: 0 30px 60px -24px rgba(0, 106, 252, .55); }
.np-prefoot-text { display: flex; align-items: center; gap: 16px; }
.np-prefoot-ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.np-prefoot h3 { color: #fff; font-family: var(--np-font); font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 4px; letter-spacing: -.01em; }
.np-prefoot p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 14.5px; }
.np-prefoot-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 575.98px) { .np-prefoot-card { padding: 22px 18px; } .np-prefoot-btns, .np-prefoot-btns .np-btn { width: 100%; } }

/* ---------- footer ---------- */
.np-footer { position: relative; overflow: hidden; background: #0B1638; color: rgba(255, 255, 255, .72); padding: 112px 0 28px; font-family: var(--np-font); font-size: 14.5px; }
.np-footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 106, 252, .35), transparent 65%); pointer-events: none; }
.np-footer::after { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 81, 0, .22), transparent 65%); pointer-events: none; }
.np-footer .container { position: relative; z-index: 1; }
.np-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr; gap: 36px; }
.np-foot-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.np-foot-logo img { height: 36px; width: auto; max-width: 170px; object-fit: contain; }
.np-foot-brand p { color: rgba(255, 255, 255, .7); line-height: 1.65; max-width: 380px; margin-bottom: 16px; }
.np-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.np-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #fff; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.np-trust i { color: #8FB8FF; }
.np-footer h4 { color: #fff; font-family: var(--np-font); font-size: 15px; font-weight: 800; letter-spacing: .02em; margin: 6px 0 18px; }
.np-footer ul { list-style: none; padding: 0; margin: 0; }
.np-footer li { margin-bottom: 12px; }
.np-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s ease; }
.np-footer a:hover { color: #fff; }
.np-contact li { display: flex; gap: 12px; align-items: flex-start; }
.np-contact i { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #FFB27F; flex-shrink: 0; font-size: 13px; }
.np-contact a, .np-contact span { padding-top: 6px; word-break: break-word; }
.np-foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.np-foot-bottom p { margin: 0; color: rgba(255, 255, 255, .6); }
.np-foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 991.98px) { .np-foot-grid { grid-template-columns: 1fr 1fr; } .np-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .np-foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; } .np-footer { padding-top: 100px; } .np-foot-grid > div:last-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .np-site *, .np-site *::before, .np-site *::after { transition: none !important; } }

/* colours that must win over page styles (e.g. the home page's heading / paragraph colours) */
.np-site .np-prefoot h3 { color: #fff; }
.np-site .np-prefoot p { color: rgba(255, 255, 255, .85); }
.np-site .np-footer h4 { color: #fff; }
.np-site .np-foot-brand p { color: rgba(255, 255, 255, .7); }
.np-site .np-foot-bottom p { color: rgba(255, 255, 255, .6); }
.np-site .np-footer a { color: rgba(255, 255, 255, .72); }
.np-site .np-footer a:hover { color: #fff; }
.np-site .np-nav-cta .np-btn-primary, .np-site .np-actions .np-btn-primary { color: #fff; }/* brand name as text when a site has no logo uploaded */
.np-site .np-brand-text { font-family: var(--np-font); font-weight: 800; font-size: 22px; letter-spacing: -.02em; background: linear-gradient(90deg, var(--np-blue), var(--np-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
/* ---------- one layout for every public page ---------- */
/* same content width everywhere (the home page used 1200 px, the others 1140 px: the header jumped between pages) */
.np-site .container { max-width: 1200px; }
/* the small coloured label sits on its own line ABOVE its heading (it was beside it on wide screens) */
.np-site .hp-eyebrow { display: flex; width: max-content; max-width: 100%; }
.np-site .text-center .hp-eyebrow, .np-site .text-center.hp-eyebrow-wrap .hp-eyebrow { margin-left: auto; margin-right: auto; }
@media (min-width: 576px) { .np-site .text-sm-left .hp-eyebrow { margin-left: 0; margin-right: 0; } }
@media (min-width: 768px) { .np-site .text-md-left .hp-eyebrow { margin-left: 0; margin-right: 0; } }/* sections centred by their own CSS (not a .text-center class): centre the label too */
.np-site .hp-contact-hero .hp-eyebrow, .np-site .hp-cta-banner .hp-eyebrow { margin-left: auto; margin-right: auto; }

/* "Get it on Google Play" button (layouts/home/app_badge.php) */
.np-play{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 18px 0 14px;border-radius:12px;background:#000;border:1px solid #A6A6A6;color:#fff !important;text-decoration:none !important;line-height:1;flex-shrink:0;transition:transform .2s ease,box-shadow .2s ease}
.np-play:hover{transform:translateY(-2px);box-shadow:0 12px 24px -10px rgba(0,0,0,.55)}
.np-play svg{flex-shrink:0}
.np-play span{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left}
.np-play small{font-size:10px;font-weight:600;letter-spacing:.06em;color:#fff;opacity:.9}
.np-play b{font-size:18px;font-weight:600;letter-spacing:-.01em;color:#fff}
.np-play.is-light{border-color:rgba(255,255,255,.4)}
.np-foot-app{margin-top:18px}
.np-foot-app small{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-bottom:8px}
/* footer: the parent company link ("A brand of NearPoint") */
.np-foot-brand p a{color:#fff !important;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.np-foot-brand p a:hover{color:#FFB78A !important}
