/* ====================================================
   Back to top button
   ==================================================== */
.backtotop {
    cursor: pointer;
    background: var(--color-3);
    bottom: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px;
    position: fixed;
    right: 12px;
    text-align: center;
    text-transform: uppercase;
    width: 40px;
    z-index: 999;
    border-radius: 4px;
    border: 1px solid #FFF;
}

.backtotop svg {
    width: 26px;
    height: 18px;
    margin-bottom: -1px;
}

.backtotop svg path {
    stroke: #fff;
}

/* ====================================================
   Support Widget / Contact Panel
   ==================================================== */
.support-widget {
    position: fixed;
    bottom: 69px;
    right: 15px;
    z-index: 9999;
}

.trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-3);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 167, 84, 0.4);
    transition: transform 0.2s;
}

.trigger-btn:hover {
    transform: scale(1.05);
}

.trigger-btn .icon-bvc-member img {
    /* width: 34px;
    height: 34px; */
    border-radius: 50%;
    object-fit: cover;
}

.trigger-btn .icon-close-main {
    display: none;
    width: 22px;
    height: 22px;
    fill: #111;
}

.trigger-btn.active .icon-bvc-member {
    display: none;
}

.trigger-btn.active .icon-close-main {
    display: block;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-3);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #1a1c22;
    border: 1px solid rgba(212, 167, 84, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.contact-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--color-3);
    color: #fff;
}

.panel-title {
    display: grid;
    grid-template-columns: 38px auto;
    align-items: center;
    gap: 10px;
}

.panel-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.panel-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    /* color: #111; */
}

.panel-info span {
    font-size: 11px;
    /* color: #333; */
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.panel-greeting {
    padding: 14px 16px;
    font-size: 13px;
    color: #bbb;
    margin: 0;
    border-bottom: 1px solid #2a2c32;
}

.contact-list {
    padding: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #eee;
    transition: background 0.2s;
    gap: 10px;
}

.contact-item:hover {
    background: rgba(212, 167, 84, 0.1);
    text-decoration: none;
}

.contact-item .icon-wrap {
    flex-shrink: 0;
}

.contact-item .icon-wrap img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.contact-text strong {
    font-size: 16px;
    font-weight: 600;
    color: #eee;
}

.contact-text p {
    font-size: 13px;
}

.contact-arrow {
    margin-left: auto;
    color: var(--color-5);
    font-size: 20px;
}


/* FOOTER */
.footer {
    /* background: #050d0a; */
    /* color: #fff; */
    /* font-family: 'Roboto', sans-serif; */
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #e0d5c1;
}

.footer-top {
    padding: 40px 0px;
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1.3fr 1.2fr;
    gap: 35px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Hide empty elements generated dynamically */
.footer-col p:empty,
.footer-col ul:empty {
    display: none !important;
}

/* Titles */
.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    /* color: var(--color-3); */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
    margin-top: 0;
}

/* Brand column */
.footer-brand p img.image {
    max-width: 160px;
    height: auto;
    display: block;

}

.footer-brand p img.image.logo-footer {
    margin-bottom: 12px;
}

.footer-brand p {
    /* color: #fff; */
    font-size: 14px;
}

/* Social icons horizontal */
.socials ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    /* margin: 15px 0 0 0; */
    list-style: none;
}

.socials ul li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.socials ul li p {
    margin: 0 !important;
    padding: 0 !important;
}

.socials ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-3);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 !important;
    margin: 0 !important;
}

.socials ul li a img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
    transition: filter 0.3s;
}

.socials ul li a:hover {
    background: var(--color-3);
    transform: translateY(-2px);
}

.socials ul li a:hover img {
    filter: brightness(0) invert(1);
}

/* Quick links 2-column grid layout */
.footer-col:nth-child(2) ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-col:nth-child(2) ul li,
.footer-col:nth-child(2) ul li a {
    font-size: 14px;
    /* color: #fff; */
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    list-style: none;
}

.footer-col:nth-child(2) ul li:hover,
.footer-col:nth-child(2) ul li a:hover {
    color: var(--color-3);
    transform: translateX(3px);
}

/* Contact Info Column styling */
.footer-col:nth-child(3) ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-col:nth-child(3) ul li {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    /* font-size: 13.5px; */
    /* color: #cbd5e1; */
    line-height: 1.5;
    list-style: none;
}

.footer-col:nth-child(3) ul li img.image {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 3px;
    /* filter: sepia(1) saturate(5) hue-rotate(345deg) brightness(0.85); */
    /* Converts to luxury gold */
    /* filter: brightness(0); */
}

.footer-col.footer-brand {
    gap: 12px;
}

/* Newsletter styling */
.footer-newsletter p {
    /* color: #cbd5e1; */
    /* font-size: 13px; */
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.newsletter-input {
    display: flex;
    height: 42px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    padding: 2px;
    border: 1px solid rgba(212, 167, 84, 0.5);
}

.newsletter-input input {
    flex: 1;
    border: none;
    outline: none;
    background: #ffffff;
    padding: 0 15px;
    font-size: 13px;
    color: #1e293b;
    border-radius: 4px 0 0 4px;
}

.newsletter-input button {
    background: var(--color-3);
    border: none;
    outline: none;
    width: 46px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: opacity 0.2s;
    padding: 0;
}

.newsletter-input button:hover {
    opacity: 0.9;
}

.newsletter-input button i {
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg) translateX(2px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #E9DDD0;
    text-align: center;
    padding: 15px 0px;
    /* background: #030806; */
}

.footer-bottom p {
    font-size: 14px;
    /* color: #64748b; */
    margin: 0;
}

.footer-bottom strong {
    /* color: #94a3b8; */
    font-weight: 500;
}

/* .footer-bottom strong a {
    color: #FFF;
} */

/* Responsive Viewports */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px 40px;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
        padding: 25px 0;
    }

    .footer-brand,
    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .footer-col h3 {
        margin-bottom: 15px;
        font-size: 15px;
    }

    .footer-col:nth-child(2) ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .support-widget {
        bottom: 140px;
    }
}

@media (max-width: 380px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}