/* Important layer overrides legacy page-specific heading font shorthands. */
@layer heading-typography {
  :is(h1, h2, h3, h4, h5, h6),
  :is(h1, h2, h3, h4, h5, h6) :is(span, a, strong, b, em) {
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 0.1px !important;
    font-weight: 800 !important;
  }

  /* Section titles are uppercase site-wide. */
  :is(h1, h2),
  :is(h1, h2) :is(span, a, strong, b, em) {
    text-transform: uppercase !important;
  }
}

@layer paragraph-typography {
  p {
    font-size: 15px !important;
  }
}

/* Floating call + WhatsApp buttons: stacked as a pair, centred on the right edge. */
html body .call-float,
html body .whatsapp-float {
  top: 50% !important;
  bottom: auto !important;
}
html body .call-float { margin-top: -66px !important; }
html body .whatsapp-float { margin-top: 6px !important; }
@media (max-width: 768px) {
  html body .call-float { margin-top: -56px !important; }
  html body .whatsapp-float { margin-top: 6px !important; }
}

/* Floating action buttons: refined pair with white ring, soft shadow, pulse and hover label. */
html body .call-float,
html body .whatsapp-float {
  right: calc(18px + env(safe-area-inset-right, 0px)) !important;
  width: 54px !important;
  height: 54px !important;
  font-size: 23px !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  color: #fff !important;
  animation: none !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
html body .call-float {
  margin-top: -64px !important;
  background: linear-gradient(145deg, #ff2a4d 0%, #c8092b 100%) !important;
  box-shadow: 0 8px 20px #c8092b4d, 0 2px 6px #0d1b3a26 !important;
}
html body .whatsapp-float {
  margin-top: 6px !important;
  font-size: 28px !important;
  background: linear-gradient(145deg, #3be07f 0%, #12a150 100%) !important;
  box-shadow: 0 8px 20px #12a1504d, 0 2px 6px #0d1b3a26 !important;
}
html body .call-float:hover,
html body .whatsapp-float:hover { transform: translateX(-3px) scale(1.06) !important; }
html body .call-float:hover { box-shadow: 0 12px 26px #c8092b66, 0 2px 8px #0d1b3a26 !important; }
html body .whatsapp-float:hover { box-shadow: 0 12px 26px #12a15066, 0 2px 8px #0d1b3a26 !important; }
html body .call-float:focus-visible,
html body .whatsapp-float:focus-visible { outline: 3px solid #0d1b3a !important; outline-offset: 3px !important; }

/* One soft pulse ring on WhatsApp only. */
html body .whatsapp-float::before {
  inset: -2px !important;
  border: 2px solid #25d36680 !important;
  animation: fabRing 2.6s ease-out infinite !important;
  pointer-events: none;
}
@keyframes fabRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* Hover label (desktop with a mouse only). */
@media (hover: hover) and (min-width: 769px) {
  html body .call-float::after,
  html body .whatsapp-float::after {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    padding: 7px 12px;
    border-radius: 8px;
    background: #0d1b3a;
    color: #fff;
    font: 600 12px/1 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  html body .call-float::after { content: 'Call us'; }
  html body .whatsapp-float::after { content: 'Chat on WhatsApp'; }
  html body .call-float:hover::after,
  html body .whatsapp-float:hover::after,
  html body .call-float:focus-visible::after,
  html body .whatsapp-float:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@media (max-width: 768px) {
  html body .call-float,
  html body .whatsapp-float { right: calc(12px + env(safe-area-inset-right, 0px)) !important; width: 46px !important; height: 46px !important; font-size: 19px !important; }
  html body .whatsapp-float { font-size: 24px !important; }
  html body .call-float { margin-top: -52px !important; }
  html body .whatsapp-float { margin-top: 6px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .whatsapp-float::before { animation: none !important; display: none; }
}
