:root {
  color-scheme: light;
  --ink: #16251f;
  --muted: #4f5e57;
  --line: #d8e1d9;
  --surface: #ffffff;
  --soft: #f4f7f2;
  --leaf: #315f48;
  --leaf-dark: #1f4d3a;
  --clay: #b4664b;
  --gold: #d5a84d;
  --focus: #215f9a;
  --error: #9f2d2d;
  --success-bg: #eaf6ed;
  --success: #225b39;
  --shadow: 0 24px 60px rgba(22, 37, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-200%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(680px, 82vh, 900px);
  overflow: hidden;
  background: #1c2f26;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("../img/hero-housing.0904f340e9eb.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.01);
}

.hero__overlay {
  background:
    radial-gradient(circle at 18% 52%, rgba(7, 24, 18, 0.88) 0%, rgba(7, 24, 18, 0.68) 38%, rgba(7, 24, 18, 0.18) 72%),
    linear-gradient(90deg, rgba(8, 21, 16, 0.78) 0%, rgba(8, 21, 16, 0.54) 45%, rgba(8, 21, 16, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 21, 16, 0.18) 0%, rgba(8, 21, 16, 0.34) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: clamp(680px, 82vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(42px, 6vw, 70px) 0 clamp(58px, 8vw, 96px);
}

.hero__copy {
  max-width: 610px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.form-copy h2,
.intro-grid h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(3.35rem, 7vw, 6.7rem);
  font-weight: 800;
  max-width: 8ch;
}

.hero__statement {
  margin: 1.05rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.22;
  max-width: 16ch;
}

.hero__text {
  max-width: 560px;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.65rem;
}

.territory-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 360px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  line-height: 1.35;
  padding: 0.62rem 0.78rem;
  backdrop-filter: blur(8px);
}

.territory-note span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  padding: 0.86rem 1.18rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.button--primary,
.button--submit {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.button--primary {
  min-width: 168px;
}

.button--primary:hover,
.button--submit:hover {
  background: #9f553f;
}

.intro-band {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: start;
}

.intro-grid h2,
.form-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro-grid p,
.form-copy p,
.boundary-copy p {
  color: var(--muted);
}

.boundary-copy {
  border-left: 4px solid var(--clay);
  padding-left: 24px;
}

.boundary-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.boundary-copy p {
  margin: 0;
}

.form-section {
  padding: 76px 0 88px;
  background:
    linear-gradient(180deg, #fff 0%, #fff 58%, #f7f9f6 100%);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: start;
}

.form-copy {
  position: sticky;
  top: 32px;
}

.form-copy p {
  margin-top: 1rem;
  max-width: 520px;
}

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.message-list {
  margin-bottom: 1.25rem;
}

.message {
  margin: 0;
  border-radius: 7px;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.message--success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #b8ddc1;
}

form {
  display: grid;
  gap: 1.15rem;
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

label {
  color: var(--ink);
  font-weight: 800;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfcac1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
}

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

input::placeholder,
textarea::placeholder {
  color: #78857d;
}

.help-text,
.form-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.errorlist {
  margin: 0;
  padding: 0;
  color: var(--error);
  list-style: none;
  font-weight: 700;
}

.form-errors {
  border-left: 4px solid var(--error);
  background: #fff4f2;
  color: var(--error);
  padding: 0.8rem 1rem;
}

.button--submit {
  width: 100%;
  margin-top: 0.25rem;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero,
  .hero__content {
    min-height: 720px;
  }

  .hero__image {
    background-position: 62% center;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(7, 24, 18, 0.86) 0%, rgba(7, 24, 18, 0.72) 56%, rgba(7, 24, 18, 0.5) 100%),
      linear-gradient(90deg, rgba(7, 24, 18, 0.42), rgba(7, 24, 18, 0.12));
  }

  .hero__content {
    padding: 54px 0 46px;
  }

  .hero__copy {
    max-width: 570px;
  }

  .hero h1 {
    max-width: 7.5ch;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 380px;
  }

  .territory-note {
    max-width: none;
  }

  .intro-grid,
  .form-layout,
  .field-group {
    grid-template-columns: 1fr;
  }

  .form-layout {
    gap: 30px;
  }

  .form-copy {
    position: static;
  }

  .intro-band,
  .form-section {
    padding: 44px 0;
  }
}

@media (max-width: 480px) {
  .hero,
  .hero__content {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero__statement {
    font-size: 1.42rem;
  }

  .hero__text {
    font-size: 1rem;
    line-height: 1.62;
  }

  .button--primary {
    width: 100%;
  }

  .territory-note {
    font-size: 0.94rem;
  }

  .form-panel {
    box-shadow: none;
  }
}
