
/* =========================================================
   RAJH DEMO — Shared sticky demo toolbar
   File: /assets/rajh-demo.css
   ========================================================= */

body.rajh-demo-enabled {
  --rajh-demo-blue: #1769e8;
  --rajh-demo-ink: #172b49;
  --rajh-demo-banner-height: 0px;
}

/* ---------- Watermark ---------- */

body.rajh-demo-enabled::after {
  content: "RAJ DEMO";
  position: fixed;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 100vw;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(55px, 9vw, 125px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--rajh-demo-blue);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}

/* ---------- Fixed top toolbar ---------- */

.rajh-demo-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px 14px;
  direction: rtl;
  box-sizing: border-box;
  background:
    radial-gradient(
      ellipse at 15% 0%,
      rgb(145 190 255 / 16%),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 85% 100%,
      rgb(205 180 255 / 14%),
      transparent 48%
    ),
    rgb(245 249 255 / 97%);
  border-bottom: 1px solid rgb(100 140 190 / 16%);
  box-shadow: 0 5px 18px rgb(35 61 99 / 8%);
  font-family: inherit;
  box-sizing: border-box;
}

/* Reserves exactly the toolbar's height in normal page flow */
.rajh-demo-spacer {
  display: block;
  width: 100%;
  height: var(--rajh-demo-banner-height, 0px);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

/* ---------- Glass pill ---------- */

.rajh-demo-cta {
  position: relative;
  width: 100%;
  max-width: 1100px;
  min-height: 76px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  direction: rtl;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 90%);
  background:
    radial-gradient(
      ellipse at 12% 0%,
      rgb(133 186 255 / 28%),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 88% 100%,
      rgb(205 171 255 / 25%),
      transparent 48%
    ),
    rgb(255 255 255 / 88%);
  color: var(--rajh-demo-ink);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
  box-shadow:
    0 8px 30px rgb(43 79 130 / 10%),
    0 2px 8px rgb(43 79 130 / 5%),
    inset 0 1px 0 rgb(255 255 255 / 95%);
}

/* ---------- Contact button ---------- */

.rajh-demo-contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgb(23 105 232 / 12%);
  border-radius: 999px;
  background: linear-gradient(135deg, #2478f2, #1559cf);
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgb(23 105 232 / 22%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.rajh-demo-contact:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 19px rgb(23 105 232 / 28%);
}

.rajh-demo-contact:focus-visible,
.rajh-demo-action:focus-visible {
  outline: 3px solid rgb(23 105 232 / 40%);
  outline-offset: 3px;
}

.rajh-demo-contact svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* ---------- Center message ---------- */

.rajh-demo-message {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  color: #263b59;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  line-height: 1.9;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ---------- Contact/social icons ---------- */

.rajh-demo-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.rajh-demo-action {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgb(40 74 119 / 10%);
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  color: #244365 !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgb(35 61 99 / 7%);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.rajh-demo-action:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 6px 15px rgb(35 61 99 / 13%);
}

.rajh-demo-action svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ---------- Tablet ---------- */

@media (max-width: 760px) {
  .rajh-demo-shell {
    padding: 9px 10px 12px;
  }

  .rajh-demo-cta {
    min-height: 0;
    padding: 12px;
    gap: 12px;
    border-radius: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .rajh-demo-contact {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .rajh-demo-message {
    order: 3;
    flex: 1 0 100%;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.8;
  }

  .rajh-demo-actions {
    gap: 7px;
  }

  .rajh-demo-action {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  body.rajh-demo-enabled::after {
    font-size: clamp(48px, 10vw, 90px);
    letter-spacing: 0.05em;
  }
}

/* ---------- Small mobile ---------- */

@media (max-width: 380px) {
  .rajh-demo-shell {
    padding: 8px 7px 10px;
  }

  .rajh-demo-cta {
    padding: 10px;
    gap: 9px;
    border-radius: 20px;
  }

  .rajh-demo-contact {
    min-height: 39px;
    padding: 0 12px;
    gap: 6px;
    font-size: 12px;
  }

  .rajh-demo-actions {
    gap: 5px;
  }

  .rajh-demo-action {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .rajh-demo-action svg {
    width: 18px;
    height: 18px;
  }

  .rajh-demo-message {
    font-size: 12px;
  }

  body.rajh-demo-enabled::after {
    font-size: 42px;
    letter-spacing: 0.04em;
  }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .rajh-demo-contact,
  .rajh-demo-action {
    transition: none;
  }
}
