/* ==========================================================================
   FAQ Page — scc-faq.css
   BEM naming: .scc-faq-*, with a few dashed legacy names for compat
   The prototype only shipped accordion state rules here; the rest of the
   layout lived in Tailwind utilities. Full layout is written below so the
   WP templates render correctly without Tailwind on the server.
   ========================================================================== */

/* ---------- Hero ---------- */
.scc-faq-hero {
  position: relative;
  background: var(--scc-primary);
  color: white;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .scc-faq-hero { padding: 7rem 0 5rem; }
}

.scc-faq-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scc-faq-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.scc-faq-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--scc-primary), var(--scc-primary) 80%, rgba(26, 87, 119, 0.95));
}

.scc-faq-hero-container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .scc-faq-hero-container { padding: 0 2rem; }
}

.scc-faq-hero-title {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-4xl);
  font-weight: var(--scc-weight-bold);
  color: white;
  line-height: var(--scc-leading-tight);
  margin: 0 0 1.25rem;
}

@media (min-width: 768px) { .scc-faq-hero-title { font-size: var(--scc-text-5xl); } }
@media (min-width: 1024px) { .scc-faq-hero-title { font-size: var(--scc-text-6xl); } }

.scc-faq-hero-desc {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xl);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 2.25rem;
  max-width: 42rem;
}

/* ---------- Search ---------- */
.scc-faq-search {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
}

.scc-faq-search-icon-wrapper {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--scc-muted-foreground);
  display: flex;
  align-items: center;
}

.scc-faq-search-icon { width: 1.25rem; height: 1.25rem; }

.scc-faq-search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-lg);
  color: var(--scc-foreground);
  background: white;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  outline: none;
}

.scc-faq-search-input:focus-visible {
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--scc-secondary);
}

/* ---------- Main grid ---------- */
.scc-faq-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .scc-faq-main { padding: 5rem 2rem; }
}

.scc-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .scc-faq-grid {
    flex-direction: row;
    gap: 2.5rem;
  }
}

/* ---------- Sidebar ---------- */
.scc-faq-sidebar { flex-shrink: 0; }

@media (min-width: 1024px) {
  .scc-faq-sidebar { width: 30%; }
}

.scc-faq-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .scc-faq-sidebar-inner {
    position: sticky;
    top: 8rem;
  }
}

.scc-faq-sidebar-card {
  background: white;
  border: 1px solid var(--scc-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

.scc-faq-sidebar-title {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-lg);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  margin: 0 0 1rem;
  padding: 0 1rem;
}

/* ---------- Category nav ---------- */
.scc-faq-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.scc-faq-nav-btn {
  font-family: var(--scc-font-sans);
  font-weight: var(--scc-weight-medium);
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--scc-muted-foreground);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.scc-faq-nav-btn:hover {
  background: var(--scc-muted);
}

.scc-faq-nav-btn--active,
.scc-faq-nav-btn[aria-pressed="true"] {
  background: rgba(26, 87, 119, 0.1);
  color: var(--scc-primary);
}

/* ---------- Contact card ---------- */
.scc-faq-contact-card {
  background: var(--scc-primary);
  color: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.scc-faq-contact-title {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-base);
  font-weight: var(--scc-weight-bold);
  color: white;
  margin: 0 0 0.5rem;
}

.scc-faq-contact-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--scc-text-sm);
  line-height: var(--scc-leading-relaxed);
  margin: 0 0 1rem;
}

.scc-faq-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--scc-accent);
  color: white;
  font-weight: var(--scc-weight-bold);
  font-size: var(--scc-text-sm);
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: filter 0.2s;
}

.scc-faq-contact-btn:hover { filter: brightness(1.1); }

/* ---------- Content column ---------- */
.scc-faq-content { flex: 1; min-width: 0; }

.scc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ---------- Category heading ---------- */
.scc-faq-category { scroll-margin-top: 8rem; }

.scc-faq-category-title {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-3xl);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--scc-border);
  padding-bottom: 1rem;
  margin: 0 0 1.5rem;
}

.scc-faq-category-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 211, 234, 0.2);
  color: var(--scc-secondary);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

/* ---------- Accordion ---------- */
.scc-faq-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scc-faq-accordion-item {
  background: white;
  border: 1px solid var(--scc-border);
  border-radius: 0.75rem;
  padding: 0 1.5rem;
  transition: box-shadow 0.2s;
}

/* legacy data-state support for any markup still using it */
.scc-faq-accordion-item[data-state="open"] {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.scc-faq-accordion-item[data-state="open"] .scc-faq-accordion-chevron {
  transform: rotate(180deg);
}

.scc-faq-accordion-trigger {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-lg);
  font-weight: var(--scc-weight-semibold);
  color: var(--scc-foreground);
  padding: 1.25rem 0;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.scc-faq-accordion-trigger:hover { color: var(--scc-primary); }

.scc-faq-accordion-chevron-wrap {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}

.scc-faq-accordion-chevron {
  width: 1.25rem;
  height: 1.25rem;
}

.scc-faq-accordion-trigger[aria-expanded="true"] .scc-faq-accordion-chevron-wrap {
  transform: rotate(180deg);
}

.scc-faq-accordion-content {
  display: none;
  padding: 0 0 1.5rem;
  color: var(--scc-muted-foreground);
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-base);
  line-height: var(--scc-leading-relaxed);
}

.scc-faq-accordion-content--open,
.scc-faq-accordion-item[data-state="open"] .scc-faq-accordion-content {
  display: block;
}

/* ---------- Empty state ---------- */
.scc-faq-empty {
  text-align: center;
  padding: 4rem 1rem;
  background: rgba(244, 246, 248, 0.5);
  border: 1px dashed var(--scc-border);
  border-radius: 1rem;
}

.scc-faq-empty-icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: rgba(26, 87, 119, 0.05);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scc-faq-empty-icon {
  width: 2rem;
  height: 2rem;
  color: var(--scc-muted-foreground);
}

.scc-faq-empty-title {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-2xl);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  margin: 0 0 0.5rem;
}

.scc-faq-empty-desc {
  font-family: var(--scc-font-sans);
  color: var(--scc-muted-foreground);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.scc-faq-empty-btn {
  border: 1px solid var(--scc-border);
  background: transparent;
  color: var(--scc-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.scc-faq-empty-btn:hover { background: var(--scc-muted); }

/* ---------- Closing CTA ---------- */
.scc-faq-cta {
  background: var(--scc-surface-warm);
  padding: 4rem 1rem;
  text-align: center;
}

.scc-faq-cta__container {
  max-width: 48rem;
  margin: 0 auto;
}

.scc-faq-cta__title {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-3xl);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  margin: 0 0 1rem;
}

.scc-faq-cta__text {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-lg);
  color: var(--scc-foreground);
  margin: 0 0 2rem;
}

.scc-faq-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

