/* === JointVest Base Theme === */
/* Extracted from inline <style> — April 2, 2026 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; font-weight: 300; color: #1e293b; background: #ffffff; -webkit-font-smoothing: antialiased; }

/* Typography */
.jv-display { font-family: 'Playfair Display', serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.jv-heading { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: #0a1628; }
.jv-body { font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.65; color: #475569; }
.jv-label { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #b8966c; }
.jv-quote { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; line-height: 1.5; color: #334155; }

/* Sections */
.jv-section { padding: 4rem 1.5rem; }
.jv-section-dark { background: #0a1628; color: #f1f5f9; }
.jv-section-cream { background: #f8fafc; }

/* Cards */
.jv-card { background: #ffffff; border: 1px solid #e8ecf1; border-radius: 2px; transition: border-color 0.3s ease; }
.jv-card:hover { border-color: #cbd5e1; }
.jv-card-dark { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 2px; }

/* Buttons */
.jv-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; background: #0a1628; color: #f5f0eb;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.02em; border: none; border-radius: 2px; cursor: pointer;
  transition: background 0.3s ease;
}
.jv-btn-primary:hover { background: #1e293b; }
.jv-btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; background: transparent; color: #475569;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.02em; border: 1px solid #d1d5db; border-radius: 2px; cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.jv-btn-outline:hover { border-color: #0a1628; color: #0a1628; }

/* Decorative */
.jv-divider { width: 2.5rem; height: 1px; background: #b8966c; }
.jv-gold-line { width: 2rem; height: 1px; background: #b8966c; }
.jv-stat-value { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.5rem; color: #0a1628; letter-spacing: -0.02em; }

/* Animation */
.jv-fade { animation: jvFadeIn 0.6s ease-out both; }
@keyframes jvFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* === T26: Mobile UX Fixes === */
@media (max-width: 768px) {
  /* Global mobile padding fix */
  .jv-section { padding: 2.5rem 1rem; }
  
  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  * { max-width: 100vw; box-sizing: border-box; }
  
  /* Form responsiveness */
  form, input, textarea, select, button {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  input, textarea, select {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
  
  /* Card grid responsive */
  [class*="grid-cols-2"], [class*="grid-cols-3"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Text sizing for mobile */
  h1 { font-size: clamp(1.8rem, 6vw, 3rem) !important; }
  h2 { font-size: clamp(1.4rem, 5vw, 2.2rem) !important; }
  
  /* Fix prose/content pages */
  .prose { max-width: 100% !important; padding: 0 0.5rem; }
  .prose p, .prose li { font-size: 0.9rem !important; line-height: 1.6 !important; }
  
  /* Fix cards overflow */
  .card, .jv-card, .jv-card-dark {
    padding: 1rem !important;
    overflow: hidden;
    word-break: break-word;
  }
  
  /* Flex column on mobile */
  .flex.gap-5, .flex.gap-4, .flex.gap-3 {
    flex-wrap: wrap;
  }
  
  /* CTA buttons full width */
  .jv-btn-primary, .jv-btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* FAQ accordion mobile */
  .collapse-title { font-size: 0.9rem !important; padding: 0.75rem 1rem !important; }
  .collapse-content { padding: 0.5rem 1rem !important; }
  .collapse-content p { font-size: 0.85rem !important; }
}

@media (max-width: 480px) {
  .jv-section { padding: 2rem 0.75rem; }
  h1 { font-size: 1.6rem !important; }
}

/* === Floating Call Button (Operator page) === */
#jv-call-float {
  display: none;
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 9999;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
  transition: all 0.3s ease;
  animation: floatPulse 2s ease-in-out infinite;
}
#jv-call-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(22, 163, 74, 0.5);
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
