/* ============================================================
   SALON10X — Minimal CSS (Tailwind handles the rest)
   Only: keyframes, pseudo-elements, JS-toggled states
============================================================ */

/* ---- REVEAL ANIMATION (JS toggles .revealed) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HERO BADGE DOT PULSE ---- */
.badge-dot { animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

/* ---- SCROLL LINE ---- */
.scroll-line { animation: scroll-line 2s infinite; }
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- SVG CHART ---- */
.chart-line { stroke-dasharray: 400; stroke-dashoffset: 400; }
.chart-line.animate {
  animation: draw-line 1.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.chart-dot.animate { animation: pop-dot 0.4s ease forwards; }
.chart-dot:nth-child(6).animate { animation-delay: 0.4s; }
.chart-dot:nth-child(7).animate { animation-delay: 0.9s; }
.chart-dot:nth-child(8).animate { animation-delay: 1.3s; }
.chart-dot:nth-child(9).animate { animation-delay: 1.7s; }
@keyframes pop-dot { to { opacity: 1; } }

/* ---- FORM CARD top orange bar ---- */
.form-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px; right: 20px; height: 3px;
  background: #F97316;
  border-radius: 0 0 4px 4px;
}

/* ---- FORM FIELD ERROR STATE ---- */
.form-field.error { border-color: #dc2626 !important; }

/* ---- SERVICE CARD top hover line ---- */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #F97316, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }


/* ---- FAQ OPEN STATE ---- */
.faq-item.open { border-color: rgba(249,115,22,0.3) !important; }
.faq-item.open .faq-a { max-height: 300px !important; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: #F97316; }

/* ---- POPUP ACTIVE STATE ---- */
.popup-overlay.active { opacity: 1 !important; pointer-events: all !important; }
.popup-overlay.active .popup-card { transform: translateY(0) !important; }

/* ---- HEADER SCROLLED SHADOW ---- */
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

/* ---- MOBILE NAV ---- */
@media (max-width: 1023px) {
  .header-nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px;
    gap: 4px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
}
