*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

/* LINKS */
a, a:visited { color: #2c4a2e; font-weight: 600; text-decoration: none; }
a:hover { color: #4a7a4c; text-decoration: underline; }

/* NAV */
nav {
    background: #2c4a2e;
    color: #fff;
    padding: 0 1rem;
    position: relative;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    flex-wrap: wrap;
}
.nav-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: 0.05em;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}
.nav-links { list-style: none; display: flex; gap: 1.25rem; }
nav ul a, nav ul a:visited { color: #cde8cd; text-decoration: none; font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 600; }
nav ul a:hover { color: #fff; text-decoration: none; }

/* HERO */
.hero {
    width: 100%;
    min-height: 420px;
    background: #3a3a3a center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}
.hero-text {
    background: rgba(0,0,0,0.55);
    color: #fff;
    width: 100%;
    padding: 2rem;
}
.hero-text h1 { font-size: 2.2rem; margin-bottom: 0.4rem; }
.hero-text p  { font-size: 1.1rem; max-width: 700px; }

/* CONTENT */
main { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }

section { margin-bottom: 2.5rem; }
h2 { font-size: 1.5rem; color: #2c4a2e; margin-bottom: 0.75rem; border-bottom: 2px solid #2c4a2e; padding-bottom: 0.25rem; }

/* PHOTO CARDS */
.photo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.photo-card {
    height: 280px;
    background: #3a3a3a center/cover no-repeat;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
}
.photo-card:hover { opacity: 0.92; text-decoration: none; }
.photo-card-inner {
    background: rgba(0,0,0,0.58);
    color: #fff;
    width: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.photo-card-inner h3 { font-size: 1.25rem; color: #fff; font-weight: 700; }
.photo-card-inner p { font-size: 0.88rem; color: #e0e0e0; font-weight: 400; }
.card-cta {
    display: inline-block;
    background: #fff;
    color: #2c4a2e;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    align-self: flex-start;
}

/* PLANNER */
.planner-intro { margin-bottom: 1.5rem; color: #555; }
.planner-wrap { display: flex; gap: 2rem; align-items: flex-start; }

.overlay-panel {
    min-width: 220px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
}
.overlay-panel h3 { font-size: 1rem; margin-bottom: 0.75rem; color: #2c4a2e; }
.overlay-label {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    cursor: pointer;
}
.overlay-label input { margin-bottom: 0.2rem; }
.overlay-desc { font-size: 0.8rem; color: #666; }

.planner-main { flex: 1; }

#summaryTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}
#summaryTable th, #summaryTable td {
    padding: 0.5rem 0.75rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}
#summaryTable th:first-child, #summaryTable td:first-child { text-align: left; }
#summaryTable thead tr { background: #2c4a2e; color: #fff; }
.row-income td { color: #2c4a2e; }
.row-expense td { color: #a00; }
.row-net { font-weight: bold; border-top: 2px solid #222; }
.row-net td.pos { color: #2c4a2e; }
.row-net td.neg { color: #c00; }

/* STUB PAGES */
.stub-hero {
    text-align: center;
    padding: 5rem 1rem;
    background: #f5f9f5;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.stub-hero h1 { color: #2c4a2e; font-size: 2rem; margin-bottom: 0.75rem; }
.stub-hero p { color: #666; font-size: 1.1rem; max-width: 500px; margin: 0 auto; font-weight: 400; }

/* DONATE PAGE */
.donate-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}
.donate-btn {
    display: inline-block;
    background: #2c4a2e;
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700 !important;
    padding: 0.9rem 2.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    text-decoration: none !important;
}
.donate-btn:hover { background: #3d6640; text-decoration: none !important; }

/* BOARD PAGE */
.board-page body, body.board-body { margin: 0; padding: 0; overflow: hidden; }
.board-bg {
    min-height: calc(100vh - 56px - 3.75rem);
    background: center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.board-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.62);
    display: flex;
    align-items: center;
    justify-content: center;
}
.board-modal {
    background: rgba(255,255,255,0.96);
    padding: 2.5rem 3rem;
    border-radius: 10px;
    text-align: center;
    min-width: 320px;
}
.board-modal h2 { color: #2c4a2e; margin-bottom: 1.25rem; font-size: 1.5rem; }
.board-modal input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: 0.15em;
}
.board-modal button {
    width: 100%;
    background: #2c4a2e;
    color: #fff;
    border: none;
    padding: 0.7rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}
.board-modal button:hover { background: #3d6640; }
.board-error { color: #c00; margin-bottom: 0.75rem; font-size: 0.9rem; }
.board-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    background: rgba(0,0,0,0.45);
    padding: 2.5rem 3rem;
    border-radius: 12px;
}
.board-announcement {
    background: rgba(255,255,255,0.93);
    color: #2c4a2e;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.board-btn {
    background: rgba(255,255,255,0.93);
    color: #2c4a2e !important;
    font-size: 1.4rem;
    font-weight: 700 !important;
    padding: 1.1rem 3rem;
    border-radius: 8px;
    text-decoration: none !important;
    min-width: 300px;
    text-align: center;
    transition: background 0.15s;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.board-btn:hover { background: #fff; text-decoration: none !important; }

/* FOOTER */
footer {
    background: #2c4a2e;
    color: #cde8cd;
    text-align: center;
    padding: 1.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    margin-top: 3rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
footer a, footer a:visited { color: #cde8cd; font-weight: 400; }
footer a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.75rem 0 1rem;
        gap: 0.25rem;
    }
    nav.open .nav-links { display: flex; }
    .nav-inner { height: auto; padding: 0.5rem 0; flex-wrap: wrap; }
    .nav-logo { padding: 0.25rem 0; }
    nav ul a { display: block; padding: 0.4rem 0; font-size: 1rem; }

    .hero { min-height: 260px; }
    .hero-text h1 { font-size: 1.4rem; }
    .hero-text p  { font-size: 0.95rem; }
    .hero-text { padding: 1.25rem; }

    .photo-cards { grid-template-columns: 1fr; }
    .photo-card  { height: 220px; }

    main { padding: 1.25rem 0.75rem; }
    h2 { font-size: 1.25rem; }

    .board-buttons { padding: 1.5rem 1rem; }
    .board-btn { font-size: 1.1rem; padding: 0.9rem 1.5rem; min-width: 0; width: 100%; }
    .board-announcement { min-width: 0; width: 100%; font-size: 0.95rem; }
    .board-modal { min-width: 0; width: 90vw; padding: 1.75rem 1.25rem; }

    .stub-hero { padding: 3rem 1rem; }
    .stub-hero h1 { font-size: 1.5rem; }
}

@media (min-width: 701px) and (max-width: 900px) {
    .photo-cards { grid-template-columns: 1fr 1fr; }
    .photo-card:last-child { grid-column: 1 / -1; }
}
