/* ═══════════════════════════════════════════════════
   THE STRATEGIC INSIGHT — Corporate Blue & White Theme
   ═══════════════════════════════════════════════════ */

/* ── Import fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --bg:       #FFFFFF;
  --bg2:      #F5F7FA;
  --bg3:      #EDF0F7;
  --bg4:      #E4E8F2;

  /* Card surfaces */
  --card:     #FFFFFF;
  --card2:    #F8FAFF;

  /* Primary brand colors */
  --blue:     #1A56E8;
  --blue-dk:  #1240C4;
  --blue-lt:  #E8EFFE;
  --blue-mid: #3B82F6;

  /* Accent */
  --accent:   #0EA5E9;
  --gold:     #F59E0B;

  /* Text */
  --text:     #0F172A;
  --text2:    #475569;
  --text3:    #94A3B8;

  /* Border */
  --border:   #E2E8F0;
  --border2:  #CBD5E1;

  /* Aliases for JS compatibility */
  --g:        #1A56E8;
  --g2:       #1240C4;
  --g3:       #1A56E8;
  --dark:     #0F172A;
  --dark2:    #F5F7FA;
  --dark3:    #EDF0F7;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(15,23,42,0.07);
  --shadow:     0 4px 16px rgba(15,23,42,0.10);
  --shadow-md:  0 8px 32px rgba(15,23,42,0.12);
  --shadow-lg:  0 16px 48px rgba(26,86,232,0.18);
  --glow:       0 8px 28px rgba(26,86,232,0.28);
  --glow-lg:    0 14px 44px rgba(26,86,232,0.36);

  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  --radius:     12px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 10px; opacity: 0.5; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ══════════════════════════════════════
   BACKGROUND DECORATIONS
══════════════════════════════════════ */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,86,232,0.10), transparent 70%);
  top: -120px; left: -100px;
}
.orb2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(14,165,233,0.08), transparent 70%);
  top: 60px; right: -80px;
}
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26,86,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,232,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 0;
}

/* Pulsing dot */
.pdot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 5px #22C55E; }
  50%      { box-shadow: 0 0 14px #22C55E, 0 0 24px rgba(34,197,94,0.35); }
}

/* ══════════════════════════════════════
   TYPOGRAPHY UTILITIES
══════════════════════════════════════ */
.rb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-lt);
  border: 1px solid rgba(26,86,232,0.2);
  color: var(--blue);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.rb-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  color: var(--text);
}

.rb-section-sub {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.8;
}

/* Blue highlight */
.rb-hl {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Keep rb-hl-grad as alias */
.rb-hl-grad {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.78rem 1.7rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  letter-spacing: 0.1px;
}
.btn-g::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}
.btn-g:hover { background: var(--blue-dk); box-shadow: var(--glow-lg); transform: translateY(-2px); color: #fff; }
.btn-g:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
  padding: 0.78rem 1.7rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lt);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   SCROLL FADE UTILITY
══════════════════════════════════════ */
.fu {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fu.in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.rb-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.rb-nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(15,23,42,0.10);
}

.rb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 66px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.rb-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.rb-logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(26,86,232,0.35);
  flex-shrink: 0;
}

/* Nav links */
.rb-nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.rb-nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  transition: var(--transition);
}
.rb-nav-links li a:hover { color: var(--blue); background: var(--blue-lt); }
.rb-nav-links li a.active { color: var(--blue); background: var(--blue-lt); }

/* Nav CTA */
.rb-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Hamburger */
.rb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.rb-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.rb-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rb-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rb-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.rb-mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.2rem;
}
.rb-mobile-menu.open { display: flex; }
.rb-mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  transition: var(--transition);
}
.rb-mobile-menu a:hover, .rb-mobile-menu a.active { background: var(--blue-lt); color: var(--blue); }
.rb-mobile-menu .rb-mob-cta { margin-top: 0.6rem; border-radius: 10px; }

@media (max-width: 991px) {
  .rb-nav-links, .rb-nav-cta { display: none !important; }
  .rb-hamburger { display: flex; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.rb-footer {
  background: var(--text);
  color: #CBD5E1;
  padding: 5rem 0 2rem;
}
.rb-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.rb-footer-brand p {
  font-size: 0.83rem;
  color: #94A3B8;
  line-height: 1.85;
  margin: 1rem 0 1.4rem;
  max-width: 260px;
}
.rb-footer-socials { display: flex; gap: 0.5rem; }
.rb-footer-social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: #94A3B8;
  transition: var(--transition);
}
.rb-footer-social-btn:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  transform: translateY(-2px);
}
.rb-footer-col h6 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}
.rb-footer-col ul { list-style: none; }
.rb-footer-col ul li { margin-bottom: 0.65rem; }
.rb-footer-col ul li a {
  font-size: 0.84rem;
  color: #94A3B8;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.rb-footer-col ul li a:hover { color: #fff; }
.rb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748B;
}
.rb-footer-bottom a { color: #64748B; transition: color 0.2s; }
.rb-footer-bottom a:hover { color: #fff; }

/* Footer logo override */
.rb-footer .rb-logo { color: #fff; }

@media (max-width: 991px) { .rb-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 576px) {
  .rb-footer-grid { grid-template-columns: 1fr; }
  .rb-footer-bottom { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════
   SERVICE MODAL
══════════════════════════════════════ */
.rb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.rb-modal-overlay.active { opacity: 1; pointer-events: all; }
.rb-modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  padding: 2.4rem;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.rb-modal-overlay.active .rb-modal { transform: none; opacity: 1; }
.rb-modal-close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 32px; height: 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text2);
  transition: var(--transition);
  line-height: 1;
}
.rb-modal-close:hover { background: #FEE2E2; border-color: #FCA5A5; color: #EF4444; }
.rb-modal-icon {
  width: 52px; height: 52px;
  background: var(--blue-lt);
  border: 1px solid rgba(26,86,232,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.rb-modal h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.rb-modal-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.rb-modal-desc {
  font-size: 0.87rem;
  color: var(--text2);
  line-height: 1.82;
  margin-bottom: 1.4rem;
}
.rb-modal-features {
  list-style: none;
  margin-bottom: 1.6rem;
  background: var(--bg2);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.rb-modal-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text2);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.rb-modal-features li:last-child { border: none; }
.rb-modal-features li i { color: #22C55E; font-size: 0.8rem; flex-shrink: 0; }
.rb-modal-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--blue-lt);
  border: 1px solid rgba(26,86,232,0.15);
  border-radius: 12px;
  margin-bottom: 1.4rem;
}
.rb-modal-price .price-v {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}
.rb-modal-price .price-l { font-size: 0.78rem; color: var(--text2); line-height: 1.4; }
.rb-modal-price .price-l span { color: var(--blue); font-weight: 700; }
.rb-modal-actions { display: flex; gap: 0.7rem; }
.rb-modal-actions .btn-g, .rb-modal-actions .btn-ghost { flex: 1; justify-content: center; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.rb-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.85rem 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.rb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.rb-toast-icon { font-size: 1.1rem; }

/* ══════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 52px; height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 997;
  transition: transform 0.22s, box-shadow 0.22s;
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,0.6); color: #fff; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 8px 36px rgba(37,211,102,0.7), 0 0 0 6px rgba(37,211,102,0.1); }
}
