/* Global typography, links, forms and generic Salient / WPBakery element styling. */

@import url("../fonts/stylesheet.css");

/* ------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------ */

body {
    font-family: var(--sc-font-sans);
    color: var(--sc-text);

    /* Nested under body on purpose: the extra weight is needed to win over Salient's own rules. */
    b,
    i,
    em,
    .testimonial_slider[data-style="minimal"] blockquote span.title {
        font-family: var(--sc-font-sans);
    }

    @media (max-width: 690px) {
        h1 {
            line-height: 50px;
        }
    }

    @media (max-width: 600px) {
        h3,
        .row .span_2 h3,
        .row .span_3 h3,
        .row .span_4 h3,
        .row .vc_col-sm-2 h3,
        .row .vc_col-sm-3 h3,
        .row .vc_col-sm-4 h3,
        .row .col h3 {
            line-height: 20px;
        }
    }
}

h1 {
    font-family: var(--sc-font-serif) !important;
    font-size: 46px;

    @media (max-width: 1024px) {
        .wpb_wrapper & {
            font-size: 45px !important;
        }
    }
}

h2 {
    font-family: var(--sc-font-sans) !important;
    line-height: 1.3em;
    font-weight: normal;
}

h3,
h4,
h5,
h6 {
    font-family: var(--sc-font-sans) !important;
    font-weight: normal;
}

p,
li {
    font-size: 1.125rem;
    color: var(--sc-text);
    line-height: 1.7;

    @media (max-width: 600px) {
        font-size: 14px;
    }
}

a,
label span {
    font-size: 1.125rem;
    color: var(--sc-accent);
    font-family: var(--sc-font-sans);
}

a:hover {
    color: var(--sc-orange700);
}

.title {
    h1,
    h3 {
        color: var(--sc-white);
    }

    h3 {
        font-size: 20px;
        line-height: 1.1em;
    }
}

/* ------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------ */

ul li {
    list-style: none;
}

ul.custom-list li {
    list-style: none;
    margin-bottom: 10px;
    color: var(--sc-text);
}

ul.custom-list li::before,
.wpb_wrapper li::before {
    content: "";
    height: 7px;
    background-color: var(--sc-accent);
    position: relative;
    width: 7px;
    left: -10px;
    bottom: 2px;
    vertical-align: middle;
    display: inline-block;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.nectar-button span {
    font-family: var(--sc-font-sans);
    font-size: 15px;
}

a.nectar-button.accent-color {
    background-color: var(--sc-accent) !important;
}

a.custom-btn {
    background-color: var(--sc-accent);
    color: var(--sc-white);
    padding: 10px 35px;
    font-style: italic;
    letter-spacing: 2px;
}

.btn-disabled {
    pointer-events: none;
    opacity: 0.7;
    color: var(--sc-grey100);
}

/* ------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */

form,
select,
input {
    font-family: var(--sc-font-sans);
}

/* Contact Form 7 */
form.wpcf7-form {
    p,
    p span {
        color: var(--sc-text) !important;
        padding-bottom: 0;
        font-weight: normal;
        margin: 0;
    }

    label {
        font-weight: normal;
        padding: 10px;
    }

    input,
    select,
    textarea {
        margin-top: 10px;
        background-color: transparent;
        border: 1px solid var(--sc-grey400);
    }

    textarea {
        height: 160px;
    }
}

body[data-form-submit="regular"] .container-wrap form.wpcf7-form input[type="submit"] {
    color: var(--sc-grey900);
    padding: 20px 25px 20px 25px !important;
    border: 1px solid var(--sc-grey900);
    border-radius: 5px;
    font-weight: 600;
    background-color: transparent !important;
    float: right;

    &:hover {
        color: var(--sc-white);
        border: 1px solid var(--sc-white);
        background-color: var(--sc-orange700) !important;
    }
}

span.wpcf7-list-item {
    display: block;
    margin: 0;
    font-size: 16px;
}

#register-interest {
    input.wpcf7-form-control.wpcf7-submit {
        float: left;
        margin: 35px 0;
    }

    .wpcf7-response-output {
        margin-top: 100px;
    }
}

.disclaimer {
    padding-top: 30px;

    i {
        font-size: 12px;
        color: var(--sc-text);
    }
}

div.contact-form {
    max-width: 620px;
}

/* Gravity Forms (used on the production /contact/ page) */
.gform_wrapper {
    input.large,
    textarea.large {
        margin-top: 10px;
        background-color: transparent;
        border: 1px solid var(--sc-grey400);
    }

    &.gf_browser_chrome select {
        padding: 6px;
    }
}

body .gform_wrapper .top_label .gfield_label,
.gform_fields p {
    font-family: var(--sc-font-serif);
    letter-spacing: 0px;
    font-size: 18px;
}

/* ------------------------------------------------------------------
   WPBakery / Salient elements
   ------------------------------------------------------------------ */

.tabbed[data-style="minimal_flexible"] .wpb_tabs_nav {
    flex-wrap: nowrap;

    @media (max-width: 1439px) {
        flex-wrap: wrap;
    }

    & > li a {
        @media (max-width: 1024px) {
            padding: 8px 15px;
        }
    }

    & > li a span {
        color: var(--sc-text);
        font-size: 1.5rem;
    }

    & > li a::after {
        height: 7px;
        bottom: -7px;
        background-color: var(--nectar-extra-color-1);
    }
}

ul.wpb_tabs_nav.ui-tabs-nav {
    @media (max-width: 690px) {
        justify-content: space-around;
    }
}

.toggle h3 a {
    font-size: 1.125rem;
    font-weight: bold;
    font-family: var(--sc-font-serif) !important;
}

/* Kept as weak as Salient's rule so its accent-coloured :hover state still wins. */
div[data-style="minimal"] {
    .toggle h3 a,
    .toggle.open h3 a {
        color: var(--sc-text);
    }

    .toggle.default.open i {
        border-color: var(--sc-text);
    }

    .toggle.open h3 i::before,
    .toggle.open h3 i::after {
        border-color: var(--sc-text);
        background-color: var(--sc-text);
    }
}

.wpb_column.boxed > .vc_column-inner {
    color: var(--sc-text);
    background-color: var(--sc-color2);

    p {
        color: inherit;
    }
}

.vc_col-sm-6.wpb_column.column_container.vc_column_container.col.child_column {
    &.first-column.no-extra-padding.instance-1 {
        width: 40%;
    }

    &.second-column.boxed.padding-5-percent.instance-2 {
        width: 60%;
    }
}

.nectar_cascading_images .cascading-image:not(:first-child) {
    @media (max-width: 768px) {
        display: none;
    }
}

img.img-with-animation.skip-lazy.cooperative.animated-in {
    max-width: 70px;
}

/* ------------------------------------------------------------------
   Blog
   ------------------------------------------------------------------ */

.post-area {
    &.standard-minimal {
        &[data-remove-post-author="1"] .post-author {
            display: none;
        }

        article.post .more-link {
            span {
                font-family: var(--sc-font-sans);
            }

            &:hover span {
                color: var(--sc-accent) !important;
            }
        }
    }

    &.masonry.meta_overlaid article.post {
        .post-meta .date,
        &.quote .quote-inner .author,
        &.link .post-content .destination {
            font-family: var(--sc-font-sans);
        }
    }
}

.masonry.meta_overlaid article.post .post-header .meta-author > span {
    font-family: var(--sc-font-sans);
}

.post .post-header h2 a {
    font-size: 2rem;
    color: var(--sc-accent);
}

div.excerpt {
    font-size: 1.125rem;
}

body.search-results #pagination .page-numbers {
    background-color: var(--sc-accent);
}

/* ------------------------------------------------------------------
   Layout and page-specific sections
   ------------------------------------------------------------------ */

.container-wrap,
.project-title {
    padding-bottom: 0px;
}

#pageheader {
    min-height: 620px;

    .row-bg.using-image {
        max-height: 500px;
    }
}

div.standard_section.mw-350 p {
    margin-left: -25px;

    @media (max-width: 999px) {
        margin-left: 0;
    }
}

#firsthub p,
#secondhub p,
#thirdhub p {
    color: var(--sc-text) !important;
    font-weight: 400;
}

#secondhub.full-width-content.vc_row-fluid .wpb_column .column-image-bg-wrap .column-image-bg {
    background-position-x: 10%;
}

#the-hub h1 {
    @media (max-width: 600px) {
        padding-top: 15px;
    }
}

.textabovelogo .wpb_text_column > .wpb_wrapper > *:last-child {
    @media (max-width: 768px) {
        max-width: 350px;
    }
}

#sidebar .filter-title {
    font-family: var(--sc-font-serif);
    color: var(--sc-grey800);
    padding-left: 10px;
}

#lecturer-section {
    display: none;
}

p.price-type {
    display: none;
}

.edwiser-bridge {
    margin: 0 auto;
    padding: 5em 0;
}

body.woocommerce-page .meta-block::before {
    @media (max-width: 600px) {
        left: 0;
    }
}
