/* XD Live: small additions on top of Tailwind */

html { scroll-behavior: smooth; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: #F5B700;
  color: #0F0F14;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; outline: 3px solid #0F0F14; outline-offset: 2px; }

#main:focus { outline: none; }

/* Navigation */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #D4D4DA;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: #F5B700; }
.nav-link:focus-visible,
.mobile-link:focus-visible,
.footer-link:focus-visible,
.modal-close:focus-visible,
.legal-body a:focus-visible {
  outline: 2px solid #F5B700;
  outline-offset: 2px;
}

.mobile-link {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: #F7F5F2;
}
.mobile-link:hover { background: rgba(255, 255, 255, 0.06); color: #F5B700; }

/* Section labels */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #BE123C;
}
.eyebrow-dark { color: #F5B700; }

/* Service cards */
.service-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid #2A2A35;
  background: linear-gradient(160deg, #1A1A22 0%, #13131A 100%);
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 2rem;
  width: 3rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #E11D48, #F5B700);
}
.service-card:hover { border-color: rgba(245, 183, 0, 0.45); transform: translateY(-2px); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: rgba(225, 29, 72, 0.14);
  color: #F5B700;
}

/* Footer */
.footer-link {
  color: #B4B4BE;
  text-align: left;
  border-radius: 0.25rem;
  transition: color 0.15s ease;
}
.footer-link:hover { color: #F5B700; }

/* Hero beams: gentle sway */
.hero-beams .beam { transform-box: view-box; }
.hero-beams .beam-a { transform-origin: 205px 0; animation: sway 9s ease-in-out infinite alternate; }
.hero-beams .beam-b { transform-origin: 1035px 0; animation: sway 11s ease-in-out infinite alternate-reverse; }
.hero-beams .beam-c { transform-origin: 610px 0; animation: sway 13s ease-in-out infinite alternate; }
@keyframes sway {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(3deg); }
}

/* Legal modals */
.legal-modal {
  width: min(100% - 2rem, 46rem);
  max-height: min(100vh - 2rem, 52rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: #F7F5F2;
  color: #0F0F14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.legal-modal::backdrop { background: rgba(15, 15, 20, 0.75); backdrop-filter: blur(3px); }
.legal-modal-inner { display: flex; flex-direction: column; max-height: inherit; }
.legal-modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 15, 20, 0.1);
  background: #F7F5F2;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #0F0F14;
  transition: background-color 0.15s ease;
}
.modal-close:hover { background: rgba(15, 15, 20, 0.08); }
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.65;
  color: rgba(15, 15, 20, 0.85);
}
.legal-body h3 {
  margin-top: 1.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0F0F14;
}
.legal-body p { margin-top: 0.6rem; }
.legal-body ul { margin-top: 0.6rem; padding-left: 1.25rem; list-style: disc; }
.legal-body li { margin-top: 0.35rem; }
.legal-body a { color: #BE123C; text-decoration: underline; text-underline-offset: 2px; }

body.modal-open { overflow: hidden; }

@media (min-width: 640px) {
  .legal-modal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.5rem 2rem 2.5rem; }
}

/* Respect reduced motion */
@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;
  }
  .hero-beams .beam { animation: none !important; }
  .service-card:hover { transform: none; }
}
