/* Cryptiq enhancement styles — dropdown nav, sticky CTA, trust/social-proof
   components, lead-gate forms, assessment quiz. Loads after styles.css. */

/* ---------------------------------------------------------------------------
   Top navigation: dropdowns + fit/overlap fixes
   --------------------------------------------------------------------------- */
.site-header .nav { gap: 18px; }
.site-header .brand { flex: 0 0 auto; }
.nav-links { flex-wrap: nowrap; gap: 18px; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cq-caret { font-size: .7em; line-height: 1; opacity: .7; }

.nav-links .cq-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 232px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .16s ease;
}
.nav-links .has-dropdown:hover > .cq-dropdown,
.nav-links .has-dropdown:focus-within > .cq-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-links .cq-dropdown li { width: 100%; margin: 0; }
.nav-links .cq-dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.nav-links .cq-dropdown a:hover,
.nav-links .cq-dropdown a.current { background: var(--orange-soft); color: var(--orange); text-decoration: none; }

/* keep a small invisible bridge so the menu doesn't close between row and panel */
.nav-links .has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }

/* hide the brand slogan a little earlier so the menu never collides with it */
@media (max-width: 1180px) {
  .nav .brand .slogan { display: none; }
  .nav-links { gap: 14px; }
  .nav-links > li > a { font-size: .92rem; }
}

/* Mobile: dropdowns become inline expanded lists inside the slide-down menu */
@media (max-width: 680px) {
  .nav-links .cq-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 2px 0 6px 14px; min-width: 0;
    border-left: 2px solid var(--orange-soft); margin: 2px 0 6px 6px;
  }
  .nav-links .cq-dropdown a { padding: 7px 8px; }
  .cq-caret { display: none; }
  .nav-links { gap: 2px; }
}

/* Footer logo: use the dedicated light SVG (no CSS invert, which rendered blank) */
.footer-brand img { filter: none; height: 44px; width: auto; }

/* ---------------------------------------------------------------------------
   Sticky CTA bar (dismissible)
   --------------------------------------------------------------------------- */
.cq-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--ink); color: #fff;
  box-shadow: 0 -8px 24px rgba(14,23,38,.18); transform: translateY(100%);
  transition: transform .3s ease;
}
.cq-sticky-cta.show { transform: translateY(0); }
.cq-sticky-cta p { margin: 0; font-weight: 600; }
.cq-sticky-cta .cq-sticky-close {
  background: none; border: 0; color: #aab6c6; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 4px;
}
.cq-sticky-cta .cq-sticky-close:hover { color: #fff; }
@media (max-width: 600px) { .cq-sticky-cta p { display: none; } }

/* ---------------------------------------------------------------------------
   Certification / partner badges
   --------------------------------------------------------------------------- */
.cq-badges-title, .cq-logos-title { text-align: center; }
.cq-badge-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; margin-top: 22px; }
.cq-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 10px;
}
.cq-badge-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg,var(--orange-2),var(--orange)); }
.cq-badge-label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.cq-badge-sub { color: var(--slate); font-size: .78rem; }
.cq-badges-note, .cq-logos-note { text-align: center; color: var(--slate); font-size: .82rem; margin-top: 14px; }
@media (max-width: 900px) { .cq-badge-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px) { .cq-badge-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------------------------------------------------------------------------
   Client logo strip
   --------------------------------------------------------------------------- */
.cq-logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.cq-logo {
  display: flex; align-items: center; justify-content: center;
  min-width: 150px; height: 60px; padding: 0 18px;
  background: #fff; border: 1px dashed var(--line); border-radius: 10px;
  color: var(--slate); font-weight: 700; letter-spacing: .3px;
}

/* ---------------------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------------------- */
.cq-testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin: 0; display: flex; flex-direction: column; gap: 12px;
}
.cq-stars { color: #FFB257; letter-spacing: 2px; }
.cq-testimonial blockquote { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.cq-testimonial figcaption b { display: block; color: var(--ink); }
.cq-testimonial figcaption span { color: var(--slate); font-size: .88rem; }

/* ---------------------------------------------------------------------------
   Team / leadership
   --------------------------------------------------------------------------- */
.cq-bio { text-align: center; }
.cq-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,var(--orange-2),var(--orange));
  color: #fff; font-weight: 800; font-size: 1.5rem;
}
.cq-role { color: var(--orange); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }

/* ---------------------------------------------------------------------------
   Social-proof line + lead-gate forms
   --------------------------------------------------------------------------- */
.cq-social-proof { color: var(--slate); font-size: .92rem; }
.cq-social-proof span { color: #FFB257; letter-spacing: 1px; }
.cq-gate-form { max-width: 480px; }
.cq-gate-note { color: var(--slate); font-size: .82rem; margin-top: 10px; }
.cq-gate-error { color: #b32d2e; font-weight: 600; }
.cq-gate-success {
  background: var(--orange-soft); border: 1px solid #f3dcc9; border-radius: 12px; padding: 20px;
}

/* ---------------------------------------------------------------------------
   Essential Eight self-assessment quiz
   --------------------------------------------------------------------------- */
.cq-quiz { max-width: 760px; margin: 0 auto; }
.cq-quiz-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.cq-quiz-q { font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: 14px; }
.cq-quiz-options { display: flex; flex-direction: column; gap: 10px; }
.cq-quiz-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cq-quiz-option:hover { border-color: var(--orange); background: var(--orange-soft); }
.cq-quiz-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.cq-quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--orange-2),var(--orange)); transition: width .3s ease; }
.cq-quiz-actions { display: flex; justify-content: space-between; margin-top: 18px; }
.cq-quiz-result { text-align: center; }
.cq-score-ring { font-size: 3rem; font-weight: 800; color: var(--orange); }
.cq-quiz-breakdown { text-align: left; margin-top: 20px; display: grid; gap: 8px; }
.cq-quiz-breakdown .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
