/**
 * Footer & WhatsApp CSS
 * Premium dark footer — matches xtechoficial.com
 */

/* ============================================================
   FOOTER
============================================================ */
.xtech-footer {
    background: linear-gradient(180deg, var(--xtech-bg-base) 0%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5rem;
    margin-top: 5rem;
    position: relative;
}

.xtech-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 2px;
    background: var(--xtech-gradient);
    border-radius: 2px;
    opacity: 0.8;
}

.xtech-footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.xtech-footer__about {
    padding-right: 1.5rem;
}

.xtech-footer__logo {
    margin-bottom: 1.25rem;
}

.xtech-footer__logo img {
    height: 44px;
    width: auto;
}

.xtech-footer__logo-text {
    font-family: var(--xtech-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.xtech-footer__logo-text span {
    color: var(--xtech-primary);
}

.xtech-footer__about-text {
    color: var(--xtech-text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- Social Links ---------- */
.xtech-footer__social {
    display: flex;
    gap: 0.75rem;
}

.xtech-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--xtech-text-secondary);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.xtech-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.xtech-footer__social-link:hover {
    background: var(--xtech-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(255, 140, 0, 0.6);
}

/* ---------- Columns ---------- */
.xtech-footer__heading {
    font-family: var(--xtech-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.xtech-footer__links,
.xtech-footer-widget ul,
.xtech-footer__column .menu {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.xtech-footer__link,
.xtech-footer-widget ul li a,
.xtech-footer__column .menu li a {
    color: var(--xtech-text-muted);
    transition: color 0.25s ease, transform 0.25s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.xtech-footer__link::before,
.xtech-footer__column .menu li a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--xtech-primary);
    transition: width 0.3s ease;
}

.xtech-footer__link:hover::before,
.xtech-footer__column .menu li a:hover::before {
    width: 12px;
}

.xtech-footer__link:hover,
.xtech-footer-widget ul li a:hover,
.xtech-footer__column .menu li a:hover {
    color: var(--xtech-primary);
}

/* ---------- Contact Info ---------- */
.xtech-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    color: var(--xtech-text-muted);
    font-size: 0.95rem;
}

.xtech-footer__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.18);
    border-radius: var(--xtech-radius-sm);
    color: var(--xtech-primary);
    flex-shrink: 0;
}

.xtech-footer__contact-icon svg {
    width: 16px;
    height: 16px;
}

.xtech-footer__contact-item a,
.xtech-footer__contact-item span {
    color: inherit;
    line-height: 1.45;
    padding-top: 0.3rem;
}

.xtech-footer__contact-item a:hover {
    color: var(--xtech-primary);
}

/* ---------- Bottom Bar ---------- */
.xtech-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.xtech-footer__copyright {
    color: var(--xtech-text-dim);
    font-size: 0.85rem;
    margin: 0;
}

.xtech-footer__bottom-links {
    display: flex;
    gap: 1.5rem;
}

.xtech-footer__bottom-link {
    color: var(--xtech-text-muted);
    font-size: 0.85rem;
    transition: color 0.25s ease;
}

.xtech-footer__bottom-link:hover {
    color: var(--xtech-primary);
}

/* ---------- Footer responsive ---------- */
@media (max-width: 1024px) {
    .xtech-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .xtech-footer__about { grid-column: 1 / -1; padding-right: 0; }
}

@media (max-width: 640px) {
    .xtech-footer { padding-top: 3.5rem; margin-top: 3rem; }
    .xtech-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
    .xtech-footer__bottom { text-align: center; justify-content: center; }
    .xtech-footer__bottom-links { justify-content: center; }
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.xtech-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.xtech-whatsapp__tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #128c7e;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, right 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.xtech-whatsapp__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.xtech-whatsapp:hover .xtech-whatsapp__tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.xtech-whatsapp__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.55),
                0 4px 10px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
}

.xtech-whatsapp__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: xtech-whatsapp-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.xtech-whatsapp__btn:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 35px -5px rgba(37, 211, 102, 0.7),
                0 6px 14px rgba(0, 0, 0, 0.4);
}

.xtech-whatsapp__btn svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

@keyframes xtech-whatsapp-pulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 640px) {
    .xtech-whatsapp { bottom: 18px; right: 18px; }
    .xtech-whatsapp__btn { width: 54px; height: 54px; }
    .xtech-whatsapp__btn svg { width: 26px; height: 26px; }
}

/* Hide tooltip on touch devices — reduces accidental UI */
@media (hover: none) {
    .xtech-whatsapp__tooltip { display: none; }
}
