/* ============================================================
   WQ Studio — extras.css  (form feedback, shake, utilities)
============================================================ */

/* Form message */
.form-msg {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 4px;
}
.form-msg.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-msg.error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Shake animation for form validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  30%       { transform: translateX(8px); }
  45%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
  75%       { transform: translateX(-4px); }
  90%       { transform: translateX(4px); }
}

/* Nav header transition */
#site-header {
  transition: background 0.4s ease, box-shadow 0.4s ease,
              height 0.3s ease, transform 0.35s ease;
}

/* Smooth page transitions */
.wq-page {
  animation: fadeIn 0.4s ease both;
}

/* Section eyebrow line for centered variant */
.sec-header.centered .sec-ey::before { display: none; }
.sec-header.centered .sec-ey::after {
  content: '';
  display: inline-block; width: 28px; height: 2px;
  background: var(--bb); border-radius: 2px;
  flex-shrink: 0; margin-left: 10px;
}

/* Floating animation on hero stat numbers */
.hero-stat .stat-num {
  animation: counterUp 0.8s ease both;
}
.hero-stat:nth-child(1) .stat-num { animation-delay: 1.7s; }
.hero-stat:nth-child(2) .stat-num { animation-delay: 1.9s; }
.hero-stat:nth-child(3) .stat-num { animation-delay: 2.1s; }

/* Hero stat dividers */
.hero-stats { position: relative; }
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute; right: -26px; top: 10%; height: 80%;
  width: 1px; background: rgba(255,255,255,0.15);
}
.hero-stat { position: relative; }

/* Glowing border on contact form focus */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--bb);
  box-shadow: 0 0 0 4px rgba(30,144,255,0.1),
              0 2px 12px rgba(30,144,255,0.15);
}

/* Privacy section fade-in stagger */
.priv-section {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.priv-section.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Smooth scrollbar on webkit */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f4ff; }
::-webkit-scrollbar-thumb { background: var(--bm); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bd); }

/* Selection colour */
::selection { background: var(--bb); color: #fff; }

/* Focus ring for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--bb);
  outline-offset: 3px;
}

/* Utility: visually hidden (screen-reader only) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
