:root {
  --navy: #0a2342;
  --navy-2: #071a31;
  --red: #b22234;
  --gold: #c8a64b;
  --cream: #f7f4ed;
  --white: #ffffff;
  --text: #263238;
  --muted: #64707a;
  --border: #d9dee3;
  --shadow: 0 10px 30px rgba(7, 26, 49, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: white;
  color: black;
  padding: 10px;
  z-index: 999;
}
.skip-link:focus { left: 8px; }

.topbar {
  background: var(--navy-2);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
}
.topbar-inner {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.topbar a { color: white; text-decoration: none; }

.site-header {
  background: rgba(255,255,255,.98);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: grid;
  place-items: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  border: 4px solid var(--navy);
  box-shadow: inset 0 0 0 3px white;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  letter-spacing: .04em;
  font-size: 1.05rem;
}
.brand-text span { font-size: .76rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
}
.site-nav a:hover, .site-nav a:focus { color: var(--red); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
}

.hero {
  min-height: 600px;
  position: relative;
  display: grid;
  align-items: center;
  color: white;
  background:
    linear-gradient(120deg, rgba(7,26,49,.94), rgba(10,35,66,.67)),
    radial-gradient(circle at 80% 20%, rgba(200,166,75,.22), transparent 32%),
    linear-gradient(150deg, #0a2342 0%, #123f73 55%, #6c1721 100%);
  overflow: hidden;
}
.hero::after {
  content: "★";
  position: absolute;
  right: 6%;
  bottom: -130px;
  font-size: 540px;
  line-height: 1;
  color: rgba(255,255,255,.04);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 110px 0; }
.eyebrow, .section-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--red);
  font-size: .78rem;
  margin: 0 0 12px;
}
.eyebrow { color: #f2d57e; }
.hero h1, h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
}
.hero h1 {
  color: white;
  font-size: clamp(3.2rem, 8vw, 6.3rem);
  margin: 0;
  letter-spacing: -.03em;
}
.hero-subtitle {
  max-width: 700px;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  margin: 20px 0 32px;
  color: rgba(255,255,255,.9);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: #901a29; }
.btn-outline { border-color: rgba(255,255,255,.8); color: white; }
.btn-outline:hover { background: white; color: var(--navy); }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--cream); }

.mission-strip { background: var(--cream); border-bottom: 1px solid #ebe6d9; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.mission-grid > div { padding: 28px; text-align: center; position: relative; }
.mission-grid > div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 24%; height: 52%;
  border-right: 1px solid #d8d1c3;
}
.mission-grid strong {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  font-size: 1.15rem;
}
.mission-grid span { color: var(--muted); font-size: .85rem; }

.section { padding: 92px 0; }
.section-alt { background: #f4f6f8; }
.section h2 { font-size: clamp(2rem, 4vw, 3.05rem); margin: 0 0 22px; }
.section p { color: var(--muted); }
.section-kicker.light { color: #f2d57e; }
.split { display: grid; grid-template-columns: 1.35fr .8fr; gap: 70px; align-items: center; }
.text-link { color: var(--red); font-weight: 800; text-decoration: none; }

.quote-card {
  background: var(--navy);
  color: white;
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
}
.quote-card blockquote {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem;
  margin: 18px 0;
}
.quote-card p { color: rgba(255,255,255,.7); margin-bottom: 0; }
.stars { color: var(--gold); letter-spacing: .25em; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}
.section-heading > p { max-width: 480px; margin: 0; }
.section-heading h2 { margin-bottom: 0; }
.cards { display: grid; gap: 20px; }
.officer-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 7px 20px rgba(10,35,66,.05);
}
.officer-card { text-align: center; }
.officer-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--navy);
  color: white;
  font-weight: 800;
  border: 4px solid var(--gold);
  font-size: .8rem;
}
.officer-card h3 { color: var(--navy); margin: 0; font-size: 1rem; }
.officer-name { margin: 8px 0 0; color: var(--red) !important; font-weight: 700; }

.event-list { display: grid; gap: 18px; }
.event-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.event-date {
  height: 100%;
  min-height: 125px;
  background: var(--navy);
  color: white;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
}
.event-date span { font-size: .72rem; letter-spacing: .14em; color: #f2d57e; }
.event-date strong { font-size: 1.1rem; }
.event-card > div:last-child { padding: 24px 30px; }
.event-card h3 { margin: 0 0 6px; color: var(--navy); }
.event-card p { margin: 0; }

.flag-section {
  background:
    linear-gradient(120deg, rgba(7,26,49,.97), rgba(10,35,66,.90)),
    linear-gradient(45deg, #0a2342, #b22234);
  color: white;
}
.flag-section h2, .flag-section p { color: white; }
.flag-section p { color: rgba(255,255,255,.78); }
.flag-stat {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 46px;
  backdrop-filter: blur(4px);
}
.flag-number {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 5rem;
  color: #f2d57e;
  line-height: 1;
}
.flag-stat strong { display: block; font-size: 1.25rem; margin: 10px 0; }

.membership-layout { align-items: stretch; }
.check-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 38px;
  border-left: 6px solid var(--red);
}
.check-card h3 { color: var(--navy); margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid #ddd5c7; position: relative; }
.check-list li:last-child { border: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.photo-placeholder {
  min-height: 280px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(rgba(7,26,49,.52), rgba(7,26,49,.72)),
    repeating-linear-gradient(45deg, #32577b 0 14px, #294a6a 14px 28px);
  border: 4px solid white;
  box-shadow: var(--shadow);
}

.donate-section { padding: 0 0 92px; background: #f4f6f8; }
.donate-card {
  background: var(--red);
  color: white;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.donate-card h2 { color: white; margin-bottom: 12px; }
.donate-card p { color: rgba(255,255,255,.82); margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; }
.contact-card, .contact-form {
  border-radius: var(--radius);
  padding: 34px;
}
.contact-card { background: var(--navy); color: white; }
.contact-card h3 { margin-top: 0; }
.contact-card p { color: rgba(255,255,255,.78); }
.contact-form { background: #f4f6f8; border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
input, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #c6ccd3;
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: white;
}
input:focus, textarea:focus { outline: 3px solid rgba(178,34,52,.14); border-color: var(--red); }
.form-note { font-size: .75rem; margin-bottom: 0; }

.site-footer { background: var(--navy-2); color: rgba(255,255,255,.8); padding: 46px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.footer-grid p { margin: 0; font-size: .82rem; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: white; font-family: "Libre Baskerville", Georgia, serif; }
.footer-brand span { font-size: .78rem; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 22px; }
.disclaimer p { margin: 0; font-size: .72rem; color: rgba(255,255,255,.5); }

code { font-size: .9em; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 118px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 9px 0; }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .officer-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .donate-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1120px); }
  .topbar-inner { justify-content: center; }
  .topbar-inner span { display: none; }
  .brand-mark { width: 52px; height: 52px; }
  .brand-text span { font-size: .68rem; }
  .hero { min-height: 530px; }
  .hero-content { padding: 80px 0; }
  .mission-grid { grid-template-columns: 1fr; padding: 12px 0; }
  .mission-grid > div { padding: 15px; }
  .mission-grid > div:not(:last-child)::after {
    height: 0; width: 50%; top: auto; right: 25%; bottom: 0;
    border-right: 0; border-bottom: 1px solid #d8d1c3;
  }
  .section { padding: 68px 0; }
  .officer-grid, .gallery-grid, .form-row { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { min-height: 80px; }
  .donate-section { padding-bottom: 68px; }
  .donate-card { padding: 34px 26px; }
}


/* Flag sponsorship form */
.flag-signup-section {
  background: linear-gradient(180deg, #fff 0%, #f7f4ed 100%);
}
.sponsor-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 34px;
  align-items: start;
}
.sponsor-info-card {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 36px;
  border-top: 5px solid var(--red);
  box-shadow: var(--shadow);
  position: sticky;
  top: 140px;
}
.sponsor-info-card h3 {
  margin: 8px 0 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
}
.sponsor-info-card p { color: rgba(255,255,255,.82); }
.sponsor-info-card strong { color: white; }
.sponsor-info-card a { color: #f2d57e; }
.sponsor-stars { color: #f2d57e; letter-spacing: .28em; }
.sponsor-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(7,26,49,.08);
}
.sponsor-form textarea { resize: vertical; }
.optional { color: var(--muted); font-weight: 500; font-size: .78rem; }
.sign-note {
  margin: -2px 0 20px;
  padding: 12px 14px;
  background: #fff7e3;
  border-left: 4px solid var(--gold);
  color: #5f512d !important;
  font-size: .82rem;
}
.agreement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-weight: 600;
}
.agreement input {
  width: auto;
  margin: 4px 0 0;
  flex: 0 0 auto;
}
.agreement span { color: var(--text); }

@media (max-width: 860px) {
  .sponsor-layout { grid-template-columns: 1fr; }
  .sponsor-info-card { position: static; }
}

@media (max-width: 600px) {
  .sponsor-form, .sponsor-info-card { padding: 26px 20px; }
}


/* Direct flag form submission */
.form-honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; opacity:0 !important; pointer-events:none !important; }
.form-status { margin-top:14px; min-height:1.25rem; font-weight:700; font-size:.88rem; }
.form-status.success { padding:12px 14px; border-left:4px solid #2e7d32; background:#eef8ef; color:#1f5b23; }
.form-status.error { padding:12px 14px; border-left:4px solid var(--red); background:#fff0f0; color:#8f1d1d; }
#flagSubmitButton:disabled { opacity:.68; cursor:wait; }

/* Monthly meeting calendar */
.calendar-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.calendar-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--navy);
  color: #fff;
}
.calendar-toolbar h3 { margin: 0; text-align: center; color: #fff; font-size: 1.35rem; }
.calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.calendar-nav:hover, .calendar-nav:focus-visible { background: rgba(255,255,255,.15); }
.calendar-weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-weekdays {
  background: #f3f5f8;
  border-bottom: 1px solid #dde2e8;
}
.calendar-weekdays span {
  padding: 10px 4px;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}
.calendar-day {
  min-height: 82px;
  padding: 9px;
  border-right: 1px solid #e5e8ec;
  border-bottom: 1px solid #e5e8ec;
  background: #fff;
  position: relative;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.empty { background: #fafafa; }
.calendar-date { font-weight: 700; color: #27364a; }
.calendar-day.meeting-day {
  background: #fff3f3;
  box-shadow: inset 0 0 0 2px var(--red);
}
.calendar-day.meeting-day .calendar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.calendar-event-label {
  display: block;
  margin-top: 7px;
  font-size: .68rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--red);
}
.calendar-meeting-info {
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid #e3e6ea;
  text-align: center;
  color: #26384d;
}
.calendar-meeting-info strong { color: var(--red); }
@media (max-width: 600px) {
  .calendar-day { min-height: 60px; padding: 6px; }
  .calendar-event-label { font-size: .58rem; }
  .calendar-weekdays span { font-size: .68rem; }
}

/* Special calendar event */
.calendar-day.special-event-day {
  outline: 3px solid #b22234;
  outline-offset: -3px;
}
.calendar-event-label.special-event-label {
  font-weight: 800;
}

.map-button { display: inline-block; margin-top: 10px; }
.calendar-meeting-info a { font-weight: 700; }

/* Donation section */
.donate-card {
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: center;
}
.donate-qr-wrap {
  text-align: center;
}
.donate-qr {
  width: 210px;
  max-width: 100%;
  height: auto;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
}
.flag-program-teaser {
  text-align: center;
}
@media (max-width: 720px) {
  .donate-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Flag sponsorship payment */
.flag-payment-box {
  margin-top: 24px;
  padding: 22px;
  text-align: center;
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.flag-payment-box h3 { margin-top: 0; }

/* Combined Flag Program / Sponsor a Flag page */
#flag-signup .sponsor-form {
  display: block;
  visibility: visible;
  opacity: 1;
}
#flag-signup {
  scroll-margin-top: 120px;
}
.flag-payment-box {
  max-width: 760px;
  margin: 28px auto 0;
}

/* Top navigation Donate Now button */
.site-nav .nav-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-left: 8px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .site-nav .nav-donate-button {
    margin: 8px 0 0;
  }
}

/* Officer email link */
.officer-email-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.officer-email-link:hover {
  text-decoration-thickness: 2px;
}

/* VFW Cross of Malta at top of homepage */
.hero-vfw-emblem {
  display: block;
  width: 145px;
  max-width: 28vw;
  height: auto;
  margin: 0 0 20px 0;
  object-fit: contain;
}
@media (max-width: 720px) {
  .hero-vfw-emblem {
    width: 115px;
    max-width: 36vw;
    margin-bottom: 16px;
  }
}

/* Cross of Malta in header brand area */
.brand .brand-malta {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  flex: 0 0 58px;
}
@media (max-width: 720px) {
  .brand .brand-malta {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}
