/* ============================================
   Speed — Legal & Finance Advisory
   Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #6B0F1A;
  color: #fff;
}

/* --- Navigation --- */
#navbar {
  background: rgba(250, 247, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #6B0F1A;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.mobile-link {
  position: relative;
}

/* --- Buttons --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.15);
}

/* --- Section Eyebrow --- */
.section-eyebrow {
  position: relative;
  display: inline-block;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1.5px;
  background-color: #6B0F1A;
}

/* --- Service Cards --- */
.service-card {
  position: relative;
  transition: all 0.5s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background-color: #6B0F1A;
  transition: height 0.4s ease;
}

.service-card:hover::before {
  height: 100%;
}

/* --- Process Steps --- */
.process-step {
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -20px;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent);
}

.process-step:last-child::after {
  display: none;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #6B0F1A, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* --- Hero Animations --- */
.hero-eyebrow {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-headline {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-sub {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

.hero-ctas {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.hero-trust {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.65s;
  opacity: 0;
}

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6B0F1A !important;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .section-eyebrow::before {
    display: none;
  }

  .process-step::after {
    display: none;
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

/* --- Print --- */
@media print {
  #navbar, .scroll-indicator {
    display: none;
  }

  body {
    background: white;
  }

  section {
    page-break-inside: avoid;
  }
}
