/* ------------------------------
   MOBILE: DONATE + BROCHURE BAR
   On phones, the two buttons sit side by side in a slim bar
   along the bottom of the screen instead of stacking over the
   header. The footer gets extra room so the bar never hides it.
------------------------------ */
@media (max-width: 767px) {
    .donation-button-top,
    .btn-brochure-top {
        position: fixed;
        top: auto;
        bottom: 0;
        width: 50%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.95rem 0.5rem calc(0.95rem + env(safe-area-inset-bottom));
        border: 0;
        border-top: 3px solid #d4af37;
        border-radius: 0;
        font-family: 'Cinzel', serif;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        line-height: 1.2;
        text-align: center;
        z-index: 950;
    }

    .btn-brochure-top {
        left: 0;
        right: auto;
        background-color: #111;
        color: #fff;
        border-right: 1px solid #333;
    }

    .donation-button-top {
        right: 0;
        left: auto;
        background-color: #B68150;
        color: #fff;
    }

    /* Room under the footer text so the bar doesn't cover it */
    .legal-footer {
        padding-bottom: calc(2rem + 4rem + env(safe-area-inset-bottom));
    }
}

/* ------------------------------
   MOBILE MENU (FLYOUT)
   No black bar at the top; the links start a little way down.
   While closed it's fully hidden, so keyboard and screen reader
   users don't land on links they can't see.
------------------------------ */
.mobile-nav {
    border-top: 0;
    padding-top: 2rem;
    box-sizing: border-box;
    visibility: hidden;
    transition: left 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-nav.show {
    visibility: visible;
    transition: left 0.3s ease;
}

/* ------------------------------
   CONTACT FORM
   If sending fails, keep the form on screen so the visitor can
   try again, with the error message just below it.
------------------------------ */
.error #contactForm {
    display: block;
}

#errorMessage {
    padding: 1rem 0;
}

/* ------------------------------
   NEXT STEPS (shared closing section)
   A short invitation with Donate, brochure and Form 990 buttons.
------------------------------ */
.next-steps {
    clear: both;
    margin: 3rem auto 2rem;
    padding-top: 2rem;
    border-top: 2px solid #d4af37;
    text-align: center;
    max-width: 760px;
}

.next-steps h2 {
    border-bottom: 0;
    margin-top: 0;
}

.next-steps-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 1.5rem;
}

.next-steps-actions .btn {
    padding: 0.85rem 1.25rem;
    line-height: 1.2;
    text-align: center;
}

.btn.btn-outline {
    background-color: transparent;
    color: #111;
    border: 2px solid #B68150;
    box-sizing: border-box;
}

.btn.btn-outline:hover,
.btn.btn-outline:focus-visible {
    background-color: #B68150;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 576px) {
    .next-steps-actions .btn {
        width: 100%;
        box-sizing: border-box;
    }
}
