/* ===================================================================
   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;
}

/* ---------- Nav dropdown (Products) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 45px -12px rgba(15,23,42,.22);
  padding: .6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 40;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: block;
  padding: .55rem .8rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.nav-dropdown-link:hover { background: #EFF6FF; color: var(--primary); }

/* ---------- 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%);
}

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

/* Right: text slider */
.hero-text-wrap {
  position: relative;
  overflow: hidden;
}
.hero-text-track {
  display: flex;
  transition: transform .6s ease;
}
.hero-text-slide {
  min-width: 100%;
}

.hero-split-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2.25rem;
}
.hero-split-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(15,23,42,.1);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.hero-split-arrow:hover { background: var(--primary); color: #fff; transform: scale(1.06); }

/* ---------- Hero Orbit Illustration (concentric rings + floating icon bubbles) ---------- */
.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hero-orbit-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-orbit-image-card {
  position: absolute;
  inset: 9%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(30,58,138,.3);
  z-index: 1;
  background: #fff;
}
.hero-orbit-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 20px 45px -10px rgba(30,58,138,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem;
  color: var(--primary);
  z-index: 3;
}
.hero-orbit-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 30px -8px rgba(15,23,42,.18);
  padding: .4rem 1rem .4rem .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
.hero-orbit-chip-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(13,110,253,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.hero-orbit-chip--tagged { overflow: visible; }
.hero-orbit-brand {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 26px -8px rgba(15,23,42,.2);
  padding: .5rem .75rem;
  border: 1px solid rgba(13,110,253,.08);
}
.hero-orbit-tag {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #ECFDF5;
  color: #059669;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(5,150,105,.18);
}
.hero-orbit-tag::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #ECFDF5 transparent transparent transparent;
}
@media (max-width: 640px) {
  .hero-orbit { max-width: 320px; }
  .hero-orbit-chip { font-size: .68rem; padding: .3rem .8rem .3rem .3rem; gap: .35rem; }
  .hero-orbit-chip-icon { width: 24px; height: 24px; font-size: .8rem; }
  .hero-orbit-center { width: 72px; height: 72px; font-size: 1.6rem; }
  .hero-orbit-tag { font-size: .62rem; padding: .25rem .55rem; top: -28px; }
}

/* ---------- Hero hexagon feature banner (TallyPrime 7.1) ---------- */
.hero-hex-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hero-hex {
  position: absolute;
  width: 30%;
  aspect-ratio: 1 / 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 6%;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .35);
  transform: translate(-50%, -50%);
  transition: box-shadow .3s ease, transform .3s ease;
}
.hero-hex:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, .5);
  z-index: 15;
}
.hero-hex i { font-size: 1.85rem; margin-bottom: .3rem; }
.hero-hex span { font-size: .92rem; font-weight: 700; line-height: 1.15; }
.hero-hex-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 34%;
  aspect-ratio: 1 / 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #fff;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 14px 30px -8px rgba(13, 110, 253, .4);
}
.hero-hex-center-logo {
  width: 50px; height: 50px;
  object-fit: contain;
  border-radius: .5rem;
}
.hero-hex-center p:first-of-type { font-size: 1.05rem !important; }
.hero-hex-center p:last-of-type { font-size: .8rem !important; }
.hero-hex-newbadge {
  position: absolute;
  top: -7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: #1f2937;
  font-size: .82rem;
  font-weight: 700;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid #FDE8C8;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .22);
}
.hero-hex-newbadge i {
  color: var(--accent);
  font-size: .9rem;
}
.hero-hex-newbadge strong {
  color: var(--secondary);
  font-weight: 800;
}
@media (max-width: 480px) {
  .hero-hex i { font-size: 1.15rem; margin-bottom: .15rem; }
  .hero-hex span { font-size: .64rem; }
  .hero-hex-center-logo { width: 30px; height: 30px; }
  .hero-hex-newbadge { font-size: .68rem; padding: .45rem .85rem; top: -5%; }
}

/* 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); }

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

/* ---------- 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%;
}
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 22px -8px rgba(13,110,253,.45);
}
.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;
}
#whatsapp-fab::before,
#whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: waPulse 2.2s ease-out infinite;
}
#whatsapp-fab::after { animation-delay: 1.1s; }
@keyframes waPulse {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}
@media (prefers-reduced-motion: reduce) {
  #whatsapp-fab::before, #whatsapp-fab::after { animation: none; display: none; }
}
#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; }

/* ---------- Promo strip (hero) ---------- */
.promo-strip {
  background: linear-gradient(90deg, var(--accent), #fbbf24 60%, var(--accent));
  background-size: 200% 100%;
  animation: promoShift 6s ease-in-out infinite;
}
@keyframes promoShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15,23,42,.08);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem;
  background: linear-gradient(0deg, rgba(15,23,42,.82), transparent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}

/* ---------- Video section ---------- */
.video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 60px -20px rgba(30,58,138,.35);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transition: transform .25s ease;
}
.video-play-btn:hover { transform: scale(1.08); }

/* ---------- 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;
}

/* ---------- Trusted By heading: shimmer text + pulsing Tally chip ---------- */
.trusted-shimmer {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 25%, var(--accent) 50%, var(--primary) 75%, var(--secondary) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--secondary);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .82rem;
  animation: trustedShimmer 5s linear infinite;
}
@keyframes trustedShimmer {
  0% { background-position: 0% center; }
  100% { background-position: -220% center; }
}
.trusted-tally-chip {
  background: linear-gradient(120deg, #EAF3FE, #E0E7FF);
  color: var(--primary);
  font-weight: 700;
  font-size: .72rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  animation: trustedPulse 2.4s ease-in-out infinite;
}
@keyframes trustedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,110,253,.28); }
  50% { box-shadow: 0 0 0 7px rgba(13,110,253,0); }
}
@media (prefers-reduced-motion: reduce) {
  .trusted-shimmer { animation: none; }
  .trusted-tally-chip { animation: none; }
}

::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; }

/* ---------- TallyPrime 7.1 full capability list (accordion cards) ---------- */
.tally-cap-item {
  border: 1px solid #E5EDFB;
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.35rem;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, .08);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.tally-cap-item[open],
.tally-cap-item:hover {
  border-color: #BFDBFE;
  box-shadow: 0 10px 24px -10px rgba(13, 110, 253, .22);
}
.tally-cap-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #1f2937;
}
.tally-cap-item summary::-webkit-details-marker { display: none; }
.tally-cap-item summary .tally-cap-icon {
  width: 38px; height: 38px; border-radius: .65rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.tally-cap-item summary .tally-cap-chevron {
  margin-left: auto;
  color: #94a3b8;
  transition: transform .25s ease;
}
.tally-cap-item[open] summary .tally-cap-chevron { transform: rotate(180deg); color: var(--primary); }
.tally-cap-item ul {
  margin-top: .9rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}
.tally-cap-item ul li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .88rem;
  color: #4b5563;
  line-height: 1.4;
}
.tally-cap-item ul li i {
  color: #10B981;
  font-size: .8rem;
  margin-top: .25rem;
  flex-shrink: 0;
}

/* ---------- Products page: unique showcase layout ---------- */
.product-subnav {
  position: sticky;
  top: 116px;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.product-subnav-inner {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding: .9rem 0;
  scrollbar-width: none;
}
.product-subnav-inner::-webkit-scrollbar { display: none; }
.product-subnav-inner a {
  white-space: nowrap;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: #4b5563;
  background: #F1F5F9;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.product-subnav-inner a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.product-showcase {
  position: relative;
  overflow: hidden;
}
.product-number {
  position: absolute;
  top: -1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 9rem;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.product-media-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 2.5rem;
}
.product-media-wrap::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 2.5rem;
  z-index: -1;
}
.product-media-wrap img {
  position: relative;
  border-radius: 1.25rem;
}

/* ---------- Gallery page grid (matches former home-page gallery layout) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
