/* =============================================================
   iProphesy Footer — footer.css (loaded on ALL pages)
   ============================================================= */

.iphome-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.iphome-footer {
    background: #0a1628;
    color: rgba(255, 255, 255, .75);
    padding: 64px 0 0;
    width: 100%;
    max-width: 100%;
    display: block;
    clear: both;
    box-sizing: border-box;
    grid-column: 1 / -1;   /* 若父層仍是 grid，強制佔滿所有欄 */
}
.iphome-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}
.iphome-footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.iphome-footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    color: rgba(255, 255, 255, .6);
}
.iphome-footer-desc--story {
    margin-top: 14px;
}
.iphome-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.iphome-footer-links a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}
.iphome-footer-links a:hover {
    color: #e87585;
}
.iphome-footer-qr {
    margin-bottom: 12px;
}
.iphome-footer-qr-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: block;
}
.iphome-footer-qr-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 2px dashed rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
}
.iphome-footer-line-note {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    margin: 0;
    line-height: 1.6;
    max-width: 180px;
}
.iphome-footer-contact {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.iphome-footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
}
.iphome-footer-contact-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.iphome-footer-contact-icon--line {
    background: #e8604c;
}
.iphome-footer-contact-icon--mail {
    background: #c0392b;
}
.iphome-footer-contact a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color .2s;
}
.iphome-footer-contact a:hover {
    color: #e87585;
}
.iphome-footer-social {
    display: flex;
    gap: 10px;
}
.iphome-footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    transition: background .2s, color .2s;
    text-decoration: none;
}
.iphome-footer-social-btn:hover {
    background: #d63a4a;
    color: #ffffff;
}

/* Bottom bar */
.iphome-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 0;
}
.iphome-footer-bottom .iphome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .4);
}

/* Suppress GeneratePress default footer */
#colophon,
.site-footer {
    display: none !important;
}

/* 所有頁面：關掉 GP #page grid，讓 footer 垂直堆疊在內容下方 */
#page,
#page.grid-container {
    display: block !important;
}

/* 防止 GP 預設頁面的 #primary float 造成 footer 跑到右側 */
.site-content,
#content.site-content {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
}
#primary,
.content-area {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}
#secondary,
.widget-area {
    display: none !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .iphome-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}
@media (max-width: 600px) {
    .iphome-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .iphome-footer-bottom .iphome-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
