/* Invest Huntsville — landing page
   Palette: Rocket City night navy + warm copper, paper cream. */

:root {
  --navy: #0b1528;
  --navy-deep: #070e1a;
  --navy-mid: #16243d;
  --navy-soft: #1c2d4a;
  --copper: #c4843a;
  --copper-deep: #a86b28;
  --copper-bright: #e0a45a;
  --cream: #f3ede3;
  --cream-dark: #e7dfd2;
  --paper: #fbf8f3;
  --ink: #1a1714;
  --muted: #5c564c;
  --line: rgba(26, 23, 20, 0.12);
  --line-strong: rgba(26, 23, 20, 0.22);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Figtree", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow-form: 0 18px 50px rgba(7, 14, 26, 0.35);
  --content: 72rem;
  --space: clamp(1.25rem, 4vw, 2.25rem);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--copper-deep);
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 1.15rem var(--space);
}

.header-inner,
.wrap {
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
}

.logo:hover {
  color: var(--cream);
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  position: relative;
  color: var(--cream);
  min-height: 28rem;
  display: flex;
  align-items: flex-end;
  padding: 6.25rem var(--space) 2.5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 14, 26, 0.42) 0%, rgba(7, 14, 26, 0.18) 28%, rgba(7, 14, 26, 0.55) 62%, rgba(7, 14, 26, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 14, 26, 0.55) 0%, rgba(7, 14, 26, 0.12) 58%, rgba(7, 14, 26, 0.28) 100%);
}

.hero-inner {
  width: min(var(--content), 100%);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

.hero-copy {
  max-width: 38rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--copper);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.15rem, 6.4vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fbf8f3;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #f0e4d0;
}

.lede {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(243, 237, 227, 0.86);
  max-width: 34rem;
}

.hero-form-wrap {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: var(--shadow-form);
  max-width: 28.5rem;
  width: 100%;
}

.form-title {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.form-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.signup {
  display: grid;
  gap: 0.75rem;
}

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

.field label {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.req {
  color: var(--copper-deep);
}

.field input,
.field select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='none' stroke='%231a1714' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
}

.field input:hover,
.field select:hover {
  border-color: #9a9080;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--copper-deep);
  box-shadow: 0 0 0 3px rgba(196, 132, 58, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: var(--copper-deep);
  color: #fffaf5;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #8f591f;
  color: #fffaf5;
}

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

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fineprint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 4.25rem var(--space);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.cta h2,
.thanks-card h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-head p,
.cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.stat-line {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  border-radius: 12px;
  padding: 1.35rem 1.3rem 1.4rem;
}

.card-num {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: #3d3933;
  font-size: 0.98rem;
}

.card p + p {
  margin-top: 0.7rem;
}

/* What you get */
.perks {
  display: grid;
  gap: 1.25rem;
}

.perk {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 0.25rem 0;
}

.perk-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--copper-deep);
}

.perk h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

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

/* CTA band */
.cta {
  background: var(--navy);
  color: var(--cream);
  padding: 4.25rem var(--space);
}

.cta-grid {
  width: min(var(--content), 100%);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

.cta h2 {
  color: #fbf8f3;
}

.cta-copy p {
  color: rgba(243, 237, 227, 0.78);
}

.cta .hero-form-wrap {
  max-width: 32rem;
  box-shadow: none;
}

/* Footnotes + footer */
.sources {
  padding: 2.5rem var(--space) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--cream-dark);
}

.sources h2 {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sources ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #4d483f;
}

.sources li {
  margin: 0 0 0.4rem;
}

.sources a {
  color: inherit;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(243, 237, 227, 0.72);
  padding: 2.1rem var(--space) 2.4rem;
  font-size: 0.88rem;
}

.footer-inner {
  width: min(var(--content), 100%);
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}

.site-footer p {
  margin: 0;
  max-width: 46rem;
  line-height: 1.5;
}

.copyright {
  color: var(--cream);
  font-weight: 600;
}

/* Thank-you */
.thanks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--cream);
}

.thanks .site-header {
  position: relative;
}

.thanks-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem var(--space) 4rem;
}

.thanks-card {
  width: min(36rem, 100%);
  margin-inline: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 2.1rem 1.7rem;
  border-top: 3px solid var(--copper);
}

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

.thanks-card .btn {
  margin-top: 0.25rem;
}

sup, .fn {
  font-size: 0.7em;
  font-weight: 650;
  line-height: 0;
  position: relative;
  top: -0.35em;
  margin-left: 0.08em;
}

sup a,
.fn a {
  color: var(--copper-deep);
  text-decoration: none;
}

sup a:hover,
.fn a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .signup-hero,
  .signup-cta {
    grid-template-columns: 1fr 1fr;
  }

  .signup-hero .field-interest,
  .signup-cta .field-interest,
  .signup-hero .form-actions,
  .signup-cta .form-actions {
    grid-column: 1 / -1;
  }

  .hero-form-wrap {
    padding: 1.45rem 1.45rem 1.25rem;
  }
}

@media (min-width: 860px) {
  .hero {
    align-items: center;
    padding: 7.5rem var(--space) 4.5rem;
    min-height: 42rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 24.5rem);
    align-items: end;
    gap: 3rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .perks {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .perk {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    align-items: center;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
