footer.site {
  background: var(--maroon);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
footer .brand img { height: 48px; max-width: 240px; }
.foot-blurb { margin-top: 16px; max-width: 36ch; }
.foot-title { color: #fff; display: block; margin-bottom: 12px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a:hover { color: var(--orange); }
.copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
}
.socials a:hover { background: var(--orange); }

.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #09af09;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 12px 28px rgba(9, 175, 9, 0.35);
  z-index: 60;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(138, 21, 53, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  width: min(860px, 100%);
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  max-height: min(92vh, 720px);
  margin: auto;
}
.modal-side {
  background: var(--cream);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
}
.modal-side h3 { font-size: 22px; color: var(--maroon); }
.modal-side-copy { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--sand);
  background: #fff;
  color: var(--maroon);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chip.active,
.chip:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.modal-form { padding: 22px 64px 28px 28px; overflow: auto; }
.modal-form textarea { min-height: 88px; }
.modal-intro { margin-bottom: 22px; padding-top: 8px; }
.modal-intro h3 {
  font-size: 24px;
  color: var(--maroon);
  margin: 12px 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.modal-intro .lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42ch;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  color: var(--maroon);
  font-size: 16px;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(138, 21, 53, 0.12);
}
.mini-console {
  background: #3a0c18;
  color: #ffe8d6;
  border-radius: 14px;
  padding: 12px;
  font-size: 11px;
  min-height: 110px;
  font-family: Inter, monospace;
  white-space: pre-wrap;
}

body.modal-open { overflow: hidden; }
body.modal-open .header { z-index: 100; }

@media (max-width: 980px) {
  .foot-grid,
  .modal { grid-template-columns: 1fr; }
  .modal-overlay { align-items: flex-start; padding: 12px; }
  .modal { max-height: none; overflow: visible; }
  .modal-side { padding: 18px 18px 12px; gap: 10px; }
  .modal-side .robot { width: 72px; }
  .modal-form { padding: 22px 58px 22px 22px; }
}
