/* Site-specific overrides – loaded after all theme/plugin CSS. */

/* Home page (header-2): centre the main menu horizontally in the space beside the logo and
   vertically against the logo (desktop only; the mobile header is a separate component). */
@media (min-width: 992px) {
    .header-2 .header-container {
        display: flex;
        align-items: center;
    }
    .header-2 .header-container > .header-logo {
        flex: 0 0 auto;
    }
    .header-2 .header-nav-right {
        float: none;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        text-align: center;
    }
    .header-2 .header-nav-right .header-nav-above {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 90px;
    }
    .sticky-wrapper.is-sticky .header-2 .header-nav-right .header-nav-above {
        line-height: 66px;
    }
}
/* medium desktops: tighten the 40px item gap so the menu stays on one line */
@media (min-width: 992px) and (max-width: 1279px) {
    .header-2 .x-nav-menu > .x-menu-item + .x-menu-item {
        margin-left: 18px;
    }
}
@media (min-width: 992px) and (max-width: 1079px) {
    .header-2 .x-nav-menu > .x-menu-item + .x-menu-item {
        margin-left: 12px;
    }
    /* below ~1060px the menu needs two lines – keep both lines centred */
    .header-2 #primary-menu .main-menu {
        text-align: center;
        line-height: 32px;
    }
}

/* Home hero enquiry form (inside the Slider Revolution layer).
   The Name / Email / Phone / Post Code inputs were painted white by Bootstrap's .form-control,
   which hid their white placeholder labels. Style them like the message box instead. */
sr7-module[data-alias="home-2"] .wpcf7-form input.form-control {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 4px;
    color: #fff !important;
    box-shadow: none !important;
    margin-bottom: 8px !important;
}
sr7-module[data-alias="home-2"] .wpcf7-form textarea.form-control {
    color: #fff !important;
}
sr7-module[data-alias="home-2"] .wpcf7-form .form-control:focus {
    border-color: #fff !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    outline: none;
}
/* keep browser autofill from turning the fields white/yellow again */
sr7-module[data-alias="home-2"] .wpcf7-form input.form-control:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(41, 128, 170, 0.95) inset !important;
    transition: background-color 9999s;
}
/* validation messages readable on the blue panel */
sr7-module[data-alias="home-2"] .wpcf7-not-valid-tip {
    color: #ffe08a;
    font-size: 12px;
    line-height: 1.2;
    margin: -6px 0 6px;
}
sr7-module[data-alias="home-2"] .wpcf7 form .wpcf7-response-output {
    color: #fff;
    margin: 6px 0 0;
}
