/* =====================================================
   5BRANDS INNER PAGE NAVBAR / SCROLLBAR FIX

   Loaded ONLY by:
   - Who We Are
   - What We Do
   - Our Work

   Home and Contact remain untouched.
===================================================== */


/*
   Make the browser root the actual vertical scroller.

   This prevents a body/hero/full-screen layout from
   painting its own content over the native scrollbar.
*/

html {
    height: auto !important;
    min-height: 100% !important;

    overflow-x: hidden !important;
    overflow-y: scroll !important;

    scrollbar-gutter: auto !important;
}


body {
    height: auto !important;
    min-height: 100vh !important;

    overflow-x: hidden !important;
    overflow-y: visible !important;
}


/*
   IMPORTANT:
   Do not use 100vw.

   left:0 + right:0 makes the navbar use the browser's
   layout viewport, which automatically stops at the
   native scrollbar gutter.

   The scrollbar therefore stays visible at the extreme
   right edge above/beside the navbar just like the
   working pages.
*/

.topbar {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    transform: none !important;

    box-sizing: border-box !important;
}


/* Override any old tablet 100vw / centred-header rule */

@media screen and (min-width: 769px) and (max-width: 1024px) {

    .topbar {
        left: 0 !important;
        right: 0 !important;

        width: auto !important;
        max-width: none !important;

        transform: none !important;
    }
}


/* Override any old mobile 100vw / translateX rule */

@media screen and (max-width: 768px) {

    .topbar {
        left: 0 !important;
        right: 0 !important;

        width: auto !important;
        max-width: none !important;

        transform: none !important;
    }
}

/* 5BRANDS WHAT WE DO COMPACT SPACING START */

/*
   Only adjusts the large vertical gaps.
   No widths, grids, images, typography sizes,
   or horizontal positioning are changed.
*/


/* -----------------------------------------------------
   Brand Strategy & Identity
   Digital & Social Ecosystems
   Creative & Content
----------------------------------------------------- */

body.what-we-do-page .fivebrands-experience-content h2,
body.what-we-do-page .fivebrands-corporate-left h2,
body.what-we-do-page .fivebrands-commerce-content h2 {
    margin-bottom: 44px !important;
}


/* Statement -> THROUGH */

body.what-we-do-page .fivebrands-note,
body.what-we-do-page .fivebrands-corporate-note,
body.what-we-do-page .fivebrands-commerce-note {
    margin-bottom: 22px !important;
}


body.what-we-do-page .fivebrands-through {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}


/* -----------------------------------------------------
   Field Sales & Marketing
----------------------------------------------------- */

body.what-we-do-page .fivebrands-field-tag {
    margin-bottom: 26px !important;
}


body.what-we-do-page .fivebrands-field-content h2 {
    margin-bottom: 46px !important;
}


body.what-we-do-page .fivebrands-field-note {
    margin-bottom: 30px !important;
}


/* -----------------------------------------------------
   TABLET
----------------------------------------------------- */

@media screen and (max-width: 1200px) {

    body.what-we-do-page .fivebrands-experience-content h2,
    body.what-we-do-page .fivebrands-corporate-left h2,
    body.what-we-do-page .fivebrands-commerce-content h2 {
        margin-bottom: 34px !important;
    }

    body.what-we-do-page .fivebrands-note,
    body.what-we-do-page .fivebrands-corporate-note,
    body.what-we-do-page .fivebrands-commerce-note {
        margin-bottom: 18px !important;
    }

    body.what-we-do-page .fivebrands-through {
        margin-top: 6px !important;
    }

    body.what-we-do-page .fivebrands-field-content h2 {
        margin-bottom: 34px !important;
    }

    body.what-we-do-page .fivebrands-field-note {
        margin-bottom: 24px !important;
    }
}


/* -----------------------------------------------------
   MOBILE
----------------------------------------------------- */

@media screen and (max-width: 768px) {

    body.what-we-do-page .fivebrands-experience-content h2,
    body.what-we-do-page .fivebrands-corporate-left h2,
    body.what-we-do-page .fivebrands-commerce-content h2 {
        margin-bottom: 26px !important;
    }

    body.what-we-do-page .fivebrands-note,
    body.what-we-do-page .fivebrands-corporate-note,
    body.what-we-do-page .fivebrands-commerce-note {
        margin-bottom: 14px !important;
    }

    body.what-we-do-page .fivebrands-through {
        margin-top: 4px !important;
    }

    body.what-we-do-page .fivebrands-field-tag {
        margin-bottom: 20px !important;
    }

    body.what-we-do-page .fivebrands-field-content h2 {
        margin-bottom: 26px !important;
    }

    body.what-we-do-page .fivebrands-field-note {
        margin-bottom: 20px !important;
    }
}

/* 5BRANDS WHAT WE DO COMPACT SPACING END */
