/* =============================================
   ANIMATIONS & ENHANCEMENTS v2.0
   ============================================= */

/* ---- Hero animated gradient ---- */
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  background: linear-gradient(135deg,
    var(--color-primary, #0A3D7A) 0%,
    #051826 28%,
    #0c2d50 62%,
    var(--color-primary, #0A3D7A) 100%
  ) !important;
  background-size: 280% 280% !important;
  animation: heroGradientShift 13s ease infinite;
}

/* ---- Floating orbs in hero ---- */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shape-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,0.045) 0%, transparent 65%);
  top: -130px; right: -90px;
  animation: floatOrb 10s ease-in-out infinite;
}

.hero-shape-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,135,90,0.09) 0%, transparent 70%);
  bottom: -70px; left: 6%;
  animation: floatOrb 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,71,87,0.06) 0%, transparent 70%);
  top: 38%; left: 28%;
  animation: floatOrb 12s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-22px) scale(1.05); }
  66%       { transform: translateY(10px) scale(0.97); }
}

/* ---- Stats section ---- */
.stats-section {
  padding: 76px 0;
  background: white;
  border-bottom: 1px solid var(--color-border, #E2E8F3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  border-radius: var(--radius-lg, 20px);
  background: var(--color-bg, #F4F7FC);
  border: 1.5px solid var(--color-border, #E2E8F3);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary, #0A3D7A), var(--color-secondary, #00875A));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 48px rgba(10,61,122,0.13);
  border-color: rgba(10,61,122,0.3);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-suffix,
.stat-item:hover .stat-label {
  position: relative;
  z-index: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--color-primary, #0A3D7A);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.stat-suffix {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent, #FF4757);
  font-family: var(--font-display, 'Syne', sans-serif);
  letter-spacing: -0.04em;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted, #5B6A82);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-item  { padding: 22px 14px; }
}

/* ---- Service card top-bar animation ---- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary, #00875A));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.0,0.0,0.2,1);
}

.service-card:hover::before { transform: scaleX(1); }

/* ---- Service icon hover ---- */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 15px;
  background: var(--color-bg, #F4F7FC);
  color: var(--color-primary, #0A3D7A);
  font-size: 1.45rem;
  margin-bottom: 22px;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.service-card:hover .service-icon {
  background: var(--color-primary, #0A3D7A);
  color: white;
  transform: scale(1.12) rotate(-5deg);
}

/* ---- Process step icon (FA6) ---- */
.step-icon {
  font-size: 2.1rem;
  color: var(--color-primary, #0A3D7A);
  margin-bottom: 14px;
  display: block;
}

/* ---- Icon spacing in text elements ---- */
.trust-item i,
.call-badge i,
.cta-guarantee i,
.sidebar-benefits li i,
.hero-trust .trust-item i { margin-right: 5px; }

/* ---- Swiper testimonials skin ---- */
.testimonials-swiper { padding-bottom: 56px !important; }

.swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  width: 8px; height: 8px;
  transition: all 0.25s ease;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary, #0A3D7A) !important;
  transform: scale(1.5);
  width: 22px !important;
  border-radius: 4px !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary, #0A3D7A) !important;
  width: 40px !important;
  height: 40px !important;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(10,61,122,0.15);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.95rem !important;
  font-weight: 900;
}

/* ---- AOS base (prevent flash) ---- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ---- Button icon spacing ---- */
.btn-call-hero i,
.btn-call-large i,
.btn-call-final i,
.btn-call-header i { margin-right: 8px; }

.sticky-call-btn i  { margin-right: 6px; }
.location-badge i   { margin-right: 4px; }

/* ---- Scroll-reveal base (CSS-only fallback for AOS) ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Stagger children ---- */
.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.00s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.08s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.16s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.24s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.32s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.40s; }

/* ---- Glowing CTA ring on focus ---- */
.btn-call-hero:focus-visible,
.btn-call-large:focus-visible,
.btn-call-final:focus-visible,
.btn-call-header:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,71,87,0.35);
}

/* ---- Active state click feel ---- */
.btn-call-hero:active,
.btn-call-large:active,
.btn-call-final:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Gradient text utility ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary, #00875A));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
