/*
Theme Name: Knussel
Description: Warm, zacht blokthema voor knussel.nl — de officiële combinatie van kus en knuffel.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: knussel
*/

/* Header */
.kn-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--wp--preset--color--cream) 85%, transparent); border-bottom: 1px solid var(--wp--preset--color--line); }
.kn-logo a { text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.kn-logo a::before { content: ""; width: 1.15em; height: 1.15em; background: var(--wp--preset--color--rose); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.1 0 3.6 1.2 5.2 3 1.6-1.8 3.1-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.1 0 3.6 1.2 5.2 3 1.6-1.8 3.1-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat; }
.kn-header .wp-block-navigation a { text-decoration: none; padding: .35em .8em; border-radius: 999px; transition: background .2s, color .2s; }
.kn-header .wp-block-navigation a:hover, .kn-header .wp-block-navigation .current-menu-item > a { background: var(--wp--preset--color--blush); color: var(--wp--preset--color--rose-dark); }

/* Hero */
.kn-hero { position: relative; overflow: hidden; }
.kn-hero::before, .kn-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.kn-hero::before { width: 420px; height: 420px; background: var(--wp--preset--color--blush); top: -120px; left: -140px; }
.kn-hero::after { width: 360px; height: 360px; background: var(--wp--preset--color--peach); bottom: -140px; right: -100px; }
.kn-hero > * { position: relative; z-index: 1; }
.kn-eyebrow { display: inline-block; padding: .3em .9em; border-radius: 999px; background: var(--wp--preset--color--blush); color: var(--wp--preset--color--rose-dark); font-weight: 700; letter-spacing: .02em; }
.kn-hero-img img { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; box-shadow: 0 30px 60px -25px rgba(122, 53, 68, .45); aspect-ratio: 1; object-fit: cover; }
.kn-formula { font-family: var(--wp--preset--font-family--heading); }
.kn-formula mark { background: none; color: var(--wp--preset--color--rose); }

/* Cards */
.kn-card { background: var(--wp--preset--color--white); border-radius: 28px; overflow: hidden; box-shadow: 0 12px 30px -18px rgba(122, 53, 68, .35); transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.kn-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 22px 40px -20px rgba(122, 53, 68, .45); }
.kn-card figure { margin: 0 !important; }
.kn-card img { aspect-ratio: 1; object-fit: cover; width: 100%; display: block; transition: transform .5s ease; }
.kn-card:hover img { transform: scale(1.05); }
.kn-card h3 a { text-decoration: none; }
.kn-card h3 a::after { content: ""; position: absolute; inset: 0; }
.kn-card { position: relative; }
.kn-value { background: var(--wp--preset--color--white); border-radius: 24px; height: 100%; }
.kn-value .kn-emoji { font-size: 2.2rem; line-height: 1; margin: 0; }

/* Page galleries */
.kn-page .wp-block-gallery.has-nested-images { gap: clamp(12px, 2vw, 24px) !important; }
.kn-page .wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: 24px; overflow: hidden; box-shadow: 0 14px 32px -20px rgba(122, 53, 68, .5); }
.kn-page .wp-block-gallery.has-nested-images figure.wp-block-image img { transition: transform .5s ease; }
.kn-page .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }
@media (min-width: 600px) { .kn-page .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - clamp(12px, 2vw, 24px) / 2) !important; } }
.kn-page > p:first-child, .kn-intro { font-size: var(--wp--preset--font-size--large); text-align: center; max-width: 640px; margin-left: auto !important; margin-right: auto !important; color: var(--wp--preset--color--muted); }

/* Footer */
.kn-footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) { .kn-card, .kn-card img, .kn-page img { transition: none !important; } .kn-card:hover { transform: none; } }

/* Grote tekst */
.has-large-font-size { line-height: 1.5; }
.kn-card p { line-height: 1.5; }

/* Fotoverantwoording */
.kn-credits { font-size: .78rem; color: var(--wp--preset--color--muted); text-align: center; margin-top: var(--wp--preset--spacing--40) !important; opacity: .85; }
.kn-credits a { color: inherit; }
