/* ============================================
   Finance Tools Website - Bootstrap 5 Override
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:wght@400;600;700&display=swap');

:root {
  --primary: #0f2942;
  --primary-light: #1a3a5c;
  --accent: #00c6a7;
  --accent-hover: #00a88d;
  --text: #2d3748;
  --text-light: #64748b;
  --bg: #fafbfc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 41, 66, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles
   ============================================ */

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

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

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: var(--transition);
}

.navbar > .container {
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #00e6c3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.navbar-nav .nav-link {
  padding: 10px 18px !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text) !important;
  border-radius: 8px;
  transition: var(--transition);
  margin: 0 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--primary);
  color: var(--white) !important;
}

.nav-cta.nav-link {
  background: var(--accent) !important;
  color: var(--white) !important;
}

.nav-cta.nav-link:hover {
  background: var(--accent-hover) !important;
}

.navbar-toggler {
  border: none;
  padding: 8px;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 2px;
  background: var(--primary);
  position: relative;
  display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .navbar-nav .nav-link {
    margin: 4px 0;
  }
}

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

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 198, 167, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 198, 167, 0.1);
  border: 1px solid rgba(0, 198, 167, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-hover);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ============================================
   Button Overrides
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

.btn-primary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
}

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

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* ============================================
   Card Overrides
   ============================================ */

.card {
  background: var(--white);
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent !important;
}

.card-body {
  padding: 40px;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #00e6c3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.card h3 {
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.card-link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

/* ============================================
   Products Page Styles
   ============================================ */

.product-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 20px;
}

.product-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.product-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 198, 167, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.product-content h3 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.status-available {
  background: rgba(0, 198, 167, 0.1);
  color: var(--accent-hover);
}

.status-coming {
  background: rgba(15, 41, 66, 0.08);
  color: var(--text-light);
}

/* ============================================
   Training Page Styles
   ============================================ */

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
}

.feature-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   Consulting Page Styles
   ============================================ */

.process-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  height: 100%;
}

.process-step::after {
  content: '\2192';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  z-index: 1;
}

.process-step:last-child::after,
.process-step.no-arrow::after {
  display: none;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #00e6c3);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 16px;
}

.process-step h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .process-step::after {
    display: none;
  }
}

/* ============================================
   Articles Page Styles
   ============================================ */

.article-card {
  transition: var(--transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.3);
}

.article-content {
  padding: 28px;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 198, 167, 0.1);
  color: var(--accent-hover);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.article-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.article-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-info h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 198, 167, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.contact-method-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-method-text strong {
  color: var(--primary);
  font-weight: 600;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-control,
.form-select {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 198, 167, 0.1);
}

.form-label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

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

.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  max-width: 280px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/* ============================================
   Responsive Overrides
   ============================================ */

@media (max-width: 767.98px) {
  .hero {
    padding: 120px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .contact-form-card {
    padding: 32px 24px;
  }

  .product-item {
    flex-wrap: wrap;
  }

  .status-badge {
    margin-left: 0;
  }
}
