/* ===== Site Footer ===== */
:root {
    --color-primary-gold: #C9A961;
    --color-gold-light: #D4AF37;
    --color-dark-bg: #1A1A1A;
    --color-darker-bg: #0F0F0F;
    --color-footer-text: #A8A8A8;
    --color-footer-text-light: #D8D8D8;
    --font-serif: 'Noto Serif TC', serif;
    --font-sans: 'Inter', 'Noto Sans TC', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer {
    background: linear-gradient(180deg, #0A0A0A 0%, var(--color-darker-bg) 50%, var(--color-dark-bg) 100%);
    color: var(--color-footer-text);
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    font-family: var(--font-sans);
    border-top: 2px solid rgba(201, 169, 97, 0.25);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary-gold) 50%, transparent 100%);
}

.site-footer.footer-padded {
    padding-bottom: 75px;
}

.footer-top {
    padding: 5.5rem 0 4rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.footer-about {
    position: relative;
    padding-left: 30px;
}

.footer-about img {
    height: 50px;
    filter: brightness(0.95) drop-shadow(0 0 12px rgba(201, 169, 97, 0.35));
    transition: var(--transition-smooth);
    margin-bottom: 1.8rem;
}

.footer-about img:hover {
    filter: brightness(1.15) drop-shadow(0 0 20px rgba(201, 169, 97, 0.6));
    transform: translateY(-3px);
}

.footer-about p {
    max-width: 360px;
    line-height: 1.8;
    color: var(--color-footer-text-light);
    font-size: 0.92rem;
    letter-spacing: 0.4px;
}

.footer-about ul li {
    font-size: 0.88rem;
    color: var(--color-footer-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.site-footer h5 {
    color: var(--color-primary-gold);
    font-family: var(--font-serif);
    margin-bottom: 2.2rem;
    font-size: 1.08rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-gold) 0%, var(--color-gold-light) 60%, transparent 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links:hover h5::after {
    width: 80px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1.35rem;
    position: relative;
    padding-left: 0;
    transition: var(--transition-smooth);
}

.footer-links li::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 2px;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.footer-links li:hover::before {
    background: var(--color-primary-gold);
}

.site-footer a {
    color: var(--color-footer-text);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
}

.site-footer a:hover {
    color: var(--color-gold-light);
    letter-spacing: 0.6px;
}

.footer-links i {
    color: var(--color-primary-gold);
    width: 22px;
    margin-right: 8px;
    transition: var(--transition-smooth);
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-links li:hover i {
    opacity: 1;
    transform: scale(1.2) translateX(3px);
}

.footer-socials-section {
    padding: 2.5rem 0;
    text-align: center !important;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-socials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(201, 169, 97, 0.15);
}

.footer-socials-section .container {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-socials-label {
    color: var(--color-footer-text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.3rem;
    letter-spacing: 0.5px;
    text-align: center !important;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary-gold) 0%, var(--color-gold-light) 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.25);
    position: relative;
}

.footer-socials a i {
    position: relative;
    z-index: 2;
    color: white;
}

.footer-socials a:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

.footer-socials a:hover i {
    color: white;
}

.footer-bottom {
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.footer-bottom p {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    margin: 0;
}

.footer-bottom-credit {
    font-size: 0.8rem;
    opacity: 0.5;
    color: var(--color-footer-text);
}

.footer-bottom:hover p:first-child {
    opacity: 0.9;
}

.mobile-social-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .footer-top {
        padding: 3.5rem 0 2rem;
    }

    .site-footer h5 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-about img {
        height: 42px;
        margin-bottom: 1.3rem;
    }

    .footer-about p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .footer-socials-section {
        padding: 2rem 0;
    }

    .site-footer .footer-socials {
        display: none;
    }

    .footer-bottom {
        padding: 2rem 0;
        gap: 0.8rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .mobile-social-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(26, 26, 26, 0.99) 100%);
        justify-content: space-around;
        align-items: center;
        z-index: 1010;
        border-top: 2px solid var(--color-primary-gold);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-social-bar.is-visible {
        transform: translateY(0);
    }

    .mobile-social-bar a {
        color: var(--color-footer-text-light);
        font-size: 1.7rem;
        transition: var(--transition-smooth);
        padding: 15px;
        position: relative;
    }

    .mobile-social-bar a:hover {
        color: var(--color-primary-gold);
        transform: scale(1.25) translateY(-6px);
    }

    .mobile-social-bar a:active {
        transform: scale(0.92);
    }

    /* --- Footer 中間欄位：手機版重設 inline padding --- */
    .footer-top .col-lg-4.col-md-6[style*="padding-left: 2.5rem"] {
        padding-left: 12px !important;
    }

    .footer-top .footer-links[style*="padding-left: 2rem"] {
        padding-left: 0 !important;
    }

    /* --- Footer about 區塊手機版 --- */
    .footer-about {
        padding-left: 12px !important;
        text-align: center;
    }

    .footer-about p {
        max-width: 100%;
    }

    /* --- Footer 社群標籤手機版隱藏（已有 mobile-social-bar） --- */
    .footer-socials-label {
        font-size: 0.85rem;
    }
}

/* ===== Floating Action Menu ===== */
:root {
    --fab-background: rgba(245, 241, 237, 0.95);
    --fab-border-color: #EAE3DC;
    --fab-icon-color: #9A8675;
    --fab-primary-bg: #9A8675;
    --fab-primary-icon-color: #FFFFFF;
    --itf-widget-primary: #1A1A1A;
    --itf-widget-gold: #C9A961;
    --itf-widget-gold-light: #D4AF37;
    --itf-widget-text: #E0E0E0;
}

.floating-action-menu {
    position: fixed;
    bottom: 50px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.floating-action-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-item {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fab-item:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.fab-item--outline {
    background-color: var(--fab-background);
    border: 1px solid var(--fab-border-color);
    color: var(--fab-icon-color);
    font-size: 24px;
}

.fab-item--outline .fa-phone {
    font-size: 18px;
}

.fab-item--solid {
    background-color: var(--fab-primary-bg);
    color: var(--fab-primary-icon-color);
    font-size: 18px;
}

@media (max-width: 991.98px) {
    .floating-action-menu {
        right: 20px;
        bottom: 110px;
    }

    .fab-item {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .fab-item--outline {
        font-size: 20px;
    }

    .fab-item--outline .fa-phone {
        font-size: 16px;
    }

    .fab-item--outline .fa-gifts {
        font-size: 16px;
    }

    .fab-item--solid {
        font-size: 16px;
    }
}

#itf-fab-widget-box {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 25px;
    width: 380px;
    background: linear-gradient(180deg, #1A1A1A 0%, #0F0F0F 100%);
    border: 2px solid var(--itf-widget-gold);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 50px rgba(201, 169, 97, 0.25);
    overflow: hidden;
    animation: itf-slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

@keyframes itf-slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.itf-fab-box-header {
    background: linear-gradient(135deg, var(--itf-widget-primary) 0%, #2d2d2d 100%);
    border-bottom: 1px solid var(--itf-widget-gold);
    color: var(--itf-widget-gold);
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(201, 169, 97, 0.4);
}

.itf-fab-close-btn {
    background: none;
    border: none;
    color: var(--itf-widget-gold);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itf-fab-close-btn:hover {
    color: var(--itf-widget-gold-light);
    transform: rotate(90deg) scale(1.2);
}

.itf-fab-box-body {
    padding: 28px 24px;
    color: var(--itf-widget-text);
    font-size: 15px;
    line-height: 1.8;
}

.itf-fab-box-body p {
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.itf-fab-highlight {
    color: var(--itf-widget-gold-light);
    font-weight: 700;
    background: linear-gradient(to top, rgba(201, 169, 97, 0.2) 40%, transparent 40%);
    padding: 0 4px;
    text-shadow: 0 0 10px rgba(201, 169, 97, 0.3);
}

.itf-fab-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--itf-widget-gold) 0%, var(--itf-widget-gold-light) 100%);
    color: var(--itf-widget-primary);
    text-decoration: none;
    padding: 15px 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
    margin-top: 8px;
}

.itf-fab-cta-btn:hover {
    background: linear-gradient(135deg, var(--itf-widget-gold-light) 0%, var(--itf-widget-gold) 100%);
    color: var(--itf-widget-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.5);
}

@media (max-width: 991.98px) {
    #itf-fab-widget-box {
        width: 280px;
        right: -5px;
        bottom: 70px;
    }

    .itf-fab-box-header {
        padding: 14px 16px;
        font-size: 14px;
    }

    .itf-fab-box-body {
        padding: 18px 16px;
        font-size: 13px;
    }

    .itf-fab-cta-btn {
        padding: 12px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #itf-fab-widget-box {
        width: 260px;
        right: -10px;
    }
}
