/* GORD BEAUTY LTD - small additions to Tailwind */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Hero background: soft plum and champagne glow */
.hero-glow {
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgba(201, 162, 126, 0.28), transparent 60%),
    radial-gradient(50rem 35rem at 0% 100%, rgba(107, 58, 75, 0.55), transparent 65%),
    linear-gradient(160deg, #2A1F24 0%, #3d2730 55%, #6B3A4B 100%);
}

.soft-band {
  background: linear-gradient(180deg, #FAF5F2 0%, #f3e9e3 100%);
}

/* Legal dialogs */
.legal-dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #FAF5F2;
  color: #2A1F24;
  box-shadow: 0 30px 80px rgba(42, 31, 36, 0.35);
}

.legal-dialog::backdrop {
  background: rgba(42, 31, 36, 0.7);
}

.legal-dialog h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #6B3A4B;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

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

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

.legal-dialog a {
  color: #6B3A4B;
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

/* Gentle reveal animation */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Sections focused after in-page navigation need no outline */
[tabindex="-1"]:focus {
  outline: none;
}
