/* Brand display fonts — self-hosted under /public/fonts (sovereignty-compliant, no external CDN) */
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/cairo-900-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/cairo-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/quicksand-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}

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

body {
  font-family: 'Almarai', 'Tajawal', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

:root {
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

input,
button,
select,
textarea {
  font-family: 'Almarai', 'Tajawal', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
}

@keyframes subtle-pulse-pro {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-subtle-pulse-pro {
  animation: subtle-pulse-pro 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 240px;
  max-width: min(240px, 90vw);
  background-color: #2c3e50;
  color: #fff;
  text-align: right;
  border-radius: 8px;
  padding: 12px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  inset-inline-start: 50%;
  translate: -50% 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
