/* ============================================================
   APEXAIR — Global Stylesheet
   Deep Charcoal / Stark White / High-Alert Red system
   ============================================================ */

:root {
  --charcoal: #1A1A1A;
  --charcoal-soft: #242424;
  --charcoal-line: #2E2E2E;
  --white: #FAFAFA;
  --alert: #D32F2F;
  --alert-bright: #FF4D4D;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--charcoal);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--alert); border-radius: 6px; }

/* ---------- Hero stagger reveal ---------- */
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.reveal-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .35s; }
.delay-3 { animation-delay: .55s; }
.delay-4 { animation-delay: .75s; }

/* ---------- Scroll-triggered reveal (JS toggles .is-visible) ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Live 24/7 status ping ---------- */
.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--alert-bright);
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--alert-bright);
  animation: pingRing 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes pingRing {
  0%   { transform: scale(1); opacity: 0.75; }
  75%  { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Magnetic CTA hover ---------- */
.cta-primary {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(211,47,47,0.55);
}

/* ---------- Before/After slider ---------- */
.ba-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}
.ba-before-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* width is locked to wrap's full width via the parent's negative-offset trick */
  position: absolute;
  inset: 0;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--alert);
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(211,47,47,0.7);
}
.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--alert);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

/* ---------- Floating booking widget ---------- */
.booking-float {
  animation: floatSlow 5s ease-in-out infinite;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sticky call bar pulse (emergency page) ---------- */
.dial-pulse {
  animation: dialPulse 1.8s ease-in-out infinite;
}
@keyframes dialPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.55); }
  50% { box-shadow: 0 0 0 14px rgba(211,47,47,0); }
}

/* ---------- Tab underline ---------- */
.tab-btn[aria-selected="true"] {
  color: var(--white);
  border-color: var(--alert);
}
.tab-btn {
  border-color: transparent;
}

/* ---------- Marquee for trust strip ---------- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

/* ---------- Nav backdrop on scroll ---------- */
#siteHeader {
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}
#siteHeader.scrolled {
  background-color: rgba(26,26,26,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
