/**
 * Unlock Meta — New Design System
 * Navy / Royal Blue / Electric Blue Theme
 * Compatible with existing style.css (additive only)
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:        #001B4F;
  --royal:       #0866FF;
  --electric:    #1B74E4;
  --wa-green:    #25D366;
  --wa-dark:     #128C7E;
  --gold:        #F7B731;
  --light-bg:    #F0F4FF;
  --card-radius: 16px;
  --shadow-sm:   0 2px 12px rgba(8,102,255,.08);
  --shadow-md:   0 8px 32px rgba(8,102,255,.15);
  --shadow-hover:0 16px 48px rgba(8,102,255,.22);
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 60%, var(--electric) 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: heroParallax 20s linear infinite;
}
@keyframes heroParallax {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
.hero-section .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-section .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-top: .75rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: .35rem 1.1rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
.hero-btn-primary {
  background: #fff;
  color: var(--royal);
  border: none;
  border-radius: 50px;
  padding: .8rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  color: var(--navy);
}
.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50px;
  padding: .8rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--royal), var(--electric));
  border-radius: 2px;
  margin: .6rem auto 0;
}
[dir="rtl"] .section-title::after { margin: .6rem auto 0; }
[dir="ltr"] .section-title::after { margin: .6rem auto 0; }

.section-subtitle {
  color: #6b7280;
  font-size: 1rem;
  max-width: 560px;
  margin: .6rem auto 0;
}

/* ============================================================
   SERVICE CATEGORY CARDS
   ============================================================ */
.service-category-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(8,102,255,.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal), var(--electric));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(8,102,255,.2);
}
.service-category-card:hover::before {
  transform: scaleX(1);
}
.service-category-card .cat-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(8,102,255,.1), rgba(27,116,228,.15));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  transition: var(--transition);
}
.service-category-card:hover .cat-icon {
  background: linear-gradient(135deg, var(--royal), var(--electric));
  color: #fff !important;
  transform: scale(1.1) rotate(5deg);
}
.service-category-card .cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.service-category-card .cat-desc {
  font-size: .875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-category-card .cat-count {
  display: inline-block;
  background: var(--light-bg);
  color: var(--royal);
  border-radius: 50px;
  padding: .2rem .8rem;
  font-size: .8rem;
  font-weight: 600;
}

/* ============================================================
   WHATSAPP NUMBERS SECTION
   ============================================================ */
.whatsapp-numbers-section {
  background: linear-gradient(135deg, var(--wa-dark) 0%, var(--wa-green) 100%);
  position: relative;
  overflow: hidden;
}
.whatsapp-numbers-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.whatsapp-numbers-section .section-title { color: #fff; }
.whatsapp-numbers-section .section-title::after {
  background: rgba(255,255,255,.5);
}
.whatsapp-numbers-section .section-subtitle { color: rgba(255,255,255,.8); }

.country-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  color: #fff;
}
.country-card:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.country-card .flag-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: .75rem;
  line-height: 1;
}
.country-card .country-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.country-card .country-code {
  font-size: .85rem;
  opacity: .75;
  margin-bottom: .75rem;
}
.country-card .country-price {
  background: rgba(255,255,255,.2);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .95rem;
  font-weight: 700;
}

/* ============================================================
   COUNTER SECTION
   ============================================================ */
.counter-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8,102,255,.2) 0%, transparent 70%);
}
.counter-item {
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
}
.counter-item .counter-value {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.counter-item .counter-suffix {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}
.counter-item .counter-label {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  margin-top: .5rem;
  font-weight: 500;
}
.counter-item .counter-icon {
  font-size: 2.5rem;
  color: var(--royal);
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================
   FEATURES / HOW IT WORKS
   ============================================================ */
.feature-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--card-radius);
  transition: var(--transition);
}
.feature-step:hover { background: var(--light-bg); }
.feature-step-num {
  min-width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--electric));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(8,102,255,.35);
  flex-shrink: 0;
}
.feature-step-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.feature-step-desc { font-size: .875rem; color: #6b7280; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(8,102,255,.06);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; }
.testimonial-card .author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--electric));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================================
   WHATSAPP NUMBERS PAGE (CLIENT)
   ============================================================ */
.wn-search-box {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50px;
  color: #fff;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  width: 100%;
  transition: var(--transition);
}
.wn-search-box::placeholder { color: rgba(255,255,255,.65); }
.wn-search-box:focus {
  outline: none;
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.2);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.1);
}
.country-card.selected {
  background: rgba(255,255,255,.35) !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.5);
}
.country-card.hidden-country { display: none !important; }

/* ============================================================
   ORDER SUMMARY BOX
   ============================================================ */
.order-summary-box {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--card-radius);
  backdrop-filter: blur(10px);
  padding: 1.75rem;
  color: #fff;
}
.order-summary-box .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.order-summary-box .summary-row:last-child { border-bottom: none; }
.order-summary-box .summary-label { opacity: .75; font-size: .9rem; }
.order-summary-box .summary-value { font-weight: 700; font-size: 1rem; }
.order-summary-box .summary-total .summary-value { font-size: 1.5rem; color: var(--gold); }

/* ============================================================
   PROGRESS STEPPER
   ============================================================ */
.order-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 80px;
}
.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: #dee2e6;
  z-index: 0;
}
.stepper-item.done:not(:last-child)::after { background: var(--royal); }
.stepper-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #dee2e6;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.stepper-item.done .stepper-dot { background: var(--royal); }
.stepper-item.active .stepper-dot { background: var(--electric); box-shadow: 0 0 0 4px rgba(27,116,228,.25); }
.stepper-label { font-size: .75rem; color: #6b7280; margin-top: .4rem; text-align: center; }
.stepper-item.done .stepper-label,
.stepper-item.active .stepper-label { color: var(--royal); font-weight: 600; }

/* ============================================================
   ANIMATION CLASSES (IntersectionObserver)
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-up.animated { opacity: 1; transform: translateY(0); }

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.slide-in-left.animated { opacity: 1; transform: translateX(0); }

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.slide-in-right.animated { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: .05s; }
.stagger-children > *:nth-child(2) { transition-delay: .15s; }
.stagger-children > *:nth-child(3) { transition-delay: .25s; }
.stagger-children > *:nth-child(4) { transition-delay: .35s; }
.stagger-children > *:nth-child(5) { transition-delay: .45s; }
.stagger-children > *:nth-child(6) { transition-delay: .55s; }

/* ============================================================
   GENERAL UTILITY ADDITIONS
   ============================================================ */
.btn-royal {
  background: linear-gradient(135deg, var(--royal), var(--electric));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: .65rem 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(8,102,255,.3);
}
.btn-royal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8,102,255,.4);
  color: #fff;
}
.btn-wa {
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-green));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: .65rem 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,.3);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,.4);
  color: #fff;
}

.text-royal  { color: var(--royal) !important; }
.text-navy   { color: var(--navy) !important; }
.bg-navy     { background-color: var(--navy) !important; }
.bg-royal    { background-color: var(--royal) !important; }
.bg-light-blue { background-color: var(--light-bg) !important; }

/* RTL adjustments */
[dir="rtl"] .slide-in-left  { transform: translateX(40px); }
[dir="rtl"] .slide-in-right { transform: translateX(-40px); }
[dir="rtl"] .slide-in-left.animated,
[dir="rtl"] .slide-in-right.animated { transform: translateX(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .service-category-card { padding: 1.5rem 1rem; }
  .country-card           { padding: 1rem .75rem; }
  .counter-item           { padding: 1.5rem .5rem; }
  .hero-section           { min-height: 70vh; }
  .order-stepper          { gap: 0; }
  .stepper-label          { font-size: .65rem; }
}
