/* ==========================================================
   CLARAUS
   FOOTER REFINEMENT
   ========================================================== */

.ct-footer {
    position: relative;
    background: #f4f6f8;
    color: #17365d;
    border-top: 3px solid #14243a;
}

/* ----------------------------------------------------------
   FOOTER TOP
   ---------------------------------------------------------- */

.ct-footer [data-row="top"] {
    padding: 64px 0 54px;
}

.ct-footer [data-row="top"] .ct-container {
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(150px, 1fr));
    column-gap: 72px;
    align-items: start;
}

/* ----------------------------------------------------------
   BRAND COLUMN
   ---------------------------------------------------------- */

.ct-footer [data-column="widget-area-1"] {
    max-width: 500px;
}

.ct-footer [data-column="widget-area-1"] .widget-title {
    margin: 0 0 22px;
    color: #0f1d31;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.ct-footer [data-column="widget-area-1"] p {
    margin: 0;
    max-width: 500px;
    color: #426182;
    font-size: 16px;
    line-height: 1.9;
}

/* ----------------------------------------------------------
   COLUMN HEADINGS
   ---------------------------------------------------------- */

.ct-footer .widget-title {
    position: relative;
    display: inline-block;
    margin: 0 0 27px;
    padding-bottom: 12px;
    color: #0f1d31;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ct-footer .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 2px;
    background: #1769ff;
}

/* ----------------------------------------------------------
   FOOTER LINKS
   ---------------------------------------------------------- */

.ct-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-footer li {
    margin: 0 0 14px;
    padding: 0;
}

.ct-footer li:last-child {
    margin-bottom: 0;
}

.ct-footer a {
    color: #173f69;
    text-decoration: none;
    transition:
        color 180ms ease,
        opacity 180ms ease;
}

.ct-footer a:hover {
    color: #1769ff;
}

/* Prevent accidental paragraph/list spacing */
.ct-footer .textwidget p {
    margin-top: 0;
}

.ct-footer .textwidget ul li a {
    font-size: 16px;
    line-height: 1.55;
}

/* ----------------------------------------------------------
   COPYRIGHT BAR
   ---------------------------------------------------------- */

.ct-footer [data-row="bottom"] {
    border-top: 1px solid #d8dee6;
}

.ct-footer [data-row="bottom"] .ct-container {
    min-height: 76px;
    display: flex;
    align-items: center;
}

.ct-footer-copyright {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    color: #60758e;
    font-size: 14px;
    line-height: 1.5;
}

.ct-footer-copyright p {
    margin: 0;
}

.ct-footer-copyright strong {
    color: #0f1d31;
    font-weight: 700;
}

.ct-footer-copyright a {
    color: #17365d;
    font-weight: 600;
}

/* ----------------------------------------------------------
   BACK TO TOP
   ---------------------------------------------------------- */

.ct-footer + .ct-back-to-top,
.ct-back-to-top {
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.ct-back-to-top:hover {
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .ct-footer [data-row="top"] {
        padding: 56px 0 48px;
    }

    .ct-footer [data-row="top"] .ct-container {
        grid-template-columns: 1.5fr 1fr 1fr;
        column-gap: 42px;
        row-gap: 44px;
    }

    .ct-footer [data-column="widget-area-1"] {
        grid-column: 1 / -1;
        max-width: 680px;
    }

    .ct-footer [data-column="widget-area-2"],
    .ct-footer [data-column="widget-area-3"],
    .ct-footer [data-column="widget-area-5"] {
        grid-column: auto;
    }

    .ct-footer-copyright {
        gap: 24px;
    }
}

/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 767px) {

    .ct-footer {
        border-top-width: 2px;
    }

    .ct-footer [data-row="top"] {
        padding: 46px 0 38px;
    }

    .ct-footer [data-row="top"] .ct-container {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 38px;
    }

    .ct-footer [data-column="widget-area-1"],
    .ct-footer [data-column="widget-area-2"],
    .ct-footer [data-column="widget-area-3"],
    .ct-footer [data-column="widget-area-5"] {
        grid-column: 1;
        max-width: none;
    }

    .ct-footer [data-column="widget-area-1"] .widget-title {
        font-size: 25px;
        margin-bottom: 17px;
    }

    .ct-footer [data-column="widget-area-1"] p {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.75;
    }

    .ct-footer .widget-title {
        margin-bottom: 22px;
        font-size: 12px;
        letter-spacing: 0.15em;
    }

    .ct-footer li {
        margin-bottom: 11px;
    }

    .ct-footer .textwidget ul li a {
        font-size: 15px;
    }

    .ct-footer [data-row="bottom"] .ct-container {
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .ct-footer-copyright {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 22px;
        font-size: 13px;
    }
}

/* ----------------------------------------------------------
   SMALL MOBILE
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    .ct-footer [data-row="top"] {
        padding: 40px 0 32px;
    }

    .ct-footer [data-row="top"] .ct-container {
        row-gap: 32px;
    }

    .ct-footer [data-column="widget-area-1"] .widget-title {
        font-size: 24px;
    }

    .ct-footer [data-column="widget-area-1"] p {
        font-size: 14px;
        line-height: 1.75;
    }

    .ct-footer .textwidget ul li a {
        font-size: 14px;
    }

    .ct-footer-copyright {
        display: block;
        font-size: 12px;
    }

    .ct-footer-copyright p {
        margin-bottom: 7px;
    }

    .ct-footer-copyright p:last-child {
        margin-bottom: 0;
    }
}

/* ----------------------------------------------------------
   CLARAUS BRAND HEADING
   ---------------------------------------------------------- */

.ct-footer [data-column="widget-area-1"] .widget-title {
    text-transform: none;
    letter-spacing: -0.04em;
    font-size: 28px;
    font-weight: 700;
    padding-bottom: 0;
    margin-bottom: 22px;
}

.ct-footer [data-column="widget-area-1"] .widget-title::after {
    display: none;
}