/* ==========================================================================
   LAKESHORE VILLAGE ASSOCIATION — SITE STYLES
   ==========================================================================
   Palette pulled from the Association's original 1980s marketing logo (the
   goose flying across a striped sunset over the lake) — warm sunset gold,
   deep lake-navy, and soft lake-teal, on a clean cream/white background.
   Every class referenced by index.html / bylaws.html / pay-dues.html /
   meeting.html / inquiry.html / admin.html is defined here.
   ========================================================================== */

:root {
  --sun:        #E8944A;   /* sunset orange */
  --sun-dark:   #C97832;
  --wood:       #C08A4E;   /* warm gold-brown — primary buttons */
  --wood-dark:  #A6733D;
  --navy:       #1F3B4D;   /* deep lake-navy — secondary buttons, headings */
  --navy-light: #2C5268;
  --teal:       #4A7C82;   /* lake-teal accent */
  --teal-light: #DCE9E7;
  --cream:      #FBF7F1;   /* page background */
  --paper:      #FFFFFF;
  --ink:        #22303A;   /* body text */
  --ink-soft:   #5B6B72;
  --line:       #E6DFD3;   /* borders/dividers */
  --rust:       #B5533C;   /* errors */
  --good:       #3F7A5C;   /* success accents */
  --radius:     14px;
  --shadow:     0 2px 10px rgba(31, 59, 77, 0.06);
  --shadow-lg:  0 12px 32px rgba(31, 59, 77, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 14px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 8px;
}

/* ---------------- Containers ---------------- */
.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }

/* ---------------- Top navigation ---------------- */
.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.25;
}
.brand-text small {
  font-family: -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--wood-dark); text-decoration: none; }
.nav-links a.active { color: var(--wood-dark); border-bottom-color: var(--sun); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 64px 0 96px;
}
.hero-sun {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun) 0%, var(--sun-dark) 60%, transparent 72%);
  opacity: 0.55;
  filter: blur(2px);
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { color: #F3D6A8; }
.hero h1 { color: #fff; }
.hero .lead { color: #E6EEF1; max-width: 620px; font-size: 1.08rem; }
.ripple-divider { display: block; width: 100%; height: 30px; margin-top: -1px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-block { display: block; width: 100%; }
.btn-wood { background: var(--wood); color: #fff; }
.btn-wood:hover { background: var(--wood-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: var(--teal-light); color: var(--navy); }
.btn-ghost:hover { background: #cfe2df; }

/* ---------------- Cards & grids ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stat-card { text-align: center; }
.stat-value { font-family: Georgia, serif; font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- Forms ---------------- */
label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy); margin: 16px 0 6px; }
label:first-of-type { margin-top: 0; }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.hidden.label-hidden, p.hidden { display: none; }

/* ---------------- Payment methods ---------------- */
.pay-method { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.pay-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--teal-light);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- Bylaws reader ---------------- */
.reader-page { min-height: 320px; }
.page-body p { color: var(--ink); }
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}
.reader-nav-btns button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}
.reader-nav-btns button:disabled { opacity: 0.4; cursor: not-allowed; }
.reader-nav-btns button:not(:disabled):hover { border-color: var(--wood); color: var(--wood-dark); }
.page-counter { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------------- Admin: lock screen ---------------- */
.lock-screen {
  max-width: 380px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}
.lock-screen .card { padding: 28px; margin-top: 18px; }

/* ---------------- Admin: ledger table ---------------- */
table.ledger { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.ledger th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--line);
  padding: 10px 8px;
}
table.ledger td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ledger tr:hover td { background: var(--cream); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.tag-paid { background: #E4F0EA; color: var(--good); }

/* ---------------- Admin: check upload ---------------- */
.upload-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: var(--cream);
}
.upload-drop:hover { border-color: var(--wood); }
.upload-drop.has-image { padding: 10px; border-style: solid; }
.upload-drop img { max-width: 100%; max-height: 180px; border-radius: 8px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--rust); }

/* ---------------- Footer ---------------- */
footer { background: var(--navy); color: #C9D6DC; padding: 44px 0 20px; margin-top: 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 8px; }
footer a { color: #C9D6DC; }
footer a:hover { color: #fff; }
.fine { max-width: 1180px; margin: 18px auto 0; padding: 0 20px; font-size: 0.78rem; color: #93A5AD; }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  h1 { font-size: 2rem; }
  .grid-2, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .site-nav .container-wide { justify-content: center; text-align: center; }
  .nav-links { justify-content: center; }
  .hero { padding: 44px 0 72px; }
}

