/*
Theme Name: ISLTS
Author: Pop Creative
Author URI: https://www.popcreative.co.uk/
Version: 0.1.0
*/

*, ::before, ::after {
    box-sizing: border-box;
}


body {
    background-color: #fafafa;
    margin: 0;
}

body,
button,
input,
textarea {
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
}

.d-block {
    display: block;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    width: 980px;
}

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.text-center {
    text-align: center;
}

@media(min-width: 580px) {
    .align-items-sm-center {
        -webkit-box-align: center!important;
        -ms-flex-align: center!important;
        align-items: center!important;
    }

    .col-sm-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.33333333%;
        flex: 0 0 33.33333333%;
        max-width: 33.33333333%;
    }

    .col-sm-6 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-8 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 66.66666667%;
        flex: 0 0 66.66666667%;
        max-width: 66.66666667%;
    }

    .text-sm-left {
        text-align: left;
    }
}

@media(min-width: 768px) {
    .align-items-md-center {
        -webkit-box-align: center!important;
        -ms-flex-align: center!important;
        align-items: center!important;
    }

    .col-md-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.33333333%;
        flex: 0 0 33.33333333%;
        max-width: 33.33333333%;
    }

    .col-md-6 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 66.66666667%;
        flex: 0 0 66.66666667%;
        max-width: 66.66666667%;
    }
}

@media(min-width: 992px) {
    .align-items-lg-center {
        -webkit-box-align: center!important;
        -ms-flex-align: center!important;
        align-items: center!important;
    }

    .col-lg-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.33333333%;
        flex: 0 0 33.33333333%;
        max-width: 33.33333333%;
    }

    .col-lg-6 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-8 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 66.66666667%;
        flex: 0 0 66.66666667%;
        max-width: 66.66666667%;
    }
}

@font-face {
    font-family: "Open Sans";
    src: url("assets/fonts/OpenSans-Light-webfont.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url("assets/fonts/OpenSans-LightItalic-webfont.woff") format("woff");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Open Sans";
    src: url("assets/fonts/OpenSans-Regular-webfont.woff") format("woff");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url("assets/fonts/OpenSans-Italic-webfont.woff") format("woff");
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: "Open Sans";
    src: url("assets/fonts/OpenSans-Semibold-webfont.woff") format("woff");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url("assets/fonts/OpenSans-SemiboldItalic-webfont.woff") format("woff");
    font-weight: 800;
    font-style: italic;
}

/* template contact form styles */

#wpcf7-f12874-o1,
#wpcf7-f12876-o1 {
    padding: 1rem 2rem 2rem;
    background-color: #e7eff7;
    position: relative;
}

#wpcf7-f12874-o1 h2,
#wpcf7-f12876-o1 h2 {
    color: #0064b9;
}

#wpcf7-f12874-o1 > form > p:nth-of-type(2),
#wpcf7-f12876-o1 > form > p:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

#wpcf7-f12874-o1 > form .your-name,
#wpcf7-f12874-o1 > form .your-phone,
#wpcf7-f12874-o1 > form .your-email,
#wpcf7-f12876-o1 > form .your-name,
#wpcf7-f12876-o1 > form .your-phone,
#wpcf7-f12876-o1 > form .your-email {
    grid-column: 1;
}

#wpcf7-f12874-o1 > form .your-message,
#wpcf7-f12876-o1 > form .your-message {
    grid-column: 2/4;
    grid-row: 1/4;
    margin-left: 20px;
}

#wpcf7-f12874-o1 > form .your-message textarea,
#wpcf7-f12876-o1 > form .your-message textarea {
    width: 100%;
}

#wpcf7-f12874-o1 > form input,
#wpcf7-f12874-o1 > form textarea,
#wpcf7-f12876-o1 > form input,
#wpcf7-f12876-o1 > form textarea {
    padding: 5px;
    border: none;
}

#wpcf7-f12874-o1 > form input[type=submit],
#wpcf7-f12876-o1 > form input[type=submit] {
    position: absolute;
    right: 2rem;
    bottom: 14px;
    background-color: #fa9e00;
    color: #ffffff;
    border: 1px solid #f3ac33;
    padding: 5px 12px;
    cursor: pointer;
}

#wpcf7-f12874-o1 > form input[type=submit]:hover,
#wpcf7-f12876-o1 > form input[type=submit]:hover {
    background-color: #f3ac33;
}

#wpcf7-f12874-o1 > form .wpcf7-spinner,
#wpcf7-f12876-o1 > form .wpcf7-spinner {
    display: none;
}

@media (max-width: 767px) {
    #wpcf7-f12874-o1 > form > p:nth-of-type(2),
    #wpcf7-f12876-o1 > form > p:nth-of-type(2) {
        grid-template-columns: 1fr;
    }

    #wpcf7-f12874-o1 > form .your-message,
    #wpcf7-f12876-o1 > form .your-message {
        grid-column: unset;
        grid-row: unset;
        margin-left: unset;
    }

    #wpcf7-f12874-o1 > form input[type=submit],
    #wpcf7-f12876-o1 > form input[type=submit] {
        position: initial;
    }

    #wpcf7-f12874-o1 > form input,
    #wpcf7-f12874-o1 > form textarea,
    #wpcf7-f12876-o1 > form input,
    #wpcf7-f12876-o1 > form textarea {
        width: 100%;
    }
}


/* mobile footer pop-up */

#footer-popup {
    background-color: #252122;
    color: #ffffff;
    position: fixed;
    bottom: -130px;
    width: 100%;
    padding-bottom: 1.5rem;
    z-index: 1;
    transition: all 0.5s ease;
}

#footer-popup.popup-form-open {
    bottom: 0 !important;
}

#footer-popup .contact-form {
    border-radius: 1rem;
    position: relative;
    max-height: 0px;
    margin-top: 0px;
    overflow: hidden;
    padding: 0;
    transition: all 0.5s ease;
    background-color: #e7eff7;
    font-weight: normal;
}

#footer-popup.popup-form-open .contact-form {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem 0;
    max-height: 466px;
    transition: all 0.5s ease;
}

#footer-popup #popup-form-close {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #231f20;
    width: 24px;
    cursor: pointer;
}

#footer-popup .contact-form h2 {
    color: #0064b9;
}

#footer-popup .contact-form p {
    color: #231f20;
}

#footer-popup .contact-form input,
#footer-popup .contact-form textarea {
    max-height: 4rem;
    border: none;
    padding: 0.2rem 0.6rem;
}

#footer-popup .contact-form input[type=submit] {
    background-color: #fa9e00;
    padding: 0.25rem 1.25rem 0.15rem;
    color: #ffffff;
    margin: 0 auto;
    display: block;
}

#footer-popup a {
    display: block;
    padding: 14px;
    border-radius: 2rem;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    font-weight: 900;
    position: relative;
}

#footer-popup .popup-call {
    background-color: #0080ec;
    margin-top: -24px;
}

#footer-popup .popup-call svg {
    position: absolute;
    margin-left: -28px;
    top: 18px;
}

#footer-popup .popup-call img {
    position: absolute;
    border-radius: 50%;
    height: 4rem;
    top: -6px;
    right: 0;
}

#footer-popup .popup-times {
    letter-spacing: -0.5px;
}

#footer-popup .popup-times:before {
    content: '';
    display: inline-block;
    height: 16px;
    width: 16px;
    background-color: #1ec001;
    border-radius: 50%;
    margin-right: 10px;
    transform: translateY(2px);
}

#footer-popup #popup-message {
    background-color: #fa9f00;
}

#footer-popup #popup-message svg {
    position: absolute;
    top: 11px;
    height: 2rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

#footer-popup.popup-form-open #popup-message svg {
    transform: rotate(90deg);
}

@media (max-width: 350px) {
    #footer-popup .popup-times {
        font-size: 14px;
    }
}

@media (min-width: 500px) {
    #footer-popup {
        display: none;
    }
}

.navigation-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    width: 70px;
    font-weight: normal;
    font-size: 1.125rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    line-height: 1;
    background-color: #0064b9;
    color: white;
    border: 0;
    outline: 0;
    cursor: pointer;
    transition: background-color 0.1s;
    margin-left: auto;
}

.navigation-toggle:hover {
    background-color: #00569f;
}

.navigation-toggle.-open {
    background-color: #004886;
}

.navigation-toggle.-open:hover {
    background-color: #003b6c;
}

.navigation-toggle>.icon {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.8rem;
    transform: scaleX(1.3);
}

.mobile_logo {
    display: none;
}

@media (max-width: 799px) {
    .navigation-toggle + ul.header-navigation {
        height: 0px;
        transition: height 0.3 ease-in-out;
    }

    .navigation-toggle.-open + ul.header-navigation {
        height: calc(-120px + 100vh);
    }

    .header-navigation-container {
        max-width: none !important;
        width: auto;
        background-color: #00569f;
    }

    .header-navigation {
        background-color: #0064b9;
    }

    .header-navigation,
    .header-navigation .sub-menu {
        margin: 0;
        padding: 0;
        list-style-type: none;
        overflow-y: hidden;
        height: 0;
    }

    .header-navigation .menu-item,
    .header-navigation .menu-item>a {
        transition: background-color 0.2s;
        text-decoration: none;
    }

    .header-navigation>.menu-item.-open,
    .header-navigation>.menu-item>a:hover {
        background-color: #00569f;
    }

    .header-navigation .menu-item>a:hover {
        text-decoration: none;
    }

    .header-navigation .menu-item>a {
        text-align: center;
        font-weight: normal;
        color: white;
        padding: 0.65rem 1.25rem;
        display: block;
        position: relative;
    }

    .header-navigation .menu-item-has-children>a::after {
        /* color: white; the colour is set in the svg below */
        /* from: https://fontawesome.com/icons/chevron-down?style=solid */
        content: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' width='16' height='16'%3E%3Cpath fill='white' d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'%3E%3C/path%3E%3C/svg%3E");
        position: absolute;
        right: 0;
        top: 0.85rem;
        line-height: 0.8;
        margin-right: 0.7rem;
        display: inline-block;
        transition: transform 0.2s;
    }

    .header-navigation .menu-item-has-children.-open>a::after {
        transform: scaleY(-1);
    }

    .header-navigation>.menu-item.-open>a:hover,
    .header-navigation>.menu-item>.sub-menu>.menu-item>a:hover {
        background-color: #004886;
    }

    .header-navigation .current-menu-item>a>span,
    .header-navigation .current-menu-ancestor>a>span {
        border-bottom-width: 0.1rem;
        border-bottom-style: solid;
        border-bottom-color: white;
        padding-bottom: 0.1rem;
    }

    .mobile_logo {
        width: 60px;
        position: absolute;
        left: 50%;
        padding-top: 4px;
        transform: translateX(-50%);
        display: block;
    }

    .navigation-toggle {
        justify-content: end;
        padding: 0.5rem 1rem;
    }

    .navigation-toggle>.icon {
        width: 1.5rem;
        height: 3.2rem;
    }

    .header-mobile.nav_open {
        position: sticky;
        top: 0;
        z-index: 9;
    }
    
    .sub-menu {
        max-height: 100% !important;
    }
}

@media (min-width: 800px) {
    .navigation-toggle {
        display: none;
    }

    .header-navigation-wrapper {
        background-color: #0064b9;
    }

    .header-navigation,
    .header-navigation .sub-menu {
        margin: 0;
        padding: 0;
        list-style-type: none;
        height: auto !important;
    }

    .header-navigation {
        display: flex;
        justify-content: space-between;
    }

    .header-navigation .menu-item>a {
        color: white;
        display: inline-block;
        padding: 0.9rem 0;
        font-weight: normal;
        font-size: 1rem;
        transition: color 0.1s;
        text-decoration: none;
    }

    .header-navigation .menu-item>a:hover {
        text-decoration: none;
        color: #fa9e00;
    }

    .header-navigation .current-menu-item>a>span,
    .header-navigation .current-menu-ancestor>a>span {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: white;
        padding-bottom: 0.15rem;
        transition: border-color 0.1s;
    }

    .header-navigation .current-menu-item>a:hover>span,
    .header-navigation .current-menu-ancestor>a:hover>span {
        border-color: #fa9e00;
    }

    .header-navigation>.menu-item {
        position: relative;
    }

    .header-navigation .sub-menu {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.1s;
        z-index: 1;
        position: absolute;
        background-color: #0064b9;
        left: -1.25rem;
        padding-bottom: 0.375rem;
        min-width: 10rem;
    }

    .header-navigation>.menu-item:hover>.sub-menu {
        opacity: 1;
        pointer-events: auto;
    }

    .header-navigation .sub-menu>.menu-item>a {
        display: block;
        padding: 0.375rem 1.25rem;
        white-space: nowrap;
    }
}

.hide-desktop {
	display:block;
}

.hide-mobile {
	display:none;
}

@media screen and (max-width:991px) {
	.hide-desktop {
		display:none;
	}
	
	.hide-mobile {
		display:block;
	}
}