/* ═══════════════════════════════════════════════════════════════
   Heart & Soul Billing Solutions — Custom Stylesheet
   Version: 2.0 | Built: 2025
═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #111827;
}

/* ─── Gradient Utilities ─── */
.gradient-text {
  background: linear-gradient(135deg, #5B3A9E 0%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #6b21a8 0%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Backgrounds ─── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 75% 45%, rgba(91, 58, 158, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 85%, rgba(13, 148, 136, 0.06) 0%, transparent 60%),
    #ffffff;
}

.section-alt {
  background: linear-gradient(180deg, #FAF5FF 0%, #F5FFFD 100%);
}

.cta-bg {
  background: linear-gradient(135deg, #6b21a8 0%, #0f766e 100%);
  position: relative;
  overflow: hidden;
}

.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(255,255,255,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.cta-bg::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* ─── Navigation ─── */
#navbar {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

/* ─── Mobile Menu ─── */
#mobile-menu {
  display: none;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* ─── Cards ─── */
.card-lift {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px -8px rgba(91, 58, 158, 0.12),
    0 6px 16px -4px rgba(0, 0, 0, 0.06);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAF5FF 0%, #F0FDFA 100%);
  flex-shrink: 0;
}

/* ─── Steps ─── */
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B3A9E, #0D9488);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 58, 158, 0.30);
}

/* ─── FAQ Accordion ─── */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-content { max-height: 600px; }

.faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-item {
  border-bottom: 1px solid #F3F4F6;
  transition: background-color 0.2s;
}

/* ─── Form Inputs ─── */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #5B3A9E;
  box-shadow: 0 0 0 3px rgba(91, 58, 158, 0.12);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

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

.animate-fade-in-up { animation: fadeInUp 0.65s ease forwards; }
.animate-fade-in    { animation: fadeIn 0.5s ease forwards; }
.animate-float      { animation: float 4s ease-in-out infinite; }

/* ─── Testimonial ─── */
.testimonial-card {
  background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
  border: 1px solid rgba(91, 58, 158, 0.08);
}

.stars { color: #F59E0B; }

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(91,58,158,0.08), rgba(13,148,136,0.08));
  color: #6b21a8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(91,58,158,0.15);
}

/* ─── Industry Cards ─── */
.industry-card {
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5B3A9E, #0D9488);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.industry-card:hover::before { opacity: 1; }

.industry-card:hover .industry-title { color: white; }
.industry-card:hover .industry-desc  { color: rgba(255,255,255,0.85); }
.industry-card:hover .industry-icon  { background: rgba(255,255,255,0.15); color: white; }

.industry-title, .industry-desc, .industry-icon {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* ─── Stat Counters ─── */
.stat-number {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #5B3A9E, #0D9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Divider ─── */
.divider-gradient {
  height: 3px;
  width: 48px;
  border-radius: 2px;
  background: linear-gradient(135deg, #5B3A9E, #0D9488);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ─── Print ─── */
@media print {
  #navbar, footer, .cta-section { display: none; }
}
