/* ═══════════════════════════════════════════════════════════
   مؤسسة الأوائل — Custom CSS v4.0 (CRO Edition)
   Supplements Tailwind with animations, conversion UI,
   smart WhatsApp funnel, and psychological triggers
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ── Custom Scrollbar ── */
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:#F5F7FA}
::-webkit-scrollbar-thumb{background:#0F4C81;border-radius:3px}

/* ════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════ */
@keyframes fadeInUp{from{opacity:0;transform:translateY(36px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeInRight{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:translateX(0)}}
@keyframes fadeInLeft{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:translateX(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes pulseWa{0%{box-shadow:0 0 0 0 rgba(37,211,102,.6)}70%{box-shadow:0 0 0 22px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}
@keyframes pulseRed{0%{box-shadow:0 0 0 0 rgba(239,68,68,.5)}70%{box-shadow:0 0 0 16px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
@keyframes heroGlow{0%,100%{opacity:.25}50%{opacity:.55}}
@keyframes kenBurns{0%{transform:scale(1)}100%{transform:scale(1.1)}}
@keyframes pulseDot{0%,100%{transform:scale(1)}50%{transform:scale(1.5)}}
@keyframes pageIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes countUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes barReveal{from{width:0}to{width:var(--bar-w)}}
@keyframes urgencyPulse{0%,100%{opacity:1}50%{opacity:.7}}
@keyframes slideInBottom{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes slideInLeft{from{transform:translateX(-60px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes waFunnelIn{from{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes countdownBeat{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes badgePop{0%{transform:scale(0) rotate(-10deg)}70%{transform:scale(1.1) rotate(2deg)}100%{transform:scale(1) rotate(0)}}

/* Animation helper classes */
.anim-fade-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-fade-right { animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-fade-left { animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03) translateY(-2px); }
}
.btn-pulse {
  animation: pulseSubtle 3s ease-in-out infinite;
}

/* ════════════════════════════════════════
   SCROLL REVEAL (PREMIUM FLUID CUBIC GRADIENT)
   ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.rl { transform: translateX(-30px) scale(0.99); }
.reveal.rr { transform: translateX(30px) scale(0.99); }
.reveal.rs { transform: scale(0.92); }
.reveal.in {
  opacity: 1;
  transform: translate(0) scale(1);
}
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}
.d4{transition-delay:.32s}.d5{transition-delay:.4s}.d6{transition-delay:.48s}

/* ════════════════════════════════════════
   SPOTLIGHT EFFECT & SLIDER DRAGGER PULSE
   ════════════════════════════════════════ */
.svc-card {
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(15, 76, 129, 0.08), transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.svc-card:hover::after {
  opacity: 1;
}

@keyframes draggerPulseAc {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(15,76,129,.45);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 0 12px rgba(15,76,129,0);
  }
}
@keyframes draggerPulseRoof {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(39,174,96,.45);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 0 12px rgba(39,174,96,0);
  }
}
#home-handle-ac .ba-dragger-handle {
  animation: draggerPulseAc 2.2s infinite ease-in-out;
}
#home-handle-roof .ba-dragger-handle {
  animation: draggerPulseRoof 2.2s infinite ease-in-out;
}
.ba-dragger-line {
  transition: background-color 0.3s ease;
}
.ba-dragger-line:hover {
  background-color: #38bdf8 !important;
}

/* ════════════════════════════════════════
   PAGE TRANSITION
   ════════════════════════════════════════ */
#ptrans{position:fixed;inset:0;background:#0A3660;z-index:9999;pointer-events:none;opacity:0;transition:opacity .3s ease}
#ptrans.on{opacity:1;pointer-events:all}

/* ════════════════════════════════════════
   ANNOUNCEMENT BAR
   ════════════════════════════════════════ */
#ann-bar{background:linear-gradient(90deg,#E85C0D,#F97316,#EF4444,#F97316,#E85C0D);background-size:300% auto;animation:shimmer 5s linear infinite}

/* ════════════════════════════════════════
   HAMBURGER
   ════════════════════════════════════════ */
.ham span{display:block;width:24px;height:2.5px;background:white;border-radius:2px;transition:all .35s ease}
.ham.open span:nth-child(1){transform:rotate(45deg) translate(5.5px,5.5px)}
.ham.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.ham.open span:nth-child(3){transform:rotate(-45deg) translate(5.5px,-5.5px)}

/* ════════════════════════════════════════
   NAV DROPDOWN
   ════════════════════════════════════════ */
.nav-dropdown{position:absolute;top:calc(100% + 8px);right:0;background:#0A3660;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:8px;min-width:240px;opacity:0;visibility:hidden;transform:translateY(-10px);transition:all .3s ease;z-index:200;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.nav-item:hover .nav-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.nav-dropdown a{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:8px;color:rgba(255,255,255,.8);font-family:'Cairo',sans-serif;font-size:.875rem;font-weight:600;transition:all .3s}
.nav-dropdown a:hover{background:rgba(255,255,255,.1);color:white;transform:translateX(-4px)}

/* ════════════════════════════════════════
   MOBILE NAV
   ════════════════════════════════════════ */
#mobile-nav{display:none;position:fixed;top:0;right:0;width:min(320px,85vw);height:100vh;background:#0A3660;z-index:1100;padding:88px 20px 100px;flex-direction:column;gap:6px;transform:translateX(100%);transition:transform .4s ease;overflow-y:auto}
#mobile-nav.open{display:flex;transform:translateX(0)}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
#hero{min-height:100vh;position:relative;display:flex;align-items:center;overflow:hidden;background:#0A3660}
.hero-bg-img{position:absolute;inset:0;object-fit:cover;width:100%;height:100%;animation:kenBurns 20s ease-out infinite alternate}
.hero-glow{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(56,189,248,.15) 0%,transparent 70%);pointer-events:none;animation:heroGlow 4s ease-in-out infinite}
.hero-badge-dot{width:8px;height:8px;background:#2ECC71;border-radius:50%;animation:pulseDot 1.5s infinite;display:inline-block}
.hero-stat-num{font-family:'Cairo',sans-serif;font-size:1.5rem;font-weight:900;color:#38BDF8;line-height:1;display:block}
.hero-stat-label{font-family:'Tajawal',sans-serif;font-size:.78rem;color:rgba(255,255,255,.65);display:block;margin-top:3px}
.hero-float{animation:float 3s ease-in-out infinite}
.hero-float-2{animation:float 3s ease-in-out infinite;animation-delay:1.5s}

/* ════════════════════════════════════════
   SMART WHATSAPP FUNNEL WIDGET
   ════════════════════════════════════════ */
#wa-funnel-wrapper{position:fixed;bottom:30px;left:28px;z-index:900}

/* Funnel popup panel */
#wa-funnel{
  position:absolute;bottom:80px;left:0;
  width:280px;
  background:#fff;
  border-radius:20px;
  box-shadow:0 12px 50px rgba(0,0,0,.18);
  overflow:hidden;
  display:none;
  transform-origin:bottom left;
  animation:waFunnelIn .35s ease both;
}
#wa-funnel.open{display:block}
#wa-funnel-header{
  background:linear-gradient(135deg,#075E54,#128C7E);
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:10px;
}
#wa-funnel-avatar{
  width:42px;height:42px;border-radius:50%;
  background:#25D366;
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;
  border:2px solid rgba(255,255,255,.3);
  flex-shrink:0;
}
#wa-funnel-body{padding:14px}
#wa-funnel-title{font-family:'Cairo',sans-serif;font-size:.85rem;font-weight:800;color:white;line-height:1.3}
#wa-funnel-sub{font-family:'Tajawal',sans-serif;font-size:.72rem;color:rgba(255,255,255,.75);margin-top:1px}
.wa-option{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#F0FFF4;
  border:1px solid #D1FAE5;
  margin-bottom:8px;
  cursor:pointer;
  text-decoration:none;
  transition:all .25s;
  font-family:'Cairo',sans-serif;
  font-size:.82rem;
  font-weight:700;
  color:#065F46;
}
.wa-option:last-child{margin-bottom:0}
.wa-option:hover{background:#D1FAE5;transform:translateX(-4px);box-shadow:0 4px 15px rgba(37,211,102,.15)}
.wa-option-icon{width:32px;height:32px;border-radius:10px;background:#25D366;display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0}
#wa-funnel-footer{padding:0 14px 14px;text-align:center}
#wa-funnel-direct{
  display:block;width:100%;
  padding:10px;border-radius:12px;
  background:#25D366;color:white;
  font-family:'Cairo',sans-serif;font-weight:800;font-size:.85rem;
  text-align:center;text-decoration:none;
  transition:all .25s;
}
#wa-funnel-direct:hover{background:#22C55E;transform:translateY(-1px)}

/* The FAB trigger button */
#wa-fab-btn{
  width:62px;height:62px;
  background:#25D366;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 30px rgba(37,211,102,.5);
  cursor:pointer;border:none;
  animation:pulseWa 2.5s infinite;
  transition:all .35s;
  position:relative;
}
#wa-fab-btn:hover{transform:scale(1.1);box-shadow:0 12px 40px rgba(37,211,102,.65)}
#wa-fab-btn svg{width:30px;height:30px}
#wa-badge{
  position:absolute;top:-4px;right:-4px;
  width:20px;height:20px;
  background:#EF4444;border-radius:50%;
  font-family:'Cairo',sans-serif;font-size:.65rem;font-weight:900;color:white;
  display:flex;align-items:center;justify-content:center;
  border:2px solid white;
  animation:badgePop .6s ease .8s both;
}
#wa-tooltip{
  background:#1F2937;color:white;
  font-family:'Cairo',sans-serif;font-size:.8rem;font-weight:600;
  padding:7px 13px;border-radius:8px;white-space:nowrap;
  opacity:0;transform:translateX(-10px);
  transition:all .35s;pointer-events:none;
  position:absolute;bottom:72px;left:0;
}
#wa-funnel-wrapper:hover #wa-tooltip{opacity:1;transform:translateX(0)}
#wa-funnel-wrapper.funnel-open #wa-tooltip{opacity:0}

/* ════════════════════════════════════════
   BACK-COMPAT: Simple WhatsApp FAB
   (used by secondary pages)
   ════════════════════════════════════════ */
#wa-fab{position:fixed;bottom:30px;left:28px;z-index:900}
#wa-fab a{width:62px;height:62px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 30px rgba(37,211,102,.45);transition:all .35s;animation:pulseWa 2.5s infinite;text-decoration:none}
#wa-fab a:hover{transform:scale(1.12);box-shadow:0 12px 40px rgba(37,211,102,.6)}
#wa-fab svg{width:30px;height:30px}
#wa-fab #wa-tooltip,
#wa-funnel-wrapper:not(:has(#wa-funnel)) #wa-tooltip{background:#1F2937;color:white;font-family:'Cairo',sans-serif;font-size:.8rem;font-weight:600;padding:7px 13px;border-radius:8px;white-space:nowrap;opacity:0;transform:translateX(-10px);transition:all .35s;pointer-events:none;position:absolute;bottom:70px;left:0}
#wa-fab:hover #wa-tooltip{opacity:1;transform:translateX(0)}

/* ════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════ */
#back-top{position:fixed;bottom:30px;right:28px;z-index:900;width:46px;height:46px;background:#0F4C81;color:white;border:none;border-radius:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 20px rgba(15,76,129,.25);transition:all .35s;opacity:0;transform:translateY(20px)}
#back-top.show{opacity:1;transform:translateY(0)}
#back-top:hover{background:#1A6DB5;transform:translateY(-3px)}

/* ════════════════════════════════════════
   MOBILE BOTTOM BAR (3-button CRO edition)
   ════════════════════════════════════════ */
#mobile-bar{
  display:none;position:fixed;bottom:0;left:0;right:0;z-index:850;
  height:64px;box-shadow:0 -4px 25px rgba(0,0,0,.18);
}
#mobile-bar a{
  flex:1;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:2px;
  font-family:'Cairo',sans-serif;font-size:.75rem;font-weight:800;color:white;text-decoration:none;
}
.mbar-call{background:#0F4C81}
.mbar-call:hover{background:#1A6DB5}
.mbar-wa{background:#25D366}
.mbar-wa:hover{background:#22C55E}
.mbar-book{background:#E85C0D}
.mbar-book:hover{background:#F97316}
#mobile-bar a svg{width:20px;height:20px;fill:white}

/* ════════════════════════════════════════
   EMERGENCY BANNER
   ════════════════════════════════════════ */
#emergency-banner{
  background:linear-gradient(135deg,#991B1B,#DC2626,#B91C1C);
  position:relative;overflow:hidden;
}
#emergency-banner::before{
  content:'';position:absolute;inset:0;
  background:repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(255,255,255,.03) 10px,rgba(255,255,255,.03) 20px);
}
.emergency-pulse{animation:urgencyPulse 2s ease-in-out infinite}

/* ════════════════════════════════════════
   OFFER / PROMO SECTION
   ════════════════════════════════════════ */
#offer-section{background:linear-gradient(135deg,#7C3AED,#4F46E5,#2563EB)}
.offer-badge{
  background:linear-gradient(135deg,#F97316,#EF4444);
  font-family:'Cairo',sans-serif;font-weight:900;
  padding:6px 16px;border-radius:50px;
  display:inline-block;color:white;font-size:.85rem;
  box-shadow:0 4px 15px rgba(239,68,68,.4);
  animation:countdownBeat 1.5s ease-in-out infinite;
}
.countdown-box{
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;padding:10px 16px;text-align:center;
  backdrop-filter:blur(10px);min-width:64px;
}
.countdown-num{
  font-family:'Cairo',sans-serif;font-size:1.8rem;font-weight:900;
  color:white;line-height:1;display:block;
}
.countdown-label{font-family:'Tajawal',sans-serif;font-size:.65rem;color:rgba(255,255,255,.7);margin-top:2px;display:block}

/* ════════════════════════════════════════
   TRUST BADGES STRIP
   ════════════════════════════════════════ */
.trust-badge{
  display:flex;align-items:center;gap:8px;
  background:white;border-radius:50px;
  padding:8px 16px;
  box-shadow:0 4px 20px rgba(0,0,0,.08);
  border:1px solid #E2E8F0;
  font-family:'Cairo',sans-serif;font-size:.8rem;font-weight:700;
  color:#1F2937;white-space:nowrap;
}

/* ════════════════════════════════════════
   MID-PAGE CTA STRIP
   ════════════════════════════════════════ */
.mid-cta-strip{
  background:linear-gradient(135deg,#0A3660,#0F4C81,#1A6DB5);
  position:relative;overflow:hidden;
}
.mid-cta-strip::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(rgba(255,255,255,.025)_1px,transparent_1px),
             linear-gradient(90deg,rgba(255,255,255,.025)_1px,transparent_1px);
  background-size:40px 40px;
}

/* ════════════════════════════════════════
   TESTIMONIAL CARDS (CRO)
   ════════════════════════════════════════ */
.testi-track{display:flex;gap:24px;transition:transform .5s cubic-bezier(.25,.8,.25,1)}
.testi-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.3);cursor:pointer;transition:all .3s;display:inline-block}
.testi-dot.on{background:#38BDF8;width:24px;border-radius:4px}
.testi-card{
  min-width:320px;max-width:320px;
  background:white;border-radius:24px;padding:24px;
  box-shadow:0 8px 30px rgba(15,76,129,.12);
  border:1px solid #E2E8F0;position:relative;
  transition:all .35s;
}
.testi-card:hover{transform:translateY(-4px);box-shadow:0 16px 50px rgba(15,76,129,.18)}
.testi-card::before{
  content:'"';position:absolute;top:-10px;right:20px;
  font-size:5rem;color:#EBF5FF;font-family:Georgia,serif;line-height:1;
}

/* ════════════════════════════════════════
   GUARANTEE SECTION
   ════════════════════════════════════════ */
.guarantee-badge{
  width:80px;height:80px;border-radius:50%;
  background:linear-gradient(135deg,#27AE60,#2ECC71);
  display:flex;align-items:center;justify-content:center;
  font-size:2rem;
  box-shadow:0 8px 25px rgba(39,174,96,.35);
  transition:all .4s;
}
.guarantee-badge:hover{transform:scale(1.1) rotate(5deg)}

/* ════════════════════════════════════════
   BEFORE/AFTER SLIDER
   ════════════════════════════════════════ */
.ba-container{position:relative;user-select:none;cursor:ew-resize;overflow:hidden;border-radius:24px}
.ba-after{position:absolute;inset:0;clip-path:inset(0 50% 0 0);transition:clip-path 0s}
.ba-dragger{position:absolute;top:0;bottom:0;left:50%;width:4px;background:white;cursor:ew-resize;transform:translateX(-50%);z-index:10}
.ba-dragger::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;background:white;border-radius:50%;box-shadow:0 4px 20px rgba(0,0,0,.25)}
.ba-dragger::after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#0F4C81;font-size:1.2rem;font-weight:900;z-index:1}

/* ════════════════════════════════════════
   GALLERY FILTER
   ════════════════════════════════════════ */
.gallery-item{transition:opacity .4s,transform .4s}
.gallery-item.hidden{opacity:0;pointer-events:none;position:absolute}

/* ════════════════════════════════════════
   SERVICE CARD TILT (desktop)
   ════════════════════════════════════════ */
@media(hover:hover){
  .svc-card{transform-style:preserve-3d;transition:transform .5s ease,box-shadow .5s ease}
}

/* ════════════════════════════════════════
   QUICK CONTACT FORM
   ════════════════════════════════════════ */
.quick-form input,
.quick-form select,
.quick-form textarea{
  width:100%;border:2px solid #E2E8F0;border-radius:14px;
  padding:12px 16px;font-family:'Tajawal',sans-serif;font-size:.9rem;
  color:#1F2937;background:white;
  transition:border-color .3s,box-shadow .3s;outline:none;
}
.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus{
  border-color:#0F4C81;
  box-shadow:0 0 0 4px rgba(15,76,129,.1);
}
.quick-form input::placeholder,
.quick-form textarea::placeholder{color:#94A3B8}

/* ════════════════════════════════════════
   REVIEW BARS
   ════════════════════════════════════════ */
.rev-bar{transition:width 1.2s cubic-bezier(.4,0,.2,1)}

/* ════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════ */
#lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:9000;display:none;align-items:center;justify-content:center}
#lightbox.open{display:flex}

/* ════════════════════════════════════════
   TIMELINE
   ════════════════════════════════════════ */
.timeline-line{position:absolute;right:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#0F4C81,#38BDF8,#27AE60);border-radius:2px}
.timeline-dot{position:absolute;right:-9px;top:6px;width:18px;height:18px;border-radius:50%;background:#0F4C81;border:3px solid white;box-shadow:0 0 0 3px #0F4C81}

/* ════════════════════════════════════════
   GRADIENT TEXT
   ════════════════════════════════════════ */
.grad-text{background:linear-gradient(135deg,#38BDF8,#2ECC71);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* ════════════════════════════════════════
   PAGE ANIMATION
   ════════════════════════════════════════ */
main,section{animation:pageIn .6s ease both}

/* ════════════════════════════════════════
   CRO: STICKY HEADER CALL BUTTON PULSE
   ════════════════════════════════════════ */
.header-call-pulse{animation:pulseWa 3s infinite}

/* ════════════════════════════════════════
   CRO: URGENCY TEXT BLINK
   ════════════════════════════════════════ */
.urgency-blink{animation:urgencyPulse 2s ease-in-out infinite}

/* ════════════════════════════════════════
   BRAND COLOR GUARANTEE
   Forces critical brand colors to always render
   (fixes Tailwind CDN JIT missing custom classes)
   ════════════════════════════════════════ */

/* Footer always dark blue */
footer.bg-brand-blue-d,
footer[class*="bg-brand-blue-d"] {
  background-color: #0A3660 !important;
  color: white;
}

/* Ensure footer text is white by default */
footer.bg-brand-blue-d *:not(a):not(span.text-brand-sky):not(.text-brand-wa):not(.text-brand-gold):not(.text-white\/40):not(.text-white\/60):not(.text-white\/65):not(.text-white\/50) {
  /* inherits white from footer */
}

/* Key brand bg colors */
.bg-brand-blue-d { background-color: #0A3660 !important; }
.bg-brand-blue   { background-color: #0F4C81 !important; }
.bg-brand-blue-l { background-color: #1A6DB5 !important; }
.bg-brand-blue-p { background-color: #EBF5FF !important; }
.bg-brand-green  { background-color: #27AE60 !important; }
.bg-brand-green-l{ background-color: #2ECC71 !important; }
.bg-brand-wa     { background-color: #25D366 !important; }
.bg-brand-gold   { background-color: #F59E0B !important; }
.bg-brand-dark   { background-color: #1F2937 !important; }
.bg-brand-gray-s { background-color: #F5F7FA !important; }
.bg-brand-gray-m { background-color: #E2E8F0 !important; }

/* Key brand text colors */
.text-brand-blue   { color: #0F4C81 !important; }
.text-brand-blue-l { color: #1A6DB5 !important; }
.text-brand-blue-d { color: #0A3660 !important; }
.text-brand-sky    { color: #38BDF8 !important; }
.text-brand-green  { color: #27AE60 !important; }
.text-brand-green-d{ color: #1E8449 !important; }
.text-brand-wa     { color: #25D366 !important; }
.text-brand-gold   { color: #F59E0B !important; }
.text-brand-dark   { color: #1F2937 !important; }
.text-brand-gray-t { color: #64748B !important; }

/* Gradient text fix */
.text-brand-sky-l { color: #7DD3FC !important; }

/* Border colors */
.border-brand-blue  { border-color: #0F4C81 !important; }
.border-brand-sky   { border-color: #38BDF8 !important; }
.border-brand-green { border-color: #27AE60 !important; }
.border-brand-gold  { border-color: #F59E0B !important; }
.border-brand-gray-m{ border-color: #E2E8F0 !important; }
.border-brand-wa    { border-color: #25D366 !important; }

/* Shadow utilities */
.shadow-brand    { box-shadow: 0 4px 20px rgba(15,76,129,.15) !important; }
.shadow-brand-xl { box-shadow: 0 20px 60px rgba(15,76,129,.25) !important; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media(max-width:768px){
  #mobile-bar{display:flex}
  body{padding-bottom:64px}
  #wa-fab{bottom:80px}
  #wa-funnel-wrapper{bottom:80px}
  #back-top{bottom:80px;right:16px}
  .wa-funnel{width:260px}
  .countdown-num{font-size:1.4rem}
}
@media(max-width:1024px){
  .nav-links-desktop,.nav-cta{display:none!important}
  #ham-btn{display:flex!important}
}
