/* ===================================================================
   PIMS Nepal — Custom Stylesheet (works alongside Tailwind utilities)
=================================================================== */

:root {
  --primary: #0D6EFD;
  --secondary: #1E3A8A;
  --accent: #F59E0B;
  --bg: #F8FAFC;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: #1f2937;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* ---------- Navbar ---------- */
#site-header {
  transition: box-shadow .25s ease, background-color .25s ease, padding .25s ease;
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, .08);
}
.nav-link-item {
  position: relative;
}
.nav-link-item.active,
.nav-link-item:hover {
  color: var(--primary);
}
.nav-link-item.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero-gradient {
  background: radial-gradient(circle at 15% 20%, rgba(13,110,253,.15), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(245,158,11,.15), transparent 40%),
              linear-gradient(135deg, #eef4ff 0%, #f8fafc 55%, #fff7ea 100%);
}

/* Subtle accounting-ledger backdrop: graph-paper grid + faint currency glyphs */
.accounting-pattern {
  position: relative;
}
.accounting-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(13,110,253,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,110,253,.06) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Ctext x='10' y='40' font-size='26' fill='%230D6EFD' opacity='0.05' font-family='sans-serif'%3ERs%3C/text%3E%3Ctext x='90' y='110' font-size='22' fill='%231E3A8A' opacity='0.05' font-family='sans-serif'%3E%25%3C/text%3E%3Ctext x='40' y='150' font-size='20' fill='%23F59E0B' opacity='0.06' font-family='sans-serif'%3E%2B%3C/text%3E%3C/svg%3E");
  background-size: 42px 42px, 42px 42px, 160px 160px;
}

.float-icon {
  position: absolute;
  animation: floatY 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(13,110,253,.15));
}
.float-icon.delay-1 { animation-delay: 1.2s; }
.float-icon.delay-2 { animation-delay: 2.4s; }
.float-icon.delay-3 { animation-delay: 3.6s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dashboard-mock {
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(30,58,138,.35);
  position: relative;
  z-index: 2;
}

/* Decorative coin / invoice chips layered around the hero mockup */
.hero-deco {
  position: absolute;
  z-index: 3;
  animation: floatY 5s ease-in-out infinite;
}

/* ---------- Image Cards (Service cards + TallyPrime 7.1 feature cards) ---------- */
.image-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px -16px rgba(13,110,253,.28);
}
.image-card:hover .card-banner-icon {
  transform: scale(1.12) rotate(-4deg);
}

.card-banner {
  position: relative;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-banner::before {
  /* subtle dot-grid texture overlay for a polished "image" feel */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: .5;
}
.card-banner::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  right: -30px; bottom: -50px;
}
.card-banner-icon {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  transition: transform .3s ease;
}

.card-badge-number {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .05em;
}

.card-tag-pill {
  position: absolute;
  top: 12px; left: 14px;
  z-index: 2;
  background: rgba(255,255,255,.9);
  color: #1f2937;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  letter-spacing: .02em;
}

.image-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.image-card .card-link {
  margin-top: auto;
  padding-top: .75rem;
}

/* ---------- Cards ---------- */
.soft-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(15,23,42,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.soft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -14px rgba(13,110,253,.25);
}

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn-primary-brand {
  background: var(--primary);
  color: #fff;
  transition: all .2s ease;
}
.btn-primary-brand:hover { background: var(--secondary); transform: translateY(-2px); }

.btn-accent-brand {
  background: var(--accent);
  color: #1f2937;
  transition: all .2s ease;
}
.btn-accent-brand:hover { filter: brightness(0.95); transform: translateY(-2px); }

.btn-outline-brand {
  border: 1.5px solid #fff;
  color: #fff;
  transition: all .2s ease;
}
.btn-outline-brand:hover { background: #fff; color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Testimonial slider ---------- */
.testimonial-track {
  display: flex;
  transition: transform .5s ease;
}
.testimonial-slide {
  min-width: 100%;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #cbd5e1; cursor: pointer; transition: all .2s ease;
}
.dot.active { background: var(--primary); width: 22px; border-radius: 6px; }

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed;
  right: 22px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }
#whatsapp-fab { bottom: 90px; background: #25D366; color: #fff; font-size: 1.6rem; }
#backtotop-fab { bottom: 22px; background: var(--secondary); color: #fff; font-size: 1.2rem; opacity: 0; pointer-events: none; }
#backtotop-fab.show { opacity: 1; pointer-events: auto; }

/* ---------- FAQ accordion ---------- */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item .chevron { transition: transform .25s ease; }
.faq-item.open .chevron { transform: rotate(180deg); }

/* ---------- TallyPrime 7.1 feature accordion ---------- */
.tally-accordion-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
}
.tally-accordion-item.open .tally-accordion-answer {
  max-height: 200px;
  opacity: 1;
  margin-top: .6rem;
}
.tally-accordion-toggle { cursor: pointer; }
.tally-accordion-item.open .tally-accordion-toggle span:first-child span {
  color: var(--primary);
}

/* ---------- Download table ---------- */
.download-row { transition: background-color .2s ease; }
.download-row:hover { background-color: #eff6ff; }

/* ---------- Misc ---------- */
.badge-pill {
  border-radius: 999px;
  font-size: .72rem;
  padding: .25rem .75rem;
  font-weight: 600;
}

.section-eyebrow {
  color: var(--primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .78rem;
}

::selection { background: var(--accent); color: #1f2937; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 10px; }
