/* Woodfield Ridge Condominium Association — site styles
   Aesthetic: established residential community. Warm paper, deep evergreen,
   brass accent. Fraunces (display serif) + Public Sans (humanist body). */

:root {
  --paper:        #f7f4ec;
  --paper-2:      #f1ecdf;
  --card:         #fffdf8;
  --ink:          #232019;
  --muted:        #6b6557;
  --evergreen:    #234d3a;
  --evergreen-dk: #18382a;
  --brass:        #a8843f;
  --brass-dk:     #8a6c30;
  --line:         #e3ddcf;
  --shadow:       0 1px 2px rgba(35,32,25,.04), 0 12px 30px -16px rgba(35,32,25,.25);
  --radius:       14px;
  --maxw:         1080px;
}

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(35,77,58,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(168,132,63,.06), transparent 55%);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--evergreen); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brass-dk); }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,236,.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Brand stacked ABOVE a centred nav row (2026-07-27). The 9 full-word labels need
   ~1286px on one line but only ~893px was available beside the brand, so every item
   was being squeezed until it broke mid-phrase ("Dues / & / Fees" on three lines,
   nothing aligned). Giving the nav the container's full width plus `nowrap` labels
   means each item stays intact and the ROW wraps instead of the words. */
.nav { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; flex: none; border-radius: 9px;
  background: var(--evergreen); color: #fff;
  display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; }
.brand .brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .1rem .3rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: .45rem .7rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  white-space: nowrap; /* never break a label mid-phrase — the row wraps instead */
}
.nav-links a:hover { background: var(--paper-2); color: var(--evergreen-dk); }
.nav-links a[aria-current="page"] { color: var(--evergreen-dk); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--evergreen); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--evergreen-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--evergreen-dk); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-dk); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.08rem; }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero .eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dk); font-weight: 700; margin-bottom: 1rem; }
.hero .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.hero .eyebrow a:hover { color: var(--evergreen-dk); }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Sections / cards ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head .eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dk); font-weight: 700; }

.grid { display: grid; gap: 1.2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .card-foot { margin-top: auto; }
a.card { text-decoration: none; color: inherit; transition: transform .1s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--brass); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Document list ---------- */
.doc-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.doc-item {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color .2s ease;
}
.doc-item:hover { border-color: var(--brass); }
.doc-list .doc-ico { width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--evergreen); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
.doc-list .doc-meta { display: flex; flex-direction: column; }
.doc-list .doc-meta small { color: var(--muted); }
.doc-actions { margin-left: auto; display: flex; gap: .5rem; flex: none; }

/* ---------- Definition / contact rows ---------- */
.info-rows { display: grid; gap: 1rem; margin: 1.2rem 0; }
.info-row { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.info-row dt { font-weight: 700; color: var(--evergreen-dk); }
.info-row dd { margin: 0; color: var(--ink); }
.roster { list-style: none; padding: 0; margin: .5rem 0 0; }
.roster li { padding: .35rem 0; }
.roster .role { color: var(--muted); }

.notice { background: #fbf6e9; border: 1px solid #ecd9a6; border-left: 4px solid var(--brass); border-radius: 10px; padding: 1rem 1.2rem; color: #5d4d24; }

/* ---------- Collapsible block (notice that folds away) ---------- */
.fold { padding: 0; }
.fold > summary {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: .85rem 1.2rem; font-weight: 700; list-style: none;
  border-radius: 10px; transition: background .2s ease;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "▸"; margin-left: auto; flex: none; font-size: .9rem;
  transition: transform .2s ease;
}
.fold[open] > summary::after { transform: rotate(90deg); }
.fold > summary:hover { background: #f7efdc; }
.fold > summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.fold > summary .fold-hint { font-weight: 400; font-size: .85rem; opacity: .8; }
.fold .fold-body { padding: 0 1.2rem 1.1rem; }
.fold .fold-body > :first-child { margin-top: 0; }
.fold .fold-body > :last-child { margin-bottom: 0; }
/* Plain (non-notice) variant, e.g. the pre-hire checklist */
.fold-plain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fold-plain > summary { color: var(--evergreen-dk); }
.fold-plain > summary:hover { background: var(--paper-2); }
@media print { .fold { border-left-width: 4px; } .fold > summary::after { content: ""; } .fold .fold-body { display: block !important; } }

/* ---------- Expandable detail at the foot of a vendor card ---------- */
.vendor-more { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.vendor-more > summary {
  display: flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none;
  font-size: .82rem; font-weight: 600; color: var(--brass-dk);
}
.vendor-more > summary::-webkit-details-marker { display: none; }
.vendor-more > summary::after { content: "▸"; font-size: .8rem; transition: transform .2s ease; }
.vendor-more[open] > summary::after { transform: rotate(90deg); }
.vendor-more > summary:hover { color: var(--evergreen-dk); }
.vendor-more > summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.vendor-more .vendor-note { margin: .5rem 0 0; padding-top: 0; border-top: 0; }
/* Only set when JS is present, so no-JS users don't get a misleading cursor */
.vendor--expandable { cursor: pointer; }
@media print {
  .vendor-more > summary { display: none; }
  .vendor-more .vendor-more-body { display: block !important; }
}

/* ---------- Map ---------- */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-frame iframe { width: 100%; border: 0; display: block; }
.map-frame img { width: 100%; height: auto; border: 0; display: block; }
.map-caption { line-height: 1.5; margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- News ---------- */
.post { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .post-date { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dk); font-weight: 700; }
.post h3 { margin: .3rem 0 .5rem; }

/* ---------- Community calendar ---------- */
.cal-wrap { margin-top: 1rem; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.cal-title { margin: 0; font-size: 1.3rem; text-align: center; flex: 1; }
.cal-nav {
  width: 40px; height: 40px; flex: none; border-radius: 9px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--evergreen-dk);
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center; transition: border-color .2s ease, background .2s ease;
}
.cal-nav:hover { border-color: var(--brass); background: var(--paper-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { gap: 6px; margin-bottom: 6px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .3rem 0; }
.cal-cell {
  min-height: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 9px;
  padding: .35rem .4rem; display: flex; flex-direction: column; gap: .2rem; overflow: hidden;
}
.cal-num { font-weight: 600; font-size: .9rem; color: var(--ink); }
.cal-muted { background: transparent; border-color: transparent; }
.cal-muted .cal-num { color: var(--line); }
.cal-today { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.cal-today .cal-num { background: var(--evergreen); color: #fff; border-radius: 6px; padding: 0 .35rem; align-self: flex-start; }
.cal-mark { font-size: .68rem; line-height: 1.25; border-radius: 5px; padding: .1rem .3rem; white-space: normal; }
.cal-trash { background: #e6efe9; color: var(--evergreen-dk); font-weight: 600; }
.cal-holiday { background: #fbf2dd; color: var(--brass-dk); font-weight: 600; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

@media (max-width: 600px) {
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 58px; padding: .25rem .25rem; border-radius: 7px; }
  .cal-num { font-size: .8rem; }
  .cal-mark { font-size: 0; padding: .12rem; border-radius: 50%; width: 9px; height: 9px; align-self: flex-start; }
  .cal-mark::first-letter { font-size: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--evergreen-dk); color: #d9e4dd; margin-top: 3rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding: 2.5rem 0; }
.site-footer .brand-name { color: #fff; font-family: "Fraunces", serif; font-size: 1.15rem; }
.site-footer small { color: #a9bdb1; }
.footer-nav { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; }
.footer-nav a { text-decoration: none; opacity: .9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .85rem; color: #a9bdb1; }

/* ---------- Recommended services (vendor cards) ---------- */
.vendor {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--evergreen);
  border-radius: 12px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.vendor h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.vendor .vendor-trade { margin: 0 0 .7rem; font-size: .88rem; color: var(--brass-dk); font-weight: 600; }
.vendor dl { margin: 0; display: grid; gap: .3rem; }
.vendor dl > div { display: flex; gap: .6rem; font-size: .92rem; }
.vendor dt { flex: none; width: 4.7rem; color: var(--muted); }
.vendor dd { margin: 0; }
.vendor .vendor-note { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.last-updated {
  margin: -.4rem 0 1.1rem; font-size: .82rem; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.last-updated time { color: var(--brass-dk); }
.trade-head { margin: 2.2rem 0 .2rem; font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase; color: var(--evergreen-dk); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
/* Hamburger at 720px. It was temporarily raised to 1060px on 2026-07-27 to stop the
   old single-row nav from overflowing the viewport between 721px and ~1024px; the
   stacked + wrapping layout above solves that properly (the row can no longer
   overflow, it just wraps), so this is back to the normal mobile breakpoint. */
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  /* brand and hamburger sit side by side again; the stacked column is desktop-only */
  .nav { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .4rem; border-radius: 6px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: .2rem; }
  .doc-item { flex-wrap: wrap; }
  .doc-actions { margin-left: 0; width: 100%; }
  .doc-actions .btn { flex: 1; justify-content: center; }
}
