/* =============================================================
   Leon Dio Footer — Global
   ============================================================= */

/* Đảm bảo .container trong footer luôn có max-width/centering ngay cả
   trên Elementor pages (assets-leon-dio/style.css chỉ load trên custom templates) */
#main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    #main-footer .container { padding: 0 20px; }
}

#main-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
}

.footer-inner {
    padding: 72px 0 48px;
}

/* Grid: 4 columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
}

/* --- Col 1: Brand --- */
.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-desc {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-hotline {
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.footer-hotline a {
    color: var(--primary);
    text-decoration: none;
}

.footer-hotline a:hover {
    text-decoration: underline;
}

.footer-gpdkkd {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(197, 160, 89, 0.08);
}

/* --- Cols 2, 3, 4: Headings --- */
#main-footer .footer-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 25px;
    padding-bottom: 10px;
    position: relative;
}

#main-footer .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
}

/* --- Cols 2 & 3: Nav links --- */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- Col 4: Contact list --- */
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-list i {
    color: var(--primary);
    font-size: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: var(--primary);
}

/* --- Bottom bar --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        padding: 48px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

/* ── Floating Zalo & Hotline Buttons ──────────────────────────── */
.zalo-container { position: fixed; width: 40px; height: 40px; bottom: 108px; z-index: 9999999; }
.zalo-container.right { left: 15px; }
.zalo-container a { display: block; }
.zalo-container span { display: flex; align-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1182FC; position: relative; }
.zalo-container span img { width: 40px; height: 40px; border-radius: 50%; }
.cmoz-alo-circle { width: 50px; height: 50px; top: -5px; right: -5px; position: absolute; background-color: transparent; border-radius: 100%; border: 2px solid #1182FC; opacity: .5; }
.cmoz-alo-circle-fill { width: 60px; height: 60px; top: -10px; right: -10px; position: absolute; border-radius: 100%; border: 2px solid transparent; background-color: rgba(17,130,252,0.45); opacity: .75; }
.animated_zalo { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; }
.animated_zalo.infinite { -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; }
.zoomin_zalo { -webkit-animation-name: zoomIn_zalo; animation-name: zoomIn_zalo; }
.pulse_zalo { -webkit-animation-name: pulse_zalo; animation-name: pulse_zalo; }
@keyframes zoomIn_zalo {
    0% { opacity: 0; transform: scale3d(.3,.3,.3); }
    50% { opacity: 1; }
}
@keyframes pulse_zalo {
    0%, 100% { transform: scale3d(1,1,1); }
    50% { transform: scale3d(1.05,1.05,1.05); }
}

.hotline-phone-ring-wrap { position: fixed; bottom: 0; left: -15px; z-index: 999999; }
.hotline-phone-ring { position: relative; width: 90px; height: 110px; cursor: pointer; z-index: 11; }
.hotline-phone-ring-circle { width: 65px; height: 65px; top: 20px; left: 20px; position: absolute; border-radius: 100%; border: 2px solid #e60808; opacity: .5;
    animation: phonering-alo-circle-anim 1.2s infinite ease-in-out; }
.hotline-phone-ring-circle-fill { width: 55px; height: 55px; top: 26px; left: 26px; position: absolute; background-color: rgba(230,8,8,0.7); border-radius: 100%;
    animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out; }
.hotline-phone-ring-img-circle { background-color: #e60808; width: 33px; height: 33px; top: 37px; left: 37px; position: absolute; border-radius: 100%;
    animation: phonering-alo-circle-img-anim 1s infinite ease-in-out; display: flex; align-items: center; justify-content: center; }
.hotline-phone-ring-img-circle .pps-btn-img { display: flex; }
.hotline-phone-ring-img-circle .pps-btn-img img { width: 20px; height: 20px; }
.hotline-bar { position: absolute; background: #e60808; height: 40px; width: 180px; line-height: 40px; border-radius: 50px; padding: 0 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.1); left: 33px; bottom: 37px; z-index: 9; cursor: pointer; }
.hotline-bar > a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; text-indent: 50px; display: block; letter-spacing: 1px; line-height: 40px; font-family: Arial; }
.hotline-bar > a:hover, .hotline-bar > a:active { color: #fff; }
@keyframes phonering-alo-circle-anim {
    0% { transform: rotate(0) scale(0.5) skew(1deg); opacity: .1; }
    30% { transform: rotate(0) scale(0.7) skew(1deg); opacity: .5; }
    100% { transform: rotate(0) scale(1) skew(1deg); opacity: .1; }
}
@keyframes phonering-alo-circle-fill-anim {
    0%, 100% { transform: rotate(0) scale(0.7) skew(1deg); opacity: .6; }
    50% { transform: rotate(0) scale(1) skew(1deg); opacity: .6; }
}
@keyframes phonering-alo-circle-img-anim {
    0%, 50%, 100% { transform: rotate(0) scale(1) skew(1deg); }
    10%, 30% { transform: rotate(-25deg) scale(1) skew(1deg); }
    20%, 40% { transform: rotate(25deg) scale(1) skew(1deg); }
}
@media (max-width: 768px) {
    .hotline-bar { display: none; }
}
