/* ====================================================================
   ENHANCEMENTS.CSS — Round 3 visual polish for Cherry Grove template
   ==================================================================== */

/* --- 1. Animated gradient text for section titles --- */
.section-title {
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    #e8c87a 25%,
    var(--rose) 50%,
    #d4a85e 75%,
    var(--gold) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 2. Floating badge pulse enhancement --- */
.spots-badge {
  animation: badgeFloat 3s ease-in-out infinite, badgePulse 2s ease-in-out infinite alternate;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes badgePulse {
  from { box-shadow: 0 0 12px rgba(184,137,68,0.2); }
  to { box-shadow: 0 0 28px rgba(184,137,68,0.5), 0 0 60px rgba(184,137,68,0.15); }
}

/* --- 3. Hero title entrance — staggered line reveals --- */
.hero-line-1, .hero-line-2 {
  display: block;
  opacity: 0;
  animation: heroLineIn 1.2s ease forwards;
}
.hero-line-1 { animation-delay: 0.6s; }
.hero-line-2 { animation-delay: 1.1s; }
@keyframes heroLineIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* --- 4. Section eyebrow glow on enter --- */
.section-eyebrow {
  position: relative;
  overflow: hidden;
}
.section.in .section-eyebrow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(184,137,68,0.25), transparent);
  animation: eyebrowSweep 1.5s ease forwards;
  pointer-events: none;
}
@keyframes eyebrowSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); opacity: 0; }
}

/* --- 5. Bonus card shine-on-hover --- */
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.bonus-card:hover::before {
  left: 125%;
}

/* --- 6. Stats section enhanced numbers --- */
.vi-stat-num {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(184,137,68,0.3);
}
.vi-stat.in .vi-stat-num {
  animation: statGlow 2s ease-in-out infinite alternate;
}
@keyframes statGlow {
  from { text-shadow: 0 0 20px rgba(184,137,68,0.2); }
  to { text-shadow: 0 0 40px rgba(184,137,68,0.6), 0 0 80px rgba(184,137,68,0.15); }
}

/* --- 7. Pull-quote decorative line animation --- */
.pull-quote {
  position: relative;
}
.pull-quote::before,
.pull-quote::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1.2s ease;
  transform: translateX(-50%);
}
.pull-quote::before { top: 0; }
.pull-quote::after { bottom: 0; }
.pull-quote[style*="opacity: 1"]::before,
.pull-quote[style*="opacity: 1"]::after {
  width: 80%;
}

/* --- 8. Tarot card mystic glow --- */
.tarot-card {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(184,137,68,0.2);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.tarot-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.4), 0 0 40px rgba(184,137,68,0.3), 0 0 80px rgba(184,137,68,0.1);
}

/* --- 9. Gallery photo hover lift + shadow --- */
.g-cell img {
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease, filter 0.5s ease;
}
.g-cell:hover img {
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  filter: brightness(1.08) saturate(1.1);
}

/* --- 10. FAQ accordion smooth expand --- */
.faq-item {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] {
  background: rgba(184,137,68,0.04);
  box-shadow: inset 0 0 0 1px rgba(184,137,68,0.12);
}
.faq-item summary {
  transition: color 0.3s ease;
}
.faq-item[open] summary {
  color: var(--gold);
}

/* --- 11. Privacy list number glow --- */
.privacy-num {
  text-shadow: 0 0 12px rgba(184,137,68,0.3);
  transition: text-shadow 0.3s ease;
}
li:hover .privacy-num {
  text-shadow: 0 0 24px rgba(184,137,68,0.6);
}

/* --- 12. Trade columns animated border gradient --- */
.trade-col {
  position: relative;
  overflow: hidden;
}
.trade-col::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: conic-gradient(from 0deg, var(--gold), var(--rose), var(--sage), var(--gold));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  animation: none;
  transition: opacity 0.6s ease;
}
.trade-col:hover::before {
  opacity: 0.15;
  animation: borderSpin 6s linear infinite;
}
@keyframes borderSpin {
  to { transform: rotate(360deg); }
}

/* --- 13. Income calculator slider custom track --- */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--rose));
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(184,137,68,0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 24px rgba(184,137,68,0.7);
  transform: scale(1.15);
}
.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px rgba(184,137,68,0.4);
}

/* --- 14. Map arc animated dash --- */
.map-arc {
  stroke-dasharray: 8 4;
  animation: arcFlow 2s linear infinite;
}
@keyframes arcFlow {
  to { stroke-dashoffset: -24; }
}

/* --- 15. Vibe tiles parallax tilt on scroll --- */
.vibe-tile {
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease;
}
.vibe-tile:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), 0 0 20px rgba(184,137,68,0.1);
}

/* --- 16. Mockup frame browser dots pulse --- */
.mockup-dots span {
  transition: transform 0.3s ease;
}
.mockup-card:hover .mockup-dots span:nth-child(1) { animation: dotPulse 1s ease infinite; }
.mockup-card:hover .mockup-dots span:nth-child(2) { animation: dotPulse 1s ease infinite 0.15s; }
.mockup-card:hover .mockup-dots span:nth-child(3) { animation: dotPulse 1s ease infinite 0.3s; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* --- 17. Enhanced reading time tooltip --- */
.read-time-tip {
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

/* --- 18. Smooth section transitions --- */
.section {
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.section.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.section.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* --- 19. Enhanced apply card styling --- */
.apply-card {
  position: relative;
  overflow: hidden;
}
.apply-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(184,137,68,0.08) 60deg, transparent 120deg);
  animation: applySweep 8s linear infinite;
  pointer-events: none;
}
@keyframes applySweep {
  to { transform: rotate(360deg); }
}

/* --- 20. Week grid day hover lift --- */
.week-day {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.week-day:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* --- 21. Enhanced scroll progress gradient --- */
.scroll-progress-fill {
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--rose), var(--gold)) !important;
  background-size: 200% 100% !important;
  animation: progressGradient 4s ease infinite !important;
}
@keyframes progressGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 22. Phase cards timeline connector --- */
.phases {
  position: relative;
}
.phases::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--rose), transparent);
  opacity: 0.3;
}
@media (min-width: 768px) {
  .phases::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- 23. Benefit card icon float --- */
.benefit-icon {
  display: inline-block;
  animation: iconFloat 3s ease-in-out infinite;
}
.benefit-card:nth-child(2n) .benefit-icon { animation-delay: 0.5s; }
.benefit-card:nth-child(3n) .benefit-icon { animation-delay: 1s; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- 24. Mobile touch feedback --- */
@media (hover: none) {
  .bonus-card:active,
  .pillar:active,
  .team-card:active,
  .vibe-tile:active {
    transform: scale(0.97);
    transition: transform 0.15s ease;
  }
}

/* --- 25. Enhanced urgency bar glow --- */
.urgency-bar.visible {
  box-shadow: 0 -4px 20px rgba(184,137,68,0.2);
}
.urgency-bar .urgency-cta {
  position: relative;
  overflow: hidden;
}
.urgency-bar .urgency-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: urgencyShine 2s ease infinite;
}
@keyframes urgencyShine {
  to { left: 200%; }
}

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .section-title { animation: none; }
  .spots-badge { animation: none; }
  .hero-line-1, .hero-line-2 { animation: none; opacity: 1; }
  .benefit-icon { animation: none; }
  .map-arc { animation: none; }
  .scroll-progress-fill { animation: none !important; }
  .urgency-bar .urgency-cta::after { animation: none; }
  .bonus-card::before { display: none; }
}
