@import url('variables.css');

/* =============================================
   FOOTER
   Prefix: footer--
   ============================================= */

/* --- Main Footer --- */
.footer--main {
    background-color: var(--color-dark-deepest);
    color: rgba(var(--color-white-rgb), 0.7);
    padding-top: 50px;
}

.footer--top {
    padding-bottom: 35px;
}

/* --- Footer Brand --- */
.footer--brand {
    margin-bottom: 18px;
}

.footer--brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer--brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.footer--brand-icon i {
    font-size: 21px;
    color: var(--color-white);
}

.footer--brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer--brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.footer--brand-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-white);
}

.footer--brand-slogan {
    font-size: 11px;
    font-weight: 400;
    color: rgba(var(--color-white-rgb), 0.5);
    letter-spacing: 0.3px;
}

.footer--brand-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(var(--color-white-rgb), 0.55);
    margin-bottom: 14px;
    text-align: justify;
}

.footer--social {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.footer--social-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer--social-link[title="Facebook"]  { color: var(--color-facebook); background-color: rgba(var(--color-facebook-rgb), 0.15); }
.footer--social-link[title="Instagram"] { color: var(--color-instagram); background-color: rgba(var(--color-instagram-rgb), 0.15); }
.footer--social-link[title="Twitter"]   { color: var(--color-white); background-color: rgba(var(--color-white-rgb), 0.1); }
.footer--social-link[title="YouTube"]   { color: var(--color-youtube); background-color: rgba(var(--color-youtube-rgb), 0.15); }
.footer--social-link[title="WhatsApp"]  { color: var(--color-whatsapp); background-color: rgba(var(--color-whatsapp-rgb), 0.15); }

.footer--social-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* --- Footer Columns --- */
.footer--title {
    color: var(--color-white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer--title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 3px;
}

.footer--links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer--links-item {
    color: rgba(var(--color-white-rgb), 0.55);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.footer--links-item:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer--links-item i {
    font-size: 11px;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer--links-item:hover i {
    opacity: 1;
}

/* --- Footer Contact --- */
.footer--contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.footer--contact-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 6px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 16px;
}

.footer--contact-text {
    font-size: 15px;
    line-height: 1.6;
}

.footer--contact-text strong {
    color: var(--color-white);
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

.footer--contact-text a {
    color: rgba(var(--color-white-rgb), 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- Newsletter --- */
.footer--newsletter {
    margin-top: 18px;
}

.footer--newsletter-text {
    font-size: 14px;
    color: rgba(var(--color-white-rgb), 0.5);
    margin-bottom: 10px;
}

.footer--newsletter-form {
    display: flex;
    gap: 8px;
}

.footer--newsletter-input {
    flex: 1;
    background-color: rgba(var(--color-white-rgb), 0.06);
    border: 1px solid rgba(var(--color-white-rgb), 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--color-white);
    outline: none;
    transition: border-color 0.3s ease;
}

.footer--newsletter-input::placeholder {
    color: rgba(var(--color-white-rgb), 0.35);
}

.footer--newsletter-input:focus {
    border-color: var(--color-primary);
}

.footer--newsletter-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: 6px;
    color: var(--color-white);
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer--newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

/* --- Footer Bottom --- */
.footer--bottom {
    border-top: 1px solid rgba(var(--color-white-rgb), 0.08);
    padding: 16px 0;
    margin-top: 8px;
}

.footer--bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer--copyright {
    font-size: 14px;
    color: rgba(var(--color-white-rgb), 0.45);
    margin: 0;
}

.footer--copyright a {
    color: rgba(var(--color-white-rgb), 0.75);
    text-decoration: none;
}

.footer--bottom-links {
    display: flex;
    gap: 14px;
}

.footer--bottom-link {
    color: rgba(var(--color-white-rgb), 0.45);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer--bottom-link:hover {
    color: var(--color-primary);
}

.footer--payment {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer--payment-icon {
    width: 38px;
    height: 24px;
    background-color: rgba(var(--color-white-rgb), 0.08);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: rgba(var(--color-white-rgb), 0.5);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .footer--main {
        padding-top: 35px;
    }

    .footer--brand {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .footer--brand {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer--brand-logo {
        justify-content: center;
    }

    .footer--brand-desc {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer--social {
        justify-content: center;
    }

    .footer--bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer--bottom-links {
        justify-content: center;
    }

    .footer--payment {
        justify-content: center;
    }
}

/* ============================================= */
/* FLOATING HELP WIDGET                          */
/* ============================================= */
.fhelp--widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Option buttons container */
.fhelp--options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fhelp--open .fhelp--options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Individual option buttons */
.fhelp--option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(var(--color-black-rgb), 0.15);
}

.fhelp--option:hover {
    transform: scale(1.12);
    color: var(--color-white);
}

.fhelp--option-wp {
    background: var(--color-whatsapp);
}

.fhelp--option-wp:hover {
    box-shadow: 0 6px 20px rgba(var(--color-whatsapp-rgb), 0.45);
}

.fhelp--option-phone {
    background: var(--color-info);
}

.fhelp--option-phone:hover {
    box-shadow: 0 6px 20px rgba(var(--color-info-rgb), 0.45);
}

.fhelp--option-mail {
    background: var(--color-primary);
}

.fhelp--option-mail:hover {
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.45);
}

/* Stagger animation */
.fhelp--open .fhelp--option-wp {
    transition-delay: 0.03s;
}

.fhelp--open .fhelp--option-phone {
    transition-delay: 0.08s;
}

.fhelp--open .fhelp--option-mail {
    transition-delay: 0.13s;
}

/* Main toggle button */
.fhelp--toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 6px 24px rgba(var(--color-primary-rgb), 0.35);
    white-space: nowrap;
}

.fhelp--toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(var(--color-primary-rgb), 0.45);
}

.fhelp--toggle .fhelp--icon-open {
    font-size: 19px;
}

.fhelp--toggle .fhelp--icon-close {
    font-size: 19px;
    display: none;
}

/* Open state: switch icons, shrink to circle */
.fhelp--open .fhelp--toggle {
    padding: 14px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
}

.fhelp--open .fhelp--toggle .fhelp--icon-open {
    display: none;
}

.fhelp--open .fhelp--toggle .fhelp--icon-close {
    display: block;
}

.fhelp--open .fhelp--toggle .fhelp--label {
    display: none;
}

/* Pulse animation on toggle */
.fhelp--toggle {
    position: relative;
}

.fhelp--toggle::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: inherit;
    border: 2px solid rgba(var(--color-primary-rgb), 0.3);
    animation: fhelp-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

.fhelp--open .fhelp--toggle::after {
    display: none;
}

@keyframes fhelp-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0; }
}

/* Mobile responsive */
@media (max-width: 575px) {
    .fhelp--widget {
        bottom: 18px;
        right: 18px;
    }

    .fhelp--toggle {
        padding: 12px 18px;
        font-size: 14px;
    }

    .fhelp--toggle .fhelp--icon-open {
        font-size: 17px;
    }

    .fhelp--open .fhelp--toggle {
        width: 46px;
        height: 46px;
        padding: 12px;
    }

    .fhelp--option {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }
}
