/* ==========================================================================
   BAOIAM GLOBAL FOOTER STYLES
   Applies uniformly across all pages on the site.
   ========================================================================== */

.footer {
    background: linear-gradient(180deg, #091322 0%, #050b14 100%);
    color: #ffffff;
    width: 100%;
    padding: 64px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
}

/* Container Grid */
.footer-container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: clamp(24px, 3.5vw, 48px);
    align-items: start;
    box-sizing: border-box;
}

/* Brand / Logo Column */
.logo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.logo-box p {
    color: #8ea3bf;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
    max-width: 270px;
    display: none;
}

/* Column Headings */
.footer-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Shift Quick Access column slightly right */
.footer-container > .footer-box:nth-child(3) {
    padding-left: clamp(6px, 1.2vw, 14px);
}

.footer-box h3 {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 18px 0;
    position: relative;
    padding-bottom: 8px;
    line-height: 1.3;
}

.footer-box h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 2px;
    background: #ff8b48;
    border-radius: 2px;
}

/* Links */
.footer-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.footer-box ul li {
    margin: 0;
    padding: 0;
}

.footer-box ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    transition: color 0.22s ease, transform 0.22s ease;
    display: inline-flex;
    align-items: center;
}

.footer-box ul li a:hover {
    color: #ff8b48;
    transform: translateX(3px);
}

.footer-box ul li a:focus-visible {
    outline: 2px solid #ff8b48;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   FOOTER BOTTOM SECTION
   ========================================================================== */

.footer-bottom {
    width: 92%;
    max-width: 1240px;
    margin: 46px auto 0;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(24px, 4vw, 48px);
    box-sizing: border-box;
}

/* App Download Column */
.download-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-section h3 {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 14px 0;
    line-height: 1.3;
}

.app-btn,
.footer-support-email {
    width: 224px;
    min-width: 224px;
    max-width: 224px;
    height: 56px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-sizing: border-box;
    color: #ffffff;
}

.app-btn {
    margin-bottom: 10px;
}

.footer-support-email {
    margin-bottom: 16px;
}

.app-btn:hover,
.footer-support-email:hover {
    background: rgba(255, 139, 72, 0.12);
    border-color: rgba(255, 139, 72, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.app-btn i {
    font-size: 26px;
    color: #ffffff;
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}

.play-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.app-btn span,
.footer-support-email strong {
    color: #8ea3bf !important;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    line-height: 1.2;
    font-weight: 500;
}

.app-btn h4,
.footer-support-email .footer-email-val {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 2px 0 0 0;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
}

/* Follow / Support Column */
.follow-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-support-email i {
    font-size: 23px;
    color: #ff8b48;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
}

.footer-support-email span {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.footer-support-email:hover .footer-email-val {
    color: #ff9c5a !important;
}

.follow-section p {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8ea3bf;
    line-height: 1.3;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cbd5e1;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.social-icons a:hover {
    background: #ff8b48;
    border-color: #ff8b48;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 139, 72, 0.35);
}

/* ==========================================================================
   COPYRIGHT
   ========================================================================== */

.copyright {
    width: 92%;
    max-width: 1240px;
    margin: 34px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 22px;
    text-align: center;
    color: #718096;
    font-size: 13.5px;
    line-height: 1.5;
    box-sizing: border-box;
}

.copyright b {
    color: #cbd5e1;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .footer {
        padding: 52px 0 26px;
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 30px;
    }

    .logo-box {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-top: 36px;
        padding-top: 28px;
    }
}

/* Mobile & Touch Devices (max-width: 640px) */
@media (max-width: 640px) {
    .footer {
        padding: 42px 0 24px;
    }

    .footer-container {
        width: 92%;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 28px 18px;
    }

    .footer-container > .footer-box:nth-child(3) {
        padding-left: clamp(16px, 4.5vw, 26px);
    }

    .logo-box {
        grid-column: 1 / -1;
        width: 100%;
        margin-bottom: 2px;
    }

    .footer-logo {
        width: 185px;
        margin-left: 0;
        margin-bottom: 6px;
    }

    .footer-box h3 {
        font-size: 13.5px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .footer-box h3::after {
        width: 22px;
        height: 2px;
    }

    .footer-box ul {
        gap: 6px;
    }

    .footer-box ul li a {
        font-size: 13.5px;
        padding-block: 5px;
        display: inline-block;
    }

    .footer-bottom {
        width: 92%;
        margin-top: 30px;
        padding-top: 24px;
        gap: 26px;
    }

    .download-section {
        width: 100%;
    }

    .download-section h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .app-btn,
    .footer-support-email {
        width: 100%;
        max-width: 240px;
        min-width: unset;
        height: 52px;
        padding: 8px 14px;
        margin-bottom: 8px;
    }

    .app-btn i,
    .footer-support-email i {
        font-size: 22px;
        width: 24px;
        height: 24px;
    }

    .play-icon {
        width: 22px;
        height: 22px;
    }

    .app-btn h4,
    .footer-support-email .footer-email-val {
        font-size: 13.5px;
    }

    .follow-section {
        width: 100%;
    }

    .follow-section p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 15px;
        border-radius: 9px;
    }

    .copyright {
        width: 92%;
        margin-top: 24px;
        padding-top: 18px;
        font-size: 12px;
    }
}

/* Extra Small Phones (max-width: 380px) */
@media (max-width: 380px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-box ul li a {
        font-size: 13px;
    }
}
