/* Modern Building Development Pty Ltd: small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5rem;
}

/* Blueprint-style grid used behind the hero */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(245, 243, 239, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 239, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Clearly marked placeholders for details still to be supplied */
.placeholder-chip {
  display: inline-block;
  border: 1px dashed #9A5B13;
  background: #FDF6EA;
  color: #6B3F0A;
  padding: 0.05rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-weight: 600;
  line-height: 1.6;
}

.placeholder-chip--dark {
  border-color: #F2B866;
  background: rgba(242, 184, 102, 0.08);
  color: #F2B866;
}

/* Modals */
dialog.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #1A1D21;
  background: #FFFFFF;
  box-shadow: 0 25px 50px -12px rgba(26, 29, 33, 0.45);
}

dialog.legal-modal::backdrop {
  background: rgba(26, 29, 33, 0.72);
}

dialog.legal-modal h3 {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1F3A5F;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

dialog.legal-modal p,
dialog.legal-modal li {
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

dialog.legal-modal ul {
  list-style: disc;
  padding-left: 1.25rem;
}

dialog.legal-modal a {
  color: #1F3A5F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}

/* Form error state */
.input-invalid {
  border-color: #B42318 !important;
  box-shadow: 0 0 0 1px #B42318;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
