/* ══════════════════════════════════════════════════
   FAQ PAGE — STANDALONE STYLESHEET
   Brand tokens mirror verisafe-v2.css
   ══════════════════════════════════════════════════ */

/* ── FONT FACE ────────────────────────────── */
@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & BASE ──────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #FAFBFF;
  --surface: #FFFFFF;
  --navy: rgba(15, 26, 12, 1);
  --green: rgba(68, 214, 44, 1);
  --green-dark: #38b824;
  --dark-text: rgba(26, 31, 23, 1);
  --muted: rgba(107, 127, 101, 1);
  --border: #E2E8F4;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  background: #fff;
  color: var(--navy);
  overflow-x: hidden;
  font-size: 14px;
}

/* ── BURGER ───────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV ──────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 247, 1);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 64px;
}

.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav { top: 46px; }
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  color: #5A6A85;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 20px 0;
  cursor: pointer;
}

.nav-links > li > a:hover { color: var(--green); }

.nav-dropdown {
  position: absolute;
  top: 62px;
  left: -12px;
  background: var(--green);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  backface-visibility: hidden;
}

.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: white;
  text-decoration: none;
  transition: background-color 0.15s;
  background-color: transparent;
}

.nav-dropdown a:hover { background-color: rgba(0, 0, 0, 0.1); }

.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-weight: 400 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.2s !important;
  text-decoration: none;
  align-self: center;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   FAQ HERO
   ══════════════════════════════════════════════════ */
.faq-hero {
  background: var(--green);
  padding: 80px 24px 64px;
  text-align: center;
  color: var(--navy);
  position: relative;
}

.faq-hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

.faq-hero h1 {
  font-size: clamp(48px, 7.4vw, 128px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -3px;
  color: #fff;
  overflow: visible;
}

.faq-hero-accent {
  color: var(--navy);
}

/* Search bar straddles the boundary between hero (green) and the section below (white). */
.faq-search-bar {
  max-width: 560px;
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 11;
}

.faq-search {
  position: relative;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  padding: 12px 12px;
  font-size: 14px;
  color: var(--navy);
}

.faq-search input::placeholder { color: var(--muted); }

/* Hide the browser's native (×) — replaced by .faq-search-clear */
.faq-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.faq-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(107, 124, 101, 1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-search-clear svg { width: 18px; height: 18px; }

.faq-search-clear[hidden] { display: none; }

.faq-search-clear:hover {
  background: rgba(107, 124, 101, 0.12);
  color: rgba(107, 124, 101, 1);
}

/* ══════════════════════════════════════════════════
   FILTER CHIPS
   ══════════════════════════════════════════════════ */
.faq-chips-wrap {
  background: #fff;
  padding: 48px 24px 8px;
  border-bottom: 1px solid transparent;
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.faq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.faq-chip-dot {
  color: rgba(107, 124, 101, 1);
  font-size: 10px;
  line-height: 1;
}

.faq-chip:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.faq-chip.is-active {
  background: rgba(68, 214, 44, 0.12);
  color: rgba(42, 122, 26, 1);
  border-color: rgba(68, 214, 44, 0.3);
}

.faq-chip.is-active .faq-chip-dot {
  color: rgba(42, 122, 26, 1);
}

.faq-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.faq-chip.is-active .faq-chip-count {
  background: rgba(68, 214, 44, 0.2);
  color: rgba(42, 122, 26, 1);
}

/* ══════════════════════════════════════════════════
   FAQ SECTIONS
   ══════════════════════════════════════════════════ */
.faq-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.faq-section {
  scroll-margin-top: 140px;
  margin-bottom: 56px;
}

.faq-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.faq-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-transform: uppercase;
  margin: 0;
}

.faq-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.3em;
  background: var(--green);
  border-radius: 2px;
}

.faq-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(42, 122, 26, 1);
  background: rgba(68, 214, 44, 0.12);
  border: 1px solid rgba(68, 214, 44, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.faq-item.is-open {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.faq-summary {
  width: 100%;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  user-select: none;
  transition: color 0.2s;
}

.faq-summary:hover { color: var(--green-dark); }

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: transform 0.25s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.faq-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

.faq-item.is-open .faq-toggle {
  transform: rotate(-180deg);
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer {
  min-height: 0;
  overflow: hidden;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--muted);
  transition: padding 0.3s ease;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
  margin-top: 10px;
}

.faq-answer ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.faq-answer li + li {
  margin-top: 6px;
}

.faq-answer strong {
  color: var(--navy);
  font-weight: 700;
}

.faq-answer a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--navy);
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer {
  padding: 0 18px 18px;
}

/* hide items that don't match search */
.faq-item.is-hidden { display: none; }
.faq-section.is-hidden { display: none; }

.faq-empty {
  text-align: center;
  padding: 64px 16px 72px;
}

.faq-empty-icon {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(68, 214, 44, 0.12);
  border: 1px solid rgba(68, 214, 44, 0.35);
  color: var(--green-dark);
}

.faq-empty-icon::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(68, 214, 44, 0.35);
}

.faq-empty-icon svg { width: 40px; height: 40px; }

.faq-empty-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 10px;
}

.faq-empty-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto;
  max-width: 380px;
}

/* ══════════════════════════════════════════════════
   CTA BANNER — mirrors verisafe-v2 .slogan-section
   ══════════════════════════════════════════════════ */
.faq-cta {
  background: rgba(68, 214, 44, 1);
  padding: 80px 40px;
  text-align: center;
}

.faq-cta h2:first-child {
  color: black;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 auto 16px;
}

.faq-cta h2:nth-child(2) {
  color: white;
  font-size: 22px;
  font-weight: 400 !important;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: none;
}

.faq-cta-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
}

.btn-faq-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-faq-cta-outline {
  color: #fff;
  background: var(--green);
  border: 2px solid #fff;
}

.btn-faq-cta-outline:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-faq-cta-fill {
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
}

.btn-faq-cta-fill:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════════
   FOOTER — copied from v2 pattern
   ══════════════════════════════════════════════════ */
footer {
  background: #f8f8f6;
  padding: 56px 60px 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
}

.footer-heading {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #5A6A85;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--green); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icon svg { width: 24px; height: 24px; }
.social-icon:hover { transform: translateY(-3px); opacity: 0.88; }

.footer-logo-img {
  height: 110px;
  width: auto;
  display: block;
}

.footer-bar {
  background: var(--green);
  padding: 14px 60px;
  font-size: 11px;
  color: white;
  text-align: center;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
    animation: navSlideDown 0.25s ease forwards;
  }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links > li { width: 100%; }

  .nav-links > li > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-links > li:last-child > a { border-bottom: none; }

  .nav-dropdown {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 8px 0 0 16px;
  }

  .nav-dropdown a { color: var(--navy); padding: 8px 0; }

  .faq-chips-wrap { top: 64px; padding: 24px 16px 8px; }

  .faq-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-inner { flex-direction: column; align-items: stretch; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-right { align-items: center; }

  /* CTA banner — mobile (matches verisafe-v2 .slogan-section) */
  .faq-cta { padding: 60px 24px; }
  .faq-cta h2:first-child {
    font-size: clamp(24px, 6vw, 36px);
    letter-spacing: -0.5px;
  }
  .faq-cta h2:nth-child(2) {
    font-size: 16px;
    white-space: normal;
    max-width: 600px;
  }
  .faq-cta-ctas {
    flex-direction: column;
    align-items: center;
  }
  .btn-faq-cta {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .faq-hero { padding: 56px 20px 72px; }
  .faq-hero h1 { letter-spacing: -1px; }
  .faq-main { padding: 24px 16px 56px; }
  .footer-links { grid-template-columns: 1fr; }
  footer { padding: 40px 24px 32px; }
  .footer-bar { padding: 14px 24px; font-size: 10px; }
}
