/* Belhadj Rad Ltd - small additions to Tailwind */

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

/* Focus states */
.focus-ring:focus-visible {
  outline: 3px solid #0F4C75;
  outline-offset: 3px;
}
.focus-ring-light:focus-visible {
  outline: 3px solid #2BB3A3;
  outline-offset: 3px;
}
#main:focus { outline: none; }

/* Offset anchored sections below the sticky header */
.scroll-target,
#top {
  scroll-margin-top: 5rem;
}

/* Hero background (CSS only, no images) */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(43, 179, 163, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(43, 179, 163, 0.12), transparent 70%),
    linear-gradient(135deg, #10212F 0%, #0F4C75 62%, #135d86 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
  pointer-events: none;
}

/* Modals */
.modal {
  width: min(42rem, calc(100% - 2rem));
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  color: #10212F;
  box-shadow: 0 25px 60px rgba(16, 33, 47, 0.35);
}
.modal::backdrop {
  background: rgba(16, 33, 47, 0.65);
}
.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 0.5rem;
  color: #0F4C75;
}
.modal-close:hover { background: #F4F8FB; }
.modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.75rem;
  font-size: 0.975rem;
  line-height: 1.65;
  color: #334155;
}
.modal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0F4C75;
}
.modal-body p + p { margin-top: 0.75rem; }
.modal-body ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.modal-body li + li { margin-top: 0.35rem; }
body.modal-open { overflow: hidden; }

/* Respect reduced-motion preferences */
@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;
  }
}
[tabindex="-1"]:focus { outline: none; }
