/*
 * SLD FAQs — Frontend Styles
 * Matches the dark design of solarlightingdesigns.eco exactly.
 * All selectors namespaced .sld-faq-* to avoid theme conflicts.
 *
 * Brand colour is injected as --sld-red via inline <style> in the template.
 */

/* ── CSS Variables ─────────────────────────────────────────── */
.sld-faq-wrap {
  --sld-red:     #da251c;
  --sld-red-dk:  #b81e16;
  --sld-bg:      #2a2a2a;
  --sld-bg2:     #323232;
  --sld-bg3:     #3a3a3a;
  --sld-bg4:     #1e1e1e;
  --sld-white:   #ffffff;
  --sld-text:    #e0e0e0;
  --sld-muted:   #999999;
  --sld-border:  rgba(255,255,255,0.07);
  --sld-border-h:rgba(255,255,255,0.13);
  --sld-fh:      'Barlow Condensed', sans-serif;
  --sld-fb:      'Barlow', sans-serif;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--sld-text);
  box-sizing: border-box;
}
.sld-faq-wrap *,
.sld-faq-wrap *::before,
.sld-faq-wrap *::after {
  box-sizing: inherit;
}
.sld-faq-wrap a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════════════════════ */
.sld-faq-hero { 
  background: var(--sld-bg4);
  border-bottom: 1px solid var(--sld-border);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.sld-faq-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 100% at 100% 50%, rgba(218,37,28,.07), transparent);
  pointer-events: none;
}
/* Subtle grid texture */
.sld-faq-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--sld-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--sld-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
  pointer-events: none;
}
.sld-faq-hero-inner {
  max-width: 96%; 
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.sld-faq-breadcrumb {
  font-size: 12px;
  color: var(--sld-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.sld-faq-breadcrumb a {
  color: var(--sld-muted);
  transition: color .2s;
}
.sld-faq-breadcrumb a:hover { color: var(--sld-red); }
.sld-faq-bc-sep { opacity: .4; }

.sld-faq-hero-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 900;
  color: var(--sld-white);
  line-height: .95;
  letter-spacing: -2px;
  margin: 0;
}
.sld-faq-hero-title span { color: var(--sld-red); }

.sld-faq-hero-sub {
  font-size: 14px;
  color: var(--sld-muted);
  max-width: 340px;
  line-height: 1.7;
  align-self: flex-end;
  padding-bottom: 6px;
  text-align: right;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   QUICK CATEGORY BAR
══════════════════════════════════════════════════════════════ */
.sld-faq-quick-bar {
  background: var(--sld-bg2);
  border-bottom: 1px solid var(--sld-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.sld-faq-quick-bar::-webkit-scrollbar { display: none; }

.sld-faq-quick-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
}
.sld-faq-qlink {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--sld-muted);
  white-space: nowrap;
  border: none;
  border-right: 1px solid var(--sld-border);
  background: transparent;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.sld-faq-qlink:hover { color: var(--sld-white); background: rgba(218,37,28,.08); }
.sld-faq-qlink.active { color: var(--sld-red); background: rgba(218,37,28,.08); }
.sld-faq-qlink svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════════════ */
.sld-faq-main {
  max-width: 96%;
  margin: 0 auto;
  padding: 56px 32px 72px;
}
.sld-faq-has-sidebar {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 48px;
  align-items: start;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.sld-faq-sidebar {
  position: sticky;
  top: 96px; /* Below sticky WP header + plugin header */
}
.sld-faq-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sld-muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sld-border);
}
.sld-faq-sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sld-faq-scat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 3px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sld-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
  text-align: left;
  width: 100%;
}
.sld-faq-scat:hover  { color: var(--sld-white); background: var(--sld-bg3); }
.sld-faq-scat.active {
  color: var(--sld-white);
  background: var(--sld-bg3);
  border-color: var(--sld-border);
  border-left: 3px solid var(--sld-red);
  padding-left: 11px; /* compensate for extra border width */
}
.sld-faq-scat svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.sld-faq-scat-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: rgba(218,37,28,.15);
  color: var(--sld-red);
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Sidebar contact callout */
.sld-faq-sidebar-contact {
  margin-top: 24px;
  background: var(--sld-bg3);
  border: 1px solid var(--sld-border);
  border-left: 3px solid var(--sld-red);
  border-radius: 3px;
  padding: 18px 18px 20px;
}
.sld-faq-sc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--sld-white);
  margin-bottom: 8px;
}
.sld-faq-sc-body {
  font-size: 12px;
  color: var(--sld-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.sld-faq-btn-sc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sld-red);
  color: var(--sld-white);
  padding: 9px 16px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s;
}
.sld-faq-btn-sc:hover  { background: var(--sld-red-dk); color: var(--sld-white); }
.sld-faq-btn-sc svg { width: 12px; height: 12px; fill: currentColor; }

/* ══════════════════════════════════════════════════════════════
   CONTENT — SEARCH
══════════════════════════════════════════════════════════════ */
.sld-faq-search-wrap {
  position: relative;
  margin-bottom: 28px;
}
.sld-faq-search {
  width: 100%;
  background: var(--sld-bg3);
  border: 1px solid var(--sld-border);
  border-radius: 3px;
  padding: 13px 48px 13px 18px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: var(--sld-white);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.sld-faq-search::placeholder { color: var(--sld-muted); }
.sld-faq-search:focus { border-color: rgba(218,37,28,.45); }
.sld-faq-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--sld-muted);
}
.sld-faq-search-icon svg { width: 18px; height: 18px; display: block; }

.sld-faq-no-results {
  display: none;
  text-align: center;
  padding: 44px 20px;
  color: var(--sld-muted);
  font-size: 14px;
}
.sld-faq-no-results.sld-show { display: block; }
.sld-faq-no-results svg {
  width: 40px; height: 40px;
  fill: var(--sld-border);
  display: block;
  margin: 0 auto 12px;
}

/* ══════════════════════════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════════════════════════ */
.sld-faq-section { margin-bottom: 44px; }
.sld-faq-section:last-child { margin-bottom: 0; }

.sld-faq-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sld-border);
}
.sld-faq-fst-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: rgba(218,37,28,.1);
  border: 1px solid rgba(218,37,28,.25);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sld-faq-fst-icon svg { width: 18px; height: 18px; fill: var(--sld-red); }
.sld-faq-fst-label { 
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sld-red);
  margin-bottom: 2px;
}
.sld-faq-fst-name {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #00a3e4;
  letter-spacing: .2px;
}

/* ══════════════════════════════════════════════════════════════
   FAQ ACCORDION ITEM
══════════════════════════════════════════════════════════════ */
.sld-faq-item {
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-bottom: 4px;
  overflow: hidden;
  transition: border-color .2s;
}
.sld-faq-item:hover { border-color: var(--sld-border-h); }
.sld-faq-item.sld-open { border-color: rgba(218,37,28,.3); }

/* Question button */
.sld-faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Manrope", sans-serif;
  transition: background .2s;
}
.sld-faq-q:hover { background: #fff; }
.sld-faq-item.sld-open .sld-faq-q { background: var(--sld-bg3); }

/* Arrow */
.sld-faq-arrow {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(218,37,28,.1);
  border: 1px solid rgba(218,37,28,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s, border-color .25s;
}
.sld-faq-item.sld-open .sld-faq-arrow {
  background: var(--sld-red);
  border-color: var(--sld-red);
  transform: rotate(90deg);
}
.sld-faq-arrow svg {
  width: 10px; height: 10px;
  fill: var(--sld-red);
  transition: fill .25s;
  display: block;
}
.sld-faq-item.sld-open .sld-faq-arrow svg { fill: var(--sld-white); }

/* Question text */
.sld-faq-q-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #000;
  line-height: 1.35;
  flex: 1;
}
.sld-faq-item.sld-open .sld-faq-q-text { color: var(--sld-white); }

/* Answer panel — animated height */
.sld-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}
.sld-faq-item.sld-open .sld-faq-a { max-height: 800px; }

.sld-faq-a-inner {
  padding: 25px 30px 25px;
  font-size: 16px;
  color: #222;
  line-height: 1.8;
}
.sld-faq-a-inner p { margin: 0 0 10px; }
.sld-faq-a-inner p:last-child { margin-bottom: 0; }
.sld-faq-a-inner strong { color: #000; } 
.sld-faq-a-inner a { color: var(--sld-red); text-decoration: underline; }

/* Lists inside answers */
.sld-faq-a-inner ul,
.sld-faq-a-inner ol {
  margin: 8px 0 10px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sld-faq-a-inner ul li,
.sld-faq-a-inner ol li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-left: 0;
}
.sld-faq-a-inner ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sld-red);
  flex-shrink: 0;
  margin-top: 13px;
}
.sld-faq-a-inner ol { counter-reset: faq-ol; }
.sld-faq-a-inner ol li { counter-increment: faq-ol; }
.sld-faq-a-inner ol li::before {
  content: counter(faq-ol) '.';
  font-size: 12px;
  font-weight: 700;
  color: var(--sld-red);
  flex-shrink: 0;
  margin-top: 1px;
  min-width: 18px;
}

/* ══════════════════════════════════════════════════════════════
   CTA STRIP
══════════════════════════════════════════════════════════════ */
.sld-faq-cta-strip {
  background: var(--sld-bg4);
  border-top: 1px solid var(--sld-border);
  padding: 68px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sld-faq-cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(218,37,28,.06), transparent);
  pointer-events: none;
}
.sld-faq-cta-heading {
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  color: var(--sld-white);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin: 0 0 28px;
  position: relative;
}
.sld-faq-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sld-red);
  color: var(--sld-white);
  padding: 14px 32px;
  border-radius: 2px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background .2s, transform .15s;
  position: relative;
}
.sld-faq-btn-cta:hover { background: var(--sld-red-dk); transform: translateY(-1px); color: var(--sld-white); }
.sld-faq-btn-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* ══════════════════════════════════════════════════════════════
   EMPTY / HIDDEN STATES
══════════════════════════════════════════════════════════════ */
.sld-faq-empty {
  padding: 32px 0;
  color: var(--sld-muted);
  font-style: italic;
}
.sld-faq-item[hidden],
.sld-faq-section[hidden] { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════════ */
.sld-faq-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.sld-faq-reveal.sld-on { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 840px) {
  .sld-faq-has-sidebar { grid-template-columns: 1fr; }
  .sld-faq-sidebar { position: static; }
  .sld-faq-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sld-faq-hero-sub { text-align: left; }
}
@media (max-width: 560px) {
  .sld-faq-main { padding: 36px 18px 56px; }
  .sld-faq-hero-inner { padding: 0 18px; }
  .sld-faq-quick-bar-inner { padding: 0 18px; }
  .sld-faq-a-inner { padding-left: 18px; }
  .sld-faq-cta-strip { padding: 52px 18px; }
}
