/* CUBE DESIGN AND CONSTRUCTION PTY LTD - small additions on top of Tailwind */

html {
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid #D4842A;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Blueprint-style grid used behind the hero */
.blueprint {
  background-color: #1F3A4D;
  background-image:
    linear-gradient(rgba(245, 243, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 239, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 75% 40%, rgba(212, 132, 42, 0.16), transparent 60%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}

/* Clearly marked placeholders for details the company still has to supply */
.ph {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px dashed #D4842A;
  background: rgba(212, 132, 42, 0.1);
  border-radius: 0.375rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.9em;
  line-height: 1.5;
}

.ph-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #D4842A;
  color: #15191D;
  border-radius: 0.25rem;
  padding: 0 0.35rem;
}

/* Native dialog backdrop (Tailwind's backdrop: variant also applied) */
dialog::backdrop {
  background: rgba(21, 25, 29, 0.72);
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

.legal h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1F3A4D;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.legal p,
.legal li {
  line-height: 1.65;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

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

[tabindex="-1"]:focus {
  outline: none;
}
