
/* ---------- HEADER / NAV ---------- */
.intro {
    position: relative;               /* the mobile menu card is positioned against this */
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 12px;
    background-color: #fafad2;
    border-bottom: 2px solid lightgoldenrodyellow;
}

.intro p {
    margin: 0;
    font-size: 1.2rem;
    color: rgb(32, 16, 1);
    font-weight: bold;
    white-space: nowrap;
}
.logo {
  width: 50px;
  height: auto;
}
.navbar { margin-left: auto; }

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    font-size: 1.3rem;
}

.navbar ul li a {
    color: brown;
    text-decoration: none;
    white-space: nowrap;
}
.navbar a:hover  { color: orange; border-bottom: 2px solid brown; }
.navbar a:active { color: orangered; }

.donate { display: flex; }

.donate button {
    width: 100px;
    height: 30px;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: rgb(26, 7, 0);
    color: white;
    transition: background-color 0.2s;
}
.donate button h2 { margin: 0; font-size: 1.2rem; }
.donate button:hover  { background-color: green; color: white; border: 1px solid white; }
.donate button:active { background-color: white; color: green; border: 1px solid green; }

/* hamburger: hidden on desktop */
.nav-toggle {
    display: none;
    width: 40px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: brown;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid orangered; outline-offset: 2px; }
@media (max-width: 768px) {
    .intro { gap: 10px; }
    .intro p { margin-right: auto; }       /* pushes donate + menu button to the right */

    .nav-toggle { display: block; }

    .navbar {
        display: none;                     /* hidden until the button is tapped */
        position: absolute;
        top: calc(100% + 6px);
        right: 12px;
        z-index: 100;
        width: min(260px, calc(100vw - 24px));
        margin: 0;
        padding: 8px;
        background: #fff;
        border: 2px solid brown;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    .navbar.open { display: block; }

    .navbar ul { flex-direction: column; gap: 0; font-size: 1.1rem; }
    .navbar ul li a {
        display: block;
        padding: 12px 14px;
        border-radius: 8px;
    }
    .navbar a:hover { background: lightgoldenrodyellow; border-bottom: none; }
}


