/* =============================================
   AMERICAN LEGION POST 490 - MASTER STYLESHEET
   Clean • Professional • Responsive • Patriotic
   Last Updated: 2026-03-06
============================================= */

/* ===== CSS VARIABLES ===== */
:root {
    --navy:         #0c2d5a;
    --navy-dark:    #081e3f;
    --navy-mid:     #102f5c;
    --red:          #c8102e;
    --red-dark:     #a50d24;
    --gold:         #c9960c;
    --gold-light:   #f0c040;
    --white:        #ffffff;
    --off-white:    #f4f6f9;
    --light-gray:   #e1e5eb;
    --mid-gray:     #8a9ab0;
    --dark-text:    #1f2d3d;
    --transition:   all 0.25s ease;
    --shadow-sm:    0 2px 6px rgba(0,0,0,0.08);
    --shadow-md:    0 6px 18px rgba(0,0,0,0.10);
    --shadow-lg:    0 12px 32px rgba(0,0,0,0.15);
    --radius:       6px;
    --radius-lg:    12px;
    --max-width:    1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: var(--dark-text);
    line-height: 1.6;
}

/* ===== FIRE RECOVERY BAR ===== */
.fire-recovery-bar {
    background: linear-gradient(135deg, #8b1a1a, var(--red-dark), #8b1a1a);
    color: var(--white);
    text-align: center;
    padding: 8px 20px;
    font-size: 13px;
    border-bottom: 2px solid var(--gold);
}
.fire-recovery-bar .fund-raised {
    color: var(--gold-light);
    font-weight: 700;
}
.fire-recovery-bar a {
    color: var(--gold-light);
    font-weight: 600;
    text-decoration: underline;
}
.fire-recovery-bar a:hover { color: var(--white); }

/* ===== HEADER ===== */
header {
    background-color: var(--navy);
    color: var(--white);
    padding: 15px 40px;
    border-bottom: 3px solid var(--gold);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-link { flex-shrink: 0; }
.site-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}
.site-title { flex: 1; }
.site-title h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}
.site-title .comeback {
    font-size: 14px;
    color: var(--gold-light);
    font-style: italic;
    margin-top: 4px;
}
.site-title .support-line {
    font-size: 12px;
    opacity: 0.75;
}
.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary        { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover  { background: var(--red-dark); border-color: var(--red-dark); }
.btn-gold           { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover     { background: #b08009; border-color: #b08009; }
.btn-secondary      { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover{ background: var(--navy); color: var(--white); }
.btn-outline        { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover  { background: var(--navy); color: var(--white); }
.btn-outline-white  { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-light          { background: var(--light-gray); color: var(--dark-text); border-color: var(--light-gray); }
.btn-light:hover    { background: #cbd3dc; }
.btn-sm             { padding: 6px 12px; font-size: 12px; }
.btn-lg             { padding: 13px 26px; font-size: 15px; }
.mt-sm              { margin-top: 10px; }

/* ===== NAVIGATION ===== */
nav {
    background-color: var(--navy-mid);
    padding: 0 40px;
    border-bottom: 2px solid var(--gold);
    position: relative;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 12px 0;
}
.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
}
.nav-menu li a {
    display: block;
    padding: 13px 14px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

/* ===== HERO ===== */
.hero {
    width: 100%;
    line-height: 0;   /* prevents gap below inline img */
    position: relative;
}
.hero-img {
    width: 100%;
    height: auto;     /* always full image — flags to base, zero cropping */
    display: block;
}

/* ===== CONTENT SECTION ===== */
.section {
    padding: 60px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--navy);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--red);
}
.section h3 {
    font-size: 20px;
    color: var(--navy);
    margin: 25px 0 10px;
}
.section p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* ===== EVENT GRID ===== */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-card img {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.event-card img:hover { transform: scale(1.05); }

/* ===== HOLIDAY GRID ===== */
.holiday-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
@media (max-width: 900px) { .holiday-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .holiday-grid { grid-template-columns: 1fr; } }
.holiday-card {
    background: var(--white);
    border-left: 5px solid var(--navy);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}
.holiday-card.holiday-today             { background: #fff8e1; border-left-color: var(--gold); }
.holiday-card.holiday-federal-holiday   { border-left-color: var(--red); }
.holiday-card.holiday-federal-observance{ border-left-color: #c0392b; }
.holiday-card.holiday-military-observance { border-left-color: var(--navy); }
.holiday-card.holiday-service-birthday  { border-left-color: var(--gold); }
.holiday-card.holiday-american-legion   { border-left-color: var(--red-dark); }
.holiday-card.holiday-month-observance  { border-left-color: #5b7fa6; background: #f0f4f9; }
.holiday-card.holiday-observance        { border-left-color: var(--mid-gray); }
.holiday-card.holiday-traditional-holiday { border-left-color: #6d4c8e; background: #f7f3fb; }

/* ===== NEXT-MONTH PREVIEW ===== */
.holiday-next-label {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mid-gray);
    margin: 8px 0 2px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--light-gray);
}
.holiday-card.holiday-next-month {
    opacity: 0.65;
    font-style: italic;
    border-left-color: var(--light-gray);
    background: var(--off-white);
}
.holiday-card h3 { font-size: 15px; color: var(--navy); }
.holiday-card p  { font-size: 13px; color: var(--mid-gray); }



/* ===== SECTION SUBTITLE ===== */
.section-sub {
    color: var(--mid-gray);
    font-size: 14px;
    margin: -6px 0 14px;
}


.fund-stat-single { min-width: 220px; text-align: center; }


/* ===== COMMANDER BLOCK ===== */
.commander-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
@media (max-width: 700px) {
    .commander-block { flex-direction: column; align-items: center; }
    .commander-photo { width: 180px !important; }
}
.commander-photo {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    object-fit: cover;
}
.commander-text h2 { margin-top: 0; }
.commander-text p  { font-size: 15px; line-height: 1.7; }
.commander-sig {
    margin-top: 16px;
    font-size: 14px;
    color: var(--navy);
    border-top: 2px solid var(--gold);
    padding-top: 10px;
    display: inline-block;
}

/* 501(c)(3) note */
.tax-exempt-note {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: #1b5e20;
    margin-bottom: 16px;
}


/* ===== OFFICERS PAGE ===== */
.officers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}
@media (max-width: 900px) { .officers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .officers-grid { grid-template-columns: 1fr; } }
.officers-group h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 8px; border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.officers-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.officers-table tr { border-bottom: 1px solid var(--light-gray); }
.officers-table td { padding: 5px 4px; }
.officers-table td.pos { color: var(--mid-gray); font-size: 12px; width: 55%; }
.officers-note { font-size: 12px; color: var(--mid-gray); margin-top: 20px; font-style: italic; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block {
    background: var(--white);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.contact-block h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.contact-block p  { font-size: 14px; line-height: 1.6; margin: 0; }
.contact-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.contact-table tr { border-bottom: 1px solid var(--light-gray); }
.contact-table td { padding: 5px 2px; }

/* ===== MEMBERSHIP DUES TABLE ===== */
.dues-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.dues-table tr { border-bottom: 1px solid var(--light-gray); }
.dues-table td { padding: 6px 4px; }
.dues-table td.dues-amount { font-weight: 700; color: var(--navy); text-align: right; }

/* ===== GALLERY ===== */
.gallery-placeholder { background: var(--off-white); border: 2px dashed var(--light-gray); border-radius: var(--radius); padding: 60px 20px; text-align: center; }
.gallery-upload-notice h3 { color: var(--navy); margin: 0 0 8px; }
.gallery-upload-notice p  { color: var(--mid-gray); font-size: 14px; max-width: 480px; margin: 0 auto; }

/* ===== CALENDAR ===== */
.fire-notice-inline {
    background: #fff3cd;
    border: 1px solid #f0c040;
    border-left: 4px solid #e67e22;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: #7a4f00;
    margin: 14px 0;
}
.cal-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}
@media (max-width: 900px) { .cal-events-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cal-events-grid { grid-template-columns: 1fr; } }
.cal-event {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    line-height: 1.5;
}
.cal-event strong { display: block; color: var(--navy); margin-bottom: 4px; }
.cal-month {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--navy);
    color: #fff;
    padding: 2px 7px;
    border-radius: 20px;
    margin-bottom: 6px;
}
/* ── Google Calendar embed ──────────────────────────────────────────── */
.gcal-wrapper {
    margin-top: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
}
.gcal-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 500px;
}
.cal-gcal-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 8px 12px;
    background: var(--off-white);
    margin: 0;
}

.media-archive {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid var(--navy);
}
.btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .about-grid { grid-template-columns: 1fr; } }

.about-card {
    background: var(--white);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.about-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}
.about-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--dark-gray);
    margin: 0;
}

/* CTA section */
.section-cta {
    background: var(--navy);
    border-radius: var(--radius);
    text-align: center;
    padding: 40px 30px;
    color: var(--white);
}
.section-cta h2 { color: var(--white); }
.section-cta p  { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 20px; }
.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-lg { padding: 12px 28px; font-size: 15px; }

/* ===== UPCOMING MEETINGS ===== */
.meetings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 900px) { .meetings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .meetings-grid { grid-template-columns: 1fr; } }

.meeting-card {
    background: var(--white);
    border-left: 5px solid var(--navy);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 16px 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Color per meeting type */
.meeting-card.meeting-trustees  { border-left-color: #1a2a4a; }
.meeting-card.meeting-executive { border-left-color: #2c4a7a; }
.meeting-card.meeting-general   { border-left-color: var(--red); }
.meeting-card.meeting-auxiliary { border-left-color: var(--gold); }
.meeting-card.meeting-sal       { border-left-color: #8b0000; }
.meeting-card.meeting-riders    { border-left-color: #2e7d4f; }

/* "This Week" highlight */
.meeting-card.meeting-soon {
    background: #fff8e1;
    box-shadow: 0 2px 8px rgba(184,150,12,0.18);
}

.meeting-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.meeting-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}
.meeting-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}
.meeting-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--gold);
    color: #fff;
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
}
.meeting-freq {
    font-size: 10px;
    font-weight: 600;
    background: #e8f0fe;
    color: #2c4a7a;
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
}
.meeting-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 4px;
}
.meeting-time {
    font-size: 13px;
    color: var(--dark-gray);
}
.meeting-loc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 4px;
}
.meeting-loc-addr {
    font-size: 12px;
    color: var(--mid-gray);
    padding-left: 18px;
}
.meeting-loc-phone {
    font-size: 12px;
    color: var(--mid-gray);
    padding-left: 18px;
}
.meeting-loc-phone a {
    color: var(--mid-gray);
    text-decoration: none;
}
.meeting-loc-phone a:hover { text-decoration: underline; }
.meeting-note {
    font-size: 11px;
    font-weight: 600;
    color: var(--mid-gray);
    font-style: normal;
    margin-top: 6px;
    border-top: 1px solid var(--light-gray);
    padding-top: 5px;
    letter-spacing: 0.2px;
}

/* Fire notice banner */
.meetings-fire-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff3cd;
    border: 1px solid #f0c040;
    border-left: 4px solid #e67e22;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: #7a4f00;
    margin-bottom: 14px;
    line-height: 1.5;
}
.fire-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ===== HOLIDAY LEGEND ===== */
.holiday-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
}
.hl-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--mid-gray);
    white-space: nowrap;
}
.hl-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}
/* ===== CALENDAR ===== */
.calendar-wrapper {
    margin-top: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== FIRE RECOVERY PAGE ===== */
.fund-tracker-block {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 30px 0;
}
.fund-tracker-block .fund-stat { text-align: center; }
.fund-tracker-block .fund-stat .amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-light);
}
.fund-tracker-block .fund-stat .label {
    font-size: 12px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.donate-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}
.donate-mail h3 { margin-bottom: 10px; color: var(--navy); }
.donate-qr { text-align: center; }

/* ===== FOOTER ===== */
footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 50px 40px 20px;
    border-top: 4px solid var(--gold);
    margin-top: 60px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
}
.footer-logo {
    width: 60px;
    margin-bottom: 12px;
    opacity: 0.9;
}
.footer-col h3 {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col p, .footer-col a {
    font-size: 13px;
    line-height: 2;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col .mt-sm  { margin-top: 10px; }
.footer-social { margin-top: 14px; display: flex; gap: 8px; }
.footer-donate .qr-code {
    width: 110px;
    border-radius: var(--radius);
    margin-top: 14px;
    display: block;
}
.footer-donate .fund-total {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 16px;
    margin-top: 8px;
}
.footer-bottom {
    max-width: var(--max-width);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    header { padding: 15px 20px; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .header-actions { width: 100%; justify-content: center; }
    nav { padding: 0 20px; }
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 10px;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-menu li a:hover { border-bottom-color: rgba(255,255,255,0.1); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
    .section { padding: 40px 20px; }
}

@media (max-width: 600px) {
    /* .hero scales naturally via the <img> tag — no override needed */
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .fund-tracker-block { gap: 20px; padding: 20px; }
    .fire-recovery-bar { font-size: 11px; }
}
