/* ==========================================================================
   Footer styled to match https://mkt.pacifecon.co.nz/
   Loaded after bootstrap.min.css / redesign_header_footer.css / redesign.css
   so it can override the old "footer .footer-block" rules.
   ========================================================================== */

footer.mkt-footer {
    padding: 60px 0 40px;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
}

.mkt-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (min-width: 1024px) {
    .mkt-footer-inner {
        padding-left: 0;
        padding-right: 0;
    }
}

/* --------------------------------------------------------------------------
   "Book a demo and get in touch!" call to action
   -------------------------------------------------------------------------- */
.mkt-cta {
    display: block;
    padding: 40px;
    border-radius: 4px;
    background: var(--mkt-primary, #ff8023);
    color: #ffffff;
}

.mkt-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

footer.mkt-footer .mkt-cta h2 {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    line-height: 40px;
    font-weight: 400;
    color: #ffffff;
}

footer.mkt-footer .mkt-cta p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
}

.mkt-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 12px;
}

@media (min-width: 1024px) {
    .mkt-cta-buttons {
        flex-direction: row;
        align-items: center;
    }
}

/* Pill button with a square arrow tile on the right */
footer.mkt-footer .mkt-arrow-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .mkt-arrow-btn .mkt-arrow-label {
        padding: 0 32px 0 12px;
        font-size: 12px;
        line-height: 16px;
        text-transform: uppercase;
    }

@media (min-width: 1024px) {
    .mkt-arrow-btn .mkt-arrow-label {
        font-size: 14px;
    }
}

.mkt-arrow-btn .mkt-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: 4px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

    .mkt-arrow-btn .mkt-arrow-icon svg {
        display: block;
        width: 20px;
        height: 20px;
    }

/* White button, orange tile (the "Book a demo" style) */
footer.mkt-footer .mkt-btn-solid {
    background: #ffffff;
    border-color: #ffffff;
    color: #101828;
}

    .mkt-btn-solid .mkt-arrow-icon {
        background: var(--mkt-primary, #ff8023);
    }

    .mkt-btn-solid .mkt-arrow-icon svg {
        color: #000000;
    }

footer.mkt-footer .mkt-btn-solid:hover {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

    .mkt-btn-solid:hover .mkt-arrow-icon svg {
        color: #ffffff;
    }

/* Outlined button, white tile (the "Get in touch" style) */
footer.mkt-footer .mkt-btn-outline {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

    .mkt-btn-outline .mkt-arrow-icon {
        background: #ffffff;
    }

    .mkt-btn-outline .mkt-arrow-icon svg {
        color: var(--mkt-primary, #ff8023);
    }

footer.mkt-footer .mkt-btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #101828;
}

    .mkt-btn-outline:hover .mkt-arrow-icon {
        background: var(--mkt-primary, #ff8023);
    }

    .mkt-btn-outline:hover .mkt-arrow-icon svg {
        color: #000000;
    }

/* --------------------------------------------------------------------------
   Newsletter + link columns
   -------------------------------------------------------------------------- */
.mkt-footer-mid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 40px 0;
}

@media (min-width: 1024px) {
    .mkt-footer-mid {
        flex-direction: row;
        margin-top: 80px;
        margin-bottom: 100px;
    }
}

.mkt-newsletter {
    width: 100%;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .mkt-newsletter {
        width: 50%;
        margin-bottom: 0;
    }
}

footer.mkt-footer .mkt-newsletter h2 {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
    color: #ffffff;
}

@media (min-width: 1024px) {
    footer.mkt-footer .mkt-newsletter h2 {
        width: 50%;
    }
}

.mkt-newsletter-form {
    position: relative;
    width: 100%;
    margin: 24px 0;
}

@media (min-width: 1024px) {
    .mkt-newsletter-form {
        width: 75%;
    }
}

footer.mkt-footer .mkt-newsletter-form input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: 1px solid #525252;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 24px;
    box-shadow: none;
}

    footer.mkt-footer .mkt-newsletter-form input:focus {
        outline: none;
        border-color: var(--mkt-primary, #ff8023);
    }

    footer.mkt-footer .mkt-newsletter-form input::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.85); }
    footer.mkt-footer .mkt-newsletter-form input::-moz-placeholder { color: rgba(255, 255, 255, 0.85); }
    footer.mkt-footer .mkt-newsletter-form input:-ms-input-placeholder { color: rgba(255, 255, 255, 0.85); }
    footer.mkt-footer .mkt-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.85); }

footer.mkt-footer .mkt-newsletter-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--mkt-primary, #ff8023);
    cursor: pointer;
}

    footer.mkt-footer .mkt-newsletter-btn:hover {
        background: #ffffff;
    }

    .mkt-newsletter-btn svg {
        display: block;
        width: 20px;
        height: 20px;
        color: #000000;
    }

    .mkt-newsletter-btn:hover svg {
        color: var(--mkt-primary, #ff8023);
    }

footer.mkt-footer .mkt-newsletter-note {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    color: #525252;
}

/* Quick Links | Contact | Social ------------------------------------------- */
.mkt-footer-links {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.mkt-footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

footer.mkt-footer .mkt-col-title {
    margin: 0 0 8px;
    color: var(--mkt-primary, #ff8023);
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
}

footer.mkt-footer .mkt-footer-col ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.mkt-footer .mkt-footer-col li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
}

footer.mkt-footer .mkt-footer-col a {
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

footer.mkt-footer .mkt-footer-col a:hover {
    color: var(--mkt-primary, #ff8023);
}

.mkt-quick-links ul { gap: 8px; }
.mkt-contact-links ul { gap: 4px; }

footer.mkt-footer .mkt-contact-links a {
    text-decoration: underline;
}

/* Social column: orange rule, then the icons stacked under it */
.mkt-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .mkt-social .mkt-social-rule {
        display: block;
        width: 1px;
        height: 64px;
        background: var(--mkt-primary, #ff8023);
    }

    .mkt-social a {
        display: block;
        padding-top: 24px;
    }

    .mkt-social a:first-of-type {
        padding-top: 40px;
    }

    .mkt-social img {
        display: block;
        height: 24px;
        width: auto;
        /* the source icons are black, inverted to white for the dark footer */
        filter: invert(1);
    }

@media (min-width: 1024px) {
    .mkt-social img {
        height: 16px;
    }
}

/* Mobile: Quick Links and social side by side, contact on its own row.
   Desktop: all three in a single right aligned row. */
.mkt-quick-links { order: 1; }

.mkt-social {
    order: 2;
    margin-left: auto;
}

.mkt-contact-links {
    order: 3;
    flex-basis: 100%;
    margin-top: 40px;
}

@media (min-width: 1024px) {
    .mkt-footer-links {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0 64px;
        width: 50%;
    }

    .mkt-quick-links,
    .mkt-contact-links,
    .mkt-social {
        order: 0;
        flex-basis: auto;
        margin: 0;
    }
}

/* --------------------------------------------------------------------------
   Footer logo
   -------------------------------------------------------------------------- */
.mkt-footer-logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 60px;
}

@media (min-width: 1024px) {
    .mkt-footer-logo {
        justify-content: flex-end;
    }
}

.mkt-footer-logo img {
    display: block;
    height: 40px;
    width: auto;
}

/* --------------------------------------------------------------------------
   Legal row. Mobile is a 2x2 grid, desktop is a single row.
   -------------------------------------------------------------------------- */
.mkt-footer-legal {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px 16px;
}

footer.mkt-footer .mkt-footer-legal,
footer.mkt-footer .mkt-footer-legal p,
footer.mkt-footer .mkt-footer-legal a {
    font-size: 12px;
    line-height: 16px;
    color: #525252;
    text-decoration: none;
}

footer.mkt-footer .mkt-footer-legal p {
    margin: 0;
}

footer.mkt-footer .mkt-footer-legal a:hover {
    color: var(--mkt-primary, #ff8023);
}

.mkt-legal-terms   { grid-area: 1 / 1; justify-self: start; }
.mkt-legal-design  { grid-area: 1 / 2; justify-self: end; }
.mkt-legal-privacy { grid-area: 2 / 1; justify-self: start; }
.mkt-legal-copy    { grid-area: 2 / 2; justify-self: end; }

@media (min-width: 1024px) {
    .mkt-footer-legal {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    footer.mkt-footer .mkt-footer-legal .mkt-legal-privacy { order: 1; margin-right: 60px; }
    footer.mkt-footer .mkt-footer-legal .mkt-legal-terms   { order: 2; margin-right: auto; }
    footer.mkt-footer .mkt-footer-legal .mkt-legal-copy    { order: 3; margin-right: 48px; }
    footer.mkt-footer .mkt-footer-legal .mkt-legal-design  { order: 4; }
}
