/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */

/* Footer — background */
.site-top-footer-wrap,
.site-middle-footer-wrap,
.site-bottom-footer-wrap {
    background: var(--charcoal);
}

/* ── Columns ── */
/* Signup sits first and wider; the three link columns share the right.
   Order the widgets in the Customizer so widget 4 is the first column. */
.site-top-footer-inner-wrap {
    display: grid !important;
    grid-template-columns: 1.25fr 0.58fr 0.58fr 0.58fr !important;
    column-gap: 28px !important;
    padding: 46px 0 36px;
    align-items: start;
}

.site-top-footer-inner-wrap>.site-footer-section {
    width: auto !important;
    flex: none !important;
}

/* wide gutter after the signup, tight gaps between the link columns */
.site-top-footer-inner-wrap>.site-footer-section:nth-child(2) {
    margin-left: 44px;
}

/* ── Column headings ── */
.footer-widget1 .widget-title,
.footer-widget2 .widget-title,
.footer-widget3 .widget-title {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-white);
    margin: 0 0 14px;
    white-space: nowrap;
}

/* ── Column links ── */
.footer-widget1 .menu,
.footer-widget2 .menu,
.footer-widget3 .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-widget1 .menu a,
.footer-widget2 .menu a,
.footer-widget3 .menu a {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #B3A99E;
    text-decoration: none;
}

.footer-widget1 .menu a:hover,
.footer-widget2 .menu a:hover,
.footer-widget3 .menu a:hover {
    color: #DB9475;
}

/* ── Signup ── */
/* Four blocks in widget 4, each its own block widget:
   1 statement, 2 heading, 3 note, 4 the form shortcode. */
.footer-widget4 .widget:nth-of-type(1) p {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300;
    font-size: 23px;
    line-height: 1.25;
    color: var(--warm-white);
    margin: 0 0 22px;
}

.footer-widget4 .widget:nth-of-type(2) p {
    font-family: 'Jost', sans-serif !important;
    font-size: 13px;
    line-height: 1.6;
    color: #B3A99E;
    margin: 0 0 16px;
    max-width: 40ch;
}

.footer-widget4 .widget:nth-of-type(3) p {
    font-family: 'Jost', sans-serif !important;
    font-size: 13px;
    line-height: 1.6;
    color: #B3A99E;
    margin: 0 0 14px;
    max-width: 40ch;
}

/* Field and button stay outlined — a filled accent button here would
   compete with the real calls to action further up the page. */
.footer-widget4 .frm-fluent-form {
    margin: 0 !important;
}

.footer-widget4 .frm-fluent-form fieldset {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.footer-widget4 .frm-fluent-form .ff-el-group {
    flex: 1 1 auto;
    margin: 0 !important;
}

.footer-widget4 .frm-fluent-form .ff-el-input--label label {
    display: none;
}

.footer-widget4 .frm-fluent-form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: var(--warm-white) !important;
    background: transparent !important;
    border: 1px solid rgba(250, 242, 232, 0.22) !important;
    border-radius: 0 !important;
    box-shadow: none;
}

.footer-widget4 .frm-fluent-form input[type="email"]::placeholder {
    color: rgba(250, 242, 232, 0.5);
}

.footer-widget4 .frm-fluent-form input[type="email"]:focus {
    outline: 0;
    border-color: rgba(250, 242, 232, 0.55);
    box-shadow: none;
}

.footer-widget4 .frm-fluent-form .ff_submit_btn_wrapper {
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
}

.footer-widget4 .frm-fluent-form .ff-btn-submit {
    width: auto;
    height: 44px;
    padding: 0 22px;
    white-space: nowrap;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-white) !important;
    background: transparent !important;
    border: 1px solid rgba(250, 242, 232, 0.35) !important;
    border-radius: 0 !important;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.footer-widget4 .frm-fluent-form .ff-btn-submit:hover {
    background: transparent !important;
    border-color: #DB9475 !important;
    color: #DB9475 !important;
}

.footer-widget4 .ff-message-success {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: var(--warm-white);
    background: transparent;
    border: 0;
    padding: 0;
}

.footer-widget4 .frm-fluent-form .error-text,
.footer-widget4 .frm-fluent-form .text-danger {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #FFE2D4;
}

/* ── Bottom bar ── */
/* Copyright and Social share one footer row: copyright left, icons right. */
.site-middle-footer-inner-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 18px !important;
    border-top: 1px solid rgba(255, 247, 236, 0.08);
}

.site-middle-footer-inner-wrap>* {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.footer-html-inner p {
    font-family: 'Jost', sans-serif !important;
    font-size: 12px;
    color: #B3A99E;
    text-align: left !important;
    margin: 0;
}

.footer-html-inner a {
    color: #B3A99E;
    text-decoration: none;
    border-bottom: 0.5px solid rgba(179, 169, 158, 0.5);
}

.footer-html-inner a:hover {
    color: #DB9475;
    border-bottom-color: #DB9475;
}

/* Kadence paints a filled box behind each icon from the global palette —
   these need the full selector chain plus !important to clear it. */
#colophon .site-footer-wrap .site-footer-section .footer-social-wrap a.social-button {
    background: transparent !important;
    color: #B3A99E !important;
    border-radius: 0 !important;
}

#colophon .site-footer-wrap .site-footer-section .footer-social-wrap a.social-button:hover {
    background: transparent !important;
    color: #DB9475 !important;
}

/* ── Responsive ── */
/* Everything stays visible — collapsing a footer hides the exact
   words people scan for. */
@media (max-width: 1024px) {
    .site-top-footer-inner-wrap {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px 24px;
        padding: 40px 20px 28px;
    }

    .site-top-footer-inner-wrap>.site-footer-section:nth-child(2) {
        margin-left: 0;
    }

    .footer-widget4 .widget:nth-of-type(1) p {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    .site-top-footer-inner-wrap {
        grid-template-columns: 1fr !important;
        gap: 28px;
        padding: 36px 20px;
    }

    .footer-widget4 .frm-fluent-form fieldset {
        display: block;
    }

    .footer-widget4 .frm-fluent-form .ff-el-group {
        margin: 0 0 10px !important;
    }

    .footer-widget4 .frm-fluent-form .ff-btn-submit {
        width: 100%;
    }
}

@media (max-width: 600px) {

    /* Stack, don't wrap. Kadence marks this row
     site-footer-row-mobile-column-layout-row and gives it
     grid-template-columns: repeat(2, 1fr), so flex-wrap alone left the
     copyright and the icons side by side and squeezed. Forcing the
     direction to column is what actually separates them.
     grid-template-columns is reset too, in case Kadence's layout class
     switches this row to grid in a future version. */
    .site-middle-footer-inner-wrap {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        grid-template-columns: 1fr !important;
        gap: 14px;
        padding: 18px 24px 20px !important;
    }

    .site-middle-footer-inner-wrap>* {
        width: 100% !important;
        justify-content: center !important;
    }

    .footer-html-inner p {
        text-align: center !important;
    }

    .footer-social-wrap {
        justify-content: center !important;
    }

    .site-middle-footer-inner-wrap a,
    .site-middle-footer-inner-wrap p,
    .site-middle-footer-inner-wrap span {
        font-size: 12px !important;
    }
}