/* ==========================================================================
   Vortex Bizlink - Custom Stylesheet
   Complements Tailwind utility classes with brand-specific components,
   scroll animations and refinements that are impractical as pure
   utility chains.
   ========================================================================== */

:root {
  --primary: #C41230;
  --primary-hover: #A40F26;
  --secondary: #E63946;
  --section-bg: #FAFAFA;
  --text-color: #222222;
  --border-color: #ECECEC;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Header / Navigation ---------- */
#site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(34, 34, 34, 0.15);
}

.nav-link {
  position: relative;
  color: var(--text-color);
  padding-bottom: 4px;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.nav-link:hover,
.nav-link-active {
  color: var(--primary);
}
.nav-link:hover::after,
.nav-link-active::after {
  width: 100%;
}

.mobile-nav-link {
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  color: var(--text-color);
  transition: background-color .2s ease, color .2s ease;
}
.mobile-nav-link:hover {
  background-color: var(--section-bg);
  color: var(--primary);
}

.footer-link {
  transition: color .2s ease;
}
.footer-link:hover {
  color: #FFFFFF;
}

.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  transition: background-color .2s ease, transform .2s ease;
}
.social-icon:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Glass Effect (Light) ---------- */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- Cards ---------- */
.hover-lift {
  transition: transform .3s ease, box-shadow .3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(34, 34, 34, 0.25);
}

.icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196,18,48,0.12), rgba(230,57,70,0.12));
  color: var(--primary);
}

/* ---------- Scroll Reveal Animations ---------- */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.fade-up { transform: translateY(28px); }
.fade-left { transform: translateX(-32px); }
.fade-right { transform: translateX(32px); }

.fade-up.is-visible,
.fade-left.is-visible,
.fade-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* stagger helper */
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .4s; }
.delay-6 { transition-delay: .48s; }

/* ---------- Back to top ---------- */
#back-to-top.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--primary-hover);
}

/* ---------- Hero ---------- */
.hero-shape {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: .35;
}

/* ---------- Forms ---------- */
.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  background: #FFFFFF;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(196,18,48,0.12);
}
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}
.form-error {
  color: #DC2626;
  font-size: 0.78rem;
  margin-top: 0.35rem;
  display: none;
}
.form-error.is-visible {
  display: block;
}

/* ---------- Process Timeline ---------- */
.process-connector::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 50%;
  width: 2px;
  height: calc(100% + 1.5rem);
  background: repeating-linear-gradient(to bottom, var(--border-color) 0 6px, transparent 6px 12px);
  transform: translateX(-50%);
}
@media (min-width: 1024px) {
  .process-connector::after {
    top: 2.5rem;
    left: calc(100% + 0.75rem);
    width: calc(100% + 1.5rem);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--border-color) 0 6px, transparent 6px 12px);
    transform: none;
  }
}

/* ---------- Utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right,
  html { scroll-behavior: auto; transition: none !important; }
  .fade-up, .fade-left, .fade-right { opacity: 1; transform: none; }
}
