/* Westchester Park HOA — clean, accessible, mobile-first */
:root {
  --primary: #1a4a6e;
  --primary-dark: #0f2f47;
  --accent: #2d7a4f;
  --accent-hover: #236b42;
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(15, 47, 71, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--primary-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: #e0f0ff; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
}
.nav a {
  color: #c8d9e8;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a:focus { color: #fff; text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.55;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero p {
  font-size: 1.05rem;
  max-width: 36rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

section { margin-bottom: 2.75rem; }

h2 {
  font-size: 1.55rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 48rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.25rem 1.35rem;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(15, 47, 71, 0.12); }

.card img {
  border-radius: 6px;
  margin-bottom: 0.85rem;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Announcements */
.announcement {
  background: var(--card);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  margin-bottom: 0.85rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.announcement time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.announcement h3 { margin-top: 0.2rem; }

/* Documents table-like list */
.doc-list { list-style: none; }
.doc-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}
.doc-item h3 { margin-bottom: 0.25rem; }
.doc-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }

/* Contact / info boxes */
.info-box {
  background: linear-gradient(135deg, #e8f4ec 0%, #e0eef8 100%);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  border: 1px solid #c5e0d0;
}
.info-box strong { color: var(--primary-dark); }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 0.9rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 1.15rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #b8c9d8;
  padding: 2rem 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.site-footer a { color: #d4e4f2; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Utility */
.muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.flex-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero-img { height: 220px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { gap: 0.3rem 0.85rem; }
}
