/* Liberal Housing Authority - site styles
   Colors chosen to meet WCAG 2.1 AA contrast (4.5:1 or better for text). */
:root {
  --ink: #1c2629;
  --ink-soft: #3d4a4e;
  --teal: #0d5452;
  --teal-dark: #083b3a;
  --teal-tint: #e3efed;
  --sun: #f2b134;
  --sun-soft: #fdf1d6;
  --sand: #faf6ee;
  --white: #ffffff;
  --line: #d9d2c3;
  --radius: 14px;
  --max: 1120px;
  --font-body: "Atkinson Hyperlegible", Arial, sans-serif;
  --font-head: "Bitter", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--teal-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

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

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--sun); color: var(--ink); padding: 12px 18px; font-weight: 700; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Top bar */
.topbar { background: var(--teal-dark); color: var(--white); font-size: .95rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); }
.topbar strong { color: var(--sun); }

/* Header */
.site-header { background: var(--white); border-bottom: 4px solid var(--sun); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-dark); }
.brand img { width: 52px; height: 52px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-soft); }

.menu-btn { display: none; background: var(--teal); color: var(--white); border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.main-nav a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.main-nav a[aria-current="page"] { background: var(--teal); color: var(--white); }

@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .main-nav { width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--teal-dark); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p { font-size: 1.25rem; max-width: 42ch; }
.hero .tag { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; font-size: .95rem; }

.page-head { background: var(--teal-dark); color: var(--white); }
.page-head .wrap { padding-top: 44px; padding-bottom: 44px; }
.page-head h1 { color: var(--white); margin: 0; }
.page-head p { margin: 10px 0 0; font-size: 1.2rem; max-width: 60ch; }

/* Buttons */
.btn { display: inline-block; background: var(--sun); color: var(--ink); text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 12px; border: 2px solid var(--sun); }
.btn:hover { background: #ffc85a; color: var(--ink); text-decoration: none; }
.btn.alt { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn.alt:hover { background: var(--teal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Sections */
main section { padding: 56px 0; }
.band { background: var(--white); }
.band-tint { background: var(--teal-tint); }

/* Quick action cards */
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: -48px; position: relative; }
.action { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 24px rgba(8,59,58,.12); border-top: 6px solid var(--sun); display: flex; flex-direction: column; }
.action h2 { font-size: 1.35rem; }
.action p { flex: 1; }
.action a.more { font-weight: 700; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .facts { list-style: none; padding: 0; margin: 0 0 1em; }
.card .facts li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.card .facts li:last-child { border-bottom: 0; }
.label { display: inline-block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); margin-bottom: 6px; }

.two-col { display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.photo figcaption { padding: 10px 14px; font-size: .95rem; color: var(--ink-soft); }

.callout { background: var(--sun-soft); border-left: 6px solid var(--sun); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2em 0; }
.callout.teal { background: var(--teal-tint); border-left-color: var(--teal); }

table { border-collapse: collapse; width: 100%; background: var(--white); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--teal-tint); color: var(--teal-dark); }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.doc-list a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 700; text-decoration: none; }
.doc-list a:hover { border-color: var(--teal); background: var(--teal-tint); }
.doc-list small { display: block; font-weight: 400; color: var(--ink-soft); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 58px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; display: grid; place-items: center; }

/* Footer */
.site-footer { background: var(--ink); color: #e9ecea; font-size: 1rem; }
.site-footer a { color: #ffffff; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 28px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { color: var(--sun); font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.eho { display: flex; gap: 16px; align-items: center; border-top: 1px solid #44504f; margin-top: 30px; padding-top: 22px; }
.eho img { width: 74px; height: 74px; flex: none; background: #fff; }
.legal { font-size: .92rem; color: #cfd6d4; margin-top: 18px; }