:root {
  --navy: #0A192F;
  --navy-700: #132A47;
  --trust: #0284C7;
  --trust-600: #0369A1;
  --verified: #10B981;
  --canvas: #F8FAFC;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--trust);
  outline-offset: 2px;
}

/* ===================== Word rotator ===================== */
#wordRotator {
  display: inline-block;
  position: relative;
}
.word-out {
  animation: wordOut 0.32s cubic-bezier(.55,0,1,.45) forwards;
}
.word-in {
  animation: wordIn 0.38s cubic-bezier(0,.6,.3,1) forwards;
}
@keyframes wordOut {
  to { transform: translateY(-100%); opacity: 0; filter: blur(2px); }
}
@keyframes wordIn {
  from { transform: translateY(100%); opacity: 0; filter: blur(2px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}

/* ===================== Service cards ===================== */
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,25,47,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.12s ease-out;
  box-shadow: 0 1px 2px rgba(10,25,47,0.06);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
  pointer-events: none;
}
.service-card:hover {
  box-shadow: 0 4px 12px rgba(10,25,47,0.08), 0 20px 40px -14px rgba(2,132,199,0.28);
  border-color: rgba(2,132,199,0.25);
}
.service-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(2,132,199,0.6), rgba(16,185,129,0.4));
}
.service-card .icon-wrap {
  transition: transform 0.35s cubic-bezier(0,.6,.3,1);
}
.service-card:hover .icon-wrap {
  transform: translateY(-3px) scale(1.05);
}
.service-card:active { transform: scale(0.98) !important; }

/* Skeleton loader shimmer */
.service-skeleton {
  position: relative;
  overflow: hidden;
  background: #EDF1F7;
}
.service-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
.service-card-enter {
  animation: cardEnter 0.45s cubic-bezier(0,.6,.3,1) both;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===================== WhatsApp FAB pulse ===================== */
#whatsappFab { position: fixed; }
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--verified);
  animation: pulseRing 2.2s cubic-bezier(0,.5,.5,1) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ===================== Modal ===================== */
#bookingModal.is-open, #trackingModal.is-open { display: block; }
.modal-panel {
  animation: panelUp 0.32s cubic-bezier(0,.6,.3,1) both;
}
@keyframes panelUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 768px) {
  @keyframes panelUp {
    from { transform: translateY(12px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
}

.wizard-step {
  animation: stepSlideIn 0.32s cubic-bezier(0,.6,.3,1) both;
}
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.wizard-step-exit {
  animation: stepSlideOut 0.2s ease-in forwards;
}
@keyframes stepSlideOut {
  to { opacity: 0; transform: translateX(-16px); }
}

/* Service choice chip inside wizard */
.service-chip {
  border: 1.5px solid rgba(10,25,47,0.12);
  border-radius: 0.65rem;
  padding: 0.7rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-chip.is-selected {
  border-color: var(--trust);
  background: rgba(2,132,199,0.06);
  color: var(--trust-600);
}
.slot-chip {
  border: 1.5px solid rgba(10,25,47,0.12);
  border-radius: 0.6rem;
  padding: 0.55rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.slot-chip.is-selected {
  border-color: var(--trust);
  background: rgba(2,132,199,0.06);
  color: var(--trust-600);
}
.slot-chip.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Success check pop */
.success-pop {
  animation: successPop 0.5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes successPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* Confetti */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  z-index: 60;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(540deg); opacity: 0.9; }
}

/* ===================== Tracking steps ===================== */
.track-step {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 1.75rem;
}
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.5rem;
  bottom: -0.25rem;
  width: 2px;
  background: rgba(10,25,47,0.1);
}
.track-step:last-child::before { display: none; }
.track-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(10,25,47,0.15);
  background: #fff;
  transition: all 0.4s ease;
}
.track-step.is-done .track-dot {
  border-color: var(--verified);
  background: var(--verified);
}
.track-step.is-active .track-dot {
  border-color: var(--trust);
  background: var(--trust);
  animation: dotPulse 1.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2,132,199,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(2,132,199,0); }
}
.track-step p.track-title { color: rgba(10,25,47,0.35); transition: color 0.3s ease; }
.track-step.is-done p.track-title,
.track-step.is-active p.track-title { color: var(--navy); }

/* ===================== FAQ ===================== */
.faq-item { padding: 1.1rem 0; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.faq-chevron { transition: transform 0.3s ease; color: rgba(10,25,47,0.4); flex-shrink: 0; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  color: rgba(10,25,47,0.58);
  font-size: 0.9rem;
  line-height: 1.6;
}
.faq-item.is-open .faq-answer {
  opacity: 1;
  margin-top: 0.6rem;
}

/* ===================== Testimonials ===================== */
.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 0.25rem;
}
@media (min-width: 768px) {
  .testimonial-slide { flex: 0 0 50%; }
}
.testimonial-dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}
.testimonial-dot.is-active { width: 18px; background: var(--trust); }

/* ===================== Trust ticker (marquee) ===================== */
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(10,25,47,0.55);
}

/* ===================== Pricing accordion (services page) ===================== */
.pricing-card {
  border: 1px solid rgba(10,25,47,0.08);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}
.pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}
.pricing-chevron { transition: transform 0.3s ease; color: rgba(10,25,47,0.35); }
.pricing-card.is-open .pricing-chevron { transform: rotate(180deg); }
.pricing-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.pricing-card.is-open .pricing-body { }
.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(10,25,47,0.06);
  font-size: 0.875rem;
}

/* ===================== Cost estimator ===================== */
.estimator-chip {
  border: 1.5px solid rgba(10,25,47,0.12);
  border-radius: 0.65rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.estimator-chip.is-selected {
  border-color: var(--trust);
  background: rgba(2,132,199,0.06);
  color: var(--trust-600);
}

/* ===================== Expert / profile cards ===================== */
.expert-card {
  background: #fff;
  border: 1px solid rgba(10,25,47,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.expert-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0284C7, #0A192F);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 0.9rem;
}

/* ===================== Blog / article cards ===================== */
.blog-card {
  background: #fff;
  border: 1px solid rgba(10,25,47,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}
.blog-card:hover {
  box-shadow: 0 4px 12px rgba(10,25,47,0.08), 0 20px 40px -14px rgba(2,132,199,0.22);
  border-color: rgba(2,132,199,0.25);
  transform: translateY(-2px);
}

/* ===================== Location cards ===================== */
.location-card {
  background: #fff;
  border: 1px solid rgba(10,25,47,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ===================== Mobile nav ===================== */
#mobileNav a { display: block; }
