/**
 * LeadJaw - Support page styles
 * assets/css/support.css
 * v1.0.0
 * Sits alongside landing.css - uses the same CSS variables where possible.
 */

/* --------------------------------------------------------
   Hero
-------------------------------------------------------- */
.support-hero {
  background: var(--ink, #0f1117);
  padding: 72px 24px 64px;
  text-align: center;
}

.support-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green, #8DC63F);
  margin-bottom: 1rem;
}

.support-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.support-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 2.2rem;
}

.support-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* --------------------------------------------------------
   Search
-------------------------------------------------------- */
.support-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.support-search {
  width: 100%;
  padding: .9rem 1rem .9rem 3rem;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.support-search::placeholder {
  color: rgba(255,255,255,.35);
}

.support-search:focus {
  border-color: var(--green, #8DC63F);
  background: rgba(255,255,255,.1);
}

.support-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  color: rgba(255,255,255,.4);
  pointer-events: none;
}

.support-search-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1e2340;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.focused {
  background: rgba(141,198,63,.1);
}

.search-result-q {
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .25rem;
}

.search-result-meta {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}

.search-result-highlight {
  color: var(--green, #8DC63F);
}

.search-no-results {
  padding: 1.1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  text-align: center;
}

/* --------------------------------------------------------
   Category grid
-------------------------------------------------------- */
.support-cats {
  background: #f8f9fb;
  padding: 48px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-decoration: none;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.cat-card:hover {
  border-color: #8DC63F;
  box-shadow: 0 4px 16px rgba(141,198,63,.12);
  transform: translateY(-2px);
}

.cat-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: .2rem;
}

.cat-title {
  font-size: .84rem;
  font-weight: 600;
  color: #1a1d23;
  line-height: 1.3;
}

.cat-count {
  font-size: .72rem;
  color: #6b7280;
}

/* --------------------------------------------------------
   Article sections
-------------------------------------------------------- */
.support-content {
  padding: 56px 24px 72px;
  background: #fff;
}

.support-section {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  scroll-margin-top: 80px;
}

.support-section:last-child {
  margin-bottom: 0;
}

.support-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid #f3f4f6;
}

.section-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: .1rem;
  flex-shrink: 0;
}

.support-section-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1d23;
  margin-bottom: .25rem;
}

.section-desc {
  font-size: .83rem;
  color: #6b7280;
  line-height: 1.5;
}

/* --------------------------------------------------------
   FAQ accordion
-------------------------------------------------------- */
.sp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.sp-faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.sp-faq-item:last-child {
  border-bottom: none;
}

.sp-faq-item.hidden-by-search {
  display: none;
}

.sp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: #1a1d23;
  transition: background .12s;
}

.sp-faq-q:hover {
  background: #f9fafb;
}

.sp-faq-q[aria-expanded="true"] {
  background: #f9fafb;
  color: #1e2340;
}

.sp-faq-chevron {
  flex-shrink: 0;
  width: 18px;
  color: #9ca3af;
  transition: transform .2s;
}

.sp-faq-chevron svg {
  display: block;
  width: 18px;
  height: 18px;
}

.sp-faq-q[aria-expanded="true"] .sp-faq-chevron {
  transform: rotate(180deg);
  color: #8DC63F;
}

.sp-faq-a {
  overflow: hidden;
}

.sp-faq-a-inner {
  padding: .75rem 1.2rem 1.2rem;
  font-size: .875rem;
  color: #374151;
  line-height: 1.75;
  border-top: 1px solid #f3f4f6;
}

/* --------------------------------------------------------
   Still stuck CTA
-------------------------------------------------------- */
.support-cta {
  background: var(--ink, #0f1117);
  padding: 64px 24px;
  text-align: center;
}

.support-cta h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}

.support-cta p {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  max-width: 480px;
  margin: 0 auto 1.8rem;
  line-height: 1.65;
}

/* --------------------------------------------------------
   Mobile
-------------------------------------------------------- */
@media (max-width: 600px) {
  .support-hero {
    padding: 52px 20px 48px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-section-head {
    flex-direction: column;
    gap: .6rem;
  }

  .sp-faq-q {
    font-size: .84rem;
    padding: .9rem 1rem;
  }

  .sp-faq-a-inner {
    padding: .6rem 1rem 1rem;
    font-size: .84rem;
  }
}
