/* Fox River View HOA — stylesheet
   Design system: river-inspired, clean, family-friendly, highly readable.
   Edit CSS variables in :root to retheme. */

:root {
  --river-blue: #2b6478;
  --river-blue-dark: #1a4758;
  --river-blue-light: #e8f0f3;
  --woodland: #3e6b4f;
  --woodland-dark: #2c4e39;
  --prairie: #c9a961;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #1d2a33;
  --ink-soft: #3a4a55;
  --muted: #5e6c77;
  --hairline: #e5dcc7;
  --danger: #a8322b;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(29, 42, 51, 0.06);
  --shadow-md: 0 4px 14px rgba(29, 42, 51, 0.08);
  --shadow-lg: 0 10px 30px rgba(29, 42, 51, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;

  --container: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }

p { margin: 0 0 1em; }

a {
  color: var(--river-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--river-blue-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ==== Layout ==== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { padding: 2.5rem 0 4rem; }

section { padding: 2.5rem 0; }

/* ==== Header / Nav ==== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text { line-height: 1.1; }
.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { background: var(--river-blue-light); color: var(--river-blue-dark); }
.nav-links a.active { color: var(--river-blue-dark); font-weight: 600; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.5rem; }
}

/* ==== Hero ==== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #2b6478 0%, #1a4758 65%, #0f2f3d 100%);
  color: #eaf4f7;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'><path d='M0,260 C150,230 260,310 420,280 C580,250 700,320 880,290 C1040,265 1140,300 1200,280 L1200,400 L0,400 Z' fill='%231a4758' opacity='0.55'/><path d='M0,310 C180,285 320,345 500,325 C680,305 830,355 1000,335 C1120,322 1170,340 1200,335 L1200,400 L0,400 Z' fill='%23102e3d' opacity='0.75'/></svg>");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(201,169,97,0.18), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 0.4em; max-width: 22ch; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 52ch;
  color: rgba(234, 244, 247, 0.92);
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prairie);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-actions { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ==== Buttons ==== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary {
  background: var(--prairie);
  color: #1d1a10;
}
.btn-primary:hover { background: #b89849; color: #1d1a10; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-solid {
  background: var(--river-blue);
  color: #fff;
}
.btn-solid:hover { background: var(--river-blue-dark); color: #fff; }

/* ==== Page header (interior pages) ==== */
.page-header {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 2.5rem 0 2rem;
}
.page-header .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--woodland);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.page-header h1 { margin-bottom: 0.25em; }
.page-header p { color: var(--muted); max-width: 60ch; margin: 0; }

/* ==== Cards & grids ==== */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; color: var(--river-blue-dark); }
.card .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.card-accent {
  border-top: 4px solid var(--woodland);
}

/* ==== Prose ==== */
.prose {
  max-width: 70ch;
}
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote {
  border-left: 3px solid var(--prairie);
  padding: 0.5rem 1.2rem;
  margin: 1.5em 0;
  color: var(--ink-soft);
  font-style: italic;
  background: rgba(201, 169, 97, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2.2em 0;
}

/* ==== Placeholder block ==== */
.placeholder {
  background: var(--river-blue-light);
  border: 1px dashed var(--river-blue);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--river-blue-dark);
  font-size: 0.92rem;
  margin: 1rem 0;
}
.placeholder strong { color: var(--river-blue-dark); }

/* ==== Tables ==== */
table.simple {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
}
table.simple th, table.simple td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.96rem;
}
table.simple th {
  background: var(--river-blue-light);
  color: var(--river-blue-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}
table.simple tr:last-child td { border-bottom: none; }

/* ==== Forms ==== */
form.stacked {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--river-blue);
  box-shadow: 0 0 0 3px rgba(43, 100, 120, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form-status.success {
  background: rgba(62, 107, 79, 0.12);
  color: var(--woodland-dark);
  border: 1px solid rgba(62, 107, 79, 0.3);
}
.form-status.error {
  background: rgba(168, 50, 43, 0.08);
  color: var(--danger);
  border: 1px solid rgba(168, 50, 43, 0.3);
}

/* ==== Footer ==== */
.site-footer {
  background: var(--ink);
  color: #c5ced4;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
}
.site-footer a { color: #dce9ee; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.3rem; }
.footer-meta {
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  color: #8a98a0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==== Utility ==== */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.25rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1.25rem; }
