/* ═══════════════════════════════════════════════════════════════
   LEVEL 10 QA — IMPROVEMENT OVERRIDES  v2.0
   Drop this in as a <link> tag RIGHT BEFORE </head>
   See UPLOAD_INSTRUCTIONS.txt for full details.
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. ADA COLOR CONTRAST FIXES
   All failing colors fixed while keeping the dark bold aesthetic.
   ───────────────────────────────────────────────────────────── */

/* Fix the global --muted variable: #555 → #999
   This automatically fixes: nav links, form labels,
   stat sub-labels, contact item labels, footer copy,
   scroll cue text, and .attr-title testimonial sub-text     */
:root {
  --muted: #999 !important;
}

/* Body paragraph text was #888 — fails on lighter section backgrounds.
   Bump to #aaa for reliable 7.5:1 across all backgrounds.         */
.about-body p,
.quote-text {
  color: #aaa !important;
}

/* Features list items on product cards */
.features li {
  color: #bbb !important;
}

/* "Scroll onward" cue — decorative but should still be legible */
.scroll-cue {
  color: #666 !important;
}

/* Splash hint text was #2a2a2a (invisible on black) → #555 */
.splash-hint {
  color: #555 !important;
}

/* Ghost "Talk to us" button — was #555, now #999 */
.btn-ghost {
  color: #999 !important;
  border-color: #444 !important;
}
.btn-ghost:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* Contact item values (address, email, phone) */
.contact-item-value {
  color: #ccc !important;
}


/* ─────────────────────────────────────────────────────────────
   2. SKIP NAVIGATION LINK  (ADA — keyboard / screen reader)
   ───────────────────────────────────────────────────────────── */

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 99999;
  background: var(--accent);
  color: #000;
  padding: 0.6rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s;
  border: none;
  outline: none;
}
.skip-link:focus {
  top: 1rem;
}


/* ─────────────────────────────────────────────────────────────
   3. KEYBOARD FOCUS STYLES  (ADA)
   ───────────────────────────────────────────────────────────── */

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#splash-bug-wrap:focus-visible {
  outline: 2px solid var(--accent);
  border-radius: 50%;
  outline-offset: 16px;
}


/* ─────────────────────────────────────────────────────────────
   4. IMPROVED GORILLA EATING ANIMATION
   ───────────────────────────────────────────────────────────── */

/* Bug flies UP into the gorilla's open mouth.
   Old: bug spun in place and vanished before gorilla appeared.
   New: bug translates toward gorilla, gorilla appears first.   */
@keyframes bugEaten {
  0%   { transform: scale(1)    translateY(0px)    rotate(0deg);   opacity: 1;   }
  30%  { transform: scale(1.08) translateY(-55px)  rotate(10deg);  opacity: 1;   }
  65%  { transform: scale(0.55) translateY(-160px) rotate(48deg);  opacity: 0.7; }
  100% { transform: scale(0)    translateY(-230px) rotate(110deg); opacity: 0;   }
}

#splash-bug-svg.eaten {
  animation: bugEaten 0.56s ease-in forwards !important;
}

/* More dramatic jaw: open to 52° (was 30°), snaps faster */
#gorilla-jaw {
  transition: transform 0.08s cubic-bezier(0.15, 0, 0.35, 1) !important;
}
#gorilla-jaw.open  { transform: rotate(52deg) !important; }
#gorilla-jaw.close { transform: rotate(0deg)  !important; }

/* Chomp screen shake — fires when jaw snaps shut */
@keyframes chompShake {
  0%,100% { transform: translate(0,    0)    rotate(0deg);    }
  15%     { transform: translate(-8px, -2px) rotate(-1.5deg); }
  30%     { transform: translate(6px,  0)    rotate(1deg);    }
  50%     { transform: translate(-4px, 2px)  rotate(-0.5deg); }
  70%     { transform: translate(3px,  0);                    }
  85%     { transform: translate(-2px, 0);                    }
}

#gorilla-inner.chomp-shake {
  animation: chompShake 0.32s ease-out forwards !important;
}

/* Happy bounce — slightly more energetic than original */
@keyframes gorillaJoy {
  0%,100% { transform: scale(1)    translateY(0px);  }
  50%     { transform: scale(1.09) translateY(-16px); }
}
#gorilla-inner.happy {
  animation: gorillaJoy 0.42s ease-in-out 3 !important;
}


/* ─────────────────────────────────────────────────────────────
   5. NAV — ACTIVE SECTION LINK STATE
   ───────────────────────────────────────────────────────────── */

.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
  transform-origin: left;
}
.nav-links a.nav-active,
.nav-links a:hover {
  color: var(--accent) !important;
}
.nav-links a.nav-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}


/* ─────────────────────────────────────────────────────────────
   6. MOBILE HAMBURGER MENU
   ───────────────────────────────────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 300;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.26s ease, opacity 0.26s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .nav-links.mobile-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  .nav-links li { list-style: none; }
  .nav-links a {
    font-size: 1.8rem !important;
    letter-spacing: 0.1em !important;
    color: var(--text) !important;
  }
  .nav-links a.nav-active {
    color: var(--accent) !important;
  }
  .nav-links a::after { display: none; }
}


/* ─────────────────────────────────────────────────────────────
   7. SCROLL REVEAL ANIMATIONS
   Elements fade and rise in as they enter the viewport.
   ───────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside stat grid */
.stat.reveal:nth-child(2) { transition-delay: 0.1s; }
.stat.reveal:nth-child(3) { transition-delay: 0.2s; }
.stat.reveal:nth-child(4) { transition-delay: 0.3s; }
/* Stagger cards */
.card.reveal:nth-child(2) { transition-delay: 0.15s; }
/* Stagger quote cards */
.quote-card.reveal:nth-child(2) { transition-delay: 0.12s; }


/* ─────────────────────────────────────────────────────────────
   8. SOCIAL LINKS IN FOOTER
   ───────────────────────────────────────────────────────────── */

footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1.2rem !important;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent); }
.social-link svg {
  flex-shrink: 0;
  stroke: currentColor;
}


/* ─────────────────────────────────────────────────────────────
   9. ENHANCED FORM SUCCESS STATE
   ───────────────────────────────────────────────────────────── */

.success-msg {
  animation: riseUp 0.55s ease forwards;
}
.success-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(198,241,53,0.35);
  background: rgba(198,241,53,0.04);
  margin-top: 1rem;
}
.success-inner svg { flex-shrink: 0; margin-top: 2px; }
.success-inner p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text) !important;
}
.success-inner strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}


/* ─────────────────────────────────────────────────────────────
   10. CARD HOVER REFINEMENT
       Add a lime-green top border accent on hover
   ───────────────────────────────────────────────────────────── */

.card {
  transition: background 0.3s, box-shadow 0.3s !important;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::after {
  transform: scaleX(1);
}
.card:hover {
  box-shadow: 0 8px 40px rgba(198,241,53,0.06) !important;
}


/* ─────────────────────────────────────────────────────────────
   11. SMOOTH LOGO DOT PULSE  (small polish)
   ───────────────────────────────────────────────────────────── */

.logo-dot {
  transition: background 0.3s;
}
.logo:hover .logo-dot {
  background: var(--accent-h) !important;
  box-shadow: 0 0 10px rgba(198,241,53,0.6);
}
