/* WDVNA Modern Styles — Final Polish */

:root {
  /* Brand Colors */
  --brand: #1F3A5F;       /* Deep Navy (Primary) */
  --brand-light: #335c8f; /* Lighter Navy for hovers */
  
  /* HISTORIC INNOVATION PALETTE */
  --burgundy: #702F2F;    /* Dunbar Book Binding (Deep Red) */
  --brass: #C5A059;       /* Aged Brass (Gold Accent) */
  
  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-offset: #f8f9fa;   /* Very light gray for alternating sections */
  --bg-dark: #0f172a;     /* Deep slate for dark mode/footer */

  /* Text */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inv: #ffffff;

  /* UI */
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  
  --header-height: 80px;
  --max-width: 1100px;
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0f172a;
    --bg-offset: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  }
}

/* RESET & BASE */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  /* Historic Paper Texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', serif;
  color: var(--text-main);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

p { margin: 0 0 1rem 0; }
a { color: inherit; text-decoration: none; transition: 0.2s; }
ul { margin: 0; padding-left: 1.2rem; }
li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* LAYOUT UTILS */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section[id] { scroll-margin-top: var(--header-height); }

.bg-offset { background-color: var(--bg-offset); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  header { background: rgba(15, 23, 42, 0.95); }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 12px; }

.mark {
  background: var(--brand);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brandtext { display: flex; flex-direction: column; line-height: 1.1; }
.brandtext strong { font-size: 15px; font-weight: 700; }
.brandtext span { font-size: 12px; color: var(--text-muted); }

/* NAV */
nav { display: flex; gap: 20px; margin-left: auto; margin-right: 20px; }
nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); }
nav a:hover { color: var(--brand); }

.actions { display: flex; gap: 10px; }

/* HERO SECTION - UPDATED OVERLAY */
.hero {
  position: relative;
  background-color: var(--brand); 
  /* Fallback gradient if no image */
  background-image: linear-gradient(135deg, #162a45 0%, #1F3A5F 100%); 
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0 120px;
  text-align: center;
  overflow: hidden;
}

/* This is the magic overlay that blends your photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Deep Navy Gradient, semi-transparent at top, darker at bottom */
  background: linear-gradient(to bottom, rgba(31, 58, 95, 0.75), rgba(15, 23, 42, 0.9));
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative; 
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 16px;
  color: var(--brass); /* Accent Kicker */
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  margin-bottom: 24px;
}

.hero .sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  font-weight: 300;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  justify-content: center;
  transition: transform 0.1s, filter 0.2s;
}

.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-light); transform: translateY(-1px); }

/* Red Button (Contact, Residential) */
.btn-burgundy, .btn-residential { background: var(--burgundy); color: white; }
.btn-burgundy:hover, .btn-residential:hover { background: #5a2525; transform: translateY(-1px); }

/* Gold Button (Business, Support) - Navy Text for Contrast */
.btn-gold {
  background: var(--brass);
  color: var(--brand); 
  font-weight: 700;
}
.btn-gold:hover {
  background: #dcb66d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}

.btn-white { background: white; color: var(--brand); }
.btn-white:hover { background: #f1f5f9; }

.btn-outline { border-color: rgba(255,255,255,0.4); color: white; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.btn-ghost { color: var(--text-main); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-offset); }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* SECTIONS & CARDS */
.section-header { margin-bottom: 40px; text-align: left; }

/* Dynamic Dividers */
.divider { width: 60px; height: 4px; background: var(--brand); margin-top: 16px; border-radius: 2px; }
.divider-red { background: var(--burgundy); }
.divider-gold { background: var(--brass); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.thirds { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Accent Cards */
.card-accent-red { border-top: 4px solid var(--burgundy); }
.card-accent-gold { border-top: 4px solid var(--brass); }

.highlight-card {
  background: linear-gradient(to bottom right, var(--bg-body), var(--bg-offset));
  border-color: var(--brand);
}

/* Pills (Badges) */
.pill {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--bg-offset);
  color: var(--text-muted);
}
/* New Colored Pills */
.pill-red {
  background: rgba(112, 47, 47, 0.1);
  color: var(--burgundy);
  border: 1px solid rgba(112, 47, 47, 0.15);
}
.pill-gold {
  background: rgba(197, 160, 89, 0.1);
  color: var(--brass);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

/* Membership Price */
.price { 
  font-size: 32px; 
  font-weight: 700; 
  color: var(--text-main);
  margin-bottom: 12px; 
  font-family: 'Libre Baskerville', serif;
  letter-spacing: -0.02em;
}
.price .per { 
  font-size: 15px; 
  color: var(--text-muted); 
  font-weight: 400; 
  font-family: 'Inter', sans-serif;
  letter-spacing: normal;
}
.full-width { width: 100%; display: flex; margin-top: 16px; }

/* EVENTS LIST */
.event-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }

.event-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-offset);
  border-radius: 8px;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

/* --- THE MONTH FIX --- */
/* In Light Mode: Use Burgundy (High Contrast) */
.event-date .month { 
  font-size: 11px; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: var(--burgundy); 
}
.event-date .day { font-size: 24px; font-weight: 700; color: var(--text-main); line-height: 1; }

.event-details h3 { margin: 0 0 6px 0; font-size: 18px; font-family: 'Inter', sans-serif; font-weight: 600; }
.event-details .time, .event-details .location { margin: 0; font-size: 14px; color: var(--text-muted); display: block; }

/* LEADERSHIP */
.mini-card { text-align: center; padding: 20px 10px; }
.mini-card small { display: block; text-transform: uppercase; font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.mini-card strong { display: block; font-size: 15px; }
.vacant { opacity: 0.7; border-style: dashed; }

/* DOCUMENTS */
.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}
.doc-link:hover { 
  border-color: var(--brand-light); 
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.doc-info { display: flex; align-items: center; gap: 16px; }
.doc-icon { font-size: 24px; color: var(--text-muted); }
.doc-text { display: flex; flex-direction: column; }
.doc-text strong { font-size: 16px; color: var(--text-main); margin-bottom: 2px; }
.doc-text span { font-size: 13px; font-weight: 500; color: var(--brand-light); }
.doc-arrow { color: var(--border); transition: color 0.2s; }
.doc-link:hover .doc-arrow { color: var(--brand-light); }

/* FOOTER */
footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 40px 0;
  font-size: 14px;
  /* Gold Accent Border on Top */
  border-top: 4px solid var(--brass);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content .col { display: flex; flex-direction: column; }
.footer-content strong { color: white; margin-bottom: 4px; }
.footer-content a { color: #cbd5e1; }
.footer-content a:hover { color: white; }

/* MOBILE NAVIGATION */
.menu-toggle { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-body);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  nav.is-open { display: flex; }
  .actions { display: none; }
  .event-item { flex-direction: row; align-items: flex-start; }
}

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- DARK MODE FIXES --- */
@media (prefers-color-scheme: dark) {
  
  /* 1. Fix "Residential" Pill Contrast */
  .pill-red {
    background: rgba(255, 150, 150, 0.1); 
    color: #ffcdcd; /* Light Rose color */
    border-color: rgba(255, 150, 150, 0.2);
  }

  /* 2. Fix "Month" Visibility in Events */
  .event-date .month {
    color: var(--brass) !important;
  }
}