/*
═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════
*/

.foot {
    background: var(--bone);
    color: var(--twilight);
    /* border-top 移除（v0.4.5：依使用者要求拿掉 Header / Footer 明顯分界線）。
       若要還原，改回 border-top: 1px solid var(--linen); */
    border-top: none;
}

.foot-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 80px 40px 40px;
}


/* ─── 上半部：Brand + Newsletter ──────────────── */
.foot-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--linen);
}

.foot-brand {
    max-width: 380px;
}
.foot-logo {
    font-family: var(--ff-d);
    font-style: italic;
    font-weight: 300;
    font-size: 26px;
    color: var(--twilight);
    margin-bottom: 14px;
    letter-spacing: -.01em;
}
/* v0.9.34：footer logo 放大。
   原本 36px 比 header 還小一截，而夜喃那組是三層資訊 ——
   36px 高的時候 night murmur 那一行完全糊掉。
   footer 空間比 header 寬鬆，可以再大一點。 */
.foot-logo-img {
    max-height: 84px;
    width: auto;
    margin-bottom: 4px;
}

@media (max-width: 880px) {
    .foot-logo-img { max-height: 64px; }
}
/* 深淺色模式自動切換 Logo */
.foot-logo-img-light                      { display: none !important; }
[data-theme="light"] .foot-logo-img-dark  { display: none !important; }
[data-theme="light"] .foot-logo-img-light { display: inline-block !important; }
.foot-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--mist);
}

.foot-news {
    min-width: 300px;
}

/* ─── Brand 介紹段（ACF footer_brand_text）─────────── */
.foot-brand-text {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--mist);
    font-weight: 300;
    max-width: 440px;
    margin: 16px 0 0;
}

/* ─── Newsletter 標題 + 表單 ──────────────────────── */
.foot-news .fnl {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--bronze);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
    font-weight: 500;
}
.foot-news-form {
    display: flex;
    border-bottom: 1px solid var(--linen-2);
    max-width: 340px;
    transition: border-color .2s;
}
.foot-news-form:focus-within {
    border-bottom-color: var(--bronze);
}
.foot-news-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--twilight);
    padding: 11px 0;
    font-size: 13.5px;
    font-family: inherit;
    min-width: 0;
}
.foot-news-form input::placeholder {
    color: var(--mist);
    opacity: .55;
}
.foot-news-form button {
    background: none;
    border: none;
    color: var(--bronze);
    cursor: pointer;
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .12em;
    padding: 11px 0 11px 18px;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 500;
    transition: color .2s;
}
.foot-news-form button:hover {
    color: var(--twilight);
}


/* ─── 中段：4 欄連結 ─────────────────────────── */
.foot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.foot-col {}
.foot-col-t {
    font-family: var(--ff-m);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 20px;
}

/* widget 內常用樣式 */
.foot-grid .menu,
.foot-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot-grid li {
    margin-bottom: 12px;
}
.foot-grid a {
    font-size: 14px;
    color: var(--twilight);
    text-decoration: none;
    transition: color .2s;
}
.foot-grid a:hover { color: var(--plum); }


/* ─── 底部：版權 + 法律連結 ───────────────────── */
.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid var(--linen);
}
.fc {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--mist);
    text-transform: uppercase;
}
.foot-legal {
    display: flex;
    gap: 24px;
}
.fl {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--mist);
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s;
}
.fl:hover { color: var(--plum); }


/* ─── 手機版 ─────────────────────────────────── */
@media (max-width: 880px) {
    .foot-inner { padding: 60px 24px 30px; }
    .foot-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .foot-news { min-width: 0; }
    .foot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* v0.9.43 · 訂閱結果訊息 */
.foot-news-msg {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--mist);
    min-height: 1em;
}
.foot-news-msg.is-err { color: var(--clay, #C4704A); }
.foot-news-form button:disabled { opacity: .6; cursor: default; }
