/*
Theme Name: Michels
Theme URI: https://michels.nl
Author: mensedesigns
Description: Minimalistisch thema voor michels·blog, ·drone en ·shop. Met logo-intro, rode punt als cursor en rustige scroll-animaties.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: michels
*/

/* Layout: één kolom van max 1200px, veel wit; het logo draagt de identiteit, rood alleen voor de punt. */
:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --muted: #5A5A5E;
  --line: #E7E6E8;
  --fill: #F3F2F4;
  --dot: #D7354F;
  --dot-ink: #B8213B;
  --font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 400; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--dot-ink); }
:focus-visible { outline: 2px solid var(--dot); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.2; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 3000; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; }
.nav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); transform: scale(0); transition: transform .2s; }
.nav .current-menu-item > a::before, .nav .current_page_item > a::before, .nav .current-menu-ancestor > a::before, .nav .current_page_parent > a::before, .nav a[aria-current="page"]::before { transform: scale(1); }
.nav a:hover::before { transform: scale(.6); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 11px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-count[data-n="0"] { background: var(--fill); color: var(--muted); }
@media (max-width: 560px) { .site-head .mark { height: 30px; } .nav ul { gap: 0 20px; } }

/* logo in drie lagen: michels, punt, blog */
.mark { position: relative; display: block; height: 38px; aspect-ratio: 1302 / 235; }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.l-dot { position: absolute; left: 65.67%; top: 48.94%; width: 4.69%; height: 25.53%; border-radius: 50%; background: var(--dot); }

/* ---------- type ---------- */
.eyebrow { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.display { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.04; font-weight: 300; letter-spacing: -0.025em; }
.display .pt { color: var(--dot); }
.h2 { font-size: 24px; font-weight: 600; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.italic { font-style: italic; font-weight: 300; }
.meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.page-main { display: flex; flex-direction: column; gap: 112px; padding-block: 88px 0; }
@media (max-width: 560px) { .page-main { gap: 80px; padding-block: 48px 0; } }
.intro { display: flex; flex-direction: column; gap: 28px; max-width: 900px; }

.ph { background: var(--fill); display: grid; place-items: center; color: var(--muted); font-size: 15px; text-align: center; padding: 16px; max-width: 100%; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.has-img { padding: 0; }

/* ---------- uitgelicht ---------- */
.feature { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-end; }
.feature .ph { flex: 999 1 520px; min-width: 0; aspect-ratio: 16 / 10; }
.feature-body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-body h2 { font-size: 34px; line-height: 1.15; font-weight: 300; font-style: italic; letter-spacing: -0.01em; }
.feature-body .label { color: var(--dot-ink); font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.more span { transition: transform .2s; }
.more:hover span { transform: translateX(4px); }

/* ---------- postlijst ---------- */
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.post-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.post-row .date { flex: 0 0 120px; }
.post-row .t { flex: 999 1 300px; min-width: 0; font-size: 24px; font-weight: 300; line-height: 1.3; transition: transform .2s; }
.post-row:hover .t { transform: translateX(6px); }
.post-row .tag { flex: 0 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; min-height: 44px; padding-inline: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding-inline: 12px; border-radius: 22px; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- kanalen ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.channel { display: flex; flex-direction: column; gap: 14px; }
.channel .ph { aspect-ratio: 4 / 3; }
.channel .name { font-size: 22px; }
.channel .name .d { color: var(--dot); }

/* ---------- artikel & pagina ---------- */
.article { display: flex; flex-direction: column; gap: 40px; max-width: 760px; }
.article .hero-img { aspect-ratio: 16 / 9; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); }
.next-prev { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }

/* WordPress-inhoud (Gutenberg-blokken) */
.content { display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 1.7; max-width: 65ch; }
.content.wide { max-width: none; }
.content > * { margin: 0; }
.content h2 { font-size: 28px; font-weight: 600; margin-top: 16px; }
.content h3 { font-size: 22px; font-weight: 600; margin-top: 8px; }
.content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dot); }
.content blockquote { margin: 8px 0; padding: 0 0 0 24px; border-left: 2px solid var(--dot); font-size: 24px; font-weight: 300; font-style: italic; }
.content figure { margin: 0; }
.content figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }
.content .wp-block-image img, .content .wp-block-gallery img { width: 100%; }
.content .wp-block-gallery { gap: 16px; }
.content .alignwide, .content .alignfull { max-width: none; width: 100%; }
.content ul, .content ol { padding-left: 1.2em; }
.content li::marker { color: var(--dot); }
.content .wp-block-button__link { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 12px 24px; font-weight: 600; text-decoration: none; }
.content .wp-block-button__link:hover { background: var(--dot-ink); color: var(--bg); }
.content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.content td, .content th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.content .wp-block-table { overflow-x: auto; }

/* formulieren (ook Contact Form 7 / WPForms) */
.content input[type="text"], .content input[type="email"], .content input[type="tel"], .content textarea, .content select,
.comment-form input, .comment-form textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 0; border-bottom: 1px solid var(--muted); padding: 10px 0; border-radius: 0; min-height: 44px; width: 100%; }
.content textarea, .comment-form textarea { min-height: 140px; }
.content input:focus, .content textarea:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-bottom: 2px solid var(--dot); }
.content input[type="submit"], .content button, .comment-form .submit, .btn {
  font: inherit; font-size: 16px; font-weight: 600; min-height: 48px; padding-inline: 22px; border-radius: 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.content input[type="submit"]:hover, .content button:hover, .comment-form .submit:hover, .btn:hover { background: var(--bg); color: var(--ink); }

/* ---------- WooCommerce: rustig houden ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 40px 24px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; gap: 10px; }
.woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: cover; background: var(--fill); margin: 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px !important; font-weight: 400; padding: 0 !important; }
.woocommerce ul.products li.product .price { color: var(--muted) !important; font-size: 15px !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  font-family: var(--font) !important; font-weight: 600 !important; border-radius: 24px !important; background: var(--ink) !important; color: var(--bg) !important; padding: 14px 22px !important; border: 1px solid var(--ink) !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--bg) !important; color: var(--ink) !important; }
.woocommerce a.added_to_cart { padding-top: 8px; display: inline-block; }
.woocommerce span.onsale { background: var(--dot) !important; border-radius: 22px; min-height: 0; line-height: 1; padding: 8px 12px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: 14px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--dot) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--dot) !important; }

/* ---------- 404 ---------- */
.empty { padding-block: 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* ---------- footer ---------- */
.site-foot { margin-top: 160px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.foot-row .mono { height: 52px; width: auto; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }

/* ---------- intro bij openen ---------- */
.intro-splash { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-items: center; padding-inline: 24px; transition: background-color .6s ease; cursor: pointer; }
.intro-splash .mark { height: auto; width: min(76vw, 640px); }
.mark.intro .l-dot { animation: dotDrop .75s cubic-bezier(.3,.7,.4,1) both; }
.mark.intro .l-michels { animation: wipeLeft .7s .5s cubic-bezier(.65,0,.25,1) both; }
.mark.intro .l-blog { animation: wipeRight .55s .95s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dotDrop {
  0% { transform: translateY(-320%) scale(.5); opacity: 0; }
  45% { transform: translateY(0) scale(1.2, .8); opacity: 1; }
  65% { transform: translateY(-40%) scale(.92, 1.08); }
  82% { transform: translateY(0) scale(1.06, .94); }
  100% { transform: none; }
}
@keyframes wipeLeft { from { clip-path: inset(0 0 0 71%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeRight { from { clip-path: inset(0 29% 0 0); transform: translateX(-1.5%); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* klik op logo: alles verdwijnt in de punt (out) en komt er op home weer uit (in) */
.mark.replay-out .l-michels { animation: collapseLeft .45s cubic-bezier(.65,0,.25,1) both; }
.mark.replay-out .l-blog { animation: collapseRight .4s cubic-bezier(.65,0,.25,1) both; }
.mark.replay-out .l-dot { animation: dotSwell .45s cubic-bezier(.3,.7,.4,1) both; }
.mark.replay-in .l-dot { animation: dotHop .7s cubic-bezier(.3,.7,.4,1) both; }
.mark.replay-in .l-michels { animation: wipeLeft .55s .2s cubic-bezier(.65,0,.25,1) both; }
.mark.replay-in .l-blog { animation: wipeRight .45s .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes collapseLeft { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 71%); } }
@keyframes collapseRight { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 29% 0 0); } }
@keyframes dotSwell { 0% { transform: none; } 100% { transform: scale(1.35); } }
@keyframes dotHop {
  0% { transform: scale(1.35); }
  35% { transform: translateY(-110%) scale(1); }
  55% { transform: translateY(0) scale(1.2, .8); }
  75% { transform: translateY(-25%) scale(.95, 1.05); }
  100% { transform: none; }
}

/* ---------- beweging ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-main { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
  .reveal-wait { opacity: 0; transform: translateY(28px); }
  .reveal-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .display .pt { display: inline-block; animation: drop .7s .25s cubic-bezier(.3,1.6,.5,1) both; }
  @keyframes drop { from { transform: translateY(-0.5em) scale(.4); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- cursor: de rode punt ---------- */
.cursor-dot { position: fixed; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--dot); pointer-events: none; z-index: 2500; opacity: 0; transition: opacity .2s, width .25s cubic-bezier(.2,.7,.2,1), height .25s cubic-bezier(.2,.7,.2,1), margin .25s cubic-bezier(.2,.7,.2,1); mix-blend-mode: multiply; will-change: transform; }
.cursor-dot.on { opacity: 1; }
.cursor-dot.big { width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: .85; }
.cursor-dot.down { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
@media (hover: hover) and (pointer: fine) {
  html.has-dot, html.has-dot a, html.has-dot button, html.has-dot .chip, html.has-dot label { cursor: none; }
  html.has-dot input, html.has-dot textarea { cursor: text; }
  html.has-dot select { cursor: pointer; }
}
