/* ------------------- */
/* STYLESHEET SECTIONS */
/* ------------------- */
/* 1__CSS Resets
   2__Layout helpers
   3__Header
   4__Main content
   5__Footer
   6__Typo3 Overrides
   7__Bootstrap overrides
   8__Media queries
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --colour-primary: #004681;
    --colour-primary-lighter: #00adef;
    --colour-primary-darker: #003968;
    --colour-primary-darker2: #002c50;
    --colour-dark-grey: #445;
    --colour-secondary: #017e44;
    --colour-secondary-darker: #016838;
    --colour-secondary-darker2: #01502b;
    --colour-chartreuse: #86b83b;
    --asr-50: 50%;
    --asr-75: 75%;
    --asr-100: 100%;
    --rich-content-card-img-ratio: 70%;
}

/* ------------------------ */
/* 1__CSS Resets            */
/* ------------------------ */
/* Limited CSS reset */
/* See normalize-4.1.1.css */

html, body, button, input, select, textarea {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

html {
    height: 100%;
    font-size: 16px; /* This is the base size the rem unit refers to */
}

body {
    position: relative;
    font-size: 1.1rem;
    min-height: 100%;
    margin: 0;
    padding: 0;
    color: var(--colour-dark-grey);
}

/* ------------------ */
/* 2__Layout helpers  */
/* ------------------ */
.constrain-825w {
    position: relative;
    /*position: inherit;*/
    max-width: 825px;
    margin: 0 auto;
}

.constrain-1240w {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

.mobile-only-block,
.mobile-only-inline {
    display: none;
}

.desktop-only-block {
    display: block;
}

.desktop-only-inline {
    display: inline-block;
}

/* START object-fit:cover Fix for IE & IE Edge */
/* Note, requires JS to write the "compat-object-fit class to appropriate container element */
.compat-object-fit {
    background-size: cover;
    background-position: center center;
}

.compat-object-fit-x-left {
    background-size: cover;
    background-position-x: left;
}

.compat-object-fit-x-center {
    background-size: cover;
    background-position-x: center;
}

.compat-object-fit-x-right {
    background-size: cover;
    background-position-x: right;
}

.compat-object-fit-y-top {
    background-size: cover;
    background-position-y: top;
}

.compat-object-fit-y-center {
    background-size: cover;
    background-position-y: center;
}

.compat-object-fit-y-bottom {
    background-size: cover;
    background-position-y: bottom;
}

/* Hide the image if object fit is not supported in IE/Edge - opacity to 0 for the link area */
.compat-object-fit img {
    opacity: 0;
}

/* ------------------------ */
/* 3__Header styles         */
/* ------------------------ */
#top-header .header-row-1 {
    background: rgb(0, 57, 104);
    background: linear-gradient(90deg, rgba(0, 57, 104, 1) 0%, rgba(23, 101, 167, 1) 100%);
    color: white;
    padding: 25px 15px;
    text-align: right;
    font-size: 1.4em;
    font-weight: 600;
}

#top-header .header-row-1__grid {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;

}

#top-header .header-row-1 .phone-contact {
    margin-right: 45px;
}

#top-header .header-row-1 a,
#top-header .header-row-1 a:visited {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

#top-header .header-row-1 a:active,
#top-header .header-row-1 a:focus,
#top-header .header-row-1 a:hover {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

#top-header .header-row-1 .icon-email,
#top-header .header-row-1 .icon-phone {
    margin-right: 10px;
}

#top-header .header-row-2 {
    padding: 25px 15px;
    border-bottom: 1px solid #ddd;
}

.header-row-2-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-areas: "header-logo-box header-menu-box";
    grid-column-gap: 20px;
}

.header-row-2-grid .header-logo-box {
    grid-area: header-logo-box;
    display: flex;
    align-items: center;
}

.header-row-2-grid .header-logo-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.header-row-2-grid .header-menu-box {
    grid-area: header-menu-box;
    padding-left: 20px;
    text-align: right;
}

.header-row-2-grid .header-cta-newsletter {
    grid-area: header-cta-newsletter;
    text-align: right;
}

.header-row-2-grid .header-mobile-nav-btn-box {
    grid-area: header-mobile-nav-btn-box;
    display: none;
}

#top-header .header-home-btn {
    font-size: 1.5em;
    margin-right: 10px;
    transition: color .3s;
    color: var(--colour-primary-lighter);
}

#top-header .header-home-btn:hover,
#top-header .header-home-btn:focus,
#top-header .header-home-btn:active {
    text-decoration: none;
    color: var(--colour-primary);
}

/* ------------------------ */
/* 4__Main Content          */
/* ------------------------ */
h1 {
    font-weight: 800;
    font-size: 2.7em;
    color: var(--colour-primary);
    font-family: 'Montserrat', sans-serif;
}

h2 {
    font-weight: 700;
    font-size: 2em;
    color: var(--colour-primary-lighter);
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

h3 {
    font-weight: 700;
    font-size: 1.45em;
    color: var(--colour-primary-lighter);
    font-family: 'Montserrat', sans-serif;
}

h4 {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--colour-primary);
    font-family: 'Montserrat', sans-serif;
}

a,
a:visited {
    color: var(--colour-chartreuse);
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    color: var(--colour-chartreuse);
    text-decoration: underline;
}

ul {
    padding-left: 1.1em;
}

.md-text {
    font-size: 1.4em;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
}

#top-hero-wrap {
    position: relative;
    margin-bottom: 1.5em;
}

#top-hero-wrap .cover {
    padding: 150px 0;
}

#top-hero-wrap img {
    display: none;
}

body[data-page-id="2"] #top-hero-wrap {
    margin-bottom: 0;
}

.masthead-grid {
    margin-top: -3em;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: -15px;
    margin-right: -15px;
}

.masthead-grid .mg-box {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    text-decoration: none;
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 40px;
    overflow: hidden
}

.masthead-grid .mg-box {
    /*transform: scale(1.00);*/
    /*transition: all .2s;*/
    border: 10px solid white;
}

/*
.masthead-grid .mg-box:hover {
    transform: scale(1.03);
    transition: all .3s;
}
*/

.masthead-grid .mg-box img {
    width: 100%;
    height: auto;
}

.masthead-grid .mg-box .text-content {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.125em 15px 0 15px;
}

.masthead-grid .mg-box .text-content {
    padding: .75em 1em;
    background: linear-gradient(90deg, rgba(0, 57, 104, 1) 0%, rgba(23, 101, 167, 1) 100%);
    color: white;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}


/* START: Contact forms */
form.contact-us-form {
    overflow: hidden;
    margin-left: -15px;
    margin-right: -15px;
}

form.contact-us-form .form-group.powermail_fieldwrap_type_submit {
    margin-bottom: 0;
}

form.contact-us-form .form-control:focus {
    box-shadow: 0 0 0 0.1rem rgba(93, 175, 190, .25);
}

form.contact-us-form .form-control,
form.trademark-filing-form .form-control {
    border-radius: 0;
}

form.contact-us-form label,
form.trademark-filing-form label {
    margin-bottom: .2em;
    font-weight: bold;
}

/* END: Contact forms  */

/* START: Contact form for footer */
/*
form.contact-us-form .powermail_fieldset_3 > .row {
    display: inline-block;
    width: 49.5%;
    margin-left: 0;
    margin-right: 0;
}

@media screen and (max-width: 576px) {
    form.contact-us-form .powermail_fieldset_3 > .row {
        width: 100%;
        display: block;
    }
}

form.contact-us-form .powermail_fieldset_3 > .row > .powermail_fieldwrap {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
*/

/* END: Contact form for footer  */

/* START: Contact form */
/*
form.contact-us-form .powermail_fieldset_1 > .row {
    display: inline-block;
    width: 49.5%;
    margin-left: 0;
    margin-right: 0;
}

@media screen and (max-width: 576px) {
    form.contact-us-form .powermail_fieldset_1 > .row {
        width: 100%;
        display: block;
    }
}

form.contact-us-form .powermail_fieldset_1 > .row > .powermail_fieldwrap {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
*/
/* END: Contact form for footer  */


.feature-panel {
    background-color: var(--colour-primary);
    color: white;
}

.feature-panel .panel-heading {
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, .25);
    color: white;
}

.feature-panel .panel-heading h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.65em;
    color: white;
}

.feature-panel .panel-body {
    padding: 15px 20px 20px;
}

.feature-panel .panel-body p {
    text-indent: 0;
}

.feature-panel .panel-body p:last-child {
    margin-bottom: 0;
}

.feature-panel .panel-body a,
.feature-panel .panel-body a:visited {
    display: block;
    color: var(--colour-primary-lighter);
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color .2s;
}

.feature-panel .panel-body a > i {
    margin-left: 2px;
}

.feature-panel .panel-body a:hover,
.feature-panel .panel-body a:focus,
.feature-panel .panel-body a:active {
    text-decoration: none;
    color: #fff;
}

.feature-panel .service-items .item {
    margin-bottom: .6em;
    padding-bottom: .6em;
    border-bottom: 2px solid rgba(255, 255, 255, .1);
}

.feature-panel .service-items .item:last-child {
    margin-bottom: 0;
    padding-bottom: 1em;
    border-bottom: none;
}

/* ------------------------ */
/* 5__Footer Content        */
/* ------------------------ */
/* A sticky footer. Requires:
		1. "position: relative;" to be set on the body tag.
		2. Javascript to dynamically determine footer height (on initial page launch and upon browser resizing
		   & set appropriate bottom padding on #site-body tag. Eg. function adjustPageLayout() */
footer {
    position: absolute;
    /*text-align: center;*/
    font-size: 0.9em;
    bottom: 0;
    width: 100%;
    z-index: 10001;
    background: #fff;
    /*text-transform: uppercase;*/
}

footer a,
footer a:visited {
    color: white;
    text-decoration: none;
}

footer a:hover,
footer a:focus,
footer a:active {
    color: white;
    text-decoration: underline;
}

footer .footer-part-1 {
    padding-top: 50px;
    padding-bottom: 50px;
    /*background-color: #F2F2F2;*/
    color: white;
    /*background-color: var(--colour-primary);*/
    background: rgb(0, 57, 104);
    background: linear-gradient(90deg, rgba(0, 57, 104, 1) 0%, rgba(23, 101, 167, 1) 100%);
}

footer .footer__biz-address {
    margin-top: 40px;
    margin-bottom: 30px;
}

footer h3 {
    font-size: 1.5625em;
    text-transform: uppercase;
}

footer h4 {
    color: var(--colour-primary-lighter);
}

footer p:last-child {
    margin-bottom: 0;
}

footer .footer__email-contact,
footer .footer__phone-contact {
    font-size: 1.4em;
}

footer .footer__email-contact {
    margin-bottom: 12px;
}

footer .footer__email-contact .fas,
footer .footer__phone-contact .fas {
    margin-right: 8px;
}

footer .footer__email-contact a,
footer .footer__email-contact a:visited {
    color: white;
}

footer .footer__email-contact a:hover,
footer .footer__email-contact a:focus,
footer .footer__email-contact a:active {
    color: white;
    text-decoration: underline;
}

footer a.footer-facebook-link,
footer a.footer-facebook-link:visited {
    color: white;
    font-size: 2.5em;
    transition: opacity .2s;
}

footer a.footer-facebook-link:hover,
footer a.footer-facebook-link:focus,
footer a.footer-facebook-link:active {
    opacity: .8;
}

footer .opening-hours-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 1.2em;
    margin-bottom: 30px;
}

footer .opening-hours-grid .box-1 {
    flex: 0 0 80px;
    width: 80px;
}

footer .opening-hours-grid .box-2 {
    flex: 0 0 calc(100% - 90px);
}

footer .footer-part-2 {
    padding-top: 30px;
    padding-bottom: 30px;
    color: white;
    /*background-color: var(--colour-secondary);*/
    background: rgb(0, 116, 62);
    background: linear-gradient(90deg, rgba(0, 116, 62, 1) 0%, rgba(20, 158, 94, 1) 100%);
}

footer a.btn-primary,
footer .btn-primary {
    padding: 1em 1.4em;
    color: white;
    background: none;
    border: 2px solid white;
    border-radius: 100px;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
}

footer .btn-primary:hover {
    color: var(--colour-primary);
    background-color: white;
    border: 2px solid white;
    text-decoration: none;
}

footer .btn-primary:focus,
footer .btn-primary.focus {
    color: #fff;
    background-color: var(--colour-primary-darker2);
    outline: none;
    border: 2px solid var(--colour-primary-darker2);
    text-decoration: none;
}

footer .btn-primary:not(:disabled):not(.disabled).active,
footer .btn-primary:not(:disabled):not(.disabled):active,
footer .show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--colour-primary-darker2);
    border: 2px solid var(--colour-primary-darker2);
}

footer .btn-primary.focus,
footer .btn-primary:focus,
footer .btn-primary:not(:disabled):not(.disabled).active:focus,
footer .btn-primary:not(:disabled):not(.disabled):active:focus,
footer .show > .btn-primary.dropdown-toggle:focus {
    box-shadow: none;
    border: 2px solid var(--colour-primary-darker2);
}

/* ------------------------ */
/* 6__Typo3 Overrides       */
/* ------------------------ */

/* ------------------------ */
/* 7__Bootstrap Overrides   */
/* ------------------------ */
.btn {
    font-size: 1em;
    padding: 1em 1.4em;
}

.btn.btn-small {
    font-size: .9em;
    padding: .3em 0.98em;
}

a.btn-primary,
.btn-primary {
    color: white;
    background-color: var(--colour-primary);
    border: 2px solid var(--colour-primary);
    border-radius: 100px;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--colour-primary-darker);
    border: 2px solid var(--colour-primary-darker);
    text-decoration: none;
}

.btn-primary:focus,
.btn-primary.focus {
    color: #fff;
    background-color: var(--colour-primary-darker2);
    outline: none;
    border: 2px solid var(--colour-primary-darker2);
    text-decoration: none;
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--colour-primary-darker2);
    border: 2px solid var(--colour-primary-darker2);
}

.btn-primary.focus,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: none;
    border: 2px solid var(--colour-primary-darker2);
}

a.btn-primary-reverse,
.btn-primary-reverse {
    color: var(--colour-primary);
    background-color: white;
    border: 2px solid var(--colour-primary);
    border-radius: 100px;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.btn-primary-reverse:hover {
    color: #fff;
    background-color: var(--colour-primary);
    text-decoration: none;
}

.btn-primary-reverse:focus,
.btn-primary-reverse.focus {
    color: #fff;
    background-color: var(--colour-primary-darker2);
    outline: none;
    text-decoration: none;
    border: 2px solid var(--colour-primary);
}

.btn-primary-reverse:not(:disabled):not(.disabled).active,
.btn-primary-reverse:not(:disabled):not(.disabled):active,
.show > .btn-primary-reverse.dropdown-toggle {
    color: #fff;
    background-color: var(--colour-primary-darker2);
    border: 2px solid var(--colour-primary-darker2);
}

.btn-primary-reverse.focus,
.btn-primary-reverse:focus,
.btn-primary-reverse:not(:disabled):not(.disabled).active:focus,
.btn-primary-reverse:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary-reverse.dropdown-toggle:focus {
    box-shadow: none;
    border: 2px solid var(--colour-primary-darker2);
}

a.btn-secondary,
.btn-secondary {
    color: white;
    background-color: var(--colour-secondary);
    border: 2px solid var(--colour-secondary);
    border-radius: 100px;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
}

.btn-secondary:hover {
    color: #fff;
    background-color: var(--colour-secondary-darker);
    border: 2px solid var(--colour-secondary-darker);
    text-decoration: none;
}

.btn-secondary:focus,
.btn-secondary.focus {
    color: #fff;
    background-color: var(--colour-secondary-darker2);
    outline: none;
    border: 2px solid var(--colour-secondary-darker2);
    text-decoration: none;
}

.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.show > .btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: var(--colour-secondary-darker2);
    border: 2px solid var(--colour-secondary-darker2);
}

.btn-secondary.focus,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
    box-shadow: none;
    border: 2px solid var(--colour-secondary-darker2);
}

a.btn-secondary-reverse,
.btn-secondary-reverse {
    color: var(--colour-secondary);
    background: none;
    border: 2px solid var(--colour-secondary);
    border-radius: 100px;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.btn-secondary-reverse:hover {
    color: #fff;
    background-color: var(--colour-secondary);
    text-decoration: none;
}

.btn-secondary-reverse:focus,
.btn-secondary-reverse.focus {
    color: #fff;
    background-color: var(--colour-secondary-darker2);
    outline: none;
    text-decoration: none;
}

.btn-secondary-reverse:not(:disabled):not(.disabled).active,
.btn-secondary-reverse:not(:disabled):not(.disabled):active,
.show > .btn-secondary-reverse.dropdown-toggle {
    color: #fff;
    background-color: var(--colour-secondary-darker2);
    border: 2px solid var(--colour-secondary-darker2);
}

.btn-secondary-reverse.focus,
.btn-secondary-reverse:focus,
.btn-secondary-reverse:not(:disabled):not(.disabled).active:focus,
.btn-secondary-reverse:not(:disabled):not(.disabled):active:focus,
.show > .btn-secondary-reverse.dropdown-toggle:focus {
    box-shadow: none;
    border: 2px solid var(--colour-secondary-darker2);
}

/* ------------------------ */
/* 8__Media Queries         */
/* ------------------------ */
@media only screen and (max-width: 1200px) {
    footer .footer__email-contact,
    footer .footer__phone-contact {
        font-size: 1.2em;
    }
}

@media only screen and (max-width: 1050px) {
    #top-header .header-row-2 {
        padding: 25px 0;
    }

    .header-row-2-grid {
        display: grid;
        grid-template-columns: 245px 1fr;
        grid-template-areas: "header-logo-box header-mobile-nav-btn-box" "header-menu-box header-menu-box";
        grid-column-gap: 20px;
    }

    .header-row-2-grid .header-logo-box {
        padding: 0 0 15px 15px;
    }

    .header-row-2-grid .header-mobile-nav-btn-box {
        display: block;
        text-align: right;
        padding-right: 15px;
    }

    #top-header .header-home-btn {
        display: none;
    }

    .header-row-2-grid .header-menu-box {
        padding-left: 0;
    }
}

@media only screen and (max-width: 990px) {
    footer .footer__email-contact,
    footer .footer__phone-contact {
        font-size: 1.4em;
    }
}

@media only screen and (max-width: 820px) {
    .masthead-grid .mg-box {
        flex: 0 0 calc(50% - 30px);
        margin: 0 15px 30px;
    }
}

@media only screen and (max-width: 768px) {
    body {
        font-size: 1em;
    }

    .footer-facebook-link {
        display: inline-block;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 680px) {
    #top-header .header-row-1 {
        padding: 12px 15px;
        font-size: 1.1em;
    }

    .masthead-grid .mg-box {
        border: 6px solid white;
    }
}

@media only screen and (max-width: 560px) {
    #top-header .header-row-1 {
        padding: 10px 15px;
        font-size: 1.7em;
    }

    .header-email-contact {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    .header-phone-text {
        display: none;
    }

    .mobile-only-block {
        display: block;
    }

    .mobile-only-inline {
        display: inline;
    }

    .desktop-only-block,
    .desktop-only-inline {
        display: none;
    }

    .masthead-grid {
        margin-left: 0;
        margin-right: 0;
    }

    .masthead-grid .mg-box {
        flex: 1 1 100%;
        margin: 0 0 30px;
    }

    .masthead-grid .mg-box img {
        width: 100%;
    }
}
