/* Lake Eufaula FOP Lodge #34 — site styles */

:root {
  --navy: #0B1F3A;
  --navy-2: #122 coa;
  --navy-mid: #163154;
  --gold: #C9A227;
  --gold-light: #E8C65A;
  --cream: #F4F1E8;
  --white: #ffffff;
  --gray: #e8eaee;
  --text: #1a1f26;
  --muted: #5b6570;
  --crimson: #8B1E1E;
  --meeting: #0B1F3A;
  --fundraiser: #C9A227;
  --community: #2c5f4a;
  --memorial: #3b3b3b;
  --other: #4a5d73;
  --shadow: 0 8px 24px rgba(11, 31, 58, 0.12);
  --radius: 10px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Calibri, "Trebuchet MS", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--crimson); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  letter-spacing: .02em;
}

.brand-text span {
  display: block;
  font-size: .78rem;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: .4rem .7rem;
  border-radius: 6px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 6px;
  font-size: .92rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(201, 162, 39, .18);
  color: var(--gold-light);
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy) url("../images/hero-lake.svg") center/cover no-repeat;
  color: var(--white);
  min-height: 360px;
  display: grid;
  align-items: end;
}

.hero-inner {
  padding: 64px 0 48px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 .4rem;
}

.hero .tagline {
  color: var(--gold-light);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.hero p { max-width: 42rem; margin: 0; }

/* Layout */
main { flex: 1; }

.section { padding: 48px 0; }

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  margin: 0 0 8px;
}

.lede { color: var(--muted); margin-top: 0; }

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media { background: #0B1F3A; height: 180px; }
.card img { width: 100%; height: 180px; object-fit: contain; object-position: center; background: #0B1F3A; padding: 8px; }
.card-body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card .meta {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

.btn {
  display: inline-block;
  background: var(--crimson);
  color: var(--white);
  text-decoration: none;
  padding: .7rem 1.15rem;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.btn:hover { color: var(--white); filter: brightness(1.08); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gold);
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
}

.prose p { max-width: 70ch; }

/* Calendar */
.cal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cal-toolbar h2 { margin: 0; font-family: Georgia, serif; color: var(--navy); }

.view-toggle button,
.month-nav button {
  background: var(--navy);
  color: white;
  border: 0;
  padding: .4rem .7rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dow {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  padding: .4rem 0;
}

.day {
  min-height: 92px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  padding: 4px;
  background: #fbfbfd;
}

.day.muted { opacity: .45; }
.day .num { font-size: .8rem; font-weight: 700; color: var(--navy); }

.chip {
  display: block;
  font-size: .7rem;
  padding: 2px 4px;
  margin-top: 3px;
  border-radius: 3px;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  width: 100%;
  text-align: left;
}

.chip.meeting { background: var(--meeting); }
.chip.fundraiser { background: var(--fundraiser); color: var(--navy); }
.chip.community { background: var(--community); }
.chip.memorial { background: var(--memorial); }
.chip.other { background: var(--other); }

.event-list { display: grid; gap: 12px; }
.event-row {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
}

.legend { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 20px; font-size: .85rem; }
.legend span::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}
.legend .l-meeting::before { background: var(--meeting); }
.legend .l-fundraiser::before { background: var(--fundraiser); }
.legend .l-community::before { background: var(--community); }
.legend .l-memorial::before { background: var(--memorial); }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal-back.open { display: flex; }
.modal {
  background: white;
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
}
.modal img {
  border-radius: 8px;
  margin-bottom: 12px;
  width: auto;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #0B1F3A;
  padding: 10px;
}

/* News */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-hero {
  background: #0B1F3A;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.article-hero img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: transparent;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.gallery img,
.article-hero img {
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #0B1F3A;
  border-radius: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 16, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  background: #0B1F3A;
  border-radius: 8px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: #C5A44E;
  color: #0B1F3A;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.lightbox-close {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.4rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.error-box {
  background: #fff4f4;
  border: 1px solid #e2b6b6;
  padding: 16px;
  border-radius: 8px;
}

/* Forms */
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: .65rem .7rem;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
  font: inherit;
  background: white;
}
textarea { min-height: 140px; }

.address-block { font-style: normal; line-height: 1.7; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d7dde6;
  padding: 36px 0 20px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer a { color: var(--gold-light); }
.site-footer img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.disclaimer {
  margin-top: 20px;
  font-size: .82rem;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 12px;
}

@media (max-width: 860px) {
  .grid-3, .article-grid, .footer-grid, .event-row {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: #081628;
    flex-direction: column;
    padding: 8px 16px 16px;
  }
  .nav-list.open { display: flex; }
  .calendar-grid { font-size: .8rem; }
  .day { min-height: 68px; }
}
