/* Progresso Village Civic Association — styles
   Design tokens are sampled directly from the PVCA logo (progressvillage-logo.png). */

@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Logo palette (exact pixel samples) */
  --pv-green:  #007851; /* ground line + palm fronds */
  --pv-blue:   #1f9bde; /* the big "P" and "V" */
  --pv-yellow: #feb600; /* the house */
  --pv-brown:  #76531b; /* palm trunk */
  --pv-ink:    #231f20; /* "rogresso / illage" + "CIVIC ASSOCIATION, INC." */
  --pv-white:  #ffffff;

  /* Derived from the palette (tints/shades only — no new hues) */
  --pv-green-dark: #005c3e;   /* hover state for green */
  --pv-green-tint: #e6f2ee;   /* 10% green on white */
  --pv-blue-tint:  #e9f5fc;   /* 10% blue on white */
  --pv-yellow-tint:#fff4d9;   /* 15% yellow on white */
  --pv-line:       #cce4dc;   /* borders: 20% green on white */
  --pv-field:      #409a7c;   /* 75% green on white: form borders (3.5:1) */
  --pv-muted:      #4f4c4d;   /* ink at 80% on white (8.4:1) */

  --font-display: "Roboto Slab", Rockwell, "Courier New", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 4px;       /* logo shapes are square-cornered */
  --wrap: 68rem;
  --ground: 8px;       /* thickness of the logo's green "ground line" */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--pv-ink);
  background: var(--pv-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pv-green); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--pv-green-dark); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--pv-blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: .75rem; top: -3rem; z-index: 10; background: var(--pv-ink); color: #fff; padding: .5rem .9rem; border-radius: var(--radius); }
.skip-link:focus { top: .75rem; color: #fff; }

/* ---------- Headings ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 700; color: var(--pv-blue); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); font-weight: 700; color: var(--pv-blue); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--pv-ink); }
/* Section marker: the yellow house sitting on the green ground line */
.marked::after {
  content: ""; display: block; width: 4.5rem; height: 6px; margin-top: .45rem;
  background: linear-gradient(90deg, var(--pv-yellow) 0 1.25rem, var(--pv-green) 1.25rem);
}
.center .marked::after, .marked.center::after { margin-inline: auto; }
.eyebrow {
  display: block; font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pv-ink); margin-bottom: .35rem;
}
.lede { font-size: 1.2rem; color: var(--pv-muted); max-width: 40rem; }
p { margin: 0 0 1em; }

/* ---------- Next-meeting banner ---------- */
.meeting-banner { background: var(--pv-yellow); color: var(--pv-ink); font-size: .95rem; }
.meeting-banner .wrap { display: flex; flex-wrap: wrap; gap: .15rem .9rem; align-items: center; justify-content: center; padding-block: .55rem; text-align: center; }
.meeting-banner .label { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.meeting-banner a { color: var(--pv-ink); font-weight: 700; }

/* ---------- Header ---------- */
.site-header { border-bottom: var(--ground) solid var(--pv-green); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 120px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.site-nav a {
  display: inline-block; padding: .45rem .8rem; border-radius: var(--radius);
  font-weight: 600; font-size: .98rem; color: var(--pv-ink); text-decoration: none;
}
.site-nav a:hover { background: var(--pv-green-tint); color: var(--pv-green-dark); }
.site-nav a[aria-current="page"] { color: var(--pv-green); box-shadow: inset 0 -3px 0 var(--pv-yellow); }
.only-narrow { display: none; }
@media (max-width: 40rem) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .meeting-banner { font-size: .9rem; }
  .meeting-banner .wrap { padding-block: .45rem; column-gap: .5rem; }
  .meeting-banner .label { font-size: .72rem; }
  .site-header .wrap { justify-content: center; padding-block: .6rem .4rem; gap: .4rem; }
  .brand img { width: 104px; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  .site-nav a { padding: .45rem .35rem; font-size: .88rem; }
}

/* ---------- Layout blocks ---------- */
main { display: block; }
.section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section.tint { background: var(--pv-green-tint); }
.page-head { padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero-logo { display: none; } /* header already shows the logo on small screens */
.hero h1 { margin-bottom: .35em; }
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr 1.25fr; }
  .hero-logo { display: block; width: 100%; max-width: 360px; margin-inline: auto; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px;
  padding: .7rem 1.3rem; border-radius: var(--radius); border: 2px solid var(--pv-green);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; background: var(--pv-green); color: #fff;
}
.btn:hover { background: var(--pv-green-dark); border-color: var(--pv-green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--pv-green); }
.btn-outline:hover { background: var(--pv-green-tint); color: var(--pv-green-dark); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--pv-line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; }
.card > :last-child { margin-bottom: 0; }
.card h3 { display: flex; align-items: center; gap: .55rem; }
.card h3 .house { width: 1.25rem; height: 1.25rem; flex: none; }

/* Meeting card */
.meeting-card { border: 0; border-top: var(--ground) solid var(--pv-green); background: #fff; box-shadow: 0 1px 0 var(--pv-line), 0 6px 20px rgba(0,120,81,.08); padding: 1.6rem; }
.meeting-date { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); color: var(--pv-blue); line-height: 1.15; margin: 0 0 .25rem; }
.meeting-meta { list-style: none; padding: 0; margin: .75rem 0 0; }
.meeting-meta li { display: flex; gap: .6rem; padding: .35rem 0; }
.meeting-meta svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .2rem; color: var(--pv-green); }
.note { font-size: .92rem; color: var(--pv-muted); }
.callout { background: var(--pv-yellow-tint); border-left: 6px solid var(--pv-yellow); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout > :last-child { margin-bottom: 0; }

.dates { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.dates li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: #fff; border: 1px solid var(--pv-line); border-radius: var(--radius); }
.dates li:first-child { border-left: 6px solid var(--pv-yellow); font-weight: 700; }

/* ---------- Resources ---------- */
.res-nav { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.res-nav a { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--pv-line); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; background: #fff; }
.res-nav a:hover { background: var(--pv-green-tint); }
.res-group { scroll-margin-top: 1rem; }
.res-group + .res-group { margin-top: 3rem; }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .res-list { grid-template-columns: repeat(2, 1fr); } }

.res-item, .card, .contact-list li > div { min-width: 0; }
.res-item a:not(.phone), .contact-list a { overflow-wrap: anywhere; }
.res-item { background: #fff; border: 1px solid var(--pv-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.res-item h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.res-item p { margin-bottom: .5rem; font-size: .98rem; }
.res-item > :last-child { margin-bottom: 0; }
.phone { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--pv-green); text-decoration: none; white-space: nowrap; }
.phone:hover { text-decoration: underline; }
.emergency { background: var(--pv-ink); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.emergency strong { font-family: var(--font-display); font-size: 1.3rem; }
.emergency a { color: var(--pv-yellow); font-family: var(--font-display); font-weight: 700; font-size: 2rem; text-decoration: none; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-brown); }
.res-list ul { margin: .25rem 0 .5rem; padding-left: 1.1rem; font-size: .95rem; }
.verified { font-size: .85rem; color: var(--pv-muted); margin-top: 2.5rem; }

/* ---------- Forms ---------- */
form .field { display: grid; gap: .3rem; margin-bottom: 1rem; }
label { font-weight: 600; }
.hint { font-weight: 400; font-size: .88rem; color: var(--pv-muted); }
input, select, textarea {
  font: inherit; color: var(--pv-ink); padding: .65rem .8rem; min-height: 48px;
  border: 2px solid var(--pv-field); border-radius: var(--radius); background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--pv-green); outline: 3px solid var(--pv-blue); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; margin-bottom: .3rem; }
.choice { display: flex; align-items: center; gap: .55rem; margin: .25rem 0; font-weight: 500; }
.choice input { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--pv-green); }

/* ---------- Contact list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .contact-list { grid-template-columns: repeat(3, 1fr); } }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--pv-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.contact-list .ico { width: 2.5rem; height: 2.5rem; flex: none; border-radius: var(--radius); background: var(--pv-green-tint); color: var(--pv-green); display: grid; place-items: center; }
.contact-list .ico svg { width: 1.3rem; height: 1.3rem; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a, .contact-list span.val { font-size: 1.1rem; font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pv-green); color: #fff; border-top: 6px solid var(--pv-yellow); margin-top: 0; }
.site-footer .wrap { display: grid; gap: 1.5rem; padding-block: 2.5rem 1.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .2rem 0; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand svg { width: 2.6rem; height: 2.6rem; flex: none; }
.footer-brand p { margin: 0; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer-small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1rem; font-size: .85rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .meeting-banner, .site-nav, .site-footer { display: none; } }

/* Join tiers + forms */
.tiers { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { border-top: 6px solid var(--pv-green); }
.tier .price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--pv-blue); line-height: 1.1; margin: .2rem 0 .1rem; }
.tier .price span { font-size: .95rem; color: var(--pv-muted); font-family: var(--font-body); font-weight: 500; }
.tier .votes { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pv-brown); margin-bottom: .6rem; }
.tier p:last-child { font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list.one-col { grid-template-columns: 1fr !important; }
