/* =========================================================
   EMDY FOOTER PREMIUM CSS
   Chỉ dùng class .emdy-footer-* nên không ảnh hưởng CSS cũ.
========================================================= */

:root{
    --emdy-footer-primary: #ff2e74;
    --emdy-footer-primary-2: #ff7aa5;
    --emdy-footer-dark: #21151b;
    --emdy-footer-muted: #7d6871;
    --emdy-footer-soft: #fff3f8;
    --emdy-footer-white: #ffffff;
    --emdy-footer-border: rgba(255,46,116,0.16);
    --emdy-footer-shadow: 0 18px 55px rgba(255,46,116,0.14);
}

.emdy-footer,
.emdy-footer *{
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

.emdy-footer{
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,122,165,0.22), transparent 28%),
        radial-gradient(circle at 90% 30%, rgba(255,46,116,0.16), transparent 30%),
        linear-gradient(180deg, #fff8fb 0%, #ffffff 45%, #fff1f7 100%);
    color: var(--emdy-footer-dark);
    border-top: 1px solid var(--emdy-footer-border);
}

.emdy-footer-bg{
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.7;
    background-image:
        linear-gradient(45deg, rgba(255,46,116,0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,46,116,0.04) 25%, transparent 25%);
    background-size: 42px 42px;
}

.emdy-footer-main{
    position: relative;
    padding: 86px 0 60px;
}

.emdy-footer-container{
    width: min(1450px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.85fr 0.75fr 1.2fr;
    gap: 42px;
}

/* =========================================================
   BRAND
========================================================= */

.emdy-footer-brand{
    padding: 34px;
    border-radius: 34px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,46,116,0.13);
    box-shadow: var(--emdy-footer-shadow);
    backdrop-filter: blur(14px);
}

.emdy-footer-logo{
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 22px;
}

.emdy-footer-logo img{
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 22px;
    padding: 6px;
    background: white;
    box-shadow: 0 10px 26px rgba(255,46,116,0.16);
}

.emdy-footer-logo span{
    color: var(--emdy-footer-primary);
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.emdy-footer-brand p{
    color: var(--emdy-footer-muted);
    font-size: 18px;
    line-height: 1.85;
    margin: 0 0 26px;
}

.emdy-footer-stats{
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
}

.emdy-footer-stats div{
    flex: 1;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fff5f9);
    border: 1px solid var(--emdy-footer-border);
    text-align: center;
}

.emdy-footer-stats strong{
    display: block;
    color: var(--emdy-footer-primary);
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
}

.emdy-footer-stats span{
    color: var(--emdy-footer-muted);
    font-size: 15px;
    font-weight: 700;
}

.emdy-footer-social{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.emdy-footer-social a{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--emdy-footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

.emdy-footer-social a:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(255,46,116,0.18);
}

.emdy-footer-social img{
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* =========================================================
   COLUMNS
========================================================= */

.emdy-footer-col,
.emdy-footer-newsletter{
    padding-top: 16px;
}

.emdy-footer-col h3,
.emdy-footer-newsletter h3{
    position: relative;
    color: var(--emdy-footer-dark);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 28px;
}

.emdy-footer-col h3::after,
.emdy-footer-newsletter h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -11px;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emdy-footer-primary-2), var(--emdy-footer-primary));
}

.emdy-footer-col ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.emdy-footer-col li{
    margin-bottom: 13px;
}

.emdy-footer-col a{
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--emdy-footer-muted);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    background: rgba(255,255,255,0.56);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.25s ease;
}

.emdy-footer-col a:hover{
    color: var(--emdy-footer-primary);
    background: white;
    border-color: var(--emdy-footer-border);
    box-shadow: 0 10px 24px rgba(255,46,116,0.10);
    padding-left: 20px;
}

.emdy-footer-col small{
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: white;
    background: var(--emdy-footer-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   NEWSLETTER
========================================================= */

.emdy-footer-newsletter p{
    color: var(--emdy-footer-muted);
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 22px;
}

.emdy-newsletter-form{
    width: 100%;
    padding: 7px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--emdy-footer-border);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(255,46,116,0.10);
    margin-bottom: 24px;
}

.emdy-newsletter-form input{
    flex: 1;
    height: 48px;
    border: none;
    outline: none;
    padding: 0 18px;
    background: transparent;
    color: var(--emdy-footer-dark);
    font-size: 17px;
}

.emdy-newsletter-form input::placeholder{
    color: #aa8d98;
}

.emdy-newsletter-form input.is-error{
    color: var(--emdy-footer-primary);
}

.emdy-newsletter-form button{
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--emdy-footer-primary-2), var(--emdy-footer-primary));
    font-size: 17px;
    font-weight: 800;
    transition: 0.25s ease;
}

.emdy-newsletter-form button:hover{
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.emdy-footer-contact-box{
    display: grid;
    gap: 13px;
}

.emdy-footer-contact-box div{
    min-height: 48px;
    padding: 12px 15px;
    border-radius: 18px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,46,116,0.10);
    color: var(--emdy-footer-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
}

.emdy-footer-contact-box i{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: white;
    background: var(--emdy-footer-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   BOTTOM
========================================================= */

.emdy-footer-bottom{
    position: relative;
    border-top: 1px solid var(--emdy-footer-border);
    background: rgba(255,255,255,0.72);
}

.emdy-footer-bottom-container{
    width: min(1450px, 92%);
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.emdy-footer-bottom p{
    margin: 0;
    color: var(--emdy-footer-muted);
    font-size: 16px;
    font-weight: 700;
}

.emdy-footer-bottom div{
    display: flex;
    align-items: center;
    gap: 20px;
}

.emdy-footer-bottom a{
    color: var(--emdy-footer-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.emdy-footer-bottom a:hover{
    color: var(--emdy-footer-primary);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1200px){
    .emdy-footer-container{
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .emdy-footer-newsletter{
        grid-column: 1 / -1;
    }
}

@media(max-width:900px){
    .emdy-footer-main{
        padding: 70px 0 45px;
    }

    .emdy-footer-container{
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .emdy-footer-brand,
    .emdy-footer-newsletter{
        grid-column: 1 / -1;
    }
}

@media(max-width:650px){
    .emdy-footer-container{
        grid-template-columns: 1fr;
    }

    .emdy-footer-brand{
        padding: 26px;
    }

    .emdy-footer-logo span{
        font-size: 28px;
    }

    .emdy-footer-stats{
        flex-direction: column;
    }

    .emdy-newsletter-form{
        border-radius: 24px;
        flex-direction: column;
        padding: 10px;
    }

    .emdy-newsletter-form input,
    .emdy-newsletter-form button{
        width: 100%;
    }

    .emdy-footer-bottom-container{
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
    }

    .emdy-footer-bottom div{
        flex-wrap: wrap;
        justify-content: center;
    }
}
