/* ============================================================
   FAQ PAGE — faq.css
   Depends on ../styles.css for base variables and reset.
   ============================================================ */

/* ── Local Design Tokens ──────────────────────────────────── */
/* Removed local :root overrides — now references global tokens from styles.css:
   --teal-dim, --teal-light, --teal-pale, --teal-mist,
   --sand-mid, --sand-deep, --rose-gold, --dark / --text-dark,
   --text-medium / --mid, --muted, --subtle, --card-bg, --radius-md */

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(0.22,1,0.36,1), transform .65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── Hero — Full-bleed forest background ──────────────────── */
.faq-hero {
  background: var(--forest);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

/* glows */
.faq-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.faq-hglow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,184,152,.10) 0%, transparent 65%);
  width: 700px;
  height: 500px;
  top: -20%;
  right: -8%;
}
.faq-hglow2 {
  position: absolute;
  background: radial-gradient(circle, rgba(196,145,124,.07) 0%, transparent 65%);
  width: 500px;
  height: 400px;
  bottom: -10%;
  left: -5%;
  border-radius: 50%;
}

/* large watermark "?" — spans full width, not constrained */
.faq-hero-wm {
  position: absolute;
  bottom: -60px;
  right: 40px;
  font-family: var(--font-serif);
  font-size: 500px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,.025);
  pointer-events: none;
  user-select: none;
}

/* 1200px content container inside hero */
.faq-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 48px 0;
  position: relative;
  z-index: 2;
}

/* breadcrumb */
.faq-hero-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
  margin-bottom: 22px;
}
.faq-hero-crumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.faq-hero-crumb a:hover {
  color: rgba(255,255,255,.75);
}

/* eyebrow */
.faq-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.faq-hero-eyebrow::before {
  content: '';
  width: 27px;
  height: 1.5px;
  background: var(--teal-light);
  opacity: 0.6;
}

/* h1 */
.faq-hero h1 {
  font-family: var(--font-serif);
  font-size: var(--type-display);
  font-weight: 400;
  line-height: 1.08;
  color: white;
  margin-bottom: 20px;
  max-width: 700px;
}
.faq-hero h1 i {
  color: var(--teal-light);
  font-style: italic;
}

/* sub text */
.faq-hero-sub {
  font-size: var(--type-body);
  font-weight: 400;
  color: rgba(255,255,255,.75);
  line-height: var(--lh-body);
  max-width: 520px;
  margin-bottom: 44px;
}
.faq-hero-sub a {
  color: var(--teal-light);
  text-decoration: none;
}
.faq-hero-sub a:hover {
  text-decoration: underline;
}

/* search */
.faq-search-wrap {
  position: relative;
  max-width: 560px;
  padding-bottom: 48px;
  animation: faqFadeUp .6s .1s both;
}
@keyframes faqFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: 0 22px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.faq-search-box:focus-within {
  background: rgba(255,255,255,.10);
  border-color: rgba(49,184,152,.50);
  box-shadow: 0 0 0 4px rgba(49,184,152,.10);
}
.faq-search-icon {
  font-size: var(--type-body-lg);
  opacity: .4;
  flex-shrink: 0;
  pointer-events: none;
}
.faq-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 400;
  color: white;
  padding: 16px 0;
}
.faq-search-input::placeholder {
  color: rgba(255,255,255,.55);
}
.faq-search-clear {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: none;
  color: rgba(255,255,255,.75);
  font-size: var(--type-body);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.faq-search-clear:hover {
  background: rgba(255,184,152,.20);
}
.faq-search-clear.visible {
  display: flex;
}
.faq-search-count {
  font-size: var(--type-caption);
  font-weight: 400;
  color: rgba(255,255,255,.65);
  margin-top: 10px;
  padding-left: 24px;
  min-height: 16px;
  transition: opacity .2s;
}

/* ── Stats Strip — full-bleed dark, content constrained ───── */
.faq-stats-strip {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.07);
  position: relative;
  z-index: 2;
}
.faq-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.faq-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.faq-stat-item:last-child {
  border-right: none;
}
.faq-stat-val {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}
.faq-stat-label {
  font-size: var(--type-caption);
  font-weight: 400;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.45;
}

/* ── Main Layout — 1200px constrained grid ────────────────── */
.faq-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  gap: 0;
  align-items: start;
  background: var(--sand, #FAF6EF);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.faq-sidebar {
  position: sticky;
  top: 84px;
  padding: 52px 0;
  border-right: 1px solid var(--sand-deep);
}
.faq-sidebar-label {
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 18px;
  padding-right: 32px;
}
.faq-cat-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 10px 0;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  text-align: left;
  font-family: var(--font-sans);
  transition: background .2s;
  position: relative;
}
.faq-cat-btn::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--teal);
  border-radius: 0 2px 2px 0;
  transition: height .25s cubic-bezier(.22,1,.36,1);
}
.faq-cat-btn.active::before {
  height: 100%;
}
.faq-cat-btn:hover {
  background: var(--teal-mist);
}
.faq-cat-btn.active {
  background: var(--teal-mist);
}
.faq-cat-name {
  font-size: var(--type-small);
  font-weight: 400;
  color: var(--mid);
  transition: color .2s;
  line-height: 1.35;
}
.faq-cat-btn.active .faq-cat-name,
.faq-cat-btn:hover .faq-cat-name {
  color: var(--teal-dim);
  font-weight: 400;
}
.faq-cat-count {
  font-family: var(--font-sans);
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--subtle);
  background: var(--sand-mid);
  padding: 2px 7px;
  border-radius: 100px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.faq-cat-btn.active .faq-cat-count {
  background: rgba(49,184,152,.15);
  color: var(--teal-dim);
}
.faq-cat-btn.faq-all-btn .faq-cat-name {
  font-weight: 400;
  color: var(--dark);
}
.faq-cat-btn.faq-all-btn.active .faq-cat-name {
  color: var(--teal-dim);
}

.faq-sidebar-divider {
  height: 1px;
  background: var(--sand-deep);
  margin: 20px 32px 20px 0;
}
.faq-sidebar-cta {
  padding-right: 24px;
}
.faq-sidebar-cta a {
  display: block;
  text-align: center;
  background: var(--teal);
  color: white;
  padding: 11px 18px;
  border-radius: 100px;
  font-size: var(--type-caption);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(49,184,152,.22);
  transition: background .2s, transform .15s;
  margin-bottom: 10px;
}
.faq-sidebar-cta a:hover {
  background: var(--teal-dim);
  transform: translateY(-1px);
}
.faq-sidebar-cta a.faq-outline {
  background: transparent;
  color: var(--mid);
  border: 1.5px solid var(--sand-deep);
  box-shadow: none;
}
.faq-sidebar-cta a.faq-outline:hover {
  background: var(--sand-mid);
  border-color: var(--subtle);
}
.faq-sidebar-phone {
  text-align: center;
  font-size: var(--type-caption);
  font-weight: 400;
  color: var(--subtle);
  margin-top: 10px;
}
.faq-sidebar-phone a {
  color: var(--muted);
  text-decoration: none;
}
.faq-sidebar-phone a:hover {
  color: var(--teal);
}

/* ── FAQ Content Area ─────────────────────────────────────── */
.faq-content {
  padding: 96px 0 96px 56px;
}

/* no-results state */
.faq-no-results {
  display: none;
  text-align: center;
  padding: 80px 40px;
}
.faq-no-results.visible {
  display: block;
}
.faq-nr-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .4;
}
.faq-nr-title {
  font-family: var(--font-serif);
  font-size: var(--type-h2);
  font-weight: 400;
  color: var(--mid);
  margin-bottom: 8px;
}
.faq-nr-sub {
  font-size: var(--type-body);
  font-weight: 400;
  color: var(--text-medium);
}
.faq-nr-sub a {
  color: var(--teal);
  text-decoration: none;
}

/* ── Category Section ─────────────────────────────────────── */
.faq-section {
  margin-bottom: 60px;
  transition: opacity .3s;
}
.faq-section.hidden {
  display: none;
}

.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--sand-deep);
  position: relative;
}
.sec-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1.5px;
  width: 48px;
  height: 1.5px;
  background: var(--teal);
}
.sec-title {
  font-family: var(--font-serif);
  font-size: var(--type-h1);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.1;
}
.sec-title i {
  color: var(--teal-dim);
  font-style: italic;
}
.sec-meta {
  font-size: var(--type-caption);
  font-weight: 400;
  color: var(--subtle);
  letter-spacing: .04em;
  white-space: nowrap;
  padding-bottom: 4px;
}

/* ── FAQ Item ─────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--sand-deep);
  transition: opacity .25s, transform .25s;
}
.faq-item.search-hidden {
  display: none;
}
.faq-item.search-dim {
  opacity: .32;
  pointer-events: none;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background .15s;
}
.faq-q:hover .q-text {
  color: var(--teal-dim);
}

.q-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.q-num {
  font-family: var(--font-sans);
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: .06em;
  min-width: 24px;
  padding-top: 3px;
  flex-shrink: 0;
  transition: color .2s;
}
.faq-item.open .q-num {
  color: var(--teal);
}
.q-text {
  font-size: var(--type-body-lg);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.45;
  transition: color .2s;
}
.faq-item.open .q-text {
  color: var(--teal-dim);
}

/* search highlight */
.q-text mark,
.a-text mark {
  background: rgba(49,184,152,.18);
  color: var(--teal-dim);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: inherit;
}

/* +/× toggle button */
.q-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--sand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all .25s;
}
.q-toggle-inner {
  position: relative;
  width: 12px;
  height: 12px;
}
.q-toggle-inner::before,
.q-toggle-inner::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 1px;
  transition: all .25s;
}
/* horizontal bar */
.q-toggle-inner::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
/* vertical bar */
.q-toggle-inner::after {
  width: 1.5px;
  height: 12px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.faq-item.open .q-toggle {
  background: var(--teal);
  border-color: var(--teal);
}
.faq-item.open .q-toggle-inner::before {
  background: white;
}
.faq-item.open .q-toggle-inner::after {
  background: white;
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

/* collapsible answer */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .faq-a {
  max-height: 800px;
}
.a-inner {
  padding: 0 0 26px 38px;
}
.a-text {
  font-size: var(--type-body);
  font-weight: 400;
  color: var(--mid);
  line-height: 1.82;
}
.a-text p {
  margin-bottom: 14px;
}
.a-text p:last-child {
  margin-bottom: 0;
}
.a-text strong {
  font-weight: 500;
  color: var(--dark);
}
.a-text ul {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.a-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--type-body);
  line-height: 1.60;
}
.a-text ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 6px;
}
.a-text a {
  color: var(--teal);
  text-decoration: none;
}
.a-text a:hover {
  text-decoration: underline;
}

/* link chips */
.a-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.a-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-mist);
  border: 1px solid rgba(49,184,152,.18);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: var(--type-caption);
  font-weight: 400;
  color: var(--teal-dim);
  text-decoration: none;
  transition: background .2s;
}
.a-tag:hover {
  background: var(--teal-pale);
}

/* ── CTA Band — full-bleed forest background ──────────────── */
.faq-cta-band {
  background: var(--forest);
  position: relative;
  overflow: hidden;
}
.faq-cta-band-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 50%, rgba(49,184,152,.09) 0%, transparent 55%);
  pointer-events: none;
}
.faq-cta-band-wm {
  position: absolute;
  right: -20px;
  bottom: -60px;
  font-family: var(--font-serif);
  font-size: 260px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,.025);
  pointer-events: none;
  user-select: none;
}
.faq-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.faq-cta-left {
  position: relative;
  z-index: 1;
}
.faq-cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 12px;
}
.faq-cta-eyebrow::before {
  content: '';
  width: 27px;
  height: 1.5px;
  background: var(--teal-light);
  opacity: 0.6;
}
.faq-cta-band h2 {
  font-family: var(--font-serif);
  font-size: var(--type-h1);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin-bottom: 10px;
}
.faq-cta-band h2 i {
  color: var(--teal-light);
  font-style: italic;
}
.faq-cta-band p {
  font-size: var(--type-body);
  font-weight: 400;
  color: rgba(255,255,255,.75);
  max-width: 440px;
  line-height: 1.68;
}
.faq-cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.faq-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--type-small);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(49,184,152,.30);
  transition: background .2s, transform .15s;
}
.faq-btn-primary:hover {
  background: var(--teal-dim);
  transform: translateY(-1px);
}
.faq-cta-phone {
  font-size: var(--type-small);
  font-weight: 400;
  color: rgba(255,255,255,.65);
}
.faq-cta-phone a {
  color: rgba(255,255,255,.70);
  text-decoration: none;
}
.faq-cta-phone a:hover {
  color: rgba(255,255,255,.75);
}

/* ── Responsive Breakpoints ───────────────────────────────── */
@media (max-width: 900px) {
  .faq-main {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }
  .faq-sidebar {
    display: none;
  }
  .faq-hero-inner {
    padding: 120px 32px 0;
  }
  .faq-stats-inner {
    padding: 20px 32px;
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-cta-inner {
    padding: 64px 32px;
    flex-direction: column;
  }
  .faq-content {
    padding: 64px 0 64px 0;
  }
}

@media (max-width: 640px) {
  .faq-hero-inner {
    padding: 110px 24px 0;
  }
  .faq-stats-inner {
    padding: 16px 24px;
  }
  .faq-main {
    padding: 0 20px;
  }
  .faq-cta-inner {
    padding: 64px 24px;
  }
  .faq-hero-wm {
    font-size: 280px;
  }
  .faq-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
