/* ============================================================
   Aspen Grove HOA — Shared Stylesheet
   Clean, minimal design with forest-green accent
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  --green:       #2d6a4f;
  --green-dark:  #1b4332;
  --green-light: #52b788;
  --green-pale:  #d8f3dc;
  --bg:          #f6f9f7;
  --surface:     #ffffff;
  --text:        #1a1a1a;
  --text-muted:  #5a6a60;
  --border:      #d4e6da;
  --radius:      8px;
  --shadow:      0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

.nav-brand {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--green-pale); }

.nav-links {
  list-style: none;
  display: flex;
  gap: .2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .35rem .8rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
}
.nav-links a.active {
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--green-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 1.2rem;
  padding: .25rem .65rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 2.75rem 1.5rem 2.25rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
}
.page-hero p {
  margin-top: .45rem;
  font-size: 1.05rem;
  opacity: .82;
}

/* ---------- Home page hero with photo background ---------- */
.hero-home {
  background:
    linear-gradient(to bottom,
      rgba(27, 67, 50, 0.55) 0%,
      rgba(27, 67, 50, 0.70) 100%),
    url('images/hero.jpg') center center / cover no-repeat;
  padding: 4.5rem 1.5rem 3.75rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-home h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.hero-home p {
  font-size: 1.2rem;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ---------- Main content ---------- */
.page-main {
  max-width: 1040px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.25rem;
  flex: 1;
}

/* ---------- Section title ---------- */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

/* ---------- Two-column grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green-pale);
}

/* ---------- Event cards ---------- */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.event-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .5rem;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: .6rem;
}
.event-meta span {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.event-agenda {
  margin-top: .75rem;
  padding-left: 1.25rem;
}
.event-agenda li {
  margin-bottom: .4rem;
  font-size: .95rem;
}
.event-agenda li ul {
  padding-left: 1.2rem;
  margin-top: .2rem;
  list-style: disc;
}
.event-agenda li ul li { font-size: .9rem; color: var(--text-muted); }

/* ---------- Info / alert box ---------- */
.info-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f9a825;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .94rem;
}

/* ---------- Document list ---------- */
.doc-list { list-style: none; padding: 0; }
.doc-list li {
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.doc-list a::before { content: "📄"; font-size: .85rem; }
.doc-list a:hover { color: var(--green-dark); text-decoration: underline; }

/* ---------- Contact table ---------- */
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table tr { border-bottom: 1px solid var(--border); }
.contact-table tr:last-child { border-bottom: none; }
.contact-table td { padding: .55rem .4rem; vertical-align: top; font-size: .93rem; }
.contact-table .role {
  color: var(--text-muted);
  font-size: .83rem;
  font-weight: 600;
  min-width: 120px;
  white-space: nowrap;
}
.contact-table .name { font-weight: 500; }
.contact-table a { color: var(--green); text-decoration: none; font-size: .875rem; }
.contact-table a:hover { text-decoration: underline; }

/* ---------- Meeting Minutes accordion ---------- */
/* ---------- Minutes tab switcher ---------- */
.minutes-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.minutes-tab {
  padding: .55rem 1.25rem;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: none;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
  margin-bottom: -2px;
}
.minutes-tab:hover {
  color: var(--green);
  background: var(--green-pale);
}
.minutes-tab.active {
  color: var(--green-dark);
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--surface);
}
.minutes-section { margin-bottom: 2.5rem; }
.minutes-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .9rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--green-pale);
}

details.year-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .45rem;
  background: var(--surface);
  overflow: hidden;
}

details.year-group summary {
  background: var(--bg);
  padding: .7rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .97rem;
  color: var(--green-dark);
  list-style: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  user-select: none;
  transition: background .15s;
}
details.year-group summary::-webkit-details-marker { display: none; }
details.year-group summary::marker { display: none; }
details.year-group summary::before {
  content: "▶";
  font-size: .6rem;
  color: var(--green-light);
  transition: transform .2s;
  flex-shrink: 0;
}
details.year-group[open] > summary { background: var(--green-pale); }
details.year-group[open] > summary::before { transform: rotate(90deg); }
details.year-group summary:hover { background: var(--green-pale); }

.year-content {
  padding: .75rem 1.3rem 1rem;
  border-top: 1px solid var(--border);
}
.year-content ul { list-style: none; padding: 0; }
.year-content li { border-bottom: 1px solid var(--border); padding: .45rem 0; }
.year-content li:last-child { border-bottom: none; }
.year-content a {
  color: var(--green);
  text-decoration: none;
  font-size: .93rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.year-content a::before { content: "📄"; font-size: .8rem; }
.year-content a:hover { color: var(--green-dark); text-decoration: underline; }
.year-content .note {
  font-size: .875rem;
  color: var(--text-muted);
  font-style: italic;
  padding: .4rem 0 .2rem;
}

/* ---------- ACC page ---------- */
.acc-quote {
  font-style: italic;
  line-height: 1.85;
  color: #333;
  border-left: 4px solid var(--green-light);
  padding: 1.1rem 1.35rem;
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.form-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .85rem; }

.form-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  border: 1.5px solid currentColor;
  transition: background .15s, color .15s;
}
.form-link-btn.pdf { color: var(--green); }
.form-link-btn.pdf:hover { background: var(--green); color: #fff; }
.form-link-btn.doc { color: #1565c0; }
.form-link-btn.doc:hover { background: #1565c0; color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: .85rem;
  margin-top: auto;
}
.site-footer a { color: var(--green-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: .5rem 0 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .65rem 1.5rem;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-links a.active {
    box-shadow: none;
    border-left: 3px solid var(--green-light);
    background: rgba(255,255,255,.13);
  }

  .page-main { margin: 1.25rem auto; }
  .card { padding: 1.1rem 1.2rem; }
  .event-card { padding: 1rem 1.1rem; }
}
