/* Village Gardens HOA — shared styles */
:root {
  --green: #2F5D3A;
  --green-dark: #1F4128;
  --green-tint: #E6EEE3;
  --ink: #1C2620;
  --muted: #4F5E54;
  --line: #E4E8E2;
  --field: #C9D2C6;
  --soft: #F6F8F5;
  --chip: #F1F4EF;
  --warn-bg: #FDF5E4;
  --warn-ink: #5C3D07;
  --bad-bg: #FBEBDD;
  --bad-ink: #6B3A0E;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav a { padding: 12px; border-radius: 8px; font-size: 15px; text-decoration: none; color: var(--ink); }
.nav a:hover { background: var(--chip); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav .btn { margin-left: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 20px; border: 0; border-radius: 8px;
  background: var(--green); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-soft { background: var(--chip); color: var(--ink); }
.btn-soft:hover { background: #E3E9E0; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--field); }
.btn-outline:hover { background: var(--soft); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Page sections */
.hero { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--green); }
.hero h1 { max-width: 760px; font-size: clamp(36px, 5.5vw, 60px); line-height: 1.05; letter-spacing: -0.025em; }
.lead { max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.page-head { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 46px); letter-spacing: -0.02em; }
.page-head p { max-width: 660px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.section { padding-top: 16px; padding-bottom: 56px; }
.band { background: var(--soft); }
.band .wrap { padding-top: 56px; padding-bottom: 64px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--green); color: var(--ink); }
.card-title { font-weight: 600; font-size: 18px; }
.card p { font-size: 15px; color: var(--muted); }
.card .big { font-weight: 700; font-size: 24px; color: var(--ink); }
.cards-3 .card { flex-basis: 320px; padding: 28px; gap: 10px; }

/* Lists */
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-list li { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list .info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-list .name { font-weight: 600; font-size: 18px; }
.doc-list .desc { font-size: 15px; color: var(--muted); }

.notice { padding: 24px 28px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-ink); display: flex; gap: 16px; align-items: flex-start; }
.notice strong { display: block; }

/* People */
.people { display: flex; flex-wrap: wrap; gap: 16px; }
.person { flex: 1 1 220px; max-width: 360px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.person .who { display: flex; flex-direction: column; min-width: 0; }
.person .who strong { font-size: 17px; }
.person .who span { font-size: 14px; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
/* Side-by-side fields share the row; stacked fields keep their natural height. */
.row > .field { flex: 1 1 220px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: 8px;
}
input, select { height: 48px; padding: 0 14px; }
textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.alert-ok { background: #E3EEDF; color: var(--green-dark); }
.alert-bad { background: var(--bad-bg); color: var(--bad-ink); }
.alert-bad a { color: var(--bad-ink); }
[hidden] { display: none !important; }

.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; padding: 28px; border-radius: var(--radius); background: var(--soft); display: flex; flex-direction: column; gap: 20px; }

/* Address table */
.range-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.range-box .head { padding: 18px 24px; background: var(--soft); border-bottom: 1px solid var(--line); }
.range { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.range strong { font-size: 20px; }
.range span { font-size: 18px; color: var(--green); font-weight: 600; }
.range-box .foot { padding: 18px 24px; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; font-size: 15px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer .links a.quiet { color: var(--muted); }

/* Home page banner: welcome text beside the aerial map */
.hero-map { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.hero-map .hero-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-map .hero-text h1 { font-size: clamp(36px, 4.6vw, 54px); }
.vg-map.vg-map-hero { flex: 1.3 1 460px; min-width: 0; height: 460px; box-shadow: 0 12px 32px rgba(20, 40, 25, .18); }

/* Neighborhood map */
.vg-map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); background: #DDE5DA; z-index: 0; }
.vg-map-small { height: 380px; }
.leaflet-tooltip.vg-map-label { background: #fff; color: #1C2620; border: 0; border-radius: 6px; font: 600 13px/1.3 Inter, system-ui, sans-serif; padding: 5px 9px; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.leaflet-tooltip.vg-map-label::before { display: none; }
.leaflet-container a { color: var(--green); }

@media (max-width: 640px) {
  .vg-map { height: 380px; }
  .vg-map-small { height: 300px; }
  .vg-map.vg-map-hero { height: 340px; flex-basis: 100%; }
  .hero-map { padding-top: 40px; gap: 28px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .page-head { padding-top: 48px; }
  .nav .btn { margin-left: 0; }
}
