/* ═══════════════════════════════════════════════════
   VoltFi — Custom CSS
   ═══════════════════════════════════════════════════ */

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Helpers */
.editorial-shadow { box-shadow: 0px 10px 40px rgba(0, 40, 85, 0.06); }
.glass-nav { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.syne-bold { font-family: 'Syne', sans-serif; font-weight: 700; }
.montserrat { font-family: 'Montserrat', sans-serif; }

/* ── FAQ Accordion ── */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer.open { max-height: 500px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ── Multi-step Form ── */
.form-step { display: none; animation: voltfiFadeIn 0.3s ease; }
.form-step.active { display: block; }
.progress-bar { transition: width 0.4s ease; }

/* Step type buttons */
.type-btn { transition: all 0.2s ease; }
.type-btn.selected { background: #002855; color: white; border-color: #002855; }

@keyframes voltfiFadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Mobile Menu ── */
#mobile-menu { transform: translateY(-100%); transition: transform 0.3s ease; }
#mobile-menu.open { transform: translateY(0); }

/* Hamburger Animation */
#hamburger.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
#hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Cookie Banner ── */
#cookie-banner { transform: translateY(100%); transition: transform 0.4s ease; }
#cookie-banner.show { transform: translateY(0); }

/* ── Counter Animation ── */
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.counter-animated { animation: countUp 0.6s ease forwards; }

/* ── Form Validation (contact page) ── */
.field-error { border: 2px solid #ba1a1a !important; }
.field-success { border: 2px solid #476551 !important; }
.error-message { color: #ba1a1a; font-size: 0.75rem; margin-top: 0.25rem; display: none; }
.error-message.visible { display: block; }

/* ── Skip-to-content link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: #002855;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid #BFA5A4;
  outline-offset: 2px;
}

/* ── Focus-visible accessibility ── */
*:focus-visible {
  outline: 3px solid #BFA5A4;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #BFA5A4;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Reduced motion accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Override WP defaults ── */
body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ── Hide WP admin bar on frontend pages ── */
html { margin-top: 0 !important; }
