/* ===================================================
   FOOTER — Almabr Medical Store
   Navy Blue Dark Footer — Clean & Harmonious
   =================================================== */

/* ── Base ── */
.site-footer {
    background: #0A1845;
    color: #FFFFFF;
    border-top: none;
    font-weight: 500;
}

.footer-main {
    padding: 52px 0 40px;
}

/* ── Grid ── */
.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.8fr 1.2fr 1.4fr 1.6fr; }
}

/* ── Column shared ── */
.footer-col { }

/* ── Col 1: About ── */
.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 75px;
    width: auto;
    filter: brightness(0) invert(1); /* logo white */
}

.footer-desc {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255,255,255,0.85);
    max-width: 280px;
}

/* ── Section title inside footer ── */
.footer-title {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

/* ── Quick Links ── */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s, padding-right 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-right: 6px;
}

/* ── Payment Icons — white chip cards ── */
.payment-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.payment-chip {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 38px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.payment-chip:hover {
    transform: translateY(-2px);
}

.payment-chip img {
    height: 22px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ── App Badges ── */
.footer-app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.app-badge-link img {
    height: 42px;
    width: auto;
    transition: transform 0.2s ease, opacity 0.2s;
    filter: brightness(1);
}

.app-badge-link:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

/* ── Contact Block ── */
.footer-contact-block {
    margin-bottom: 24px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255,255,255,0.7);
}

.footer-contact a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #FFFFFF;
}

/* ── Social Icons ── */
.footer-social-block { }

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #FFFFFF;
}

.social-icon--instagram:hover { background: #E1306C; }
.social-icon--facebook:hover  { background: #1877F2; }
.social-icon--tiktok:hover    { background: #010101; }
.social-icon--twitter:hover   { background: #14171A; }
.social-icon--youtube:hover   { background: #FF0000; }
.social-icon--whatsapp:hover  { background: #25D366; }

/* ── Footer Bottom ── */
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    border-top: none;
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
}

.footer-license-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-start;
}

.footer-license {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.footer-copyright-section {
    flex: 1;
    text-align: center;
}

.copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    margin: 0;
}

.footer-powered-section {
    flex: 1;
    text-align: left;
}

.powered-by {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.powered-by a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.powered-by a:hover {
    color: rgba(255,255,255,0.75);
    text-decoration: underline;
}

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    color: #fff;
}

/* ── Back To Top ── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: var(--almabr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 32, 96, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--almabr-primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* ── Mobile Tweaks ── */
@media (max-width: 767px) {
    .footer-main { padding: 36px 0 28px; }

    .footer-desc { max-width: 100%; }

    .footer-license-section,
    .footer-copyright-section,
    .footer-powered-section {
        text-align: center;
        justify-content: center;
    }

    .payment-icons-grid {
        justify-content: flex-start;
    }
}