/* Research & Investment Custom Styles */
/* Color Scheme: Navy (Trust/Professionalism) + Teal (Growth/Success) */

:root {
  /* Primary - Trust & Professionalism */
  --ri-navy: #1E3A5F;
  --ri-navy-light: #2C5282;
  --ri-navy-dark: #1A365D;

  /* Secondary - Growth & Success */
  --ri-teal: #0D9488;
  --ri-teal-light: #14B8A6;
  --ri-teal-dark: #0F766E;

  /* Accent - Value & Premium */
  --ri-gold: #D97706;
  --ri-gold-light: #F59E0B;

  /* Neutrals */
  --ri-white: #FFFFFF;
  --ri-off-white: #F8FAFC;
  --ri-gray-light: #E2E8F0;
  --ri-gray: #64748B;
  --ri-gray-dark: #334155;
  --ri-dark: #0F172A;
}

html {
  margin-left: 0 !important;
  scroll-behavior: smooth;
}

/* Offset for fixed navbar when jumping to anchors */
section[id] {
  scroll-margin-top: 80px;
}

/* ==================== */
/* Hero Section         */
/* ==================== */

.hero-section {
  background: linear-gradient(135deg, var(--ri-dark) 0%, var(--ri-navy-dark) 50%, var(--ri-navy) 100%);
  color: var(--ri-white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ri-teal), var(--ri-teal-light));
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ri-white) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
  color: var(--ri-teal-light);
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ==================== */
/* Buttons              */
/* ==================== */

.btn {
  border-radius: 6px !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  border-radius: 8px !important;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  border-radius: 5px !important;
}

/* Primary CTA - Teal */
.btn-ri {
  background: var(--ri-teal);
  color: var(--ri-white);
  font-weight: 600;
  border: none;
}

.btn-ri:hover {
  background: var(--ri-teal-dark);
  color: var(--ri-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

/* Secondary - Navy */
.btn-navy {
  background: var(--ri-navy);
  color: var(--ri-white);
  border: none;
}

.btn-navy:hover {
  background: var(--ri-navy-dark);
  color: var(--ri-white);
}

/* Gold Accent */
.btn-gold {
  background: var(--ri-gold);
  color: var(--ri-white);
  border: none;
}

.btn-gold:hover {
  background: var(--ri-gold-light);
  color: var(--ri-white);
}

.btn-outline-light {
  border: 2px solid var(--ri-white);
  color: var(--ri-white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--ri-white);
  color: var(--ri-navy);
}

.btn-outline-navy {
  border: 2px solid var(--ri-navy);
  color: var(--ri-navy);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--ri-navy);
  color: var(--ri-white);
}

.btn-outline-teal {
  border: 2px solid var(--ri-teal);
  color: var(--ri-teal);
  background: transparent;
}

.btn-outline-teal:hover {
  background: var(--ri-teal);
  color: var(--ri-white);
}

/* ==================== */
/* Navbar               */
/* ==================== */

.navbar {
  background: var(--ri-dark) !important;
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 600;
}

.navbar .btn-ri {
  background: var(--ri-teal);
}

.navbar .btn-ri:hover {
  background: var(--ri-teal-light);
}

/* ==================== */
/* Cards                */
/* ==================== */

.card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: var(--ri-navy) !important;
  color: var(--ri-white) !important;
  border-radius: 12px 12px 0 0 !important;
}

/* Category Cards */
.category-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--ri-teal);
  transform: translateY(-4px);
}

.category-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--ri-teal-light), var(--ri-teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--ri-white);
}

.category-icon svg {
  width: 32px;
  height: 32px;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ri-navy-dark);
  margin-bottom: 0.75rem;
}

.category-desc {
  color: var(--ri-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==================== */
/* Feature Cards        */
/* ==================== */

.feature-card {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--ri-navy-light), var(--ri-navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--ri-white);
}

.feature-title {
  font-weight: 600;
  color: var(--ri-navy-dark);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.feature-card .text-muted {
  font-size: 1rem;
}

/* ==================== */
/* Guide Cards          */
/* ==================== */

.guide-card {
  border: 1px solid var(--ri-gray-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  background: var(--ri-white);
}

.guide-card:hover {
  border-color: var(--ri-teal);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ri-navy-dark);
  margin-bottom: 0.5rem;
}

.guide-card p {
  color: var(--ri-gray);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.guide-card a {
  color: var(--ri-teal);
  text-decoration: none;
  font-weight: 500;
}

.guide-card a:hover {
  color: var(--ri-teal-dark);
  text-decoration: underline;
}

/* ==================== */
/* Metric Cards         */
/* ==================== */

.metric-card {
  background: var(--ri-white);
  border: 1px solid var(--ri-gray-light);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}

.metric-card:hover {
  border-color: var(--ri-teal);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ri-navy);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--ri-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-good {
  color: var(--ri-teal);
}

.metric-bad {
  color: #DC2626;
}

/* ==================== */
/* Checklist Styles     */
/* ==================== */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ri-gray-light);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist-icon {
  width: 24px;
  height: 24px;
  background: var(--ri-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-icon svg {
  width: 14px;
  height: 14px;
  color: var(--ri-white);
}

.checklist-text {
  flex: 1;
}

.checklist-text strong {
  color: var(--ri-navy-dark);
}

/* ==================== */
/* Step Cards           */
/* ==================== */

.step-card {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ri-navy-light), var(--ri-navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ri-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ri-navy-dark);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--ri-gray);
  margin-bottom: 0;
}

/* ==================== */
/* Badge Styles         */
/* ==================== */

.ri-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--ri-teal), var(--ri-teal-dark));
  color: var(--ri-white);
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.ri-badge svg {
  width: 16px;
  height: 16px;
}

.ri-badge-navy {
  background: linear-gradient(135deg, var(--ri-navy-light), var(--ri-navy));
}

.ri-badge-gold {
  background: linear-gradient(135deg, var(--ri-gold-light), var(--ri-gold));
}

/* ==================== */
/* Section Styles       */
/* ==================== */

.section-light {
  background: var(--ri-off-white);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ri-navy-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--ri-gray);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--ri-navy-light), var(--ri-navy));
  color: var(--ri-white);
  position: relative;
}

.cta-section h2 {
  color: var(--ri-white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* Stats Section */
.stats-section {
  background: var(--ri-dark);
  color: var(--ri-white);
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ri-teal-light);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== */
/* Footer               */
/* ==================== */

.site-footer {
  background: var(--ri-dark);
  color: var(--ri-white);
  padding: 2.5rem 0 1.5rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ri-teal), var(--ri-navy-light));
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ri-teal-light);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--ri-teal-light);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

/* ==================== */
/* Info Box             */
/* ==================== */

.info-box {
  background: linear-gradient(135deg, #F0FDFA, #CCFBF1);
  border: 1px solid #99F6E4;
  border-radius: 12px;
  padding: 1.5rem;
}

.info-box-navy {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-color: #BFDBFE;
}

.info-box-gold {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border-color: #FDE68A;
}

.info-box-title {
  font-weight: 600;
  color: var(--ri-navy-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box-title svg {
  color: var(--ri-teal);
}

/* ==================== */
/* Table Styles         */
/* ==================== */

.metrics-table {
  width: 100%;
  border-collapse: collapse;
}

.metrics-table th {
  background: var(--ri-navy);
  color: var(--ri-white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.metrics-table th:first-child {
  border-radius: 8px 0 0 0;
}

.metrics-table th:last-child {
  border-radius: 0 8px 0 0;
}

.metrics-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--ri-gray-light);
}

.metrics-table tr:hover td {
  background: var(--ri-off-white);
}

/* ==================== */
/* Code/Tech Styling    */
/* ==================== */

code {
  background: var(--ri-gray-light);
  color: var(--ri-navy-dark);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.formula {
  background: var(--ri-off-white);
  border: 1px solid var(--ri-gray-light);
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  font-size: 1rem;
  color: var(--ri-navy-dark);
}

/* ==================== */
/* Typography           */
/* ==================== */

body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ri-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ri-navy-dark);
}

h1 {
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.small, small {
  font-size: 0.9375rem !important;
}

.text-muted {
  color: var(--ri-gray) !important;
}

a {
  color: var(--ri-teal);
}

a:hover {
  color: var(--ri-teal-dark);
}

/* ==================== */
/* Utility Classes      */
/* ==================== */

.bg-ri-light {
  background: var(--ri-gray-light);
}

.text-ri-teal {
  color: var(--ri-teal);
}

.text-ri-navy {
  color: var(--ri-navy);
}

.text-ri-gold {
  color: var(--ri-gold);
}

.border-ri {
  border-color: var(--ri-teal) !important;
}

/* ==================== */
/* Mobile Adjustments   */
/* ==================== */

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .category-card {
    padding: 1.5rem 1rem;
  }

  .category-icon {
    width: 56px;
    height: 56px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-links {
    justify-content: center;
  }

  .step-card {
    padding-left: 3.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ==================== */
/* Animation            */
/* ==================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out;
}
