/* ==========================================================================
   Footer — dark band (#171717) with four columns and a hairline legal bar.
   Classes come from footer.php: .footer-enhanced / .footer-columns /
   .footer-column / .footer-links / .footer-legal
   ========================================================================== */

.footer-enhanced {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 60px 0 40px;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 0;
}

.footer-column--about {
    flex: 1 1 280px;
}

.footer-column--about img {
    display: block;
    margin-bottom: 16px;
}

.footer-column--about p {
    color: var(--footer-link);
    max-width: 320px;
}

.footer-heading {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-enhanced a {
    color: var(--footer-link);
}

.footer-enhanced a:hover,
.footer-enhanced a:focus {
    color: var(--footer-text);
}

.footer-column p {
    margin: 0 0 14px;
}

.footer-column strong {
    color: #fff;
}

/* Click-to-reveal contact spans */

.bbccolonic-address,
.bbccolonic-phone,
.bbccolonic-email {
    cursor: pointer;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.bbccolonic-address:hover,
.bbccolonic-phone:hover,
.bbccolonic-email:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Legal bar */

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
}

.footer-legal .mw-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal p {
    margin: 0;
    color: var(--footer-link);
}

@media (max-width: 991px) {
    .footer-columns {
        display: block;
        padding: 40px 0 20px;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }
}

/* -------------------------------------------------------------------------
   Fidelity corrections: footer #524C47, white links, single 6+6 row
   ------------------------------------------------------------------------- */

.footer-enhanced {
    background: #524c47;
    margin-top: 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 25px 0 15px;
    align-items: flex-start;
}

.footer-column--about {
    display: none;
}

.footer-column {
    flex: 1 1 220px;
}

.footer-heading {
    display: none;
}

.footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-enhanced a,
.footer-enhanced .footer-column p,
.footer-enhanced .footer-legal p {
    color: #ffffff;
}

.footer-enhanced a:hover,
.footer-enhanced a:focus {
    color: #639846;
}

.footer-column strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-legal {
    border-top: 0;
    padding: 0 0 20px;
}

.footer-legal .mw-container {
    justify-content: flex-end;
}

.bbccolonic-address,
.bbccolonic-phone,
.bbccolonic-email {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.bbccolonic-address:hover,
.bbccolonic-phone:hover,
.bbccolonic-email:hover {
    color: #639846;
    border-bottom-color: #639846;
}

/* -------------------------------------------------------------------------
   Back to top - the original template had "goto top" enabled (sp-scroll-up).
   Kept always visible because no JavaScript is added to the framework.
   ------------------------------------------------------------------------- */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 60px;
    z-index: 100;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.45);
    color: #ffffff;
    transition: background-color 300ms, color 300ms;
}

.back-to-top:hover,
.back-to-top:focus {
    background: #639846;
    color: #ffffff;
}

.back-to-top svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media (max-width: 767px) {
    .back-to-top {
        right: 15px;
        bottom: 30px;
        width: 34px;
        height: 34px;
    }
}

/* -------------------------------------------------------------------------
   Click-to-reveal text.
   The white styling only belongs on the dark footer band; inside page content
   the placeholder must read as a normal green link, otherwise it is invisible
   on the white background.
   ------------------------------------------------------------------------- */

.bbccolonic-address,
.bbccolonic-phone,
.bbccolonic-email {
    color: #639846;
    border-bottom: 1px dotted #639846;
    cursor: pointer;
}

.bbccolonic-address:hover,
.bbccolonic-phone:hover,
.bbccolonic-email:hover,
.bbccolonic-address:focus,
.bbccolonic-phone:focus,
.bbccolonic-email:focus {
    color: #4f7a36;
    border-bottom-style: solid;
    border-bottom-color: #4f7a36;
}

/* Dark band keeps its light treatment */
.footer-enhanced .bbccolonic-address,
.footer-enhanced .bbccolonic-phone,
.footer-enhanced .bbccolonic-email {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.footer-enhanced .bbccolonic-address:hover,
.footer-enhanced .bbccolonic-phone:hover,
.footer-enhanced .bbccolonic-email:hover,
.footer-enhanced .bbccolonic-address:focus,
.footer-enhanced .bbccolonic-phone:focus,
.footer-enhanced .bbccolonic-email:focus {
    color: #639846;
    border-bottom-color: #639846;
    border-bottom-style: solid;
}


/* -------------------------------------------------------------------------
   Promotion popup — rebuilt from the original RSTBox "Monthly Promotion" box:
   pale-green panel, 3px double green border, 20px radius, 50% black overlay,
   bounce-in entrance. Rendered only when sections/en/promo.php is enabled.
   ------------------------------------------------------------------------- */

.bbc-promo {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bbc-promo[hidden] {
    display: none;
}

.bbc-promo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.bbc-promo__box {
    position: relative;
    z-index: 1;
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: #cbf5c9;
    color: #333333;
    border: 3px double #50804a;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.bbc-promo--open .bbc-promo__box {
    animation: bbcPromoIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bbc-promo__close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: #888888;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.bbc-promo__close:hover,
.bbc-promo__close:focus {
    color: #555555;
}

.bbc-promo__title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333333;
}

.bbc-promo__eyebrow {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.bbc-promo__rule {
    border: 0;
    border-top: 1px solid rgba(80, 128, 74, 0.45);
    margin: 12px auto;
    width: 70%;
}

.bbc-promo__headline {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #5a7c1f;
}

.bbc-promo__offers {
    list-style: none;
    margin: 18px 0;
    padding: 0;
}

.bbc-promo__offers li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(80, 128, 74, 0.35);
    font-size: 16px;
    text-align: left;
}

.bbc-promo__offers li:last-child {
    border-bottom: 0;
}

.bbc-promo__offers strong {
    color: #4f7a36;
    white-space: nowrap;
}

.bbc-promo__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.bbc-promo__link {
    color: #4f7a36;
    text-decoration: underline;
    font-size: 14px;
}

.bbc-promo__link:hover {
    color: #333333;
}

body.bbc-promo-lock {
    overflow: hidden;
}

@keyframes bbcPromoIn {
    0%   { opacity: 0; transform: scale(0.8); }
    60%  { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 767px) {
    .bbc-promo__box {
        padding: 6% 5%;
        max-width: 95vw;
    }

    .bbc-promo__title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bbc-promo--open .bbc-promo__box {
        animation: none;
    }
}