/* ------------------------------------------------------------------
   MedLance shared styles — loaded after css/tailwind.css
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'AZONIX';
  src: url('../fonts/Azonix.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body { font-family: 'Lato', sans-serif; }
.font-heading { font-family: 'AZONIX', 'Lato', sans-serif; }

:root {
  --primary-color: #1D1D4F;
  --gold-color: #F4AC1C;
}

/* brand utilities Tailwind does not generate */
.bg-primary { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }
.bg-gold { background-color: var(--gold-color); }
.text-gold { color: var(--gold-color); }
.border-gold { border-color: var(--gold-color); }
.from-primary { --tw-gradient-from: var(--primary-color); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 29, 79, 0)); }
.to-primary-dark { --tw-gradient-to: #15153a; }

/* gold where Tailwind yellow is used (brand gold #F4AC1C) */
.bg-yellow-500 { background-color: var(--gold-color); }
.hover\:bg-yellow-600:hover { background-color: #d68e0d; }
.text-blue-900 { color: var(--primary-color); }
.hover\:text-blue-900:hover { color: var(--primary-color); }

/* gold focus ring — Tailwind has no `gold` color */
.ring-ring { --tw-ring-color: var(--gold-color); }
.focus\:ring-gold:focus { --tw-ring-color: var(--gold-color); }

/* ---------- behavior ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 5rem; }

:focus-visible { outline: 2px solid var(--gold-color); outline-offset: 2px; }

/* ---------- header on scroll ---------- */
header { transition: box-shadow .3s ease, background-color .3s ease; }
header.is-scrolled {
  box-shadow: 0 8px 26px rgba(29, 29, 79, .16);
  background-color: rgba(255, 255, 255, .96);
}

/* ---------- hero ---------- */
@keyframes ml-blob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .5; }
  50%      { transform: translate3d(28px, -22px, 0) scale(1.08); opacity: .9; }
}
.hero-blob { animation: ml-blob 16s ease-in-out infinite; }
.hero-blob-2 { animation-delay: -8s; }

@keyframes ml-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-animate { animation: ml-fade-up .85s cubic-bezier(.22, 1, .36, 1) both; }
.hero-delay-1 { animation-delay: .12s; }
.hero-delay-2 { animation-delay: .26s; }
.hero-delay-3 { animation-delay: .4s; }

/* ---------- scroll reveal (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- tinted chips & accents (custom colours + opacity) ---------- */
.bg-gold\/10 { background-color: rgba(244, 172, 28, .1); }
.bg-primary\/10 { background-color: rgba(29, 29, 79, .1); }
.border-gold\/60 { border-color: rgba(244, 172, 28, .6); }
.chip-gold { background-color: rgba(244, 172, 28, .12); }
.chip-primary { background-color: rgba(29, 29, 79, .07); }
.timeline-line { background-image: linear-gradient(to right, rgba(244, 172, 28, .15), rgba(244, 172, 28, .95), rgba(244, 172, 28, .15)); }

/* ---------- terms & conditions ---------- */
.terms-section ul { list-style: none; }
.terms-section ul li { position: relative; padding-left: 1.5rem; }
.terms-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: .55rem;
  height: .55rem;
  border-radius: 9999px;
  background: var(--gold-color);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}