/* Custom animations — layout via Tailwind */

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.35);
  }
  50% {
    box-shadow: 0 0 24px 4px rgba(6, 182, 212, 0.2);
  }
}

@keyframes count-pop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slide-accent {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-fade-up {
  animation: fade-up 0.7s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.animate-count-pop {
  animation: count-pop 0.5s ease-out forwards;
}

.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.opacity-0-start {
  opacity: 0;
}

.stat-number.is-visible {
  animation: count-pop 0.6s ease-out forwards;
}

/* Font Awesome 5 Pro — fa-solid alias (project uses FA5, not FA6) */
.fa-solid {
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.nav-link-active {
  color: #06b6d4 !important;
  font-weight: 600;
  position: relative;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #06b6d4;
  border-radius: 1px;
}

.nav-link-active-mobile {
  color: #06b6d4 !important;
  font-weight: 600;
  padding-left: 0.75rem;
  border-left: 3px solid #06b6d4;
}

.hero-bg-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(10, 21, 24, 0.72) 0%,
    rgba(10, 21, 24, 0.45) 42%,
    rgba(6, 182, 212, 0.18) 100%
  );
  pointer-events: none;
}

.hero-bg-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 70% 40%,
    rgba(6, 182, 212, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-bg-image {
  filter: brightness(1.08) saturate(1.25) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.accent-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  animation: slide-accent 3s ease-in-out infinite;
}

.swiper-reviews .swiper-button-prev,
.swiper-reviews .swiper-button-next {
  color: #06b6d4;
}

.swiper-reviews .swiper-pagination-bullet-active {
  background: #06b6d4;
}

#burger-panel.is-open {
  transform: translateX(0);
}

#burger-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

/* Blog article content */
.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #e6eef0;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e6eef0;
}

.article-content p,
.article-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: #8aa1a8;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.25rem 1.25rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content a {
  color: #06b6d4;
  text-decoration: underline;
}

.article-content a:hover {
  color: #0891b2;
}

.article-content blockquote {
  margin: 1.5rem 0;
  border-left: 4px solid #06b6d4;
  padding: 1rem 1.25rem;
  background: rgba(6, 182, 212, 0.08);
  font-style: italic;
  color: #e6eef0;
}

/* Legal pages content */
.legal-content h1 {
  margin-bottom: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: #e6eef0;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e6eef0;
}

.legal-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #e6eef0;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #8aa1a8;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: #06b6d4;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #0891b2;
}

.legal-content em {
  color: #8aa1a8;
}

/* Form validation */
.form-field-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.field-error-msg {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #f87171;
}

.form-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #06b6d4;
  background: #122024;
  color: #e6eef0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: fade-up 0.4s ease-out forwards;
}

.form-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* FAQ accordion */
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

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

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-panel.is-open {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-in,
  .animate-pulse-glow,
  .animate-count-pop,
  .stat-number.is-visible,
  .accent-line::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
