/* =========================================================
   MCDAID MORTGAGES - WEBSITE DESIGN
   WPBAKERY CUSTOM CSS
   ========================================================= */


/* =========================================================
   COLOURS
   ========================================================= */

:root {
    --mc-navy: #06284a;
    --mc-navy-dark: #031d38;
    --mc-blue: #3e9bea;
    --mc-blue-light: #eaf4fc;
    --mc-text: #10243a;
    --mc-muted: #64748b;
    --mc-white: #ffffff;
    --mc-border: #dce6ef;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.mc-section {
    position: relative;
    width: 100%;
}

.mc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.mc-heading {
    color: var(--mc-navy);
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
    margin-bottom: 20px;
}

.mc-heading span {
    color: var(--mc-blue);
}

.mc-text {
    color: var(--mc-text);
    font-size: 18px;
    line-height: 1.6;
}


/* =========================================================
   HERO
   ========================================================= */

.mc-hero {
    position: relative;
    background: var(--mc-navy);
    color: #fff;
    min-height: 590px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mc-hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 25px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.mc-hero-content {
    width: 50%;
    padding-right: 50px;
}

.mc-hero h1 {
    color: #fff;
    font-size: 58px;
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 25px;
    letter-spacing: -1.5px;
}

.mc-hero h1 span {
    color: var(--mc-blue);
}

.mc-hero p {
    color: rgba(255,255,255,.9);
    font-size: 19px;
    line-height: 1.6;
    max-width: 530px;
    margin-bottom: 30px;
}

.mc-hero-image {
    width: 50%;
    height: 590px;
    position: absolute;
    right: 0;
    top: 0;
    background-size: cover;
    background-position: center;
}

.mc-hero-image:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 180px;
    background: linear-gradient(
        90deg,
        var(--mc-navy),
        rgba(6,40,74,0)
    );
}


/* =========================================================
   BUTTONS
   ========================================================= */

.mc-btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .2s ease;
    margin-right: 10px;
}

.mc-btn-primary {
    background: var(--mc-blue);
    color: #fff !important;
}

.mc-btn-primary:hover {
    background: #2385d5;
    transform: translateY(-2px);
}

.mc-btn-outline {
    border: 1px solid rgba(255,255,255,.8);
    color: #fff !important;
}

.mc-btn-outline:hover {
    background: #fff;
    color: var(--mc-navy) !important;
}


/* =========================================================
   TRUST
   ========================================================= */

.mc-trust {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.mc-stars {
    color: #fff;
    letter-spacing: 2px;
}


/* =========================================================
   JOURNEY CARDS
   ========================================================= */

.mc-journeys {
    background: #fff;
    position: relative;
    margin-top: -1px;
}

.mc-journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.mc-journey {
    padding: 35px 28px;
    border: 1px solid var(--mc-border);
    background: #fff;
    min-height: 220px;
    transition: all .25s ease;
}

.mc-journey:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6,40,74,.10);
}

.mc-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--mc-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-blue);
    font-size: 22px;
    margin-bottom: 20px;
}

.mc-journey h3 {
    color: var(--mc-navy);
    font-size: 21px;
    margin-bottom: 10px;
}

.mc-journey p {
    color: var(--mc-text);
    font-size: 15px;
    line-height: 1.5;
}

.mc-arrow {
    color: var(--mc-navy);
    font-size: 24px;
    float: right;
}


/* =========================================================
   CALCULATOR
   ========================================================= */

.mc-calculator-section {
    padding: 70px 0;
    background: #f6f9fc;
}

.mc-calculator {
    background: var(--mc-navy);
    border-radius: 8px;
    padding: 45px;
    color: #fff;
}

.mc-calculator h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 8px;
}

.mc-calculator-intro {
    color: rgba(255,255,255,.75);
    margin-bottom: 30px;
}

.mc-calc-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 30px;
}

.mc-calc-field {
    margin-bottom: 22px;
}

.mc-calc-field label {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 7px;
}

.mc-calc-field input {
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
}

.mc-result {
    background: rgba(255,255,255,.09);
    border-radius: 7px;
    padding: 30px;
}

.mc-result small {
    color: rgba(255,255,255,.7);
}

.mc-result-number {
    font-size: 38px;
    font-weight: 700;
    color: var(--mc-blue);
    margin: 8px 0 25px;
}


/* =========================================================
   WHY MCDAID
   ========================================================= */

.mc-about {
    background: var(--mc-blue-light);
    padding: 70px 0;
}

.mc-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mc-benefit {
    margin: 18px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mc-benefit-check {
    color: var(--mc-blue);
    font-weight: 700;
    font-size: 20px;
}


/* =========================================================
   LENDERS
   ========================================================= */

.mc-lenders {
    padding: 50px 0;
    background: #fff;
}

.mc-lender-title {
    font-size: 21px;
    color: var(--mc-navy);
    font-weight: 700;
}

.mc-lender-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.mc-lender-logos img {
    max-width: 130px;
    max-height: 45px;
    object-fit: contain;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.mc-reviews {
    background: #f6f9fc;
    padding: 65px 0;
}

.mc-review {
    background: #fff;
    border: 1px solid var(--mc-border);
    padding: 35px;
    border-radius: 6px;
}

.mc-review-quote {
    font-size: 20px;
    line-height: 1.6;
    color: var(--mc-navy);
    font-weight: 600;
}

.mc-review-name {
    color: var(--mc-muted);
    margin-top: 20px;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.mc-final-cta {
    background: var(--mc-navy);
    padding: 55px 0;
    color: #fff;
}

.mc-final-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: center;
    gap: 35px;
}

.mc-final-cta h2 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 8px;
}

.mc-final-cta p {
    color: rgba(255,255,255,.8);
}

.mc-contact {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .mc-hero {
        min-height: auto;
    }

    .mc-hero-inner {
        padding: 70px 25px;
    }

    .mc-hero-content {
        width: 100%;
        padding-right: 0;
    }

    .mc-hero h1 {
        font-size: 44px;
    }

    .mc-hero-image {
        display: none;
    }

    .mc-journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mc-about-grid,
    .mc-calc-grid {
        grid-template-columns: 1fr;
    }

    .mc-final-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .mc-hero {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 0;
    }

    .mc-hero-inner {
        width: 100%;
        padding: 50px 20px;
        box-sizing: border-box;
    }

    .mc-hero-content {
        width: 100%;
        padding: 0;
    }

    .mc-hero h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .mc-hero p {
        font-size: 17px;
    }

    .mc-journey-grid {
        grid-template-columns: 1fr;
    }

    .mc-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin: 10px 0;
    }

    .mc-calculator {
        padding: 25px;
    }

    .mc-heading {
        font-size: 34px;
    }

    .mc-about,
    .mc-calculator-section,
    .mc-reviews {
        padding: 50px 0;
    }

    .mc-final-cta {
        padding: 45px 0;
    }

}


/* =========================================================
   MOBILE - WPBAKERY HERO SPACING FIX
   ========================================================= */

@media (max-width: 600px) {

    /* Remove spacing from the WPBakery row containing the hero */
    .vc_row:has(.mc-hero) {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Remove spacing from the WPBakery column */
    .vc_row:has(.mc-hero) > .wpb_column {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Remove spacing from the column inner */
    .vc_row:has(.mc-hero) > .wpb_column > .vc_column-inner {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Remove spacing from the WPBakery wrapper */
    .vc_row:has(.mc-hero) .wpb_wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Hero itself */
    .mc-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

}
/* =========================================================
   JOURNEY ICONS - SMALLER & LIGHTER
   ========================================================= */

.mc-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mc-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--mc-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-blue);
    margin-bottom: 20px;
}

/* =========================================================
   McDAID CONTACT CTA
   ========================================================= */

.mc-contact-cta {
    background: var(--mc-navy) !important;
    padding: 70px 25px !important;
    margin: 0 !important;
    text-align: center;
}

/* Keep the content nicely contained */
.mc-contact-cta .wpb_wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Heading */
.mc-contact-cta h2 {
    color: #ffffff !important;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 18px 0 !important;
}

/* Paragraph */
.mc-contact-cta p {
    color: rgba(255,255,255,0.88) !important;
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 32px auto !important;
}

/* WPBakery buttons */
.mc-contact-cta .vc_btn3 {
    display: inline-block;
    margin: 5px 6px;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

/* Primary button */
.mc-contact-cta .mc-cta-primary .vc_btn3 {
    background: var(--mc-blue) !important;
    border: 2px solid var(--mc-blue) !important;
    color: #ffffff !important;
}

.mc-contact-cta .mc-cta-primary .vc_btn3:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--mc-navy) !important;
}

/* Secondary / outline button */
.mc-contact-cta .mc-cta-secondary .vc_btn3 {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    color: #ffffff !important;
}

.mc-contact-cta .mc-cta-secondary .vc_btn3:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--mc-navy) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .mc-contact-cta {
        padding: 50px 20px !important;
    }

    .mc-contact-cta h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .mc-contact-cta p {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 25px !important;
    }

    .mc-contact-cta .vc_btn3 {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 8px auto;
        box-sizing: border-box;
    }
}


.wpcf7-submit {
    height: 50px !important;
    padding: 0 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    margin-bottom: 0 !important;
}