/* ---------- buttons shared by the contact card ---------- */
.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 2px solid currentColor;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}
.btn.solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  font-weight: 500;
}
.btn svg {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}
.contact-card .btn:focus-visible {
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 5px var(--signal);
  outline: none;
}

/* ---------- book a call ---------- */
.contact {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding-block: 80px;
  scroll-margin-top: 24px;
  --ink-mute: rgba(0, 0, 0, 0.6);
}
.contact-inner {
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 487px) minmax(0, 1fr);
  gap: 50px;
  align-items: stretch;
}
.contact-photo {
  margin: 0;
  min-width: 0;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
}
.contact-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-card {
  box-sizing: border-box;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.contact-card .btn {
  color: var(--ink);
}
.contact-card .btn.solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.contact-card .btn.solid:hover {
  background: #595959; /* white text on this is 7:1 */
  color: var(--paper);
}
.contact-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-head .eyebrow {
  margin: 0;
  font-family: var(--font-utility);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-mute);
}
.contact-head h2 {
  margin: 0;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.25;
}
.contact-head p {
  margin: 8px 0 0;
  font-family: var(--font-utility);
  font-size: 14px;
  line-height: 1.4;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label,
.field .u {
  font-family: var(--font-utility);
  font-size: 14px;
  line-height: 1.4;
}
.field input,
.field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
}
.field select {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px 22px;
}
.field select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  z-index: 70;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-utility);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.4s var(--ease),
    visibility 0s linear 0.4s;
}
.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.25s ease,
    transform 0.4s var(--ease),
    visibility 0s;
}

@media (max-width: 800px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-photo {
    width: min(100%, 487px);
    aspect-ratio: 4 / 5;
  }
  .contact-card {
    padding: 28px;
  }
  .contact-head p {
    max-width: none;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
