/* ============================================================
   KHADIZA DREAMS — faq.css
   Used only by: faq.html
   Depends on: styles.css (tokens, buttons, footer, drawers)
   ============================================================ */


/* ============================================================
   1. BREADCRUMBS
   ============================================================ */
.crumbs{
  padding-block:24px;
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}
.crumbs a{ transition:color .3s; }
.crumbs a:hover{ color:var(--ink); }
.crumbs span{ margin-inline:9px; opacity:.45; }


/* ============================================================
   2. PAGE HEAD
   ============================================================ */
.faq-head{
  padding-block:clamp(36px, 4.6vw, 64px) clamp(28px, 3.4vw, 44px);
  text-align:center;
  border-bottom:1px solid var(--line);
}

.faq-head__eyebrow{
  font-size:10.5px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:14px;
}

.faq-head__title{
  font-size:clamp(34px, 5vw, 64px);
  font-weight:300;
  line-height:1.04;
  margin:0 auto 18px;
  max-width:18ch;
}

.faq-head__title em{
  font-style:italic;
  color:var(--gold);
}

.faq-head__text{
  max-width:52ch;
  margin:0 auto;
  font-size:15px;
  font-weight:300;
  line-height:1.75;
  color:var(--ink-soft);
}


/* ============================================================
   3. SEARCH
   ============================================================ */
.faq-search{
  padding-block:clamp(26px, 3.2vw, 40px) clamp(20px, 2.4vw, 30px);
}

.faq-search__inner{
  position:relative;
  max-width:640px;
  margin:0 auto;
}

.faq-search__input{
  width:100%;
  padding:16px 56px 16px 52px;
  border:1px solid var(--line-dark);
  border-radius:99px;
  background:var(--paper);
  font-family:var(--font-body);
  font-size:14.5px;
  font-weight:300;
  color:var(--ink);
  outline:none;
  transition:border-color .3s, box-shadow .3s;
}

.faq-search__input::placeholder{ color:var(--muted); }

.faq-search__input:focus{
  border-color:var(--ink);
  box-shadow:0 0 0 4px rgba(176,141,87,.12);
}

.faq-search__icon{
  position:absolute;
  left:20px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:var(--muted);
  fill:none;
  stroke:currentColor;
  stroke-width:1.3;
  pointer-events:none;
}

.faq-search__clear{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%) scale(0);
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:18px;
  line-height:1;
  color:var(--muted);
  transition:transform .3s var(--ease), color .25s, background .25s;
}
.faq-search__clear:hover{
  color:var(--ink);
  background:var(--soft);
}
.faq-search__clear.is-visible{ transform:translateY(-50%) scale(1); }

.faq-search__meta{
  max-width:640px;
  margin:14px auto 0;
  text-align:center;
  font-size:11.5px;
  letter-spacing:.1em;
  color:var(--muted);
  min-height:16px;
}
.faq-search__meta strong{ color:var(--ink); font-weight:500; }


/* ============================================================
   4. LAYOUT (sidebar + content)
   ============================================================ */
.faq-layout{
  display:grid;
  grid-template-columns:242px minmax(0, 1fr);
  gap:clamp(24px, 3.4vw, 56px);
  align-items:start;
  padding-block:clamp(24px, 3vw, 40px) clamp(56px, 7vw, 96px);
}


/* ============================================================
   5. SIDEBAR (category nav)
   ============================================================ */
.faq-nav{
  position:sticky;
  top:calc(var(--header-h) + 26px);
}

.faq-nav__title{
  font-family:var(--font-body);
  font-size:10px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:15px;
}

.faq-nav__list{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.faq-nav__link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-radius:var(--radius);
  font-size:13px;
  font-weight:300;
  color:var(--ink-soft);
  transition:background .3s, color .3s, padding-left .3s var(--ease);
}
.faq-nav__link:hover{
  background:var(--soft);
  color:var(--ink);
}
.faq-nav__link.is-active{
  background:var(--ink);
  color:var(--paper);
}
.faq-nav__link.is-active .faq-nav__count{
  background:rgba(255,253,251,.14);
  color:var(--paper);
}

.faq-nav__count{
  min-width:22px;
  height:22px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--soft);
  color:var(--muted);
  border-radius:99px;
  font-size:10.5px;
  font-weight:400;
  transition:background .3s, color .3s;
}

.faq-nav__foot{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid var(--line);
}

.faq-nav__foot p{
  font-size:12.5px;
  line-height:1.7;
  color:var(--muted);
  margin-bottom:14px;
}

.faq-nav__foot .btn{
  width:100%;
}


/* ============================================================
   6. FAQ CONTENT
   ============================================================ */
.faq-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:clamp(40px, 5vw, 64px);
}

.faq-section{
  scroll-margin-top:calc(var(--header-h) + 30px);
}

.faq-section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid var(--line);
}

.faq-section__title{
  font-size:clamp(22px, 2.6vw, 30px);
  font-weight:300;
  line-height:1.2;
}

.faq-section__count{
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

/* ---------- Accordion ---------- */
.acc-list{
  display:flex;
  flex-direction:column;
}

.acc{
  border-bottom:1px solid var(--line);
}
.acc:last-child{ border-bottom:0; }

.acc__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 0;
  cursor:pointer;
  list-style:none;
  transition:padding-left .3s var(--ease);
}
.acc__head::-webkit-details-marker{ display:none; }
.acc__head:hover{ padding-left:4px; }

.acc__q{
  font-family:var(--font-display);
  font-size:clamp(17px, 1.7vw, 20px);
  font-weight:400;
  line-height:1.3;
  color:var(--ink);
  max-width:60ch;
}

.acc__icon{
  flex-shrink:0;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid var(--line-dark);
  border-radius:50%;
  color:var(--ink);
  transition:background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}

.acc__icon svg{
  width:12px;
  height:12px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.acc__head:hover .acc__icon{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}

.acc[open] .acc__icon{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
  transform:rotate(180deg);
}

.acc__body{
  padding:0 0 24px;
  max-width:68ch;
  font-size:14px;
  font-weight:300;
  line-height:1.8;
  color:var(--ink-soft);
  animation:accFade .35s var(--ease);
}

@keyframes accFade{
  from{ opacity:0; transform:translateY(-4px); }
  to  { opacity:1; transform:none; }
}

.acc__body p + p{ margin-top:12px; }

.acc__body ul{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-top:10px;
}

.acc__body li{
  position:relative;
  padding-left:18px;
}
.acc__body li::before{
  content:'';
  position:absolute;
  left:0;
  top:.72em;
  width:7px;
  height:1px;
  background:var(--gold);
}

.acc__body a{
  color:var(--ink);
  border-bottom:1px solid var(--line-dark);
  transition:border-color .3s;
}
.acc__body a:hover{ border-bottom-color:var(--ink); }


/* ============================================================
   7. EMPTY SEARCH STATE
   ============================================================ */
.faq-empty{
  padding:clamp(48px, 6vw, 88px) clamp(20px, 4vw, 48px);
  text-align:center;
  border:1px dashed var(--line-dark);
  border-radius:var(--radius);
  background:var(--soft);
}

.faq-empty__icon{
  display:inline-grid;
  place-items:center;
  width:64px;
  height:64px;
  margin-bottom:22px;
  border-radius:50%;
  background:var(--paper);
  color:var(--gold);
}
.faq-empty__icon svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.faq-empty__title{
  font-family:var(--font-display);
  font-size:clamp(22px, 3vw, 32px);
  font-weight:300;
  line-height:1.15;
  margin-bottom:10px;
}

.faq-empty__text{
  max-width:44ch;
  margin:0 auto 24px;
  font-size:13.5px;
  line-height:1.75;
  color:var(--muted);
}

.faq-empty__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}


/* ============================================================
   8. STILL NEED HELP
   ============================================================ */
.still-help{
  padding-block:clamp(56px, 7vw, 96px);
  background:var(--soft);
}

.help-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:clamp(20px, 3vw, 44px);
  margin-top:clamp(30px, 4vw, 52px);
}

.help-card{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:clamp(24px, 3vw, 40px);
  background:var(--paper);
  border-radius:var(--radius);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.help-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px -28px rgba(23,21,18,.35);
}

.help-card__icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--soft);
  color:var(--gold);
}
.help-card__icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.help-card__title{
  font-size:19px;
  font-weight:400;
}

.help-card__text{
  font-size:13.5px;
  line-height:1.75;
  color:var(--muted);
  margin-bottom:6px;
}

.help-card__link{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:10.5px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink);
  padding-bottom:2px;
  border-bottom:1px solid var(--line-dark);
  align-self:flex-start;
  transition:border-color .3s;
}
.help-card__link:hover{ border-bottom-color:var(--ink); }
.help-card__link::after{
  content:'→';
  font-size:13px;
  letter-spacing:0;
}


/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .faq-layout{
    grid-template-columns:1fr;
    gap:32px;
  }
  .faq-nav{
    position:static;
    top:auto;
  }
  .faq-nav__list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
  }
  .faq-nav__link{
    padding:9px 14px;
    border:1px solid var(--line);
    border-radius:99px;
    background:var(--paper);
  }
  .faq-nav__link:hover{
    background:var(--soft);
  }
  .faq-nav__link.is-active{
    background:var(--ink);
    color:var(--paper);
    border-color:var(--ink);
  }
  .faq-nav__count{
    background:transparent;
    padding:0;
    min-width:auto;
    height:auto;
  }
  .faq-nav__link.is-active .faq-nav__count{
    background:transparent;
  }
  .faq-nav__foot{
    display:none;
  }
  .help-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .faq-head__title{ font-size:clamp(28px, 8vw, 40px); }
  .acc__q{ font-size:16px; }
  .acc__head{ padding:18px 0; }
  .acc__icon{
    width:28px;
    height:28px;
  }
  .acc__icon svg{
    width:10px;
    height:10px;
  }
  .faq-search__input{
    padding:14px 46px 14px 44px;
    font-size:14px;
  }
  .faq-search__icon{
    left:16px;
    width:16px;
    height:16px;
  }
}