/* Davidson Walk HOA - shared styles */

:root {
  --green-dark: #1f3d2b;
  --green: #2e5a3e;
  --green-soft: #eaf1ec;
  --brick: #a65b38;
  --cream: #faf7f1;
  --ink: #24291f;
  --ink-soft: #5b6355;
  --line: #dfe4da;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(31, 61, 43, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4,
.nav, .btn, .tag, .card-label, footer {
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
}

img {
  max-width: 100%;
}

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

/* Header */

.topbar {
  background: var(--green-dark);
  color: #cfdcd3;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem 1rem;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-name {
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
}

.nav a:hover {
  background: var(--green-soft);
}

.nav a.active {
  background: var(--green);
  color: var(--white);
}

.nav a.nav-login {
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 600;
  margin-left: 0.35rem;
}

.nav a.nav-login:hover {
  background: var(--green);
  color: var(--white);
}

/* Hero */

.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 70%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  max-width: 22ch;
}

.hero p {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  max-width: 52ch;
  color: #e4ede7;
}

.hero .skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  opacity: 0.35;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.btn-light {
  background: var(--white);
  color: var(--green-dark);
}

.btn-light:hover {
  background: var(--cream);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
}

/* Page hero (interior pages) */

.page-hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 80%);
  color: var(--white);
}

.page-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.8rem 1.25rem;
}

.page-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero p {
  margin-top: 0.5rem;
  color: #dbe7df;
  max-width: 60ch;
}

/* Layout */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
}

section + section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: 1.08rem;
  max-width: 68ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.card .card-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.6rem;
}

.icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  color: var(--green);
}

/* News list */

.news-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.news-item + .news-item {
  margin-top: 1rem;
}

.news-date {
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
}

.news-item h3 {
  margin: 0.25rem 0 0.4rem;
  color: var(--green-dark);
}

/* Info tables and lists */

.facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.facts th,
.facts td {
  text-align: left;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}

.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: none;
}

.facts th {
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--green-dark);
  width: 38%;
}

ul.tick {
  list-style: none;
  padding-left: 0;
}

ul.tick li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.55rem;
}

ul.tick li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: var(--green);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.6 11.6 3.4 8.4l1.2-1.2 2 2 4.8-4.8 1.2 1.2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.6 11.6 3.4 8.4l1.2-1.2 2 2 4.8-4.8 1.2 1.2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Document lists */

.doc-list {
  list-style: none;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doc-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list .doc-name {
  font-weight: 600;
  color: var(--green-dark);
}

.doc-list .doc-name a {
  color: var(--green-dark);
  text-decoration: none;
}

.doc-list .doc-name a:hover {
  text-decoration: underline;
}

.doc-list .doc-meta {
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.doc-list .doc-dl {
  font-family: 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Callout */

.callout {
  background: var(--green-soft);
  border: 1px solid #cddcd2;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}

.callout strong {
  color: var(--green-dark);
}

.placeholder-note {
  background: #fdf3e7;
  border: 1px dashed #e0b98a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #7c5a33;
}

/* Map */

.map-frame {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */

footer {
  background: var(--green-dark);
  color: #c3d2c8;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-inner h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.footer-inner a {
  color: #c3d2c8;
  text-decoration: none;
  display: block;
  padding: 0.15rem 0;
}

.footer-inner a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem 1.25rem 1.5rem;
  color: #93a89b;
}
