:root {
  --ink: #17201d;
  --muted: #5d6661;
  --soft: #f7f4ee;
  --paper: #ffffff;
  --line: #ddd6ca;
  --green: #17352f;
  --green-2: #28594f;
  --copper: #b46d3a;
  --gold: #c7a15a;
  --blue: #446c86;
  --danger: #8a3c2c;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: var(--green-2);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: var(--paper);
  background: var(--green);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23, 32, 29, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  font-weight: 750;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
}

.brand-name {
  font-weight: 760;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.72rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
  background: #edf3ef;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--green);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 24, 21, 0.88) 0%, rgba(12, 24, 21, 0.58) 42%, rgba(12, 24, 21, 0.12) 100%),
    linear-gradient(180deg, rgba(12, 24, 21, 0.08) 0%, rgba(12, 24, 21, 0.42) 100%),
    url("california-multifamily-hero.png") center / cover;
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
}

.hero p {
  max-width: 690px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--paper);
  background: var(--green);
  font-weight: 720;
  text-decoration: none;
}

.button:hover {
  color: var(--paper);
  background: #21483f;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.button.secondary:hover {
  color: var(--green);
  background: var(--soft);
}

.hero .button.secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.hero .button.secondary:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 4.8rem 0;
}

.section.alt {
  background: var(--soft);
}

.section.band {
  color: var(--paper);
  background: var(--green);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.band .section-heading p,
.band .muted {
  color: rgba(255, 255, 255, 0.78);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.metric,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.panel {
  padding: 1.4rem;
}

.panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.metric {
  padding: 1.15rem;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-value {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 780;
}

.metric-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.feature-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: start;
}

.page-hero {
  padding: 5.6rem 0 4rem;
  color: var(--paper);
  background:
    linear-gradient(125deg, rgba(23, 53, 47, 0.98), rgba(40, 89, 79, 0.9)),
    var(--green);
}

.page-hero .container {
  max-width: var(--max);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.source-list {
  padding-left: 1.2rem;
}

.source-list li + li {
  margin-top: 0.45rem;
}

.bar-chart {
  display: grid;
  gap: 0.85rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  gap: 0.8rem;
  align-items: center;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: #e8e0d2;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: calc(var(--size) * 1%);
  min-width: 3px;
  background: var(--green-2);
}

.bar.negative {
  background: var(--copper);
}

.bar-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.notice {
  padding: 1rem 1.1rem;
  border: 1px solid #e5cfc2;
  border-radius: 8px;
  color: #553126;
  background: #fff6ef;
}

.form-panel {
  padding: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 690;
}

label span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.78rem;
  border: 1px solid #cfc7ba;
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  font-weight: 560;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.2rem;
}

.google-form-frame {
  width: 100%;
  min-height: 760px;
  border: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.site-footer {
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.78);
  background: #101916;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-title {
  margin: 0 0 0.5rem;
  color: var(--paper);
  font-weight: 740;
}

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 24px 42px rgba(23, 32, 29, 0.16);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .feature-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .bar-value {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .brand-subtitle {
    display: none;
  }

  .hero-inner {
    padding-top: 5.5rem;
  }

  .section,
  .page-hero {
    padding: 3.3rem 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
