/* ==========================================================================
   FaroLaboral — Editorial Authority Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base & Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --navy: #1A2E44;
  --deep-navy: #0F1D2E;
  --gold: #FFD700;
  --warm-gold: #E8B800;
  --slate: #4A6572;
  --cream: #FEFBF4;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Dot Grid Texture (CSS-only)
   -------------------------------------------------------------------------- */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* --------------------------------------------------------------------------
   Gold Beam Diagonal Motif
   -------------------------------------------------------------------------- */
.beam-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.beam-line::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 3px;
  height: 160%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 215, 0, 0.6) 30%,
    rgba(255, 215, 0, 0.3) 70%,
    transparent 100%
  );
  transform: rotate(15deg);
  transform-origin: top center;
  animation: beamDraw 1.8s ease-out 0.6s both;
}

.beam-line::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 4%;
  width: 1px;
  height: 160%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 215, 0, 0.25) 30%,
    rgba(255, 215, 0, 0.1) 70%,
    transparent 100%
  );
  transform: rotate(15deg);
  transform-origin: top center;
  animation: beamDraw 1.8s ease-out 0.9s both;
}

@keyframes beamDraw {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Hero Logo Animation
   -------------------------------------------------------------------------- */
.hero-logo {
  animation: logoReveal 1s ease-out 0.3s both;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Glow behind logo */
.logo-glow {
  position: relative;
}

.logo-glow::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Hero Text Stagger Animation
   -------------------------------------------------------------------------- */
.stagger-1 { animation: fadeSlideIn 0.7s ease-out 0.1s both; }
.stagger-2 { animation: fadeSlideIn 0.7s ease-out 0.25s both; }
.stagger-3 { animation: fadeSlideIn 0.7s ease-out 0.4s both; }
.stagger-4 { animation: fadeSlideIn 0.7s ease-out 0.55s both; }
.stagger-5 { animation: fadeSlideIn 0.7s ease-out 0.7s both; }

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Scroll-Triggered Reveals (IntersectionObserver driven)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children */
.reveal-stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 0.12s);
}

/* --------------------------------------------------------------------------
   Stat Band (Problem Section)
   -------------------------------------------------------------------------- */
.stat-band {
  position: relative;
  padding-left: 2rem;
}

.stat-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   Solution Cards
   -------------------------------------------------------------------------- */
.solution-card {
  border-left: 4px solid var(--navy);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Timeline (Compliance Section)
   -------------------------------------------------------------------------- */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-node {
  position: relative;
  z-index: 1;
}

.timeline-node::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--deep-navy);
}

/* Mobile horizontal scroll for timeline */
@media (max-width: 767px) {
  .timeline-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .timeline-scroll::-webkit-scrollbar {
    display: none;
  }
  .timeline-scroll > * {
    scroll-snap-align: start;
  }
}

/* --------------------------------------------------------------------------
   Pricing Cards
   -------------------------------------------------------------------------- */
.price-card {
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.price-card-featured {
  border-top: 4px solid var(--gold);
}

.price-flag {
  position: absolute;
  top: -1px;
  left: 20px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 50% 100%, 0 calc(100% - 6px));
}

/* --------------------------------------------------------------------------
   Form Inputs
   -------------------------------------------------------------------------- */
.form-input {
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Gold Rule
   -------------------------------------------------------------------------- */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --------------------------------------------------------------------------
   Navbar Scroll Effect
   -------------------------------------------------------------------------- */
.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.97);
}

/* --------------------------------------------------------------------------
   Pull Quote
   -------------------------------------------------------------------------- */
.pull-quote {
  position: relative;
  padding-left: 1.5rem;
}

.pull-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   Footer Gold Rule
   -------------------------------------------------------------------------- */
.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  opacity: 0.4;
}
