/* ============================================================
   GeoSurveyHub — Animations & Transitions
   ============================================================ */

/* ── SCROLL REVEAL BASE ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays for child groups */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Horizontal reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── HERO LOAD ANIMATION ── */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.7s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-side-text {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
}

.scroll-indicator {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

.step-dots {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.9s forwards;
}

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

/* ── CARD HOVER ── */
.product-card,
.news-card,
.info-card,
.visual-panel {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover,
.news-card:hover,
.info-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

/* ── NUMBER COUNT-UP ── */
.count-up {
  display: inline-block;
}

/* ── KICKER LINE DRAW ── */
.kicker::before {
  width: 0;
  transition: width 0.4s ease;
}

.kicker.visible::before {
  width: 32px;
}

/* ── READ MORE HOVER ── */
.read-more {
  transition: gap 0.2s ease, border-color 0.2s ease;
}

/* ── PROGRESS BAR (quiz) ── */
.quiz-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex: 1;
  margin-left: 16px;
}

.quiz-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* ── FORM FIELD FOCUS ANIMATION ── */
.field-group input,
.field-group select,
.field-group textarea {
  transition: border-color 0.2s ease;
}

/* ── BUTTON ACTIVE STATE ── */
.btn-primary:active {
  transform: scale(0.98);
}

/* ── PAGE TRANSITION ── */
.page-enter {
  opacity: 0;
}

.page-enter-active {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── SVG ICON PULSE (for hero crosshair) ── */
@keyframes reticlePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}

.hero-reticle {
  animation: reticlePulse 3s ease-in-out infinite;
}

/* ── ACCORDION (FAQ) ── */
details summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  transition: color 0.2s;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  color: var(--accent);
  border-bottom-color: var(--border-accent);
}

details .faq-answer {
  padding: 20px 0 28px;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 640px;
}

/* ── CALLOUT BOX ── */
.callout-box {
  background: var(--surface2);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 24px 28px;
  margin: 32px 0;
}

.callout-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.callout-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.callout-box ul li {
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.callout-box ul li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  margin-top: 2px;
}

/* ── COMPARISON TABLE ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 32px 0;
}

.comparison-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-mid);
  text-align: left;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  font-weight: 300;
  vertical-align: top;
}

.comparison-table tr:hover td {
  background: var(--surface2);
}

.comparison-table td:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
}

/* ── STEP WORKFLOW ── */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--border);
}

.workflow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}

.workflow-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.workflow-step-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 6px;
}

.workflow-step-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 60px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep {
  color: var(--border-mid);
  font-size: 10px;
}

.breadcrumb-current {
  color: var(--accent);
}

/* ── SUCCESS PANEL ── */
.success-panel {
  text-align: center;
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.success-panel h2 {
  font-size: 36px;
}

.success-panel p {
  max-width: 480px;
  text-align: center;
}

.success-actions {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}
