/* ============================================================
   ISATIS — FAQ section (contact page)
   ============================================================ */

@import url('./globals.css');

.faq {
  background: var(--e-global-color-bg-soft);
  padding: var(--section-pad-y) 0;
}

/* servicepagina's: FAQ op wit (contact houdt bg-soft) */
.faq--white { background: var(--e-global-color-bg); }

.faq__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* ── Left column ─────────────────────────────────────────── */
.faq__left {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--e-global-color-secondary);
  margin: 0;
}

.faq__dot {
  color: var(--e-global-color-primary);
  font-size: 10px;
  line-height: 1;
}

.faq__heading {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--e-global-color-text);
  margin: 0;
}

/* ── Schedule card ───────────────────────────────────────── */
.faq__card {
  position: relative;
  background: var(--e-global-color-bg-soft);
  border: 1px solid var(--e-global-color-border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  overflow: hidden;
}

.faq__card-glow { display: none; }

.faq__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid var(--e-global-color-border);
  background: var(--e-global-color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq__card-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--e-global-color-text);
  margin: 0 0 10px;
}

.faq__card-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--e-global-color-text-dim);
  margin: 0 0 20px;
}

/* ── Category tabs (zelfde component als de cases-tabs) ──── */

.faq__categories::-webkit-scrollbar { display: none; }
.faq__categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin-bottom: 20px;
}
/* grid-cel mag krimpen zodat de tab-strip binnen de kolom scrollt i.p.v. uitsteekt */
.faq__right { min-width: 0; }

.faq__cat {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--e-global-color-text-mute);
  background: none;
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s ease;
}
.faq__cat::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--e-global-color-border);
}
.faq__cat::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; border-radius: 2px; z-index: 1;
  background: var(--e-global-color-primary);
  transform: scaleX(0); transition: transform .25s ease;
}
.faq__cat:hover { color: var(--e-global-color-text); }

.faq__cat--active {
  color: var(--e-global-color-text);
}
.faq__cat--active::after { transform: scaleX(1); }

/* ── Accordion ───────────────────────────────────────────── */
.faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: var(--e-global-color-bg);
  border: 1px solid var(--e-global-color-border);
  border-radius: 10px;
  overflow: hidden;
}

.faq__item--hidden { display: none; }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--e-global-color-text);
  transition: color 0.2s ease;
}

.faq__question:hover { color: var(--e-global-color-primary); }
.faq__item--open .faq__question { color: var(--e-global-color-primary); }

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--e-global-color-text-mute);
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
  color: var(--e-global-color-primary);
}

.faq__answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item--open .faq__answer {
  height: auto;
}

.faq__answer p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--e-global-color-text-dim);
  margin: 0;
  padding: 0 20px 18px;
  max-width: 64ch;        /* leesbreedte cappen i.p.v. full-width FAQ-antwoorden */
}

/* ── Responsive ──────────────────────────────────────────── */
/* TABLET: stack the two-column layout; left card becomes static (no sticky).
   gap is fluid via the base clamp(), so no per-breakpoint gap override needed. */
@media (max-width: 1024px) {
  .faq__inner { grid-template-columns: 1fr; }
  .faq__left { position: static; top: auto; }
  .faq__card { max-width: 100%; }
}

/* PHONE: tighten inner element paddings; tabs stay a scrollable single row. */
@media (max-width: 640px) {
  .faq__heading { font-size: clamp(22px, 6.5vw, 28px); }
  .faq__card { padding: 24px 18px 20px; }
  /* Keep tabs as a horizontally scrollable row that never overflows the page */
  .faq__categories { max-width: 100%; }
  .faq__cat { font-size: 15px; padding: 14px 14px; }
  .faq__question { padding: 16px 16px; font-size: 14px; gap: 12px; }
  .faq__answer p { padding: 0 16px 16px; }
}

@media (max-width: 420px) {
  .faq__heading { font-size: clamp(20px, 7vw, 26px); }
}
