/* ==========================================================================
   JHL Valuations — shared fixes for the legacy Mobirise pages
   Added 20 Nov 2026. Linked from the 8 legacy pages that need it.
   Kept in a separate file (rather than mbr-additional.css) so a future
   Mobirise re-export of the shared theme CSS does not wipe it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. The fixed-nav overlap

   The site nav is `position: fixed`, so it sits on top of the first content
   on the page instead of pushing it down. Measured at 1024px wide, the nav is
   160px tall and the first heading of 8 of the 9 legacy pages starts behind
   it — index.html by 20px, page5/6/7 by 54-68px, MeettheJHLteam by 100px,
   the two request forms by 10px and sendusamessage by 85px.

   The script placed at the end of each legacy page measures the nav and the
   first heading, then publishes the exact overlap as --jhl-nav-overlap.
   Padding the body by that amount moves the content down by precisely what
   is hidden and no more, so no page gains stray white space.

   --jhl-nav-overlap is only set when there IS an overlap. The 160px fallback
   is the tallest the nav gets between 768px and 1199px (the info widgets
   wrap onto a second row there) and is only used when JS is unavailable.

   The rule is scoped to body.jhl-nav-fix, which is set on the 8 pages that
   need it. quotation.html and portfolio.html do NOT carry that class:
   neither has an overlap (the fullscreen hero and the jhl-hero padding
   already clear the nav), and padding them would break the fullscreen hero.

   This file is linked from all 10 pages, because the heading rules below
   apply to pages that need no nav padding at all.
   -------------------------------------------------------------------------- */
body.jhl-nav-fix {
  padding-top: var(--jhl-nav-overlap, 0px);
}
@media (min-width: 768px) and (max-width: 1199px) {
  body.jhl-nav-fix {
    padding-top: var(--jhl-nav-overlap, 160px);
  }
}

/* --------------------------------------------------------------------------
   2. Heading levels

   The page title was an h2 and is now the h1. `.mbr-section-title` sets
   `margin: 0` and `.display-2` sets the font size, so the h1 renders exactly
   like the h2 it replaced — no visual change at all.

   The page subtitle was an h3 and is now an h2, so the outline reads
   h1 > h2 > h3 instead of skipping a level. It keeps the 1em spacing the h3
   always had (the font size comes from .display-5 either way).
   -------------------------------------------------------------------------- */
h2.mbr-section-subtitle {
  margin: 1em 0;
}

/* The "01 / 02 / 03" counters were h4 elements, which put a level-4 heading
   ahead of the level-3 title it belongs to. They are decoration, not
   headings. As p elements with the same weight and spacing they render
   identically. */
p.jhl-counter {
  font-weight: bold;
  margin: 1.33em 0;
}

/* The three form pages had their only heading as an h4. It is now the page
   h1, and keeps the spacing it always had. */
h1.jhl-form-title {
  margin: 1.33em 0;
}

/* The three trust boxes in the homepage hero were h4, directly under the h1,
   which skipped a level. They are now h2, which makes the outline
   h1 > h2 > h3 with no gaps. They keep the spacing the h4 always had. */
h2.box-item-title {
  margin: 1.33em 0;
}

/* The four "JHL Difference" card titles were h4, directly under the h2 of
   that section, which skipped a level. They are now h3. */
h3.card-title {
  margin: 1.33em 0;
}
/* --------------------------------------------------------------------------
   3. The empty headings

   Mobirise left an empty <h2 class="...block-title..."></h2> inside its own
   empty section on page5, page6 and page7 - a heading with no text, which
   screen readers announce as a blank heading and which adds nothing to the
   document outline.

   The empty heading is replaced by a plain spacer div. The heading contributed
   exactly 8px of bottom margin (bootstrap's .5rem on h1-h6) and no height, so
   the spacer carries the same 8px margin and the page renders pixel for pixel
   as it did before. Measured at 390 / 768 / 1024 / 1440px wide: section height,
   the top of the next section and the total page height are all unchanged.

   The empty SECTION itself is left in place. Removing it would pull the rest of
   the page up by 60-68px, which is a visible design change and not this file's
   decision to make.
   -------------------------------------------------------------------------- */
.jhl-empty-heading {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. The footer copyright row

   The legacy footer row is a flex container - `.cid-sZeZJNlYLL .copyright` and
   `.cid-sZf2bpLeQ5 .copyright` in mbr-additional.css both set `display: flex` -
   and the copyright paragraph carries `width: 100%`.

   When the address paragraph was added as a second child of that row, the two
   shared the width: the client's copyright line was squeezed into half the
   footer and re-wrapped onto two lines, and the address sat beside it.

   Letting the row wrap puts each paragraph on its own full-width line. The
   copyright renders exactly as it did before the address was added - one
   centred line - and the address sits on the line underneath, which is also
   how the 7 new-style pages show it. The 0.3rem row gap keeps the two lines
   from touching.
   -------------------------------------------------------------------------- */
.cid-sZeZJNlYLL .copyright,
.cid-sZf2bpLeQ5 .copyright {
  flex-wrap: wrap;
  row-gap: 0.3rem;
}