/* ==========================================================================
   Pauma Valley Country Club Estates HOA #1
   Shared stylesheet
   ========================================================================== */

:root {
  --green-900: #1d3a2f;
  --green-800: #24483a;
  --green-700: #2f5c49;
  --green-600: #3d7259;
  --green-100: #e6efe9;
  --green-50:  #f2f7f4;

  --sand-700: #8a6f45;
  --sand-500: #b8935a;
  --sand-200: #ecdfc8;
  --sand-100: #f6efe1;

  --ink:      #1c2320;
  --ink-soft: #4a544f;
  --ink-mute: #6d7873;
  --line:     #dde4e0;
  --paper:    #ffffff;
  --shell:    #f7f9f8;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28,35,32,.06), 0 2px 8px rgba(28,35,32,.05);
  --shadow-md: 0 2px 4px rgba(28,35,32,.06), 0 8px 24px rgba(28,35,32,.08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --measure: 68ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-900);
  line-height: 1.22;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* --------------------------------------------------------------- skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green-900); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.masthead {
  background: var(--green-900);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 6px 20px rgba(0,0,0,.16);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #fff; padding-block: 12px; min-width: 0; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--serif); font-size: .98rem; font-weight: 600;
  letter-spacing: .01em; line-height: 1.2; white-space: nowrap;
}
.brand__sub {
  font-size: .66rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sand-200); margin-top: 3px; white-space: nowrap;
}

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: .9rem;
  align-items: center; gap: 8px; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }

.nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 11px; border-radius: 7px;
  color: rgba(255,255,255,.86); text-decoration: none;
  font-size: .855rem; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; }

@media (max-width: 820px) {
  .brand__name { white-space: normal; font-size: .88rem; }
  .brand__sub { white-space: normal; font-size: .6rem; letter-spacing: .1em; }
  .brand__mark { width: 32px; height: 32px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--green-800); border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow-md); padding: 10px 20px 18px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; max-width: var(--wrap); margin-inline: auto; }
  .nav a { padding: 12px 10px; border-radius: 6px; font-size: .96rem; }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; background: var(--green-800); color: #fff; overflow: hidden; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,58,47,.30) 0%, rgba(29,58,47,.62) 62%, rgba(29,58,47,.88) 100%);
}
.hero__body { position: relative; padding-block: clamp(56px, 10vw, 104px) clamp(40px, 7vw, 72px); }
.hero__eyebrow {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-200); margin: 0 0 14px;
}
.hero h1 {
  color: #fff; font-size: clamp(2rem, 5.2vw, 3.3rem);
  margin: 0 0 18px; max-width: 20ch; text-shadow: 0 2px 20px rgba(0,0,0,.28);
}
.hero p { max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(255,255,255,.93); margin: 0; }

/* -------------------------------------------------------------- page header */
.pagehead { background: var(--green-900); color: #fff; padding: clamp(38px, 6vw, 64px) 0 clamp(30px, 5vw, 50px); }
.pagehead h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0; }
.pagehead p { margin: 14px 0 0; max-width: var(--measure); color: rgba(255,255,255,.86); }
.crumbs { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-200); margin: 0 0 12px; }
.crumbs a { color: var(--sand-200); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------------------- main */
main { display: block; }
.section { padding: clamp(40px, 6vw, 68px) 0; }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
}
.card + .card { margin-top: 26px; }

.prose { max-width: var(--measure); }
.card.prose { max-width: none; }
.card.prose > p, .card.prose > ul, .card.prose > ol, .card.prose > h2, .card.prose > h3 {
  max-width: var(--measure);
}
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-size: 1.5rem; margin: 1.9em 0 .55em; }
.prose h3 { font-size: 1.16rem; margin: 1.7em 0 .5em; }
.prose h4 { font-size: 1rem; font-family: var(--sans); font-weight: 700; color: var(--green-800); margin: 1.5em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--green-900); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------- grids */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* quick-link cards (home) */
.qcard {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s, border-color .16s;
}
.qcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-600); color: inherit; }
.qcard__icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--green-50);
  display: grid; place-items: center; color: var(--green-700); flex: none;
}
.qcard h3 { margin: 0; font-size: 1.16rem; }
.qcard p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.qcard__go { margin-top: auto; padding-top: 6px; color: var(--green-700); font-weight: 600; font-size: .9rem; }
.qcard__go::after { content: " →"; }

/* ------------------------------------------------------------ announcement */
.announce {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--sand-100); border: 1px solid var(--sand-200);
  border-left: 4px solid var(--sand-500);
  border-radius: var(--radius); padding: 20px 22px;
}
.announce__label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-700); font-weight: 700; margin: 0 0 5px;
}
.announce p { margin: 0; }
.announce a { font-weight: 600; }

/* ------------------------------------------------------------------ people */
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.person__head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.avatar {
  width: 72px; height: 72px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  color: #fff; font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.22);
}
/* photo variant: same circle, cropped to fill */
img.avatar {
  object-fit: cover; object-position: 50% 42%;
  background: var(--green-100);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(28,35,32,.14);
}
.person__name { margin: 0; font-size: 1.22rem; }
.person__role {
  margin: 5px 0 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand-700); font-weight: 700; line-height: 1.45;
}
.person p { margin: 0 0 1em; color: var(--ink-soft); font-size: .96rem; max-width: 82ch; }
.person p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- resources */
.resource {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.resource:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-600); color: inherit; }
.resource__icon { width: 46px; height: 46px; border-radius: 11px; background: var(--green-50); display: grid; place-items: center; color: var(--green-700); }
.resource h3 { margin: 0; font-size: 1.04rem; line-height: 1.35; }
.resource p { margin: 0; font-size: .9rem; color: var(--ink-mute); }
.resource__ext { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--green-700); font-weight: 600; }

/* ------------------------------------------------------------------ tables */
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doclist li { border-bottom: 1px solid var(--line); }
.doclist a {
  display: flex; align-items: center; gap: 12px; padding: 13px 6px;
  text-decoration: none; color: var(--ink); font-size: .96rem; transition: background .12s, padding .12s;
}
.doclist a:hover { background: var(--green-50); padding-left: 12px; color: var(--green-800); }
.doclist svg { flex: none; color: var(--sand-700); }
.doclist .tag {
  margin-left: auto; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; white-space: nowrap;
}

/* ------------------------------------------------------------------- forms */
.form { max-width: 720px; }
.field { margin-bottom: 20px; }
.field > label, .fieldset__legend {
  display: block; font-weight: 600; font-size: .92rem; color: var(--green-900); margin-bottom: 7px;
}
.req { color: #a4442f; }
.hint { font-size: .84rem; color: var(--ink-mute); margin: 6px 0 0; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .96rem; color: var(--ink);
  background: #fff; border: 1px solid #c9d3ce; border-radius: 8px;
  transition: border-color .14s, box-shadow .14s;
}
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus,
input[type=search]:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(61,114,89,.16);
}
textarea { min-height: 150px; resize: vertical; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px; }
legend { padding: 0 8px; font-weight: 600; font-size: .92rem; color: var(--green-900); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #c9d3ce; border-radius: 999px; cursor: pointer; font-size: .92rem; background: #fff; }
.choice:hover { border-color: var(--green-600); background: var(--green-50); }
.choice input { accent-color: var(--green-700); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.check input { accent-color: var(--green-700); margin-top: 4px; flex: none; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  background: var(--green-700); color: #fff; border: 1px solid var(--green-700);
  padding: 12px 26px; border-radius: 8px; font: inherit; font-weight: 600; font-size: .96rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green-800); border-color: #c2cec8; }
.btn--ghost:hover { background: var(--green-50); color: var(--green-900); border-color: var(--green-600); }
.btn--light { background: #fff; color: var(--green-900); border-color: #fff; }
.btn--light:hover { background: var(--sand-100); color: var(--green-900); border-color: var(--sand-100); }

/* ------------------------------------------------------------------ notice */
.notice {
  background: #fff8e8; border: 1px solid #ecd9a8; border-left: 4px solid #c99a33;
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 26px; font-size: .94rem;
}
.notice strong { color: #7a5a12; }
.notice p { margin: 0 0 .6em; }
.notice p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- CC&R page */
.ccr-search {
  position: sticky; top: var(--header-h, 74px); z-index: 40;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 18px 20px; margin-bottom: 30px;
}
.ccr-search__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.ccr-search input { flex: 1 1 240px; }
.ccr-search__btns { display: flex; gap: 8px; }
.ccr-search__count { font-size: .86rem; color: var(--ink-mute); margin: 10px 0 0; min-height: 1.2em; }
mark { background: var(--sand-200); color: var(--ink); padding: 1px 2px; border-radius: 3px; }
mark.is-current { background: #f6c453; box-shadow: 0 0 0 2px #f6c453; }

.ccr-doc { max-width: 76ch; }
.ccr-doc h2 {
  font-size: 1.3rem; margin: 2.4em 0 .6em; padding-top: 1.1em;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h, 74px) + 110px);
}
.ccr-doc h3 { font-size: 1.03rem; font-family: var(--sans); font-weight: 700; letter-spacing: .01em; margin: 1.9em 0 .5em; color: var(--green-800);
  scroll-margin-top: calc(var(--header-h, 74px) + 110px); }
.ccr-doc p { margin: 0 0 1em; font-size: .97rem; }
.ccr-doc ul, .ccr-doc ol { font-size: .97rem; }

.toc { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 30px; }
.toc h2 { font-size: 1.05rem; margin: 0 0 12px; }
.toc ol { columns: 2; column-gap: 30px; margin: 0; padding-left: 1.2em; font-size: .9rem; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ------------------------------------------------------------- exceptions */
.exceptions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.exceptions li {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--sand-500);
  border-radius: var(--radius); padding: 14px 18px;
}
.exceptions .addr { font-weight: 600; color: var(--green-900); }
.exceptions .term { font-size: .86rem; color: var(--ink-soft); }
.exceptions .exp { margin-left: auto; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--green-900); color: rgba(255,255,255,.76); margin-top: 20px; padding: clamp(40px, 6vw, 60px) 0 30px; font-size: .92rem; }
.footer__grid { display: grid; gap: 34px; grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { color: #fff; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__brand { font-family: var(--serif); color: #fff; font-size: 1.08rem; margin: 0 0 10px; line-height: 1.35; }
.footer__base {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.6);
}

@media print {
  .masthead, .footer, .ccr-search, .toc, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { border: 0; box-shadow: none; padding: 0; }
}

/* Quoted CC&R text inside the Section 19 memorandum.
   The memo refers to this text as being "in RED", so the colour is meaningful
   and is preserved from the original document. */
.ccr-quote {
  color: #b32020;
  font-weight: 500;
}

/* ------------------------------------------------------------- memo header */
.memo-meta {
  display: grid; gap: 8px 26px; margin: 0 0 30px; padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.memo-meta > div { display: flex; gap: 10px; align-items: baseline; }
.memo-meta dt {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand-700); font-weight: 700; flex: none; min-width: 58px;
}
.memo-meta dd { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }

.ccr-doc blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--sand-500);
  color: var(--ink-soft); font-style: italic;
}
.ccr-doc blockquote p { margin: 0 0 .7em; }
.ccr-doc blockquote p:last-child { margin-bottom: 0; }
.ccr-doc blockquote strong { font-style: normal; }

.memo-sign {
  margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
