/* ==========================================================================
   Veelgestelde vragen "Vraag het Anja"
   ========================================================================== */

.as-faq { background: var(--linnen); }
.as-faq-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(32px, 4vw, 56px); text-align: center; }
.as-faq-hero__inner { display: flex; flex-direction: column; align-items: center; }
.as-faq-hero__title { margin: 0 0 .4rem; font: 700 clamp(3.6rem, 7vw, 7rem)/.95 var(--f-h2); letter-spacing: .02em; color: var(--kop); }
.as-faq-hero__intro { max-width: 46ch; margin: 0 0 2rem; font-size: 1.15rem; }

.as-faq-search { position: relative; display: block; width: min(100%, 640px); margin-bottom: 1.4rem; }
.as-faq-search svg { position: absolute; left: 1.3rem; top: 50%; width: 22px; height: 22px; fill: none; stroke: var(--taupe-diep); stroke-width: 1.8; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.as-faq-search input {
	width: 100%;
	height: 64px;
	padding: 0 1.4rem 0 3.6rem;
	border: 0;
	border-radius: 40px;
	background: var(--wit);
	font: inherit;
	font-size: 1.1rem;
	color: var(--kop);
	box-shadow: 0 20px 40px -30px rgba(59, 52, 45, .7);
	transition: box-shadow .3s;
}
.as-faq-search input:focus { outline: 0; box-shadow: 0 0 0 2px var(--kop), 0 20px 40px -30px rgba(59, 52, 45, .7); }

.as-faq-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.as-faq-topic { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border: 0; border-radius: 40px; background: rgba(255, 255, 255, .55); font: inherit; font-weight: 500; color: var(--kop); cursor: pointer; transition: background-color .3s, color .3s; }
.as-faq-topic span { font: 400 1rem/1 var(--f-h1); letter-spacing: .06em; color: var(--taupe-diep); }
.as-faq-topic:hover { background: var(--wit); }
.as-faq-topic.is-active { background: var(--kop); color: var(--wit); }
.as-faq-topic.is-active span { color: var(--mint); }

/* Vragen */
.as-faq__body { max-width: 900px; padding-bottom: var(--section); }
.as-faq-group { margin-bottom: clamp(32px, 4vw, 56px); scroll-margin-top: calc(var(--header-h) + 20px); }
.as-faq-group[hidden] { display: none; }
.as-faq-group__title { margin-bottom: 1rem; font: 700 clamp(2.2rem, 3vw, 3rem)/1 var(--f-h2); color: var(--kop); }
.as-q { margin-bottom: .6rem; border-radius: 6px; background: var(--wit); scroll-margin-top: calc(var(--header-h) + 20px); transition: box-shadow .3s; }
.as-q[hidden] { display: none; }
.as-q[open] { box-shadow: 0 24px 50px -40px rgba(59, 52, 45, .8); }
.as-q.is-target { animation: as-q-flash 1.6s var(--ease); }
@keyframes as-q-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--mint); } }
.as-q__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; list-style: none; }
.as-q__head::-webkit-details-marker { display: none; }
.as-q__title { font-weight: 500; font-size: 1.12rem; color: var(--kop); }
.as-q__title mark { padding: 0 .1em; border-radius: 3px; background: rgba(159, 199, 170, .55); color: inherit; }
.as-q__plus { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.as-q__plus::before, .as-q__plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--kop); transition: transform .35s var(--ease); }
.as-q__plus::after { transform: rotate(90deg); }
.as-q[open] .as-q__plus::after { transform: rotate(0); }
.as-q__body { padding: 0 1.4rem 1.3rem; animation: as-q-open .45s var(--ease); }
@keyframes as-q-open { from { opacity: 0; transform: translateY(-6px); } }
.as-q__body > p { max-width: 64ch; margin: 0 0 1rem; }
.as-q__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.as-q__ask, .as-q__copy { display: inline-flex; align-items: center; gap: .45rem; padding: 0; border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 500; color: var(--taupe-diep); text-decoration: none; cursor: pointer; transition: color .3s; }
.as-q__ask .as-icon, .as-q__copy svg { width: 18px; height: 18px; }
.as-q__copy svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.as-q__ask:hover, .as-q__copy:hover { color: var(--roze-diep); }
.as-q__copy.is-done { color: #4E7D5C; }

/* Hulpmiddelen bij antwoorden */
.as-faqx { margin: 0 0 1.2rem; padding: 1.1rem 1.2rem; border-radius: 6px; background: var(--linnen); }
.as-faqx--size { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: end; max-width: 480px; }
.as-faqx--size .as-field { margin: 0; }
.as-faqx--size input { font-size: 1.2rem; font-weight: 500; }
.as-faqx__eq { padding-bottom: .9rem; font: 400 1.8rem/1 var(--f-h1); color: var(--taupe); }
.as-faqx--karat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.as-faqx--karat figure, .as-faqx--ears figure { margin: 0; }
.as-faqx--karat svg { width: 120px; height: 80px; fill: none; stroke: var(--taupe-diep); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.as-faqx--karat .as-faqx__gem { fill: var(--mint); stroke: var(--kop); }
.as-faqx--karat figcaption { font-size: .92rem; }
.as-faqx--karat figcaption strong { display: block; font: 400 1.1rem/1.2 var(--f-h1); letter-spacing: .08em; color: var(--kop); }
.as-faqx__bars { display: grid; gap: .5rem; height: 80px; align-content: center; }
.as-faqx__bars span { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; font-size: .9rem; }
.as-faqx__bars i { position: relative; height: 12px; border-radius: 6px; background: rgba(59, 52, 45, .12); overflow: hidden; }
.as-faqx__bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 6px; background: linear-gradient(90deg, #f3dd9a, #c99a3d); }
.as-faqx__bars b { font-weight: 500; }
.as-faqx__bars em { font-style: normal; color: var(--taupe-diep); }
.as-faqx--ears { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.as-faqx--ears figure { text-align: center; }
.as-faqx--ears svg { width: 54px; height: 54px; fill: none; stroke: var(--taupe-diep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.as-faqx--ears figcaption { font-size: .9rem; }

.as-faq-none { padding: 2rem; border-radius: 6px; background: var(--wit); text-align: center; }
.as-faq-none[hidden] { display: none; }
.as-faq-none p { margin-bottom: 1rem; font-size: 1.1rem; }

/* Afsluiter */
.as-faq-end { padding-block: var(--section); background: var(--taupe-diep); color: var(--wit); }
.as-faq-end .as-h2 { color: var(--wit); }
.as-faq-end__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.as-faq-end p { max-width: 36ch; margin: 0; color: rgba(255, 255, 255, .86); }

@media (max-width: 899px) {
	.as-faq-topics { flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
	.as-faq-topics::-webkit-scrollbar { display: none; }
	.as-faq-topic { flex: none; }
	.as-faq-end__inner { grid-template-columns: minmax(0, 1fr); }
	.as-faqx--karat { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .as-q__body, .as-q.is-target { animation: none; } }
