/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #2AB880;
  color: #060D1F;
}

/* Navbar */
#navbar {
  color: #0A1628;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

#navbar.dark {
  color: white;
}

#navbar.dark .nav-logo-text {
  color: white;
}

#navbar.scrolled .nav-logo-text {
  color: #0A1628;
}

.nav-link {
  color: rgba(10, 22, 40, 0.6);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #2AB880;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #0A1628;
}

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

#navbar.dark .nav-link {
  color: rgba(255, 255, 255, 0.5);
}

#navbar.dark .nav-link:hover {
  color: #B3EAD6;
}

#navbar.dark .nav-link::after {
  background: #B3EAD6;
}

/* Mobile menu */
.mobile-menu-link {
  transition: color 0.3s ease;
}

.mobile-menu-link:hover {
  color: white;
}

.mobile-menu-line {
  background: currentColor;
}

#mobile-menu.open {
  display: block;
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Hero animations */
.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

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

.hero-tagline {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-cta {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

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

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

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal="hidden"] {
  opacity: 0;
  transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* Service cards */
.service-card {
  position: relative;
}

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

.service-card:hover::before {
  width: 60px;
}

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

/* FAQ */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.faq-content.open {
  max-height: 300px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-btn[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* Form */
input:focus,
textarea:focus {
  border-color: #2AB880 !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(10, 22, 40, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F0FAF7;
}

::-webkit-scrollbar-thumb {
  background: #B3EAD6;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #48C89A;
}

/* Selection */
@media (max-width: 767px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-headline br {
    display: none;
  }
}
