/* === Footer Styles === */

.site-footer {
    position: relative;
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Prevent mobile flickering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    /* Stronger dark overlay - Removed backdrop-filter to fix flickering */
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo-section {
    z-index: 2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    margin-right: 20px;
    overflow: hidden;
}

.footer-logo img {
    margin-bottom: 0;
    max-height: 60px;
    width: auto;
    border-radius: 8px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    margin-right: 10px;
    font-size: 18px;
    color: #fff;
    min-width: 25px;
    text-align: center;
    margin-top: 0;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact {
    text-align: left;
}

.footer-contact .contact-item {
    justify-content: flex-start;
    text-align: left;
}

/* Footer Menu */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Social Icons */
.footer-social-icons {
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    /* Circle icons? Image implies simple icons but usually circle/square. Let's do circle or just plain. Image shows just icons. I'll do icons with hover. */
    margin-right: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

/* Update - User image has just raw icons, but styled looks better. I'll stick to circle for cleanliness or plain. */
.social-icon:hover {
    background: #fff;
    color: #000;
}

.footer-bottom {
    font-size: 13px;
    color: #999;
}

.payment-icons i {
    color: #bbb;
    transition: color 0.3s;
}

.payment-icons i:hover {
    color: #fff;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #95031d;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    z-index: 900;
    /* Lower than menu overlay */
    text-decoration: none;
    border-radius: 50% !important;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#back-to-top:hover {
    background-color: #a00b26;
    color: #fff;
}

/* Mobile Footer Column Spacing */
@media screen and (max-width: 768px) {

    .footer-logo-section {
        margin-left: 16px;
        margin-right: 16px;
    }

    .footer-contact,
    .footer-menu-col {
        margin-bottom: 30px;
        text-align: left !important;
        padding: 0 20px;
    }

    .footer-contact .contact-item {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .footer-contact .contact-item span {
        text-align: left;
    }

    .footer-menu-col {
        margin-top: 20px;
    }
}

/* Footer Banner Text - Top of Footer */
.footer-banner-text {
    margin-bottom: 100px;
    padding-bottom: 20px;
    padding-top: 30px;
    text-align: center;
    position: relative;
}

.footer-banner-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, #cca471, #ffffff, transparent);
    border-radius: 2px;
}

.footer-banner-text h4 {
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 1.5px;
    padding: 0 20px;
    position: relative;
    background: linear-gradient(90deg, #ffffff, #cca471);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 3px rgba(197, 143, 22, 0.4));
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .footer-banner-text h4 {
        font-size: 20px;
        letter-spacing: 0.5px;
        padding: 0 15px;
    }

    .footer-banner-text::after {
        width: 180px;
        height: 2px;
    }
}

/* === Contact Popup Button === */
#contact-popup-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    left: auto;
    padding: 0 16px;
    height: 40px;
    background: #cca471;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    z-index: 900;
    /* Lower than menu overlay 999 */
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 14px 28px rgba(122, 86, 8, 0.24), 0 6px 14px rgba(17, 17, 17, 0.14);
    transition: background 0.3s ease, transform 0.3s ease, right 0.3s ease, bottom 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    gap: 8px;
    opacity: 0;
}

#contact-popup-btn i {
    font-size: 18px;
}

#contact-popup-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(122, 86, 8, 0.28), 0 8px 16px rgba(17, 17, 17, 0.16);
    background: #d29a1f;
    color: #fff;
}

#contact-popup-btn~#back-to-top {
    bottom: 74px;
}


/* === Back to Top Button === */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #111111 0%, #cca471 100%);
    color: #fff;
    border-radius: 50%;
    z-index: 900;
    transition: all 0.3s ease;
    box-shadow: 0 14px 28px rgba(122, 86, 8, 0.24), 0 6px 14px rgba(17, 17, 17, 0.14);
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

#back-to-top:hover {
    background: linear-gradient(135deg, #1b1710 0%, #d39d26 100%);
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(122, 86, 8, 0.28), 0 8px 16px rgba(17, 17, 17, 0.16);
    color: #fff;
}

/* Modal Styling */
.sdnh-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sdnh-modal.show {
    display: flex;
    opacity: 1;
}

.sdnh-modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 600px;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.sdnh-modal.show .sdnh-modal-content {
    transform: scale(1);
}

.sdnh-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.sdnh-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.sdnh-close:hover {
    color: #ccc;
}

/* Mobile Adjustments & Admin Bar Fixes */
@media screen and (max-width: 768px) {


    /* FORCE ADMIN BAR TO TOP */
    #wpadminbar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }

    /* Fix Admin Bar when Menu is Open */
    body.menu-open #wpadminbar {
        position: fixed !important;
    }

    html {
        margin-top: 0 !important;
    }

    body.admin-bar {
        margin-top: 46px !important;
        position: static !important;
        /* Ensure absolute admin bar positions relative to viewport/html, not body */
    }

    /* Push Mobile Menu Down below Admin Bar */
    body.admin-bar.menu-open .main-navigation {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }
}
