/* ==========================================================================
   EVHBA — Eagle Valley Home Builders Association
   Modern static-site stylesheet (no external fonts or frameworks)
   ========================================================================== */

:root {
  --navy-950: #0c1b30;
  --navy-900: #132a47;
  --navy-800: #1b3a5f;
  --navy-700: #274d7a;
  --gold: #c8963e;
  --gold-dark: #a97b26;
  --gold-soft: #f6ecd9;
  --sky-soft: #eaf1f8;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #243244;
  --muted: #5d6c7e;
  --line: #e3e8ef;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(12, 27, 48, 0.06), 0 2px 8px rgba(12, 27, 48, 0.05);
  --shadow-md: 0 4px 12px rgba(12, 27, 48, 0.08), 0 12px 32px rgba(12, 27, 48, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); }
a:hover { color: var(--gold-dark); }

::selection { background: var(--gold); color: var(--navy-950); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--navy-950); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding-block: 10px;
}

.brand img {
  width: auto;
  height: 56px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.brand-text { line-height: 1.25; }

.brand-name {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b9c7da;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 9px 11px;
  color: #dbe4ef;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--navy-700);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--navy-950);
}

.nav-toggle {
  display: none;
  background: var(--navy-700);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--navy-800); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    background: var(--navy-800);
    margin: 0 -20px;
    padding: 10px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 11px 12px; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Heroes
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(200, 150, 62, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, rgba(12, 27, 48, 0.55));
  clip-path: polygon(0 100%, 0 46%, 12% 62%, 26% 30%, 41% 58%, 55% 18%, 68% 52%, 82% 26%, 100% 60%, 100% 100%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 9vw, 104px);
  max-width: 780px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: #d7e0ec;
  margin: 0 0 28px;
  max-width: 62ch;
}

.hero .kicker {
  color: var(--gold);
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(200, 150, 62, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}

.page-hero .hero-inner {
  padding-block: clamp(38px, 6vw, 64px);
  max-width: 860px;
}

.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.18;
  font-weight: 800;
}

.page-hero .lede { color: #d7e0ec; margin: 0; max-width: 70ch; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.hero .kicker { color: var(--gold); }

.breadcrumbs {
  font-size: 0.85rem;
  color: #b6c4d6;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
}

.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: 0.7; }
.breadcrumbs a { color: #cdd9e6; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #d5a44c; color: var(--navy-950); }

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--outline {
  border: 2px solid var(--navy-700);
  color: var(--navy-700);
}
.btn--outline:hover { background: var(--navy-700); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Sections, cards, grids
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(40px, 7vw, 76px); }
.section--tight { padding-block: clamp(28px, 5vw, 48px); }
.section--alt { background: var(--sky-soft); }

.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--navy-900);
}
.section-head p { margin: 0; color: var(--muted); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-soft);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--navy-900);
}

.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.card--link { display: block; text-decoration: none; color: inherit; }
.card--link:hover h3 { color: var(--gold-dark); }

/* Split layout (text + panel) */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin-top: 0;
  color: var(--navy-900);
}

/* Mission banner */
.mission {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #e6edf6;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.mission::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.16);
}

.mission h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.mission p { margin: 0; max-width: 75ch; color: #d7e0ec; }

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Prose (article content)
   -------------------------------------------------------------------------- */

.prose { max-width: 72ch; }

.prose h2 {
  color: var(--navy-900);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin: 1.9em 0 0.5em;
  line-height: 1.3;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  color: var(--navy-900);
  font-size: 1.15rem;
  margin: 1.5em 0 0.4em;
}

.prose p { margin: 0 0 1em; }

.prose ul { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

.lead {
  font-size: 1.13rem;
  color: var(--muted);
  margin: 0 0 1em;
}

.note {
  background: var(--gold-soft);
  border: 1px solid #e8d5ac;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 14px 18px;
  color: #6b5522;
  font-size: 0.95rem;
  margin: 0 0 24px;
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   Documents (PDF lists)
   -------------------------------------------------------------------------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.doc-card img {
  width: 34px;
  height: 34px;
  flex: none;
}

.doc-card .doc-title { font-weight: 700; color: var(--navy-900); line-height: 1.3; }
.doc-card .doc-meta { font-size: 0.82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   People / chips (boards & committees)
   -------------------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq { max-width: 78ch; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-dark);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Association logos strip
   -------------------------------------------------------------------------- */

.assoc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.assoc-strip figure {
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.assoc-strip img {
  height: 74px;
  width: auto;
}

.assoc-strip figcaption { font-size: 0.8rem; color: var(--muted); max-width: 220px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: #aebbcf;
  margin-top: clamp(40px, 7vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(36px, 6vw, 56px) 24px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand img { height: 44px; width: auto; border-radius: 6px; background: #fff; padding: 2px; }
.footer-brand strong { font-size: 1.05rem; letter-spacing: 0.03em; }

.site-footer p { margin: 0 0 10px; font-size: 0.92rem; }

.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }

.site-footer a {
  color: #c4d1e2;
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); text-decoration: underline; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #8fa1b8;
}

.footer-legal p { margin: 0; }

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */

.error-hero { text-align: center; }
.error-code {
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin: 12px 0 8px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}