/* Netpivot - site overrides (2026-11-22).
   Loaded after each page's own <style>, so these rules win.
   1. Wide screens: use more of the width (no empty band down the left)
   2. Phones and tablets: navbar, spacing, comparison labels, tap targets */

/* ---- Wide screens (>= 1200px) ---- */
@media (min-width: 1200px) {
  /* Bootstrap caps content at 1140/1320px and centres it, leaving wide empty
     side bands. Let it fill the screen at every width, with margins that scale
     (about 54px at 1536, 64px from 1830 up). Line lengths are capped separately. */
  .container {
    max-width: none;
    padding-left: clamp(1.5rem, 3.5vw, 4rem);
    padding-right: clamp(1.5rem, 3.5vw, 4rem);
  }
}

/* Desktop (>= 992px): inner-page titles sat ~20px under the 86px fixed bar */
@media (min-width: 992px) {
  .pagehead { padding-top: calc(86px + 3rem); }
}

/* Readable line length everywhere: the design caps most intro text at 62ch;
   apply the same to the lead paragraphs and bullet lists that had no cap. */
.lead-np { max-width: 62ch; }
.list-unstyled li { max-width: 72ch; }
/* Full-width layout: also keep text inside cards, callouts and plain lists readable */
.callout p, .np-card p { max-width: 75ch; }
ul:not(.navbar-nav):not(.list-unstyled) > li { max-width: 72ch; }

/* ---- Collapsed-navbar widths (phones + tablets, < 992px) ---- */
@media (max-width: 991.98px) {
  /* Slimmer fixed top bar: same 46px logo, less padding (86px -> ~63px) */
  .navbar { padding: .5rem 0; }
  .navbar .navbar-brand { padding-top: 0; padding-bottom: 0; }
  .navbar-toggler { padding: .4rem .6rem; }

  /* Open menu: comfortable thumb targets, button gets breathing room */
  .navbar .navbar-collapse .nav-link { padding: .7rem .9rem !important; }
  .navbar .navbar-collapse .btn { margin: .5rem 0 .75rem; }

  /* Footer links: 31px -> ~44px tall so they are easy to tap */
  .footer a { padding: .6rem 0; }

  /* Page tops clear the fixed bar with a consistent gap */
  .hero     { padding: calc(63px + 2rem) 0 3rem; }
  .pagehead { padding: calc(63px + 2rem) 0 2rem; }
}

/* ---- Phones (< 768px) ---- */
@media (max-width: 767.98px) {
  /* Bootstrap g-5 = 3rem gutter: on phones it overhangs the screen edge by
     12px and leaves a 48px hole between a heading and its own text. */
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.25rem; }
  /* Stacked heading column + text column read as one block on a phone */
  .row.g-5 > [class*="col-"] > :last-child { margin-bottom: 0 !important; }

  /* Tighter vertical rhythm - desktop spacing reads as "page ended" on a phone */
  .sec        { padding: 3.25rem 0; }
  .sec-tight  { padding: 2.5rem 0; }
  .cta-final  { padding: 3.25rem 0; }
  .sec .lead-np { margin-bottom: 1.75rem; }
  .footer     { margin-top: 3rem; padding-top: 2.5rem; }
  .footer .bottom { margin-top: 1.75rem; }

  /* Comparison: the column headings are hidden on phones, so label each cell */
  .compare-head { display: none; }
  .compare-row .them::before,
  .compare-row .us::before {
    display: block; margin-bottom: .3rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  }
  .compare-row .them::before { content: "Off-the-shelf"; color: #6E7F96; }
  .compare-row .us::before   { content: "Netpivot";      color: var(--np-amber); }

  /* Cards: a little less inner padding to give text more width */
  .np-card { padding: 1.5rem; }
}

/* ---- Logo (new artwork 2026-11-22: assets/netpivot-logo.png, 694x162) ---- */
/* Desktop bar: 44px logo + 6px padding each side keeps the bar 86px tall */
.navbar-brand { padding-top: 6px; padding-bottom: 6px; }
.navbar-brand img { height: 44px; width: auto; display: block; }
.footer .brandline img { height: 48px; width: auto; display: block; }
/* Phones + tablets: 40px logo + 3px padding keeps the slim 63px bar */
@media (max-width: 991.98px) {
  .navbar .navbar-brand { padding-top: 3px; padding-bottom: 3px; }
  .navbar-brand img { height: 40px; }
}

/* ---- Contact form (2026-11-23): result messages + hidden bot trap ---- */
.np-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-ok, .form-note-ok { color: #7EE2A8; }
.form-status.is-err, .form-note-err { color: #FF9B8A; }
.form-note { display: none; margin: 1rem 0 0; scroll-margin-top: 110px; }
.form-note:target { display: block; }
.form-note a { color: inherit; text-decoration: underline; }
