/* cta.css — Blueprint background CTA section with contact form */

.cta {
  position: relative;
  background: var(--blueprint-bg);
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Blueprint grid pattern */
.cta__blueprint-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(var(--blueprint-line-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line-fine) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
}

/* Construction circles */
.cta__circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__circles svg {
  width: 100%;
  height: 100%;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.cta__logo {
  margin-inline: auto;
  margin-bottom: 2rem;
  height: 40px;
  width: auto;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta__sub {
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ── Form ── */
.cta__form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cta__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cta__field--full {
  grid-column: 1 / -1;
}

.cta__field label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.cta__optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.cta__field input,
.cta__field textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-button);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.cta__field input::placeholder,
.cta__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cta__field input:focus,
.cta__field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.cta__field textarea {
  resize: vertical;
  min-height: 100px;
}

.cta__submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--blue);
  background: white;
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform 100ms ease;
  margin-top: 1rem;
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .cta__submit:hover {
    background: var(--off-white);
  }
}

.cta__submit:active {
  transform: scale(0.97);
}

/* ── Footer ── */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 1.5rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer__copy {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 200ms var(--spring-ease);
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cta__form-row {
    grid-template-columns: 1fr;
  }

  .cta__circles {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
