/* Marga Malytska: component styles. Every value comes from tokens.css.
   Op de website laadt het child-thema deze zelfde regels, met zelf gehoste fonts (zonder de @import hierboven). */

.mg-preview { margin: 0; padding: var(--space-5); background: var(--night); color: var(--text); font-family: var(--font-sans); font-size: 18px; line-height: 30px; }
.mg-preview *, .mg *, .mg { box-sizing: border-box; }

/* ---------------------------------------------------------------- type */
.mg-display, .mg-h1, .mg-h2, .mg-h3 { font-family: var(--font-display); color: var(--heading); margin: 0; text-wrap: balance; }
.mg-display { font-size: clamp(46px, 7.4vw, 96px); line-height: 0.98; font-weight: 400; }
.mg-h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.1; font-weight: 400; }
.mg-h2 { font-size: clamp(31px, 3.4vw, 42px); line-height: 1.14; font-weight: 500; }
.mg-h3 { font-size: 28px; line-height: 32px; font-weight: 500; }
.mg-lead { font-size: 21px; line-height: 33px; margin: 0; color: var(--text); max-width: 56ch; }
.mg-body { font-size: 18px; line-height: 30px; margin: 0; max-width: var(--measure); }
.mg-small { font-size: 16px; line-height: 24px; }
.mg-caption { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.mg-muted { color: var(--text-muted); }
.mg-eyebrow { display: block; margin: 0 0 var(--space-2); font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame); }
.mg-link { color: var(--lilac); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.mg-link:hover { color: var(--heading); text-decoration-color: var(--flame); }

:where(.mg-btn, .mg-link, .mg-input, .mg-faq summary, .mg-nav a, .mg-langs a, .mg-card a, .mg-post a, .mg-menu-btn):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-xs); }

/* ---------------------------------------------------------------- Button */
.mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap-target); padding: 10px 22px; border-radius: var(--radius-pill); border: 1px solid transparent; font-family: var(--font-sans); font-size: 16px; line-height: 1.2; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.mg-btn--flame { background: var(--flame); color: var(--on-flame); }
.mg-btn--flame:hover { background: var(--flame-hi); color: var(--on-flame); }
.mg-btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.mg-btn--ghost:hover { border-color: var(--lilac); color: var(--heading); }
.mg-btn--link { min-height: auto; padding: 0; border-radius: 0; color: var(--lilac); text-decoration: underline; text-underline-offset: 0.2em; }
.mg-btn--link:hover { color: var(--heading); text-decoration-color: var(--flame); }
.mg-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------------------------------------------------------------- Badge */
.mg-badge { display: inline-flex; align-items: center; padding: 2px var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--text-muted); font-size: 14px; line-height: 22px; font-weight: 500; }
.mg-badge--flame { border-color: var(--flame); color: var(--flame-hi); }

/* ---------------------------------------------------------------- SiteHeader */
.mg-header { display: flex; align-items: center; gap: var(--space-5); padding: 18px var(--space-6); border-bottom: 1px solid var(--line); background: var(--night); }
.mg-header--over { background: transparent; border-bottom-color: transparent; }
.mg-brand { display: flex; align-items: center; gap: var(--space-3); margin-right: auto; color: var(--heading); text-decoration: none; }
.mg-brand__mark { width: 44px; height: 44px; border-radius: var(--radius-round); object-fit: cover; box-shadow: 0 0 0 1px rgba(205, 189, 245, 0.3); }
.mg-brand__name { display: block; font-family: var(--font-display); font-size: 23px; line-height: 1.1; font-weight: 600; letter-spacing: 0.01em; }
.mg-brand__tag { display: block; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.mg-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.mg-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; font-size: 16px; border-bottom: 1px solid transparent; }
.mg-nav a:hover, .mg-nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--flame); }
.mg-langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0 0 0 var(--space-4); border-left: 1px solid var(--line); }
.mg-langs a { display: inline-block; min-width: 34px; padding: 4px 6px; border-radius: var(--radius-pill); color: var(--text-muted); text-align: center; text-decoration: none; font-size: 14px; }
.mg-langs a[aria-current="true"] { background: var(--lilac); color: var(--night); }
.mg-langs a:hover { color: var(--heading); }
.mg-menu-btn { display: none; align-items: center; gap: var(--space-2); min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }


/* ---------------------------------------------------------------- Hero: tekst links, verticaal beeld rechts als vaste achtergrond van de hele pagina */
.mg-hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: flex-end; }
.mg-hero__art { position: fixed; z-index: -1; top: 0; right: 0; width: min(50vw, 820px); height: 100vh; height: 100lvh; margin: 0; pointer-events: none; }
.mg-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mg-hero__art::after { content: ""; position: absolute; inset: 0;
	background: linear-gradient(to right, var(--night) 0%, rgba(3, 4, 31, 0) 34%), linear-gradient(to bottom, rgba(3, 4, 31, 0.35) 0%, rgba(3, 4, 31, 0) 16%, rgba(3, 4, 31, 0) 80%, rgba(3, 4, 31, 0.6) 100%); }
.mg-hero__art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--night); opacity: calc(var(--mg-bg-dim, 0) * 0.55); }
.mg-hero__inner { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 140px var(--space-6) clamp(48px, 9vh, 110px); }
.mg-hero__text { max-width: 640px; display: grid; gap: var(--space-5); }
.mg-hero__text .mg-display { max-width: 14ch; }
.mg-hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none; color: var(--text-muted); font-size: 16px; }
.mg-hero__facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--flame); }
@media (max-width: 760px) {
	.mg-hero { min-height: 100svh; }
	.mg-hero__art { width: 100vw; }
	.mg-hero__art::after { background: linear-gradient(to bottom, rgba(3, 4, 31, 0.5) 0%, rgba(3, 4, 31, 0) 20%, rgba(3, 4, 31, 0.35) 55%, rgba(3, 4, 31, 0.85) 100%); }
	.mg-hero__art::before { opacity: calc(0.15 + var(--mg-bg-dim, 0) * 0.55); }
	.mg-hero__inner { padding: 0 var(--space-4) var(--space-7); }
}

/* ---------------------------------------------------------------- Band (sectie-achtergrond) */
.mg-band { padding: clamp(64px, 8vw, 96px) 0; }
.mg-band--plum { background: var(--plum); }
.mg-band--ink { background: var(--ink); border-top: 1px solid var(--line); }
.mg-band--rule { border-top: 1px solid var(--line); }
.mg-band__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 760px) { .mg-band__inner { padding: 0 var(--space-4); } }

/* ---------------------------------------------------------------- AnswerBlock */
.mg-answer { max-width: var(--measure); padding: var(--space-5); border-radius: var(--radius-md); background: var(--ink); border: 1px solid var(--line); }
.mg-answer__label { display: block; margin-bottom: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame); }
.mg-answer p { margin: 0; }
.mg-answer__meta { margin-top: var(--space-3) !important; font-size: 14px; color: var(--text-muted); }

/* ---------------------------------------------------------------- ServiceCard */
.mg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.mg-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.mg-card__img { margin: 0 0 var(--space-2); border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); transition: box-shadow .25s; }
.mg-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-card:hover .mg-card__img { box-shadow: var(--glow-flame); }
.mg-card h3 a { color: var(--heading); text-decoration: none; }
.mg-card h3 a::after { content: ""; position: absolute; inset: 0; }
.mg-card:hover h3 a { color: var(--flame-hi); }
.mg-card p { margin: 0; color: var(--text-muted); }
.mg-card__facts { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: var(--space-2) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--line); }
.mg-card__facts div { display: grid; }
.mg-card__facts dt { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.mg-card__facts dd { margin: 0; font-weight: 700; color: var(--text); }
.mg-card__more { margin-top: auto; color: var(--lilac); font-size: 16px; }

/* ---------------------------------------------------------------- Service (dienst in lopende tekst) */
.mg-service { margin: var(--space-6) 0; padding-top: var(--space-5); border-top: 1px solid var(--line); max-width: var(--measure); }
.mg-service__title { margin: 0 0 4px; }
.mg-service__meta { margin: 0 0 var(--space-3); color: var(--flame); font-size: 16px; }
.mg-service__body > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- MediaBlock */
.mg-media { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.mg-media--reverse .mg-media__img { order: 2; }
.mg-media__img { margin: 0; border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.mg-media__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-media__text { display: grid; gap: var(--space-4); max-width: 58ch; }
.mg-media__text p { margin: 0; }
@media (max-width: 860px) { .mg-media { grid-template-columns: 1fr; } .mg-media--reverse .mg-media__img { order: 0; } .mg-media__img { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- Testimonial */
.mg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 48px); }
.mg-quote { position: relative; margin: 0; padding-top: 38px; }
.mg-quote::before { content: "\201C"; position: absolute; top: -14px; left: -4px; font-family: var(--font-display); font-size: 80px; line-height: 1; color: var(--rose); }
.mg-quote blockquote { margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 32px; color: var(--text); }
.mg-quote blockquote p { margin: 0 0 0.7em; }
.mg-quote figcaption { font-size: 15px; line-height: 22px; color: var(--text-muted); }
.mg-quote--long { padding: 0 0 var(--space-5) var(--space-5); border-bottom: 1px solid var(--line); }
.mg-quote--long::before { display: none; }
.mg-quote--long blockquote { font-size: 20px; }

/* ---------------------------------------------------------------- FaqItem */
.mg-faq { max-width: var(--measure); border-bottom: 1px solid var(--line); }
.mg-faq:first-of-type { border-top: 1px solid var(--line); }
.mg-faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font-family: var(--font-display); font-size: 25px; line-height: 1.25; color: var(--heading); }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.5px solid var(--flame); border-bottom: 1.5px solid var(--flame); transform: rotate(45deg); transition: transform .2s; }
.mg-faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.mg-faq__a { padding: 0 0 var(--space-5); }
.mg-faq__a > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- CtaBand */
.mg-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); border-top: 1px solid var(--line); }
.mg-cta__inner { max-width: var(--container-max); margin: 0 auto; padding: clamp(64px, 8vw, 96px) var(--space-6); }
.mg-cta__text { max-width: 60ch; }
.mg-cta h2 { margin: 0 0 var(--space-4); max-width: 18ch; }
.mg-cta p { margin: 0; }
.mg-cta .mg-actions { margin-top: var(--space-5); }
.mg-cta__art { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(38%, 520px); margin: 0; opacity: 0.75; }
.mg-cta__art img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%); }
@media (max-width: 860px) { .mg-cta__art { display: none; } .mg-cta__inner { padding-left: var(--space-4); padding-right: var(--space-4); } }

/* ---------------------------------------------------------------- LocationCard */
.mg-location { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink); }
.mg-location address { font-style: normal; display: grid; gap: 2px; }
.mg-location dl { margin: 0; display: grid; gap: var(--space-3); }
.mg-location dt { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.mg-location dd { margin: 0; }
.mg-location a { color: var(--lilac); }
.mg-area { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.mg-area li { padding: 2px var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 14px; line-height: 22px; color: var(--text-muted); }

/* ---------------------------------------------------------------- ContactList */
.mg-contact { margin: var(--space-5) 0; display: grid; }
.mg-contact > div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--space-3); padding: 14px 0; border-bottom: 1px solid var(--line); }
.mg-contact dt { color: var(--text-muted); }
.mg-contact dd { margin: 0; display: flex; flex-direction: column; }
.mg-contact dd span { color: var(--text-muted); font-size: 15px; }
@media (max-width: 560px) { .mg-contact > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------- Breadcrumb */
.mg-breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.mg-breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-strong); }
.mg-breadcrumb a { color: var(--lilac); text-decoration: none; }
.mg-breadcrumb a:hover { color: var(--heading); }

/* ---------------------------------------------------------------- FormField */
.mg-field { display: grid; gap: var(--space-2); max-width: 460px; }
.mg-label { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text); }
.mg-input { width: 100%; min-height: var(--tap-target); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--ink); color: var(--text); font-family: var(--font-sans); font-size: 18px; line-height: 26px; }
.mg-input::placeholder { color: var(--text-muted); }
textarea.mg-input { min-height: 140px; resize: vertical; }
.mg-input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.mg-help { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.mg-error { font-size: 14px; line-height: 20px; color: var(--danger); font-weight: 700; }
.mg-success { color: var(--success); font-weight: 700; }

/* ---------------------------------------------------------------- PostCard */
.mg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px clamp(24px, 3vw, 44px); }
.mg-post { display: flex; flex-direction: column; gap: 12px; }
.mg-post__img { display: block; border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 3 / 2; background: var(--ink); }
.mg-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-post__cat { margin: 0; color: var(--flame); font-size: 15px; }
.mg-post__title { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 500; }
.mg-post__title a { color: var(--heading); text-decoration: none; }
.mg-post__title a:hover { color: var(--flame-hi); }
.mg-post__excerpt { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 26px; }

/* ---------------------------------------------------------------- AgeNotice */
.mg-age { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--space-5); background: rgba(3, 4, 31, 0.94); }
.mg-age[hidden] { display: none; }
.mg-age--inline { position: relative; inset: auto; min-height: 360px; }
.mg-age__box { max-width: 440px; text-align: center; }
.mg-age__box img { width: 88px; height: 88px; border-radius: var(--radius-round); margin-bottom: var(--space-3); }
.mg-age__box p { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.3; color: var(--heading); }
.mg-age .mg-actions { justify-content: center; margin-top: var(--space-5); }

@media (prefers-reduced-motion: reduce) {
	.mg *, .mg-preview * { animation: none !important; transition: none !important; }
}
