/* ===========================================================
   Huntington Place HOA — styles.css
   Clean, neutral, professional. Full-width entrance hero,
   serif display headings, single muted-blue accent.
   =========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f2;
  --color-text: #20262c;
  --color-muted: #5e6772;
  --color-border: #e4e2dc;
  --color-accent: #2b4a63;        /* muted slate blue */
  --color-accent-dark: #1b3346;
  --max-width: 1040px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(20, 30, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--color-accent);
}

a:hover,
a:focus {
  color: var(--color-accent-dark);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== TOP NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

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

.nav__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--color-text);
}

.nav__menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__link:hover,
.nav__link:focus,
.nav__link.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  display: block;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 22, 30, 0.78) 0%,
    rgba(15, 22, 30, 0.30) 45%,
    rgba(15, 22, 30, 0.10) 100%
  );
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  color: #fff;
}

.hero__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7ecf2;
}

.hero__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  margin: 0.4rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #eef2f6;
}

/* ===== SECTIONS ===== */
.section {
  padding: 4.25rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  margin: 0 0 1.1rem;
  color: var(--color-text);
}

/* ===== WELCOME GRID ===== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.welcome-grid p {
  margin-top: 0;
  max-width: 60ch;
}

.notice {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.notice__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.notice__text {
  margin: 0;
}

/* ===== ABOUT ===== */
.about__list {
  max-width: 70ch;
  padding-left: 1.25rem;
  margin: 0;
}

.about__list li {
  margin-bottom: 0.7rem;
}

/* ===== EVENTS TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.events__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  overflow: hidden;
}

.events__table th,
.events__table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.events__table thead th {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.events__table tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.events__table tbody tr:last-child td {
  border-bottom: 0;
}

.events__note {
  margin-top: 0.9rem;
  font-style: italic;
  color: var(--color-muted);
}

/* ===== DOCUMENTS ===== */
.documents__intro {
  max-width: 70ch;
  margin-top: 0;
}

.documents__controls {
  margin: 1.5rem 0;
}

.documents__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.documents__select {
  width: 100%;
  max-width: 460px;
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.documents__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
}

.documents__list li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.documents__list li:hover {
  border-color: var(--color-accent);
}

.documents__list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
}

.documents__list a::before {
  content: "\1F4C4"; /* page icon */
  font-size: 1rem;
}

.documents__list a:hover,
.documents__list a:focus {
  color: var(--color-accent);
}

.documents__empty {
  color: var(--color-muted);
  font-style: italic;
}

/* ===== CONTACT ===== */
.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact__list li:last-child {
  border-bottom: 0;
}

.contact__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-text);
  color: #cdd3da;
  padding: 1.75rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav__menu.is-open {
    max-height: 340px;
    margin-top: 0.5rem;
  }

  .nav__menu li {
    border-top: 1px solid var(--color-border);
  }

  .nav__link {
    display: block;
    padding: 0.75rem 0;
  }

  .hero {
    min-height: 70vh;
  }
}
