/* ============================================================
   MOOSE LODGE 594 ,  RIVER FALLS, WI
   Main Stylesheet
   Brand: Deep Navy #1a2e52 | Gold #C9A84C | White #FFFFFF
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a2e52;
  --blue-dark:  #0f1d36;
  --blue-light: #243f6e;
  --gold:       #C9A84C;
  --gold-dark:  #a8873a;
  --white:      #FFFFFF;
  --off-white:  #F5F3EE;
  --text:       #14202e;
  --text-mid:   #3a4a5c;
  --text-light: #6b7a8d;
  --border:     #ddd8cc;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; overflow-y: scroll; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}
.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,199,44,0.4);
  text-decoration: none;
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,48,135,0.35);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  text-decoration: none;
}
.btn-large { padding: 18px 44px; font-size: 1.1rem; }

/* --- SECTIONS --- */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-header p {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-top: 12px;
}
.section-footer {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.fb-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition);
}
.fb-link:hover { color: var(--white); text-decoration: none; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  background: var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.logo-area:hover { text-decoration: none; }
.logo-crest { width: 240px; height: 110px; flex-shrink: 0; display: flex; align-items: center; }
.logo-crest img { width: 100%; height: 100%; object-fit: contain; background: transparent !important; }
.logo-placeholder {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.3px;
}
.logo-name strong { color: var(--gold); }
.site-header .logo-location { display: none; }
.logo-location {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 9px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
}
.nav-members {
  background: var(--gold) !important;
  color: var(--blue-dark) !important;
  margin-left: 6px;
}
.nav-members:hover {
  background: var(--gold-dark) !important;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform var(--transition);
}
.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  background: var(--blue-dark);
  min-width: 220px;
  max-width: 90vw;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 6px 0;
  list-style: none;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15,29,54,0.52) 0%, rgba(26,46,82,0.38) 100%),
    url('../images/hero_01.jpg') center/cover no-repeat;
  background-color: var(--blue);
  overflow: hidden;
  transition: background-image 0.8s ease;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,199,44,0.03) 0px,
    rgba(255,199,44,0.03) 1px,
    transparent 1px,
    transparent 40px
  );
}
.hero-overlay { position: absolute; inset: 0; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.98);
  margin-bottom: 36px;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--blue);
  padding: 28px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 36px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   WELCOME
   ============================================================ */
.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.welcome-text h2 { margin-bottom: 20px; }
.welcome-text p { color: var(--text-mid); margin-bottom: 16px; font-size: 1.05rem; }
.welcome-text .btn { margin-top: 10px; }

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--off-white);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame.image-placeholder::after {
  content: 'Lodge photo goes here';
  position: absolute;
  color: var(--text-light);
  font-size: 1rem;
}
.image-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(0,31,91,0.75);
  color: var(--white);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}
.welcome-badge {
  position: absolute;
  bottom: -50px;
  right: -20px;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.4;
}
.welcome-image { position: relative; padding-bottom: 20px; padding-right: 20px; max-width: 400px; }

/* ============================================================
   EVENTS PREVIEW
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card-top {
  padding: 20px 22px 0;
}
.event-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.event-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.event-date {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}
.event-card-bottom {
  padding: 14px 22px 20px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-mid);
}

/* Event tag colors */
.tag-social    { background: #dbeafe; color: #1e40af; }
.tag-fundraiser{ background: #d1fae5; color: #065f46; }
.tag-service   { background: #ffedd5; color: #9a3412; }
.tag-meeting   { background: #ede9fe; color: #4c1d95; }
.tag-riders    { background: #fee2e2; color: #991b1b; }
.tag-fitness   { background: #fce7f3; color: #9d174d; }
.tag-special   { background: #f3f4f6; color: #374151; }
.tag-community { background: #ccfbf1; color: #115e59; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--off-white);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-placeholder {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img-placeholder::after {
  content: '🫎';
  font-size: 3rem;
  opacity: 0.4;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.blog-card-body h3 a { color: var(--blue-dark); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--blue); text-decoration: underline; }
.blog-meta { font-size: 0.88rem; color: var(--text-light); margin-bottom: 10px; }
.blog-summary { font-size: 0.97rem; color: var(--text-mid); flex: 1; }
.blog-read-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
}
.blog-read-more:hover { color: var(--blue-dark); }

/* Blog list page (full posts) */
.blog-page { padding: 60px 0; }
.blog-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.blog-list-item { padding: 48px 0; }
.blog-list-img {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.blog-list-img img { width: 100%; object-fit: cover; max-height: 400px; }
.blog-list-body h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 10px 0 8px; }
.blog-full-content { margin-top: 20px; font-size: 1.05rem; color: var(--text-mid); line-height: 1.8; }
.blog-full-content h2 { font-size: 1.4rem; margin: 28px 0 12px; color: var(--blue-dark); }
.blog-full-content h3 { font-size: 1.15rem; margin: 22px 0 10px; color: var(--blue); }
.blog-full-content p  { margin-bottom: 16px; }
.blog-full-content ul { padding-left: 1.5rem; margin-bottom: 16px; line-height: 2; }
.blog-full-content strong { color: var(--text); }
.blog-full-content a { color: var(--blue); }

/* --- Flyer / photo links inside post bodies and event "Read more" panels ---
   These point at an image file. Make them read as links, and open them in the
   popup below instead of navigating away. */
.blog-full-content a[href$=".jpg"], .blog-full-content a[href$=".png"], .blog-full-content a[href$=".jpeg"],
.event-details a[href$=".jpg"],     .event-details a[href$=".png"],     .event-details a[href$=".jpeg"] {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  cursor: pointer;
}

/* Flyer link shown on the collapsed card, so you can see there IS a flyer
   without opening "Read more". Same popup behaviour as the in-body links. */
.event-flyer { margin: 8px 0 4px; }
.event-flyer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.event-flyer a:hover { color: var(--gold); }

/* --- Flyer popup: a window smaller than the page, laid over it --- */
.flyer-modal { position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center; padding: 24px; }
.flyer-modal.open { display: flex; }
.flyer-modal-backdrop { position: absolute; inset: 0; background: rgba(10,18,32,0.78); }
.flyer-modal-box {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  max-width: min(540px, 92vw);
  max-height: 88vh;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flyer-modal-box img { max-width: 100%; max-height: calc(88vh - 96px); object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }
.flyer-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flyer-modal-count { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }
.flyer-modal-nav { display: flex; justify-content: space-between; gap: 10px; }
.flyer-modal-nav button {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.flyer-modal-nav button:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.flyer-modal-bar a { color: var(--blue); font-size: 0.9rem; font-weight: 600; text-decoration: underline; }
.flyer-modal-close {
  border: none; background: var(--blue); color: var(--white);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.1rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.flyer-modal-close:hover { background: var(--blue-dark); }
@media (max-width: 560px) { .flyer-modal { padding: 12px; } .flyer-modal-box { max-width: 96vw; } }
.blog-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 0;
}

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}
.benefit-card.has-photo {
  padding: 0;
  overflow: hidden;
}
.benefit-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.benefit-body {
  padding: 20px 24px 24px;
}
.benefit-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.benefit-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,46,82,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--blue);
  flex-shrink: 0;
}
.benefit-icon svg { width: 28px; height: 28px; }
.family-icon {
  width: 56px;
  height: 56px;
  background: rgba(26,46,82,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--blue);
  transition: all var(--transition);
}
.family-icon svg { width: 28px; height: 28px; }
.family-card:hover .family-icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-detail-icon svg { width: 22px; height: 22px; }
.link-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,46,82,0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--blue);
  transition: all var(--transition);
}
.link-card-icon svg { width: 28px; height: 28px; }
.link-card:hover .link-card-icon { background: rgba(26,46,82,0.12); }
.doc-icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.doc-icon svg { width: 26px; height: 26px; }
.gate-icon {
  width: 72px;
  height: 72px;
  background: rgba(26,46,82,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue);
}
.gate-icon svg { width: 36px; height: 36px; }
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--blue); }
.benefit-card p { font-size: 0.97rem; color: var(--text-mid); }

/* ============================================================
   FAMILY LINKS PREVIEW
   ============================================================ */
.family-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
  gap: 20px;
  justify-content: center;
}
.family-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}
.family-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  text-decoration: none;
  color: var(--navy);
}
.family-logo {
  width: auto;
  max-width: 110px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 12px;
}
.family-logo-white { }
.family-card:hover .family-logo { opacity: 0.85; }
.family-icon { font-size: 2rem; margin-bottom: 12px; }
.family-card strong { font-size: 0.85rem; display: block; color: var(--navy); line-height: 1.3; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 { color: var(--white); margin-bottom: 10px; }
.cta-text p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.footer-logo .logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}
.footer-logo .logo-name strong { color: var(--gold); }
.footer-logo .logo-location { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-tagline { font-size: 0.92rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.95rem; transition: color var(--transition); }
.site-footer a:hover { color: var(--gold); text-decoration: none; }

.footer-fb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-note { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  max-width: 900px;
  margin: 10px auto 0;
  line-height: 1.5;
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 56px 0;
  text-align: center;
}
.page-banner h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-top: 10px; }
.breadcrumb {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--gold); }

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.events-page { padding: 60px 0; }
.events-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.events-controls-left { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.filter-btn {
  padding: 9px 18px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-mid);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}
.view-toggle { display: flex; gap: 8px; }
.view-btn {
  padding: 9px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.view-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.events-list { display: flex; flex-direction: column; gap: 28px; }
.event-list-item {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  align-items: flex-start;
  transition: all var(--transition);
}
.event-list-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.event-list-date {
  flex-shrink: 0;
  text-align: center;
  width: 64px;
}
.event-list-date .date-month {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}
.event-list-date .date-day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1;
}
.event-list-date .date-weekday {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 2px;
}
.event-list-date .date-multi {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border-radius: 10px;
  padding: 1px 6px;
  margin-top: 4px;
}
.event-list-body { flex: 1; }
.event-list-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.event-list-meta { font-size: 0.9rem; color: var(--text-light); }
.event-list-desc { font-size: 0.97rem; color: var(--text-mid); margin-top: 6px; }
.event-recurring {
  display: inline-block;
  font-size: 0.78rem;
  background: #f0f4ff;
  color: var(--blue);
  border-radius: 20px;
  padding: 2px 10px;
  margin-left: 8px;
  font-weight: 600;
}

/* Optional "Read more" expansion for events with a longer write-up. */
.event-list-item.is-expandable { cursor: pointer; transition: box-shadow var(--transition), transform var(--transition); }
.event-list-item.is-expandable:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.event-more { margin-top: 8px; }
.event-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 2px 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}
.event-more-btn:hover { text-decoration: underline; }
.event-more-caret { font-size: 0.8em; }
.event-details {
  margin-top: 10px;
  padding: 14px 16px;
  background: #f7f9fc;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.event-details a { color: var(--blue); font-weight: 600; }
.cal-modal-details { margin-top: 12px; }

.subscribe-bar {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.subscribe-bar h4 { color: var(--white); font-size: 1.05rem; }
.subscribe-bar p { font-size: 0.92rem; color: rgba(255,255,255,0.8); margin: 0; }
.subscribe-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.subscribe-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}
.subscribe-btn-google { background: var(--white); color: var(--blue); }
.subscribe-btn-ical   { background: var(--gold); color: var(--blue-dark); }
.subscribe-btn-phone  { background: #16a34a; color: var(--white); }
.subscribe-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none; }

/* QR block inside the events subscribe bar */
.subscribe-qr { text-align: center; flex: 0 0 auto; }
.subscribe-qr img {
  width: 128px; height: 128px;
  background: #fff; border-radius: 12px; padding: 8px;
  display: block; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.subscribe-qr span {
  display: block; margin-top: 8px;
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
}

/* Home page "Add Our Calendar" call-to-action band */
.calendar-cta { background: var(--blue-dark, #14233f); padding: 36px 0; }
.calendar-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; flex-wrap: wrap;
}
.calendar-cta-text { flex: 1 1 340px; }
.calendar-cta-text .section-label { color: var(--gold); }
.calendar-cta-text h2 { color: var(--white); margin: 6px 0 10px; }
.calendar-cta-text p { color: rgba(255,255,255,0.85); margin-bottom: 18px; max-width: 52ch; }
.calendar-cta-qr { flex: 0 0 auto; text-align: center; }
.calendar-cta-qr img {
  width: 168px; height: 168px;
  background: #fff; border-radius: 14px; padding: 10px;
  display: block; box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.calendar-cta-qr span {
  display: block; margin-top: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
}

/* Calendar grid */
.calendar-view { display: none; }
.calendar-view.visible { display: block; }
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}
#calendarView {
  width: 100% !important;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  min-width: 0;
}
.calendar-header h3 { font-size: 1.3rem; }
.cal-nav-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  width: 40px; height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cal-nav-btn:hover { background: var(--blue-dark); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; min-width: 100%; }
.cal-day-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-day {
  min-height: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  font-size: 0.82rem;
}
.cal-day.other-month { background: #f8f8f8; opacity: 0.6; }
.cal-day.today { border-color: var(--gold); border-width: 2px; }
.cal-day-num { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.cal-event-dot {
  display: block;
  font-size: 0.72rem;
  padding: 2px 5px;
  border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.cal-event {
  cursor: pointer;
  transition: opacity 0.15s;
}
.cal-event:hover { opacity: 0.78; }

/* Calendar event modal */
.cal-event-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cal-event-modal.active { display: flex; }
.cal-event-modal-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px 24px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cal-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px 8px;
}
.cal-modal-close:hover { color: var(--text); }
.cal-modal-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 6px;
}
.cal-event-modal-card h3 {
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin: 0 0 14px;
  padding-right: 24px;
}
.cal-modal-meta {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 5px;
}
.cal-modal-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
@media (max-width: 500px) {
  .cal-event-modal-card { padding: 20px 18px 18px; }
}

/* ============================================================
   MEMBERSHIP PAGE
   ============================================================ */
.membership-benefits { padding: 72px 0; }
.membership-hero-text {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  color: var(--text-mid);
}
.join-form-section {
  background: var(--off-white);
  padding: 72px 0;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
}
.form-card h2 { margin-bottom: 8px; }
.form-card > p { color: var(--text-mid); margin-bottom: 32px; font-size: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.97rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .form-hint { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.form-check input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.form-check label { font-size: 0.95rem; color: var(--text-mid); }
.form-submit { margin-top: 10px; }
.form-success {
  display: none;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 20px;
  font-weight: 600;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding: 72px 0;
  align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-detail-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail strong { display: block; color: var(--blue); margin-bottom: 2px; }
.contact-detail p { font-size: 0.97rem; color: var(--text-mid); margin: 0; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
}
.officers-section {
  background: var(--off-white);
  padding: 72px 0;
}
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.officer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.officer-card h4 { color: var(--blue); margin-bottom: 4px; }
.officer-card .officer-title { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.officer-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ============================================================
   LINKS PAGE
   ============================================================ */
.links-page { padding: 72px 0; }
.links-section { margin-bottom: 60px; }
.links-section h2 { margin-bottom: 28px; padding-bottom: 14px; border-bottom: 3px solid var(--gold); display: inline-block; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.link-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.link-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  text-decoration: none;
}
.link-card-icon { font-size: 2rem; margin-bottom: 12px; }
.link-card h3 { color: var(--blue); font-size: 1.1rem; margin-bottom: 6px; }
.link-card p { font-size: 0.92rem; color: var(--text-mid); margin: 0; }
.link-card .link-url { font-size: 0.82rem; color: var(--text-light); margin-top: 10px; display: block; }

/* ============================================================
   MEMBERS PAGE (password protected)
   ============================================================ */
.members-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 0;
}
.members-gate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.members-gate-card .gate-icon { font-size: 3rem; margin-bottom: 16px; }
.members-gate-card h2 { margin-bottom: 10px; }
.members-gate-card p { color: var(--text-mid); margin-bottom: 28px; }
.members-content { display: none; padding: 60px 0; }
.members-content.visible { display: block; }
.members-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.doc-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.doc-card:hover { background: var(--white); box-shadow: var(--shadow); }
.doc-icon { font-size: 2rem; }
.doc-info strong { display: block; color: var(--blue); font-size: 0.97rem; }
.doc-info span { font-size: 0.85rem; color: var(--text-light); }

/* ============================================================
   LEGEND
   ============================================================ */
.events-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   VOLUNTEER / GET INVOLVED PAGES
   ============================================================ */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.volunteer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.volunteer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.volunteer-card--urgent {
  border-left: 5px solid #ef4444;
}
.volunteer-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.badge-urgent {
  background: #fee2e2;
  color: #991b1b;
}
.badge-upcoming {
  background: #dbeafe;
  color: #1e40af;
}
.volunteer-card h3 {
  margin-bottom: 12px;
}
.volunteer-card p {
  color: var(--text-mid);
  font-size: 1rem;
}
.recognition-list {
  list-style: none;
  padding: 0;
  max-width: 680px;
  margin: 0 auto;
}
.recognition-list li {
  padding: 14px 0 14px 36px;
  position: relative;
  font-size: 1.05rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.recognition-list li::before {
  content: '\2605';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.2rem;
}
.recognition-list li:last-child {
  border-bottom: none;
}

/* Legacy giving */
.gift-types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 380px));
  justify-content: center;
  gap: 24px;
}
.gift-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gift-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.gift-card h3 {
  margin-bottom: 10px;
}
.gift-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
}
.legacy-disclaimer {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 20px 24px;
  color: #92400e;
  font-size: 0.95rem;
  max-width: 740px;
  margin: 32px auto 0;
}

/* Board update info box */
.update-options {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.update-options h3 {
  margin-bottom: 12px;
}
.update-options p {
  color: var(--text-mid);
  margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  /* Nav becomes hamburger menu */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue-dark);
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 24px; border-radius: 0; font-size: 1.1rem; }
  .nav-dropdown-menu {
    position: static;
    background: rgba(0,0,0,0.15);
    box-shadow: none;
    min-width: 0;
    max-width: 100%;
    border-radius: 0;
    padding: 0;
  }
  .nav-dropdown-menu a {
    padding: 12px 24px 12px 40px;
    font-size: 1rem;
    white-space: normal;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .hero-badge { display: none; }
  .site-header { position: relative; }
  .header-inner { position: relative; }

  /* Content layout adjustments */
  .welcome-inner { grid-template-columns: 1fr; gap: 40px; }
  .welcome-image { order: -1; margin: 0 auto; }
  .welcome-text { text-align: center; }
  .welcome-text .btn { display: inline-block; }
  .welcome-badge { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 900px) {
  .events-controls { flex-direction: column; align-items: stretch; }
  .events-controls-left { justify-content: center; }
  .view-toggle { justify-content: center; }
  .filter-btn { padding: 8px 14px; font-size: 0.85rem; }
  .blog-controls { justify-content: center; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .logo-crest { width: 140px; height: 65px; }
  .logo-name { font-size: 1.2rem; }
  .header-inner { gap: 12px; }
  .welcome-badge { display: none; }
  .volunteer-grid { grid-template-columns: 1fr; }
  .gift-types-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .stat-divider { display: none; }
  .stats-inner { gap: 16px; justify-content: center; }
  .stat { padding: 12px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .subscribe-bar { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .subscribe-bar > div,
  .subscribe-bar > p { width: 100%; }
  .subscribe-buttons { width: 100%; }
  .subscribe-btn { flex: 1 1 100%; text-align: center; padding: 14px 20px; }
  .subscribe-qr { width: 100%; }
  .events-controls { flex-direction: column; align-items: stretch; }
  .hero-buttons { flex-direction: column; }
  .btn { text-align: center; }
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .calendar-grid { font-size: 0.7rem; }
  .cal-day { min-height: 55px; }
}

/* Phones: stack event rows so the description isn't crushed into a
   one-word-per-line column. Date + category sit on a top row, the
   event details flow full width beneath. */
@media (max-width: 600px) {
  .event-list-item {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 18px 20px;
  }
  .event-list-date {
    order: 1;
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 7px;
    text-align: left;
  }
  .event-list-date .date-month { font-size: 0.82rem; }
  .event-list-date .date-day { font-size: 1.5rem; }
  .event-list-date .date-weekday { margin-top: 0; }
  .event-list-date .date-multi { margin-top: 0; align-self: center; }
  .event-tag {
    order: 2;
    margin: 0 0 0 auto;
    align-self: center;
    white-space: nowrap;
  }
  .event-list-body {
    order: 3;
    flex: 1 1 100%;
  }
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 0.8;
  visibility: visible;
}
.back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--blue-dark);
}

@media (max-width: 480px) {
  .benefits-grid, .family-links-grid, .officers-grid, .link-cards { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .topbar, .hero-scroll-hint, .subscribe-bar,
  .cta-section, .site-footer, .events-controls, .nav-toggle,
  .events-legend, .page-banner, .print-btn, #calendarView { display: none !important; }
  #listView { display: flex !important; }
  body { font-size: 11pt; color: #000; }
  .container { max-width: 100%; padding: 0; }
  .events-page { padding: 20px 0; }
  .print-header { display: block !important; text-align: center; margin-bottom: 20px; }
  .print-header h1 { font-size: 18pt; margin-bottom: 4px; }
  .print-header p { font-size: 10pt; color: #666; }
  .event-list-item { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; padding: 12px 16px; margin-bottom: 8px; }
  .event-list-item:hover { transform: none; box-shadow: none; }
  .event-tag { border: 1px solid #999; background: #eee !important; color: #333 !important; }
  a { color: #000; text-decoration: none; }
  .events-list { gap: 10px !important; }
}

/* ============================================================
   HERO CAROUSEL CONTROLS
   ============================================================ */
.hero { transition: background-image 0.8s ease; }
.hero-dots {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
  border-color: var(--white);
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* ============================================================
   PHOTO GALLERY STRIP
   ============================================================ */
.gallery-section { padding: 72px 0; background: var(--off-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.gallery-grid-full {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,46,82,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-overlay svg { width: 32px; height: 32px; color: white; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,15,25,0.94);
}
.lightbox-img-wrap {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.25);
  border-color: white;
}

/* Responsive gallery */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-arrow { display: none; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   MOOSE MEMBERSHIP APP CALLOUT
   ============================================================ */
.app-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
}
.app-callout::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(201,168,76,0.08);
  border-radius: 50%;
}
.app-callout-icon {
  width: 80px; height: 80px;
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.35);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.app-callout-icon svg { width: 40px; height: 40px; }
.app-callout-text .section-label { color: var(--gold); }
.app-callout-text h2 { color: var(--white); margin-bottom: 16px; }
.app-callout-text p  { color: rgba(255,255,255,0.85); margin-bottom: 12px; font-size: 1.05rem; }
.app-callout-text strong { color: var(--white); }
.app-store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.app-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  width: 160px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  transition: all var(--transition);
}
.app-store-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue-dark);
  text-decoration: none;
}
.app-store-btn:hover svg { fill: var(--blue-dark); }

@media (max-width: 700px) {
  .app-callout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 28px;
  }
  .app-callout-icon { width: 60px; height: 60px; }
  .app-callout-icon svg { width: 30px; height: 30px; }
}

/* ============================================================
   MEMBER PERKS GRID (3 cards)
   ============================================================ */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.perk-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.perk-card-dark {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
}
.perk-card-gold {
  background: var(--gold);
  color: var(--blue-dark);
}
.perk-card-light {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text);
}
.perk-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.perk-card-dark .perk-icon  { background: rgba(255,255,255,0.12); color: var(--gold); }
.perk-card-gold .perk-icon  { background: rgba(15,29,54,0.12);    color: var(--blue-dark); }
.perk-card-light .perk-icon { background: rgba(26,46,82,0.07);    color: var(--blue); }
.perk-icon svg { width: 28px; height: 28px; }
.perk-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.perk-card-dark h3  { color: var(--white); }
.perk-card-gold h3  { color: var(--blue-dark); }
.perk-card-light h3 { color: var(--blue-dark); }
.perk-card p { font-size: 0.97rem; line-height: 1.7; margin-bottom: 10px; }
.perk-card-dark p  { color: rgba(255,255,255,0.85); }
.perk-card-gold p  { color: var(--blue-dark); }
.perk-card-light p { color: var(--text-mid); }
.perk-card strong { }
.perk-card-dark  strong { color: var(--white); }
.perk-card-gold  strong { color: var(--blue-dark); }
.perk-card-light strong { color: var(--text); }
.perk-note {
  font-size: 0.85rem !important;
  opacity: 0.75;
  font-style: italic;
  margin-top: 4px !important;
}
.perk-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: opacity var(--transition);
}
.perk-card-gold  .perk-link { color: var(--blue-dark); }
.perk-card-light .perk-link { color: var(--blue); }
.perk-link:hover { opacity: 0.75; text-decoration: none; }
.app-store-buttons { margin-top: 20px; }

@media (max-width: 900px) {
  .perks-grid { grid-template-columns: 1fr; }
}
