/* ============================================================
   AVIDITY JOURNEY — Additional Styles & Polishes
   Theme: Outdoor Adventure / Financial Expedition
   ============================================================ */

/* ---------- SMOOTH FADE IN ON LOAD ---------- */
body {
  animation: pageLoad 0.5s ease forwards;
}
@keyframes pageLoad {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--navy), var(--gold-dark));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #1b7baa; }

/* ---------- SELECTION COLOR ---------- */
::selection {
  background: var(--gold);
  color: var(--navy-deeper);
}

/* ---------- ACTIVE NAV LINK ---------- */
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after { width: 100%; }

/* ---------- SECTION TRANSITION SEPARATORS ---------- */
.section-sep {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  margin: 0 auto 32px;
  display: block;
}

/* ---------- STAGGER ANIMATION DELAYS ---------- */
[data-delay="0"]   { transition-delay: 0ms !important; }
[data-delay="50"]  { transition-delay: 50ms !important; }
[data-delay="100"] { transition-delay: 100ms !important; }
[data-delay="150"] { transition-delay: 150ms !important; }
[data-delay="200"] { transition-delay: 200ms !important; }
[data-delay="250"] { transition-delay: 250ms !important; }
[data-delay="300"] { transition-delay: 300ms !important; }
[data-delay="350"] { transition-delay: 350ms !important; }
[data-delay="400"] { transition-delay: 400ms !important; }
[data-delay="450"] { transition-delay: 450ms !important; }
[data-delay="500"] { transition-delay: 500ms !important; }

/* ---------- COUNTER ANIMATIONS ---------- */
.stat-num.counting {
  color: var(--gold-light);
}

/* ---------- HERO PARTICLES ---------- */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ---------- MODULE CARD NUMBER GLOW ---------- */
.module-card:hover .module-num {
  color: rgba(189,177,148,0.15);
}

/* ---------- SMOOTH HOVER LIFT UTILITY ---------- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---------- CTA SECTION DIAGONAL ACCENT ---------- */
#cta-final::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- PULSE GLOW ON FEATURED PLAN ---------- */
@keyframes planGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(189,177,148,0.12), 0 0 0 0 rgba(189,177,148,0); }
  50%       { box-shadow: 0 0 50px rgba(189,177,148,0.22), 0 0 20px rgba(189,177,148,0.08); }
}
.featured-plan {
  animation: planGlow 4s ease-in-out infinite;
}

/* ---------- TYPEWRITER CURSOR ---------- */
.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--gold);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---------- TOOLTIP STYLE ---------- */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deeper);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/* ---------- LOADING SHIMMER FOR MOCKUP ---------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.shimmer-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 400px 100%;
  animation: shimmer 2s infinite;
  border-radius: 4px;
}

/* ---------- SCROLL PROGRESS BAR ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold), #e8c97a);
  z-index: 9999;
  transition: width 0.1s ease;
  width: 0%;
  box-shadow: 0 0 6px rgba(189,177,148,0.5);
}

/* ---------- BACK TO TOP BUTTON ---------- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--navy) 0%, #1b7baa 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.35s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(9,70,106,0.35);
}
/* Mountain peak tooltip on back-to-top */
#back-to-top::before {
  content: '⛰';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
#back-to-top:hover::before {
  opacity: 0.6;
}
#back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(9,70,106,0.5);
}

/* ---------- GLASSMORPHISM PANEL ---------- */
.glass-panel {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}

/* ---------- GRADIENT BORDER CARD ---------- */
.gradient-border-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  border-radius: var(--radius);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ---------- NOTIFICATION DOT ---------- */
.notif-dot {
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* ---------- TEXT HIGHLIGHT ---------- */
.text-gold     { color: var(--gold); }
.text-navy     { color: var(--navy); }
.text-success  { color: var(--success); }
.text-white    { color: var(--white); }
.text-muted    { color: var(--text-light); }

/* ---------- SPACING UTILITIES ---------- */
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.mt-8  { margin-top: 32px; }
.mb-8  { margin-bottom: 32px; }

/* ---------- FOCUS RING FOR ACCESSIBILITY ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- PRINT STYLES ---------- */
@media print {
  #navbar, #cta-final, #scroll-progress, #back-to-top { display: none !important; }
  body { background: white; color: black; }
  .section-title, h2, h3, h4 { color: black; }
  -webkit-text-fill-color: black;
  background: none !important;
  -webkit-background-clip: unset;
}

/* ============================================================
   ADVENTURE / OUTDOOR ENHANCEMENTS
   ============================================================ */

/* ---------- TRAIL CONNECTOR ANIMATION ---------- */
@keyframes trailDash {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- HERO BADGE ADVENTURE PULSE ---------- */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(189,177,148,0); }
  50%       { box-shadow: 0 0 0 4px rgba(189,177,148,0.12); }
}

/* ---------- MOUNTAIN HORIZON GRADIENT SEPARATOR ---------- */
.mountain-sep {
  display: block;
  width: 100%;
  height: 48px;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.mountain-sep svg {
  width: 100%;
  height: 100%;
}

/* ---------- SECTION ELEVATION MARKERS ---------- */
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ---------- STEP CARDS — TRAIL WAYPOINT FEEL ---------- */
.step-icon-wrap {
  position: relative;
}
.step-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(9,70,106,0.18);
  transition: all 0.35s ease;
}
.step-icon-wrap.featured::after {
  border-color: rgba(189,177,148,0.3);
}
.step-card:hover .step-icon-wrap::after {
  inset: -10px;
  border-color: rgba(9,70,106,0.28);
  animation: rotateRing 8s linear infinite;
}
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- MODULE GRID TRAIL DOT ---------- */
.module-num::before {
  content: '\25C6'; /* diamond */
  font-size: 0.45rem;
  margin-right: 5px;
  opacity: 0.5;
  vertical-align: middle;
}

/* ---------- EMPLOYER CARD TERRAIN BADGE ---------- */
.employer-card:hover .employer-icon {
  transform: scale(1.08) rotate(-3deg);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---------- TESTIMONIAL QUOTE MARK ADVENTURE STYLE ---------- */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 14px; right: 22px;
  font-size: 5rem;
  color: rgba(9,70,106,0.055);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ---------- TRUST BADGES — TRAIL MARKER PILL ---------- */
.trust-badge {
  position: relative;
}
.trust-badge::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: var(--navy);
  border-radius: 2px;
  opacity: 0.18;
}

/* ---------- PRICING CARD ALTITUDE BADGE ---------- */
.pricing-badge-top {
  position: relative;
  padding-left: 20px;
}
.pricing-badge-top::before {
  content: '\25B2'; /* up triangle = summit */
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  opacity: 0.7;
}

/* ---------- CTA SECTION — SUMMIT GLOW ---------- */
@keyframes summitGlow {
  0%, 100% { text-shadow: 0 0 40px rgba(189,177,148,0); }
  50%       { text-shadow: 0 0 40px rgba(189,177,148,0.15); }
}
#cta-final h2 {
  animation: summitGlow 4s ease-in-out infinite;
}

/* ---------- STEP TAGS — TRAIL MARKER STYLE ---------- */
.step-tags span {
  position: relative;
  padding-left: 14px;
}
.step-tags span::before {
  content: '\2022';
  position: absolute;
  left: 5px;
  color: var(--navy);
  opacity: 0.6;
  font-size: 0.65rem;
}

/* ---------- MODULE SECTION SUBTLE GLOW SHIMMER ---------- */
@keyframes terrainPulse {
  0%, 100% { opacity: 0.06; }
  50%       { opacity: 0.09; }
}
#modules::after {
  animation: terrainPulse 6s ease-in-out infinite;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}
