/* OSF ART LTD: custom styles (complements Tailwind CDN) */

:root {
  --neon: #FF2D55;
  --neon-deep: #D10F3A;
  --glow: #00E5FF;
  --ink: #0B0B10;
  --ink-soft: #14141C;
  --paper: #F5F3EE;
  --mute: #8A8A99;
  --mute-dark: #55555F;
}

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

#main:focus,
#company-details:focus {
  outline: none;
}

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

/* Shared focus ring */
.nav-link:focus-visible,
.mobile-link:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.focus-chip:focus-visible,
.footer-link:focus-visible,
.legal-btn:focus-visible,
.dialog-close:focus-visible,
.legal-body a:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

/* Navigation */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(245, 243, 238, 0.82);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-link {
  display: block;
  padding: 0.875rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
}
.mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--neon);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(255, 45, 85, 0.6);
}
.btn-primary:hover {
  background: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid rgba(245, 243, 238, 0.28);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--glow);
  color: var(--glow);
}

/* Service cards */
.card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 45, 85, 0.5);
  transform: translateY(-2px);
}
@media (min-width: 1024px) {
  .card { padding: 2.5rem; }
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  color: var(--neon);
  background: rgba(255, 45, 85, 0.1);
  border: 1px solid rgba(255, 45, 85, 0.3);
}
.card:nth-child(even) .card-icon {
  color: var(--glow);
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Key facts chips */
.focus-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.focus-chip:hover {
  background: var(--glow);
  color: var(--ink);
}

/* Decorative glows */
.hero-glow {
  background:
    radial-gradient(40rem 28rem at 85% 20%, rgba(255, 45, 85, 0.16), transparent 70%),
    radial-gradient(30rem 24rem at 5% 90%, rgba(0, 229, 255, 0.10), transparent 70%);
}
.contact-glow {
  background:
    radial-gradient(36rem 22rem at 50% 0%, rgba(255, 45, 85, 0.14), transparent 70%),
    radial-gradient(30rem 20rem at 50% 100%, rgba(0, 229, 255, 0.08), transparent 70%);
}

/* Footer */
.footer-link {
  color: rgba(245, 243, 238, 0.75);
  border-radius: 0.25rem;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--glow);
}
.legal-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 243, 238, 0.22);
  color: rgba(245, 243, 238, 0.85);
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.legal-btn:hover {
  border-color: var(--neon);
  color: var(--paper);
}

/* Legal dialogs */
.legal-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: min(85vh, 52rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.legal-dialog[open] {
  display: flex;
  flex-direction: column;
}
.legal-dialog::backdrop {
  background: rgba(11, 11, 16, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(11, 11, 16, 0.12);
  background: var(--paper);
}
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: var(--ink);
  background: rgba(11, 11, 16, 0.06);
  transition: background-color 0.15s ease;
}
.dialog-close:hover {
  background: rgba(11, 11, 16, 0.14);
}
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.65;
  color: rgba(11, 11, 16, 0.85);
}
.legal-body h3 {
  margin-top: 1.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}
.legal-body p {
  margin-top: 0.5rem;
}
.legal-body ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-body li {
  margin-top: 0.375rem;
}
.legal-body a {
  color: var(--neon-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 640px) {
  .legal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.5rem 2rem 2.5rem; }
}

body.dialog-open {
  overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-primary:hover,
  .card:hover {
    transform: none;
  }
}
