/* ============================================================
   Julyem Gemstones - Site Footer
   ============================================================ */

:root {
    --jl-foot-bg:      #003462;
    --jl-foot-bg-2:    #002744;
    --jl-foot-gold:    #CFA56A;
    --jl-foot-heading: #CFA56A;
    --jl-foot-text:    #cdd8e2;
    --jl-foot-muted:   #8fa4b6;
}

/* Bỏ khoảng trắng/footer mặc định */
#footer.footer-wrapper { padding: 0; border: 0; }

.jl-footer {
    background: linear-gradient(180deg, var(--jl-foot-bg) 0%, var(--jl-foot-bg-2) 100%);
    color: var(--jl-foot-text);
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.jl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* === Tiêu đề cột === */
.jl-footer-title {
    color: var(--jl-foot-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 22px;
}

/* === Cột thương hiệu === */
.jl-footer-logo { margin-bottom: 18px; }

.jl-footer-logo-img { max-width: 190px; height: auto; }

.jl-footer-logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--jl-foot-gold);
}
.jl-footer-lotus { color: var(--jl-foot-gold); flex: none; }
.jl-footer-logo-text { display: flex; flex-direction: column; line-height: 1; }
.jl-footer-logo-text strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;
    letter-spacing: 4px;
    font-weight: 700;
}
.jl-footer-logo-text em {
    font-style: normal;
    font-size: 11px;
    letter-spacing: 6px;
    color: var(--jl-foot-gold);
    opacity: .85;
    margin-top: 4px;
}

.jl-footer-desc {
    color: var(--jl-foot-text);
    margin: 0 0 22px;
    max-width: 320px;
}

/* === Mạng xã hội === */
.jl-footer-socials { display: flex; gap: 12px; }
.jl-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--jl-foot-gold);
    color: var(--jl-foot-gold);
    transition: background .25s, color .25s, transform .25s;
}
.jl-social:hover {
    background: var(--jl-foot-gold);
    color: var(--jl-foot-bg);
    transform: translateY(-3px);
}

/* === Liên hệ === */
.jl-footer-contact { list-style: none; margin: 0; padding: 0; }
.jl-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.jl-footer-contact .jl-ic {
    color: var(--jl-foot-gold);
    flex: none;
    margin-top: 2px;
}
.jl-footer-contact a {
    color: var(--jl-foot-text);
    text-decoration: none;
    transition: color .2s;
}
.jl-footer-contact a:hover { color: var(--jl-foot-gold); }

/* === Danh sách link === */
.jl-footer-links { list-style: none; margin: 0; padding: 0; }
.jl-footer-links li { margin-bottom: 12px; }
.jl-footer-links a {
    color: var(--jl-foot-text);
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.jl-footer-links a:hover { color: var(--jl-foot-gold); padding-left: 4px; }

/* === Đăng ký nhận tin === */
.jl-footer-newsletter {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(207, 165, 106, .45);
    border-radius: 8px;
    padding: 4px 4px 4px 16px;
    max-width: 320px;
    flex-wrap: wrap;
}
/* Honeypot chống spam — ẩn hoàn toàn với người dùng */
.jl-footer-newsletter .jl-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
.jl-footer-newsletter button[type="submit"]:disabled {
    opacity: .6;
    cursor: default;
}
.jl-footer-newsletter input[type="email"] {
    flex: 1;
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 0 !important;
}
.jl-footer-newsletter input[type="email"]:focus {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
.jl-footer-newsletter input[type="email"]::placeholder { color: var(--jl-foot-muted); opacity: 1; }
.jl-footer-newsletter button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #e3c79a !important;
    color: var(--jl-foot-bg) !important;
    box-shadow: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.jl-footer-newsletter button[type="submit"]:hover {
    background: #f0dcb8 !important;
    transform: translateX(2px);
}
.jl-footer-newsletter button[type="submit"] svg { display: block; }
.jl-footer-newsletter-msg {
    flex-basis: 100%;
    font-size: 13px;
    color: var(--jl-foot-gold);
    padding: 6px 2px 0;
    min-height: 0;
}
.jl-footer-newsletter-msg:empty {
    display: none;
}

/* === Thanh dưới cùng === */
.jl-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    padding: 20px 24px;
}
.jl-footer-bottom p {
    margin: 0;
    color: var(--jl-foot-muted);
    font-size: 13px;
}

/* === Responsive === */
@media (max-width: 850px) {
    .jl-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
        padding: 48px 24px 32px;
    }
}
@media (max-width: 520px) {
    .jl-footer-inner { grid-template-columns: 1fr; text-align: left; }
    .jl-footer-desc { max-width: none; }
    .jl-footer-newsletter { max-width: none; }
}
