/* =========================================================
   RiseCorp Solutions - Custom Styles
   ========================================================= */

:root {
  --rc-primary: #4338ca;      /* indigo */
  --rc-primary-dark: #312e81;
  --rc-secondary: #06b6d4;    /* cyan */
  --rc-dark: #0f172a;
  --rc-light: #f8fafc;
  --rc-gray: #64748b;
  --rc-gradient: linear-gradient(135deg, #4338ca 0%, #312e81 50%, #06b6d4 100%);
  --rc-radius: 14px;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

a { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-primary-rc { color: var(--rc-primary) !important; }
.bg-primary-rc { background-color: var(--rc-primary) !important; }
.bg-gradient-rc { background: var(--rc-gradient) !important; }

/* ---------- Utility ---------- */
.section-padding { padding: 90px 0; }
.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(67, 56, 202, 0.1);
  color: var(--rc-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.divider-line {
  width: 60px;
  height: 4px;
  background: var(--rc-gradient);
  border-radius: 10px;
  margin: 16px auto;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--rc-primary);
  border-radius: 50%;
  animation: rc-spin 0.9s linear infinite;
}
@keyframes rc-spin { to { transform: rotate(360deg); } }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--rc-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a { color: #cbd5e1; }
.top-bar a:hover { color: #ffffff; }

/* ---------- Navbar ---------- */
.navbar-rc {
  background: #ffffff;
  padding: 14px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}
.navbar-rc.scrolled { padding: 8px 0; }
.navbar-brand-rc {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rc-dark) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand-rc .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--rc-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.navbar-rc .nav-link {
  color: #334155;
  font-weight: 600;
  margin: 0 6px;
  padding: 8px 12px !important;
  border-radius: 8px;
}
.navbar-rc .nav-link.active,
.navbar-rc .nav-link:hover {
  color: var(--rc-primary);
  background: rgba(67, 56, 202, 0.08);
}
.btn-rc-primary {
  background: var(--rc-gradient);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.25);
}
.btn-rc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(67, 56, 202, 0.35);
  color: #fff !important;
}
.btn-rc-outline {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-rc-outline:hover { background: #fff; color: var(--rc-primary); }
.btn-rc-outline-dark {
  border: 2px solid var(--rc-primary);
  color: var(--rc-primary);
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-rc-outline-dark:hover { background: var(--rc-primary); color: #fff; }

/* ---------- Hero ---------- */
.hero-section {
  background: var(--rc-gradient);
  position: relative;
  color: #fff;
  padding: 160px 0 110px;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -180px;
  right: -140px;
}
.hero-section::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(6, 182, 212, 0.18);
  border-radius: 50%;
  bottom: -140px;
  left: -100px;
}
.hero-section h1 { font-size: 3rem; }
.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-graphic {
  position: relative;
  z-index: 2;
}
.hero-card-float {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--rc-radius);
  padding: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  color: #1e293b;
}
.page-hero {
  background: var(--rc-gradient);
  color: #fff;
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  top: -160px; right: -100px;
}

/* ---------- Stats ---------- */
.stat-box { text-align: center; }
.stat-box .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--rc-primary);
}
.stat-box .label { color: var(--rc-gray); font-weight: 500; }

/* ---------- Cards ---------- */
.icon-box {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: rgba(67, 56, 202, 0.1);
  color: var(--rc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.service-card, .feature-card, .value-card, .plan-card, .team-card {
  background: #fff;
  border-radius: var(--rc-radius);
  padding: 34px 28px;
  height: 100%;
  border: 1px solid #eef1f6;
  transition: all 0.3s ease;
}
.service-card:hover, .feature-card:hover, .value-card:hover, .team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: transparent;
}
.service-card:hover .icon-box, .feature-card:hover .icon-box {
  background: var(--rc-gradient);
  color: #fff;
}
.service-card .icon-box.lg { width: 72px; height: 72px; font-size: 2rem; }

/* ---------- Process ---------- */
.process-step {
  text-align: center;
  position: relative;
}
.process-step .step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rc-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 18px;
  box-shadow: 0 10px 25px rgba(67, 56, 202, 0.3);
}

/* ---------- Pricing ---------- */
.plan-card { text-align: center; position: relative; }
.plan-card.featured {
  background: var(--rc-gradient);
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 25px 50px rgba(67, 56, 202, 0.3);
}
.plan-card.featured .plan-price, .plan-card.featured h4 { color: #fff; }
.plan-card.featured .list-unstyled li { color: rgba(255,255,255,0.9); }
.plan-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--rc-secondary);
  color: #fff;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.plan-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--rc-dark);
}
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--rc-gray); }
.plan-card.featured .plan-price span { color: rgba(255,255,255,0.85); }
.plan-card ul li { padding: 8px 0; color: #475569; }
.plan-card.featured ul li { border-color: rgba(255,255,255,0.15) !important; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--rc-radius);
  padding: 32px;
  border: 1px solid #eef1f6;
  height: 100%;
}
.testimonial-card .quote-icon { color: var(--rc-secondary); font-size: 1.8rem; }
.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rc-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--rc-gradient);
  border-radius: 24px;
  color: #fff;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* ---------- Contact ---------- */
.contact-info-card {
  background: #fff;
  border-radius: var(--rc-radius);
  padding: 30px;
  border: 1px solid #eef1f6;
  height: 100%;
}
.form-control-rc {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #dbe1ea;
}
.form-control-rc:focus {
  border-color: var(--rc-primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 56, 202, 0.15);
}
.map-wrap {
  border-radius: var(--rc-radius);
  overflow: hidden;
  border: 1px solid #eef1f6;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--rc-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 18px;
}

/* ---------- Footer ---------- */
.footer-rc {
  background: var(--rc-dark);
  color: #94a3b8;
  padding-top: 70px;
}
.footer-rc h5, .footer-rc h6 { color: #fff; }
.footer-rc a { color: #94a3b8; transition: color 0.2s ease; }
.footer-rc a:hover { color: #fff; }
.footer-rc .social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
}
.footer-rc .social-icon:hover { background: var(--rc-secondary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 50px;
  padding: 22px 0;
  font-size: 0.88rem;
}
.footer-payment-badges img,
.footer-payment-badges .badge-pill-rc {
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-right: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

/* ---------- Legal / policy pages ---------- */
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 34px;
  margin-bottom: 14px;
  color: var(--rc-dark);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: #475569; line-height: 1.85; }
.legal-content ul { padding-left: 1.2rem; }
.legal-updated {
  color: var(--rc-gray);
  font-size: 0.9rem;
}
.toc-box {
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: var(--rc-radius);
  padding: 26px;
}
.toc-box a { color: #334155; font-weight: 500; display: block; padding: 6px 0; }
.toc-box a:hover { color: var(--rc-primary); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-rc { color: rgba(255,255,255,0.85); }
.breadcrumb-rc a { color: rgba(255,255,255,0.85); }
.breadcrumb-rc a:hover { color: #fff; }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rc-gradient);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(67, 56, 202, 0.35);
  border: none;
}
#backToTop.show { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-section { padding: 130px 0 70px; text-align: center; }
  .hero-section h1 { font-size: 2.2rem; }
  .section-padding { padding: 60px 0; }
  .cta-section { padding: 40px 24px; text-align: center; }
}
