/* ============================================================
   Greystone at Boynton Beach HOA — design tokens
   Palette grounded in the community itself: cast-stone facades,
   barrel-tile roofs, the community pool, and the landscaping
   that lines every street.
   ============================================================ */

:root {
  --limestone: #ffffff;      /* background — bright white */
  --limestone-raised: #f4f8f8;
  --ink: #14202a;            /* primary text */
  --ink-soft: #55636e;       /* secondary text */
  --marine: #0891b2;         /* primary accent — bright ocean teal */
  --marine-deep: #0e7490;
  --barrel: #f97316;         /* secondary accent — sunset orange */
  --palm: #16a34a;           /* tertiary accent — vivid landscaping green */
  --stone-line: #e2e8ec;     /* hairlines, dividers, borders */
  --stone-line-soft: #eef3f5;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius: 8px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--marine); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marine);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--barrel);
}

/* ---------- header / directory nav ---------- */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.brand span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--marine);
  text-decoration: none;
  border-bottom-color: var(--barrel);
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--limestone-raised);
    border-bottom: 1px solid var(--stone-line);
    flex-direction: column;
    padding: 8px 28px 20px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--stone-line);
    border-radius: var(--radius);
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
  }
  .hero { min-height: 60vh; background-attachment: scroll; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--stone-line);
  background-image: url("/assets/img/greystone-entrance.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .wrap {
  padding-top: 96px;
  padding-bottom: 84px;
  position: relative;
  z-index: 2;
}

.hero-panel {
  display: inline-block;
  background: rgba(20, 32, 42, 0.82);
  padding: 28px 32px;
  border-radius: var(--radius);
  max-width: 640px;
}

.hero-arch { display: none; }

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  max-width: 16ch;
  color: #ffffff;
}

.hero .lede {
  font-size: 18px;
  max-width: 46ch;
  color: #eef3f5;
}

.hero .eyebrow { color: #d9f0ee; }
.hero .eyebrow::before { background: var(--barrel); }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #dfe8ea;
  flex-wrap: wrap;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  font-weight: 600;
}

/* ---------- directory board (signature element) ---------- */

.directory {
  background: var(--marine);
  border-bottom: 1px solid var(--marine-deep);
}

.directory .wrap {
  padding-top: 44px;
  padding-bottom: 44px;
}

.directory .eyebrow { color: #d9c9a8; }
.directory .eyebrow::before { background: #d9c9a8; }

.directory h2 { color: var(--limestone-raised); }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 28px;
}

@media (max-width: 620px) {
  .directory-grid { grid-template-columns: 1fr; }
}

.directory-tile {
  background: var(--marine-deep);
  padding: 26px 22px;
  color: var(--limestone-raised);
  display: block;
  transition: background 0.15s ease;
}

.directory-tile:hover {
  background: #0f2725;
  text-decoration: none;
}

.directory-tile .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d9c9a8;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.directory-tile h3 {
  color: var(--limestone-raised);
  font-size: 18px;
  margin-bottom: 6px;
}

.directory-tile p {
  color: #b9cac7;
  font-size: 14px;
  margin: 0;
}

/* ---------- sections ---------- */

section.block {
  padding: 64px 0;
  border-bottom: 1px solid var(--stone-line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: 28px; max-width: 30ch; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--limestone-raised);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(20, 32, 42, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(20, 32, 42, 0.08);
  transform: translateY(-2px);
}

.card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--palm);
  margin-bottom: 12px;
}

.card .tag.alert {
  background: rgba(249, 115, 22, 0.12);
  color: var(--barrel);
}

.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }
.card .date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
  display: block;
}

/* ---------- document list ---------- */

.doc-list { border-top: 1px solid var(--stone-line); margin-top: 24px; }

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--stone-line);
  gap: 16px;
}

.doc-row .doc-name {
  font-weight: 600;
  color: var(--ink);
}

.doc-row .doc-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--marine);
  color: var(--marine);
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
}
.btn:hover { background: var(--marine); color: var(--limestone-raised); text-decoration: none; }

/* ---------- contact / board table ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .people-grid { grid-template-columns: 1fr; } }

.person {
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  background: var(--limestone-raised);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.person .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--barrel);
  margin-bottom: 6px;
  display: block;
}

.person h3 { font-size: 17px; margin-bottom: 2px; }
.person .contact-line { font-size: 14px; color: var(--ink-soft); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cfd0c8;
}

.site-footer .wrap {
  padding: 48px 28px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: #f2efe6;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}

.site-footer a { color: #cfd0c8; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #9a9c92; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid #3a3d33;
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #82847a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- page header (subpages) ---------- */

.page-head {
  border-bottom: 1px solid var(--stone-line);
  padding: 52px 0 40px;
}
.page-head h1 { font-size: clamp(28px, 4vw, 40px); max-width: 22ch; }
.page-head .lede { max-width: 60ch; font-size: 16.5px; }

.notice {
  border-left: 3px solid var(--barrel);
  background: rgba(249, 115, 22, 0.08);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  margin: 24px 0;
}
.notice p { margin: 0; color: var(--ink); }
