/* SX HEALTH LTD - small additions on top of Tailwind */

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

section[id], #registered-office { scroll-margin-top: 5rem; }

.hero-bg {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(233, 162, 59, 0.14), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(31, 111, 120, 0.14), transparent 60%),
    #F4F8F7;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #14323A;
  color: #fff;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #E9A23B;
  outline-offset: 3px;
  border-radius: 0.375rem;
}
#main:focus, #registered-office:focus { outline: none; }
#registered-office:focus-visible { outline: 3px solid #E9A23B; outline-offset: 4px; }

/* Navigation */
.nav-link {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  color: #14323A;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: #F4F8F7; color: #1F6F78; }

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(233, 162, 59, 0.6);
  text-underline-offset: 4px;
}
.footer-link:hover { color: #fff; text-decoration-color: #E9A23B; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid rgba(20, 50, 58, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(20, 50, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(20, 50, 58, 0.25); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: #E8F1F1;
  color: #1F6F78;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }

/* Key facts */
.fact { background: #14323A; padding: 1.25rem 1.5rem; }
.fact dt { font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.fact dd { margin-top: 0.35rem; font-weight: 600; color: #fff; font-size: 1.0625rem; }

/* Legal modals */
.legal-modal {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #14323A;
  background: #fff;
  box-shadow: 0 25px 60px -15px rgba(20, 50, 58, 0.45);
  overflow: hidden;
}
.legal-modal[open] { display: flex; flex-direction: column; }
.legal-modal::backdrop { background: rgba(20, 50, 58, 0.6); }

.legal-body {
  overflow-y: auto;
  padding: 1.5rem;
  line-height: 1.65;
  color: rgba(20, 50, 58, 0.88);
}
.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #14323A;
}
.legal-body p + p { margin-top: 0.75rem; }
.legal-body ul { margin: 0.5rem 0 0.75rem 1.25rem; list-style: disc; }
.legal-body li + li { margin-top: 0.35rem; }
.legal-body a { color: #1F6F78; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  color: #14323A;
}
.modal-close:hover { background: #F4F8F7; }

body.modal-open { overflow: hidden; }

@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;
  }
  .card:hover { transform: none; }
}
