/* Cambria Cove — static site stylesheet
   Waterfront palette drawn from the Swift Creek Reservoir setting and the
   cattail-and-birds logo ink (#101020). */
:root {
  --ink: #151c2b;          /* logo ink navy — headings, footer */
  --ink-soft: #2a3447;
  --lake: #2b6d86;         /* reservoir teal — links, buttons */
  --lake-deep: #1d5064;
  --marsh: #5f7d50;        /* reed green — secondary accent */
  --cattail: #7d5a38;      /* cattail brown — small accents */
  --sand: #f6f3ec;         /* warm sand — alt background */
  --mist: #e8f0f2;         /* misty water — hero sky */
  --bg: #ffffff;
  --text: #232b3a;
  --text-muted: #5b6470;
  --border: #e3e0d7;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(21, 28, 43, 0.08);
  --shadow-hover: 0 6px 20px rgba(21, 28, 43, 0.16);
  --serif: "Lora", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

a { color: var(--lake); }
a:hover { color: var(--lake-deep); }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); letter-spacing: 0.01em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-logo img { width: 260px; height: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--mist); color: var(--lake-deep); }
.site-nav a[aria-current="page"] { color: var(--lake-deep); font-weight: 700; box-shadow: inset 0 -3px 0 var(--lake); border-radius: 8px 8px 0 0; }
.site-nav a.external::after { content: " ↗"; font-size: 0.8em; color: var(--text-muted); }

#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  user-select: none;
}

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .site-nav { display: none; width: 100%; }
  #nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.75rem 0.5rem; border-top: 1px solid var(--border); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lake); }
  .site-logo img { width: 210px; }
}

/* Hero — sky and water over the reservoir */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f7fafb 0%, var(--mist) 55%, #d7e7ea 100%);
  padding: 4rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 0.75rem; }
.hero p { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 1.18rem; }
.hero .container { position: relative; z-index: 2; }

.hero-birds {
  position: absolute;
  top: 2.2rem;
  right: 12%;
  width: 130px;
  color: var(--ink-soft);
  opacity: 0.75;
  z-index: 1;
}
.hero-cattails {
  position: absolute;
  bottom: -6px;
  left: 1.5rem;
  width: 130px;
  z-index: 1;
  opacity: 0.9;
}
.hero-cattails--right {
  left: auto;
  right: 1.5rem;
  transform: scaleX(-1);
  width: 95px;
  opacity: 0.65;
}
@media (max-width: 700px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-cattails { width: 90px; left: 0.25rem; }
  .hero-cattails--right { display: none; }
  .hero-birds { width: 90px; right: 6%; }
}

/* Wave divider — sits at the bottom of hero / title bands */
.wave {
  display: block;
  width: 100%;
  height: 38px;
}
.wave--band { height: 26px; }
.hero .wave,
.page-title .wave {
  position: absolute;
  bottom: -1px;   /* avoid hairline gap */
  left: 0;
  z-index: 1;
}
.hero-cattails, .band-cattails { z-index: 2; }

/* Page title band */
.page-title {
  position: relative;
  background: linear-gradient(180deg, #f7fafb 0%, var(--mist) 100%);
  padding: 2.75rem 0 2rem;
  overflow: hidden;
}
.page-title h1 { font-size: 2.1rem; position: relative; z-index: 2; }
.page-title .band-cattails {
  position: absolute;
  bottom: -4px;
  right: 2rem;
  width: 84px;
  opacity: 0.55;
  z-index: 1;
}

/* Card grid (homepage) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0 3.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--text-muted); font-size: 0.98rem; flex: 1; }
.card-body .button { margin-top: 1rem; align-self: flex-start; }

.button {
  display: inline-block;
  background: var(--lake);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}
.button:hover { background: var(--lake-deep); color: #fff; }

/* Content sections (FAQ / committees) */
.content { padding: 2.5rem 0 3.5rem; }
.content h2 { font-size: 1.55rem; margin: 2rem 0 0.75rem; }
.content h2:first-child { margin-top: 0; }
.content p { margin-bottom: 1rem; }
.content ul { margin: 0 0 1rem 1.5rem; }

.media-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.media-section:last-child { border-bottom: none; }
.media-section img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.media-section h2 { margin-top: 0; }
@media (max-width: 700px) {
  .media-section { grid-template-columns: 1fr; }
}

/* Footer — evening water */
.site-footer {
  position: relative;
  background: var(--ink);
  color: #b9c2cf;
  padding: 2.25rem 0 2rem;
}
.footer-reeds { margin-top: 3rem; }
.footer-reeds {
  display: block;
  width: 100%;
  height: 44px;
  margin-bottom: -1px;
  background: var(--bg);
}
.content + .site-footer-wrap .footer-reeds,
.card-grid + .site-footer-wrap .footer-reeds { background: var(--bg); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
.site-footer a { color: #cfd8e3; }
.site-footer a:hover { color: #ffffff; }
.social-links { display: flex; gap: 1rem; list-style: none; }
.social-links a { color: #9fb4c4; display: inline-flex; }
.social-links a:hover { color: #ffffff; }
.social-links svg { width: 24px; height: 24px; fill: currentColor; }
.footer-links a { margin-left: 1rem; }
.footer-cattails {
  position: absolute;
  right: 2.25rem;
  bottom: 0;
  width: 58px;
  color: #4d5c74;
  opacity: 0.6;
}
@media (max-width: 700px) { .footer-cattails { width: 64px; right: 1rem; } }
.footer-tagline {
  width: 100%;
  color: #8b99ab;
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--serif);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lake-deep);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; z-index: 10; }

/* Redirect pages */
.redirect-notice { text-align: center; padding: 5rem 1rem; }
.redirect-notice p { color: var(--text-muted); margin-top: 0.5rem; }
