/* VFW Post 8947 Website
   Main Stylesheet
*/

:root {
    --navy: #1E3A5F;
    --navy-light: #294D73;
    --gold: #c8a34a;
    --gold-light: #e1c575;
    --ivory: #f5f2e9;
    --white: #ffffff;
    --text: #252525;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--ivory);
    line-height: 1.6;
}

/* HEADER */

.site-header {
    background: var(--navy);
    color: var(--white);
    border-bottom: 4px solid var(--gold);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.site-logo {
    width: 165px;

    height: auto;
    display: block;
}

.site-title h1 {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: 1px;
}

.site-title p {
    margin: 0;
    color: var(--gold-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* NAVIGATION */

.main-nav {
    background: var(--navy-light);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 14px 17px;
    font-weight: 600;
}

.main-nav a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* HERO */

.hero {
    background:
        linear-gradient(
            rgba(22, 43, 68, 0.35),
            rgba(22, 43, 68, 0.58)
        ),
        url("../images/post8947-hero.png");

    background-size: cover;
    background-position: center 58%;
    background-repeat: no-repeat;

    color: var(--white);
    text-align: center;
    padding: 150px 24px 140px;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 30px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
}

.button:hover {
    background: var(--gold-light);
}

/* CONTENT */

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    margin-bottom: 6px;
    color: var(--navy);
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
}

/* CARDS */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(22, 43, 68, 0.16);
}}

.card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 1.35rem;
}

.card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

.card a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.card a:hover {
    color: var(--gold);
}

/* FOOTER */

.site-footer {
    background: var(--navy);
    color: #d1d5db;
    text-align: center;
    padding: 30px 24px;
    border-top: 4px solid var(--gold);
}

.site-footer strong {
    color: var(--white);
}

/* MOBILE */

@media (max-width: 800px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-logo {
        width: 110px;
    }

    .nav-inner {
        justify-content: center;
    }

    .hero {
        padding: 55px 20px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
/* ABOUT PAGE */

.page-hero {
    background: var(--navy-light);
    color: var(--white);
    text-align: center;
    padding: 55px 24px;
    border-bottom: 4px solid var(--gold);
}

.page-hero h2 {
    margin: 0 0 12px;
    font-size: 2.5rem;
}

.page-hero p {
    margin: 0;
    font-size: 1.15rem;
    color: #e5e7eb;
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin: 0 0 22px;
}


/* OFFICERS PAGE */

.officer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.officer-card {
    background: var(--white);
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.officer-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.officer-placeholder {
    height: 300px;
    padding: 35px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.officer-placeholder img {
    width: 55%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.officer-placeholder span {
    margin-top: 18px;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.officer-card h3 {
    margin: 22px 20px 8px;
    color: var(--navy);
    font-size: 1.35rem;
}

.officer-card p {
    margin: 0 20px 24px;
    color: var(--text);
    font-size: 1.1rem;
}


@media (max-width: 800px) {
    .officer-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .officer-photo {
        height: 340px;
    }
}


/* EVENTS PAGE */

.event-list {
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
    margin-bottom: 28px;
}

.event-date {
    width: 130px;
    min-width: 130px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 15px;
}

.event-month {
    color: var(--gold-light);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-day {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 6px;
}

.event-details {
    padding: 28px 32px;
}

.event-details h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.5rem;
}

.event-details p {
    margin: 8px 0;
    line-height: 1.6;
}

.event-time {
    font-weight: 700;
    color: var(--navy-light);
}

.no-events {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
}

@media (max-width: 650px) {
    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: auto;
        min-width: 0;
        flex-direction: row;
        gap: 10px;
        padding: 16px;
    }

    .event-day {
        font-size: 1.8rem;
        margin-top: 0;
    }

    .event-details {
        padding: 24px;
    }
}


/* GALLERY PAGE */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.gallery-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 20px 22px 22px;
}

.gallery-caption h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.3rem;
}

.gallery-caption p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
}

@media (max-width: 800px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .gallery-image {
        height: 300px;
    }
}


/* MEMBERSHIP PAGE */

.membership-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.membership-card {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.membership-card h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 1.35rem;
}


.membership-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}
.membership-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.membership-card a:hover {
    color: var(--gold);
}



@media (max-width: 800px) {
    .membership-content {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}


/* CONTACT PAGE */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.contact-card {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.contact-card h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 1.35rem;
}

.contact-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}
.contact-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--gold);
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}


/* EVENTS CALENDAR */

.calendar-section {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.8rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #d9d9d9;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.calendar-weekday {
    background: var(--navy);
    color: var(--white);
    padding: 12px 6px;
    text-align: center;
    font-weight: 700;
    border-right: 1px solid var(--navy-light);
}

.calendar-day {
    min-height: 120px;
    padding: 10px;
    border-right: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}

.calendar-day-number {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 700;
}

.calendar-event {
    background: var(--ivory);
    border-left: 4px solid var(--gold);
    padding: 7px 8px;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text);
}

.calendar-event strong {
    display: block;
    color: var(--navy);
}


.calendar-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.calendar-nav {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.calendar-nav:first-child {
    justify-self: start;
}

.calendar-nav:last-child {
    justify-self: end;
}

.calendar-nav:hover {
    color: var(--gold);
}

.calendar-day-other {
    background: #f7f7f7;
}

.calendar-day-other .calendar-day-number {
    color: #a0a0a0;
}

@media (max-width: 800px) {
    .calendar-grid {
        font-size: 0.85rem;
    }

    .calendar-day {
        min-height: 85px;
        padding: 6px;
    }

    .calendar-event {
        padding: 5px;
        font-size: 0.72rem;
    }
}


/* HOMEPAGE UPCOMING EVENTS */

.home-event {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e2e2;
}

.home-event strong {
    display: block;
    color: var(--navy);
    margin-bottom: 4px;
}

.home-event span {
    display: block;
    color: var(--muted);
    line-height: 1.5;
}


/* ABOUT PAGE */

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.about-card h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 1.35rem;
}

.about-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 800px) {
    .about-content {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}


/* LEGISLATIVE PAGE */
.legislative-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto 55px;
}

.legislative-card {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.legislative-card h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 1.35rem;
    text-align: center;
}

.legislative-card p {
    margin: 0 0 22px;
    color: var(--text);
    line-height: 1.7;
    text-align: left;
}

.legislative-card a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.legislative-card a:hover {
    color: var(--gold);
}

.legislative-watch-title {
    margin-top: 20px;
}

.legislative-status {
    max-width: 1200px;
    margin: 30px auto 50px;
    padding: 24px 30px;
    background: var(--white);
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
    text-align: center;
}

.legislative-status p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 800px) {
    .legislative-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}


/* TRACKED LEGISLATION */
.tracked-bills {
    max-width: 1200px;
    margin: 30px auto 50px;
}

.tracked-bill-card {
    background: var(--white);
    padding: 30px 34px;
    margin-bottom: 24px;
    border-radius: 8px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 8px 24px rgba(22, 43, 68, 0.10);
}

.tracked-bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.tracked-bill-header h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.35rem;
}

.tracked-bill-card h4 {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 1.15rem;
}

.tracked-bill-card p {
    line-height: 1.6;
}

.bill-date {
    color: var(--muted);
    font-size: 0.95rem;
}

.bill-position {
    display: inline-block;
    padding: 6px 12px;
    background: var(--navy);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.tracked-bill-card a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.tracked-bill-card a:hover {
    color: var(--gold);
}

@media (max-width: 650px) {
    .tracked-bill-header {
        display: block;
    }

    .bill-position {
        margin-top: 10px;
    }

    .tracked-bill-card {
        padding: 24px;
    }
}
/* Member Login */

.login-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-top: 4px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 28px;
    color: var(--navy);
    text-align: center;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font: inherit;
}

.form-group input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-color: var(--navy);
}

.login-button {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.login-button:hover {
    background: var(--navy-light);
}

.login-error {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-left: 4px solid #a61b1b;
    background: #f8eaea;
}

.login-help {
    margin: 24px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}
/* Member Logout */

.member-logout {
    margin-top: 22px;
    text-align: center;
}

.member-logout button {
    padding: 10px 24px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.member-logout button:hover {
    background: var(--gold);
    color: var(--navy);
}
/* MOBILE NAVIGATION */

.nav-toggle {
    display: none;
}

@media (max-width: 800px) {
    .nav-toggle {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border: 0;
        background: var(--navy);
        color: var(--white);
        font: inherit;
        font-weight: 700;
        font-size: 1rem;
        text-align: center;
        cursor: pointer;
    }

    .nav-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-inner.nav-open {
        display: flex;
    }

    .nav-inner a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
}

