/* Omfinn Finance Solutions — shared site styles (used alongside Tailwind CDN utilities) */

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

::selection {
  background-color: #d1fae5;
  color: #064e3b;
}

/* Nav */
.nav-link.active {
  color: #fff;
}
.nav-link.active .nav-pill {
  opacity: 1;
}
.nav-link .nav-pill {
  opacity: 0;
}
.nav-link:hover .nav-pill {
  opacity: 0.15;
}

/* Mobile menu */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding-top: 6.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 40;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* Fade / slide-in animation used for hero content and cards */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }

/* Blog rich content */
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #172554;
  margin: 1.5rem 0 0.5rem;
}
.article-body p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #475569;
}
.article-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #475569;
}
.article-body ul li {
  margin-bottom: 0.5rem;
}
.article-body strong {
  color: #172554;
}
.article-body .pull-quote {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-left: 4px solid #10b981;
  font-style: italic;
  color: #334155;
}
.article-body figure img {
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.15);
}
.article-body figcaption {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.5rem;
}
.article-body code, .article-body .formula {
  display: block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}

/* Line clamp for card excerpts */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
