/* =========================================================
   Nuni — Frågor & Svar widget
   Compact collapsible accordion built on native <details>/
   <summary> (no JS). Centered editorial header; questions sit
   closed by default and expand on click with a +/− toggle.
   Closes with a small contact CTA card (info rows + social).
   ========================================================= */
.nuni-faq {
  position: relative;
  width: 100%;
  background: transparent;
  color: var(--nuni-ink, #2A1F14);
  padding: clamp(48px, 7vw, 96px) 0;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
  box-sizing: border-box;
}
.nuni-faq * { box-sizing: border-box; }

.nuni-faq__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ───────── Header ───────── */
.nuni-faq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(48px, 6vw, 72px);
  max-width: 640px;
}

.nuni-faq__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nuni-sand-deep, #8A765C);
  margin: 0;
}

.nuni-faq__title {
  font-family: 'Camello-Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--nuni-ink, #2A1F14);
  margin: 0;
  text-wrap: balance;
}

.nuni-faq__lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--nuni-ink-2, #4A3C2C);
  margin: 0;
  text-wrap: pretty;
  max-width: 560px;
}

/* ───────── FAQ items — accordion ───────── */
.nuni-faq__list {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Ruled list — a hairline on every row (plus the bottom of the last) so the
   collapsed accordion reads as a clean, compact index. */
.nuni-faq.has-dividers .nuni-faq__item {
  border-top: 1px solid var(--nuni-line, rgba(28, 20, 12, 0.10));
}
.nuni-faq.has-dividers .nuni-faq__item:last-child {
  border-bottom: 1px solid var(--nuni-line, rgba(28, 20, 12, 0.10));
}

.nuni-faq__item {
  margin: 0;
}

/* Clickable row. Strip the native disclosure marker and build our own
   +/− icon on the right. */
.nuni-faq__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(17px, 2.3vw, 24px) 2px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nuni-faq__summary::-webkit-details-marker { display: none; }
.nuni-faq__summary:hover .nuni-faq__q { opacity: 0.6; }
.nuni-faq__summary:focus-visible {
  outline: 2px solid var(--nuni-sand-deep, #8A765C);
  outline-offset: 4px;
  border-radius: 4px;
}

.nuni-faq__q {
  font-family: 'Camello-Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.28;
  color: var(--nuni-ink, #2A1F14);
  margin: 0;
  text-wrap: balance;
  transition: opacity 0.2s ease;
}

/* +/− toggle — circle outline when closed (dark plus), filled circle when
   open (light minus). */
.nuni-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(28, 20, 12, 0.22);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nuni-faq__icon::before,
.nuni-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--nuni-ink, #2A1F14);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, background 0.25s ease;
}
.nuni-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.nuni-faq__item[open] .nuni-faq__icon {
  background: var(--nuni-ink, #2A1F14);
  border-color: var(--nuni-ink, #2A1F14);
}
.nuni-faq__item[open] .nuni-faq__icon::before { background: var(--nuni-page, #FBF7EE); }
.nuni-faq__item[open] .nuni-faq__icon::after  { opacity: 0; } /* hide vertical bar → minus */

/* Answer — revealed with a soft slide/fade when the row opens. */
.nuni-faq__a-wrap {
  padding: 0 2px clamp(20px, 2.8vw, 28px);
}
.nuni-faq__item[open] .nuni-faq__a-wrap {
  animation: nuni-faq-reveal 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes nuni-faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nuni-faq__a {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--nuni-ink-2, #4A3C2C);
  max-width: 620px;
  text-wrap: pretty;
}
.nuni-faq__a p {
  margin: 0;
}
.nuni-faq__a p + p {
  margin-top: 1.1em;
}
.nuni-faq__a a {
  color: var(--nuni-ink, #2A1F14);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.nuni-faq__a a:hover {
  opacity: 0.7;
}
.nuni-faq__a strong {
  font-weight: 600;
  color: var(--nuni-ink, #2A1F14);
}

@media (prefers-reduced-motion: reduce) {
  .nuni-faq__item[open] .nuni-faq__a-wrap { animation: none; }
  .nuni-faq__q,
  .nuni-faq__icon,
  .nuni-faq__icon::before,
  .nuni-faq__icon::after { transition: none; }
}

/* ───────── Contact CTA ───────── */
.nuni-faq__cta {
  margin-top: clamp(72px, 9vw, 120px);
  width: 100%;
  background: var(--nuni-page, #FBF7EE);
  border: 1px solid rgba(28, 20, 12, 0.08);
  border-radius: 20px;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
  box-shadow: 0 20px 40px rgba(42, 31, 20, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.nuni-faq__cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nuni-sand-deep, #8A765C);
  margin: 0;
}

.nuni-faq__cta-title {
  font-family: 'Camello-Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--nuni-ink, #2A1F14);
  margin: 0;
  max-width: 520px;
  text-wrap: balance;
}

.nuni-faq__cta-lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--nuni-ink-2, #4A3C2C);
  margin: 0 0 8px;
  max-width: 520px;
  text-wrap: pretty;
}

/* Info rows — centered, wraps to vertical on narrow screens */
.nuni-faq__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--nuni-line, rgba(28, 20, 12, 0.10));
  width: 100%;
}
.nuni-faq__info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.nuni-faq__info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nuni-sand-deep, #8A765C);
}
.nuni-faq__info-value {
  font-size: 15px;
  line-height: 1.5;
  color: var(--nuni-ink, #2A1F14);
}
.nuni-faq__info-value a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.nuni-faq__info-value a:hover {
  border-bottom-color: currentColor;
  opacity: 0.75;
}

/* Social row */
.nuni-faq__social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.nuni-faq__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(28, 20, 12, 0.14);
  color: var(--nuni-ink, #2A1F14);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nuni-faq__social-link:hover {
  background: var(--nuni-ink, #2A1F14);
  color: var(--nuni-page, #FBF7EE);
  border-color: var(--nuni-ink, #2A1F14);
  transform: translateY(-1px);
}
.nuni-faq__social-link svg {
  width: 18px;
  height: 18px;
}

/* ───────── Responsive ───────── */
@media (max-width: 600px) {
  .nuni-faq__inner {
    padding: 0 20px;
  }
  .nuni-faq__cta {
    padding: 36px 22px;
  }
  .nuni-faq__info {
    flex-direction: column;
    gap: 20px;
  }
}
