/* =============================================
   DaddyLongLoans — Custom Styles
   ============================================= */

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

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

@keyframes spin-silk {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out both;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out both;
}

.animate-slide-in-left {
  animation: slideInLeft 0.7s ease-out both;
}

.animate-wiggle:hover {
  animation: wiggle 0.4s ease-in-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }

/* --- Web Corner Decorations --- */
.web-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.15;
}

.web-corner-tl {
  top: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M0 0 Q60 10 120 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q30 30 60 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q10 60 120 60' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q50 20 120 80' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q20 50 80 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='30' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='55' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='80' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3C/svg%3E") no-repeat;
}

.web-corner-tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M0 0 Q60 10 120 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q30 30 60 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q10 60 120 60' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q50 20 120 80' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q20 50 80 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='30' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='55' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='80' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3C/svg%3E") no-repeat;
}

.web-corner-bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M0 0 Q60 10 120 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q30 30 60 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q10 60 120 60' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q50 20 120 80' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q20 50 80 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='30' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='55' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='80' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3C/svg%3E") no-repeat;
}

.web-corner-br {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M0 0 Q60 10 120 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q30 30 60 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q10 60 120 60' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q50 20 120 80' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q20 50 80 120' stroke='%23d4a017' fill='none' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='30' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='55' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='80' stroke='%23d4a017' fill='none' stroke-width='0.3'/%3E%3C/svg%3E") no-repeat;
}

/* --- Spider Silhouette --- */
.spider-icon::before {
  content: '🕷️';
  display: inline-block;
  margin-right: 0.5rem;
}

/* --- Silk Thread Divider --- */
.silk-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #d4a017, transparent);
  border: none;
  margin: 3rem 0;
}

/* --- Spider CTA Hover --- */
.spider-cta {
  position: relative;
}

.spider-cta:hover {
  animation: wiggle 0.4s ease-in-out;
}

/* --- Card Hover Effects --- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(13, 79, 79, 0.1);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #0d4f4f, #1a8a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Pattern Overlay --- */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 160, 23, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13, 79, 79, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(212, 160, 23, 0.03) 0%, transparent 50%);
}

/* --- Prose styling for blog posts --- */
.prose h2 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose ul, .prose ol {
  margin-bottom: 1.25em;
}

.prose li {
  margin-bottom: 0.5em;
}

/* --- FAQ Accordion --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.open {
  max-height: 500px;
}

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

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

/* --- Spider Avatar (CSS art) --- */
.spider-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #0d4f4f, #147070);
}

/* --- Scroll Reveal (JS-enhanced) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Pulse for stats --- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(212, 160, 23, 0); }
}

.pulse-gold {
  animation: pulse-gold 2s ease-in-out infinite;
}
