/* Senna Hills HOA — sennahillshoa.com
   Palette drawn from the neighborhood itself: live-oak green, limestone,
   senna-bloom gold, bluebonnet blue. */

:root {
  --oak: #2e4630;
  --oak-dark: #1f3222;
  --ink: #272b21;
  --muted: #5e6354;
  --paper: #faf9f5;
  --limestone: #efe9db;
  --limestone-deep: #e4dcc9;
  --senna: #d9971e;
  --senna-hover: #c78a15;
  --senna-text: #8a5d0a;
  --bluebonnet: #44519e;
  --line: #ddd5c4;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: "Bitter", Georgia, serif;
  color: var(--oak);
  line-height: 1.2;
  font-weight: 600;
}

a { color: var(--bluebonnet); }
a:hover { color: var(--oak); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--senna);
  outline-offset: 2px;
}

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

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

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { height: 52px; width: auto; }
.brand span {
  font-family: "Bitter", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--oak);
  letter-spacing: 0.02em;
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--oak);
  position: relative;
  content: "";
}
.nav-toggle-label span::before { position: absolute; top: -8px; }
.nav-toggle-label span::after { position: absolute; top: 8px; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--limestone); color: var(--oak); }
.site-nav a[aria-current="page"] {
  color: var(--oak);
  box-shadow: inset 0 -3px 0 var(--senna);
  border-radius: 6px 6px 0 0;
}
.site-nav a.btn-townsq {
  background: var(--senna);
  color: var(--oak-dark);
  margin-left: 0.5rem;
  box-shadow: none;
}
.site-nav a.btn-townsq:hover { background: var(--senna-hover); color: var(--oak-dark); }

@media (max-width: 880px) {
  .nav-toggle-label { display: block; }
  /* The checkbox must stay focusable so the menu opens by keyboard:
     invisible but positioned over the hamburger, not display:none. */
  .nav-toggle {
    display: block;
    position: absolute;
    top: 0.55rem;
    right: 1.1rem;
    width: 44px;
    height: 44px;
    margin: 0;
    opacity: 0;
    z-index: 60;
    cursor: pointer;
  }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--senna);
    outline-offset: 2px;
    border-radius: 6px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 0.7rem 0.5rem; }
  .site-nav a.btn-townsq { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  color: #fff;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background: var(--oak-dark) center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 38, 26, 0.82) 0%, rgba(24, 38, 26, 0.25) 45%, rgba(24, 38, 26, 0.05) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 3.5rem;
  padding-top: 5rem;
  width: 100%;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  max-width: 22ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero p {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  max-width: 52ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Quick actions strip — limestone cards overlapping the hero */

.quick-actions {
  margin-top: -2.6rem;
  position: relative;
  z-index: 2;
}
.quick-actions .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
}
.qa-label {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: -0.2rem;
}
.qa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--senna);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(31, 50, 34, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.qa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 50, 34, 0.14);
  color: var(--ink);
}
.qa-card strong {
  display: block;
  font-family: "Bitter", Georgia, serif;
  color: var(--oak);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.qa-card small { color: var(--muted); font-size: 0.9rem; line-height: 1.4; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qa-card, .card { transition: none; }
}

/* ---------- Page header band (interior pages) ---------- */

.page-head {
  background: var(--limestone);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
}
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-head .lede { margin-top: 0.5rem; max-width: 62ch; color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--senna-text);
  margin-bottom: 0.5rem;
}

.stamp {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ---------- Sections & content ---------- */

.section { padding: 3rem 0; }
.section.tint { background: var(--limestone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.section h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }

.prose { max-width: 68ch; }
.prose p + p { margin-top: 0.9rem; }
.prose ul, .prose ol { margin: 0.7rem 0 0.9rem 1.4rem; }
.prose li + li { margin-top: 0.35rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.figure img { border-radius: var(--radius); }
.figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.45rem; }
.figure + .figure { margin-top: 1.25rem; }

/* ---------- Card grid (amenities) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(31, 50, 34, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 50, 34, 0.13);
  color: var(--ink);
}
.card img { height: 190px; width: 100%; object-fit: cover; }
.card .card-body { padding: 1rem 1.15rem 1.2rem; }
.card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.card p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* ---------- Notice / alert ---------- */

.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--senna);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  max-width: 72ch;
}
.notice h3 { margin: 0 0 0.5rem; }
.notice table { border-collapse: collapse; margin: 0.7rem 0; }
.notice td, .notice th { border: 1px solid var(--line); padding: 0.4rem 0.75rem; text-align: left; }
.notice th { background: var(--limestone); font-family: "Bitter", Georgia, serif; color: var(--oak); }

/* ---------- Definition-style link lists (quick links, documents) ---------- */

.link-list { list-style: none; margin: 0; max-width: 72ch; }
.link-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.link-list li strong { color: var(--oak); }
.link-list li small { color: var(--muted); display: block; }

.doc-list { list-style: none; margin: 0; max-width: 72ch; }
.doc-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-list .doc-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--senna-text);
  border: 1px solid var(--senna);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}
.doc-list small { color: var(--muted); display: block; }

/* ---------- Committee blocks ---------- */

.committee {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.4rem;
  max-width: 76ch;
}
.committee h2 { font-size: 1.35rem; margin-bottom: 0.4rem; scroll-margin-top: 90px; }
.committee .members { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--oak);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 7px;
  margin-top: 0.9rem;
}
.btn:hover { background: var(--oak-dark); color: #fff; }
.btn.gold { background: var(--senna); color: var(--oak-dark); }
.btn.gold:hover { background: var(--senna-hover); color: var(--oak-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--oak-dark);
  color: #cfd8cd;
  margin-top: 3.5rem;
  padding: 2.8rem 0 2rem;
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.6rem; }
.site-footer a { color: #e8c87b; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: #a8b5a6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
