/* ============================================
   Awisol Marketing Site — Custom CSS
   Tailwind handles utilities; this file handles
   animations, gradients, and pseudo-elements.
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-brand-50:  #eef2ff;
  --color-brand-100: #e0e7ff;
  --color-brand-200: #c7d2fe;
  --color-brand-600: #4f46e5;
  --color-brand-700: #4338ca;
  --color-brand-950: #1e1b4b;
}

/* ---------- Hero gradient ---------- */
.hero-gradient {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 320px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* ---------- How It Works step connector ---------- */
.steps-grid {
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid::before {
    content: '';
    position: absolute;
    /* vertically centred on icon circles (badge ~26px + gap 12px + half icon 32px = ~70px) */
    top: 4.5rem;
    left:  calc(100% / 6 + 2rem); /* from col-1 centre + half icon width */
    right: calc(100% / 6 + 2rem); /* from col-3 centre + half icon width */
    border-top: 2px dashed var(--color-brand-200);
    z-index: 0;
  }
}

/* ---------- Nav link underline hover ---------- */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand-600);
  transition: width 0.2s ease;
}

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

/* ---------- Accessible focus rings ---------- */
*:focus-visible {
  outline: 2px solid var(--color-brand-600);
  outline-offset: 2px;
  border-radius: 2px;
}
