/* ================================================================
   FAQ Help Center — shared styles (main page + sub-pages)
   ================================================================ */

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111; background: #fff; min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ── Navbar ── */
.navbar {
  background-color: transparent !important;
  transition: background-color 0.3s ease;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.navbar.scrolled {
  background-color: white !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.navbar .link-text {
  color: #000 !important;
}

/* ── Layout ── */
.page-wrapper { flex: 1; display: flex; flex-direction: column; }

/* ── Persistent Unicorn Studio hero background ── */
#persistent-hero-bg {
  position: fixed; top: 0; left: 0; right: 0; height: 55vh;
  z-index: 0; opacity: 0.5; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
}

/* ── SPA transition ── */
#faq-main { transition: opacity 0.18s ease; }

/* ── Content sits above the fixed bg ── */
#faq-main, footer.footer-info { position: relative; z-index: 1; }

/* ================================================================
   Main page  (faq.html)
   ================================================================ */

/* Hero */
.help-hero {
  padding: 160px 24px 64px;
  text-align: center;
}

.help-hero .eyebrow {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #0050dc; margin-bottom: 16px;
}

.help-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; color: #0a0a0a; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -0.03em;
}

.help-hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #555; max-width: 520px; margin: 0 auto 40px; line-height: 1.65;
}

/* Search */
.search-wrap { max-width: 560px; margin: 0 auto 24px; position: relative; }
.search-wrap input {
  width: 100%; padding: 16px 20px 16px 52px;
  border: 1.5px solid #e5e5e5; border-radius: 16px;
  font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color 0.2s; background: #fff;
}
.search-wrap input:focus { border-color: #0050dc; }
.search-wrap .search-icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); color: #999;
}

/* Popular tags */
.popular-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; max-width: 560px; margin: 0 auto;
}
.popular-tags a {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; color: #0050dc;
  background: rgba(0,80,220,0.06); text-decoration: none;
  transition: background 0.15s;
}
.popular-tags a:hover { background: rgba(0,80,220,0.12); }

/* Category grid */
.categories-section {
  padding: 40px 24px 80px; max-width: 1080px;
  margin: 0 auto; width: 100%; background: #fff;
}
.categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cat-card {
  background: #fff; border: 1.5px solid #e5e5e5; border-radius: 20px;
  padding: 32px 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.cat-card .cat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(0,80,220,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.cat-card h3 { font-size: 1.05rem; font-weight: 700; color: #0a0a0a; }
.cat-card p  { font-size: 0.88rem; color: #666; line-height: 1.55; }
.cat-card .cat-arrow {
  margin-top: auto; color: #0050dc;
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

/* Bottom CTA */
.help-cta {
  text-align: center; padding: 64px 24px 80px;
  background: rgba(0,80,220,0.03);
}
.help-cta h2 { font-size: 1.6rem; font-weight: 800; color: #0a0a0a; margin-bottom: 12px; }
.help-cta p   { font-size: 1rem; color: #555; margin-bottom: 28px; }
.help-cta .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  background: #0050dc; color: #fff;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: opacity 0.15s;
}
.help-cta .cta-btn:hover { opacity: 0.88; }

/* No results */
.no-results {
  display: none; text-align: center; padding: 48px 24px;
  color: #888; font-size: 1rem; grid-column: 1 / -1;
}
.no-results.visible { display: block; }
.cat-card.hidden { display: none; }

/* ================================================================
   Sub-pages  (faq/*.html)
   ================================================================ */

.faq-hero { padding: 140px 24px 48px; }
.faq-hero-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: #888; margin-bottom: 16px; }
.breadcrumb a { color: #0050dc; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.faq-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; color: #0a0a0a; line-height: 1.15;
  letter-spacing: -0.02em;
}

.faq-content {
  max-width: 800px; margin: 0 auto;
  padding: 32px 24px 80px; display: grid; gap: 16px;
  background: #fff;
}
.faq-item {
  border-radius: 20px; border: 1px solid #e5e5e5;
  background: #fff; overflow: hidden;
}
.faq-button {
  width: 100%; background: transparent; border: 0;
  text-align: left; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 1rem; font-weight: 600; color: #111;
  cursor: pointer; font-family: inherit;
}
.faq-button:hover { background: rgba(0,80,220,0.02); }
.faq-icon {
  font-size: 1.3rem; color: #0050dc; flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 24px; color: #555;
  display: none; line-height: 1.7; font-size: 0.95rem;
}
.faq-answer ul, .faq-answer ol { padding-left: 20px; margin: 8px 0; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer table {
  width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.9rem;
}
.faq-answer th, .faq-answer td {
  border: 1px solid #e5e5e5; padding: 10px 14px; text-align: left;
}
.faq-answer th { background: rgba(0,80,220,0.04); font-weight: 600; }
.faq-answer a { color: #0050dc; }
.faq-item.is-open .faq-answer { display: block; }

/* ── Footer ── */
.footer-info { background: #0a0a0a; padding: 40px 0; margin-top: auto; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 860px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .help-hero { padding: 120px 20px 48px; }
  .categories-section { padding: 32px 20px 60px; }
  .categories-grid { grid-template-columns: 1fr; }
  .cat-card { padding: 24px 20px; }

  .faq-hero { padding: 120px 20px 40px; }
  .faq-content { padding: 24px 20px 60px; }
  .faq-button { padding: 16px 20px; font-size: 0.95rem; }
  .faq-answer { padding: 0 20px 20px; }
  .faq-answer table { font-size: 0.82rem; }
  .faq-answer th, .faq-answer td { padding: 8px 10px; }
}

/* ── Hamburger media queries (Webflow compat) ── */
@media (max-width: 767px) and (min-width: 480px) {
  html:not(.nav-open) [data-w-id="04b10ab9-1bea-d4e8-e7b9-40286343dcb6"] { display: none; opacity: 0; }
  html:not(.nav-open) [data-w-id="04b10ab9-1bea-d4e8-e7b9-40286343dcc1"],
  html:not(.nav-open) [data-w-id="04b10ab9-1bea-d4e8-e7b9-40286343dcc2"] {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);
  }
}
@media (max-width: 479px) {
  html:not(.nav-open) [data-w-id="04b10ab9-1bea-d4e8-e7b9-40286343dcb6"] { display: none; opacity: 0; }
  html:not(.nav-open) [data-w-id="04b10ab9-1bea-d4e8-e7b9-40286343dcc1"],
  html:not(.nav-open) [data-w-id="04b10ab9-1bea-d4e8-e7b9-40286343dcc2"] {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);
  }
}
