/*
Theme Name: Inrichtingtips
Theme URI: https://inrichtingtips.nl
Author: Feeling Content
Description: Licht maatwerkthema voor inrichtingtips.nl. Geen pagebuilder, automatische inhoudsopgave, sidebar met relevante berichten en interne-link-footer.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: inrichtingtips
*/

:root {
  --it-bg: #FAF7F2;
  --it-surface: #FFFFFF;
  --it-line: #EAE3D8;
  --it-sand: #EFE8DC;
  --it-text: #2B2622;
  --it-body: #4A443D;
  --it-muted: #6B6259;
  --it-accent: #C4633A;
  --it-accent-dark: #8A5A3B;
  --it-green: #B8C4B0;
  --it-serif: Georgia, 'Times New Roman', serif;
  --it-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--it-bg);
  color: var(--it-body);
  font-family: var(--it-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--it-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--it-accent); }
h1, h2, h3, h4 { font-family: var(--it-serif); color: var(--it-text); line-height: 1.28; font-weight: 600; }
h1 { font-size: 2.1rem; margin: 0 0 .6em; }
h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }

.it-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.it-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.site-header { background: var(--it-bg); border-bottom: 1px solid var(--it-line); position: sticky; top: 0; z-index: 50; }
.site-header .it-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo img { max-height: 40px; width: auto; }
.site-logo .site-logo-text { font-family: var(--it-serif); font-size: 1.15rem; letter-spacing: .03em; color: var(--it-text); }
.site-logo .site-logo-text span { color: var(--it-accent); }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--it-muted); font-size: .95rem; }
.main-nav a:hover { color: var(--it-accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--it-line); border-radius: 8px; padding: 8px 12px; font-size: 1rem; color: var(--it-text); }

.hero { text-align: center; padding: 72px 24px 56px; }
.hero .kicker { letter-spacing: .16em; font-size: .8rem; color: var(--it-accent); margin: 0 0 12px; text-transform: uppercase; }
.hero h1 { font-size: 2.6rem; margin: 0 0 14px; }
.hero p.sub { max-width: 560px; margin: 0 auto 26px; color: var(--it-muted); }
.btn { display: inline-block; background: var(--it-accent); color: #FAF7F2; padding: 12px 26px; border-radius: 999px; text-decoration: none; font-size: .95rem; }
.btn:hover { background: var(--it-accent-dark); color: #FAF7F2; }

.section { padding: 48px 0; }
.section-title { font-size: 1.6rem; margin: 0 0 8px; }
.section-sub { color: var(--it-muted); margin: 0 0 28px; }

.intro-card { background: var(--it-surface); border: 1px solid var(--it-line); border-radius: 14px; padding: 36px 40px; }
.intro-card p { margin: 0 0 1em; }
.intro-card p:last-child { margin-bottom: 0; }

.cat-block { margin-bottom: 44px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--it-line); padding-bottom: 10px; margin-bottom: 18px; }
.cat-head h3 { margin: 0; font-size: 1.3rem; }
.cat-head h3 a { text-decoration: none; color: var(--it-text); }
.cat-head h3 a:hover { color: var(--it-accent); }
.cat-head .all-link { font-size: .88rem; white-space: nowrap; }
.cat-desc { color: var(--it-muted); font-size: .95rem; margin: -8px 0 18px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--it-surface); border: 1px solid var(--it-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { display: block; aspect-ratio: 16/10; background: var(--it-sand); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .pad { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.post-card .cat-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--it-accent); text-decoration: none; }
.post-card h4 { margin: 0; font-size: 1.02rem; }
.post-card h4 a { text-decoration: none; color: var(--it-text); }
.post-card h4 a:hover { color: var(--it-accent); }
.post-card time { font-size: .8rem; color: var(--it-muted); }

.authors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.author-card { background: var(--it-surface); border: 1px solid var(--it-line); border-radius: 14px; padding: 26px 28px; display: flex; gap: 18px; align-items: flex-start; }
.avatar-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--it-accent); color: #FAF7F2; display: flex; align-items: center; justify-content: center; font-family: var(--it-serif); font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-card h4 { margin: 0 0 4px; font-size: 1.1rem; }
.author-card p { margin: 0; font-size: .92rem; color: var(--it-muted); }
.author-card .author-link { font-size: .88rem; display: inline-block; margin-top: 8px; }

.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px 0 64px; }
.entry-meta-top { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--it-accent); }
.entry-meta-top a { color: var(--it-accent); text-decoration: none; }
.entry-byline { color: var(--it-muted); font-size: .92rem; margin: 6px 0 22px; }
.entry-hero { margin: 0 0 28px; }
.entry-hero img { width: 100%; height: auto; border-radius: 12px; display: block; }
.entry-hero figcaption { font-size: .78rem; color: var(--it-muted); margin-top: 6px; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { scroll-margin-top: 90px; }
.entry-content h3 { scroll-margin-top: 90px; }
.entry-content img { border-radius: 10px; }
.entry-content .wp-block-image { margin: 1.6em 0; }

.it-toc { background: var(--it-sand); border-left: 4px solid var(--it-accent); border-radius: 0; padding: 18px 24px; margin: 0 0 28px; max-width: 480px; }
.it-toc .it-toc-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--it-text); margin: 0 0 8px; font-family: var(--it-sans); font-weight: 600; }
.it-toc ol { margin: 0; padding-left: 20px; }
.it-toc li { margin: 4px 0; font-size: .95rem; }
.it-toc a { color: var(--it-accent-dark); text-decoration: none; }
.it-toc a:hover { text-decoration: underline; }

.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--it-surface); border: 1px solid var(--it-line); border-radius: 12px; padding: 22px 24px; margin-top: 44px; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { margin: 0; font-size: .92rem; color: var(--it-muted); }

.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--it-surface); border: 1px solid var(--it-line); border-radius: 12px; padding: 22px 24px; }
.widget h4 { margin: 0 0 14px; font-size: 1.05rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-top: 1px solid var(--it-line); font-size: .93rem; }
.widget li:first-child { border-top: 0; padding-top: 0; }
.widget a { text-decoration: none; color: var(--it-body); }
.widget a:hover { color: var(--it-accent); }
.widget .count { color: var(--it-muted); font-size: .82rem; }
.widget li time { display: block; font-size: .78rem; color: var(--it-muted); }

.archive-header { padding: 48px 0 8px; }
.archive-header p { color: var(--it-muted); max-width: 640px; }
.archive-grid { padding: 24px 0 64px; }

.page-single { padding: 48px 0 64px; }
.page-single .entry-content { background: var(--it-surface); border: 1px solid var(--it-line); border-radius: 14px; padding: 40px 44px; }

.pagination { display: flex; gap: 8px; justify-content: center; padding: 12px 0 0; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--it-line); border-radius: 8px; text-decoration: none; color: var(--it-body); font-size: .9rem; background: var(--it-surface); }
.pagination .current { background: var(--it-accent); color: #FAF7F2; border-color: var(--it-accent); }

.site-footer { background: #2B2622; color: #C9C2B8; margin-top: 40px; }
.site-footer a { color: #E8E1D6; text-decoration: none; }
.site-footer a:hover { color: #E8956B; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 52px 0 40px; }
.footer-cols h5 { font-family: var(--it-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #9C9488; margin: 0 0 16px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 10px; font-size: .92rem; line-height: 1.5; }
.footer-bottom { border-top: 1px solid #423B34; padding: 18px 0; font-size: .82rem; color: #9C9488; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.error-404 { text-align: center; padding: 96px 24px; }

:root { --hero-wall: #F3E7DA; --hero-floor: #E4D5C0; --hero-rug: #D9CBB8; --hero-sofa: #C4633A; --hero-plant: #7D8F6B; }
html[data-mood="fris"] { --it-accent: #5B7B8C; --it-accent-dark: #37596B; --hero-wall: #EAF0F0; --hero-floor: #DCE4E2; --hero-rug: #D8E0DD; --hero-sofa: #5B7B8C; --hero-plant: #6FA287; }
html[data-mood="groen"] { --it-accent: #5F7350; --it-accent-dark: #3F5233; --hero-wall: #ECEFE4; --hero-floor: #DFDCC8; --hero-rug: #DAD8C4; --hero-sofa: #5F7350; --hero-plant: #4C7A4F; }

.hero-x { background: var(--hero-wall); border-bottom: 1px solid var(--it-line); overflow: hidden; transition: background .6s ease; }
.hero-x-inner { max-width: 980px; margin: 0 auto; padding: 44px 24px 28px; text-align: center; min-height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; will-change: transform, opacity; }
.hero-x .kicker { letter-spacing: .16em; font-size: .8rem; color: var(--it-accent); margin: 0 0 10px; text-transform: uppercase; transition: color .6s ease; }
.hero-x h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.05; margin: 0; position: relative; z-index: 3; }
.hero-room { margin: -18px auto 0; width: 100%; max-width: 720px; position: relative; z-index: 1; }
.hero-room svg { width: 100%; height: auto; display: block; }
.hc-floor { fill: var(--hero-floor); transition: fill .6s ease; }
.hc-rug { fill: var(--hero-rug); transition: fill .6s ease; }
.hc-sofa { fill: var(--hero-sofa); transition: fill .6s ease; }
.hc-plant { fill: var(--hero-plant); transition: fill .6s ease; }
.hc-accent { fill: var(--it-accent); transition: fill .6s ease; }
.hx-back, .hx-mid, .hx-front { transition: transform .25s ease-out; }
.hp { opacity: 0; transform: translateY(30px); animation: hp-drop .6s ease forwards; }
.hp1 { animation-delay: .1s; } .hp2 { animation-delay: .25s; } .hp3 { animation-delay: .4s; }
.hp4 { animation-delay: .6s; } .hp5 { animation-delay: .85s; } .hp6 { animation-delay: 1.05s; } .hp7 { animation-delay: 1.25s; }
.lamp-glow { animation: lamp-on .5s ease 1.75s forwards; }
@keyframes hp-drop { to { opacity: 1; transform: none; } }
@keyframes lamp-on { to { opacity: .45; } }
.hero-x .sub { max-width: 540px; margin: 10px auto 20px; color: var(--it-muted); position: relative; z-index: 3; }
.hero-actions { margin-bottom: 22px; }
.mood-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mood-label { font-size: .8rem; color: var(--it-muted); margin-right: 4px; }
.mood-btn { border: 1px solid var(--it-line); background: rgba(255,255,255,.6); color: var(--it-text); border-radius: 999px; padding: 7px 18px; font-size: .85rem; cursor: pointer; transition: all .25s ease; font-family: var(--it-sans); }
.mood-btn:hover { border-color: var(--it-accent); }
html[data-mood="warm"] .mood-btn[data-mood="warm"], html:not([data-mood]) .mood-btn[data-mood="warm"],
html[data-mood="fris"] .mood-btn[data-mood="fris"], html[data-mood="groen"] .mood-btn[data-mood="groen"] { background: #2B2622; color: #FAF7F2; border-color: #2B2622; }
.scroll-cue { display: inline-block; margin-top: 22px; font-size: .8rem; color: var(--it-muted); text-decoration: none; animation: cue-bob 2.2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--it-accent); }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes it-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .kicker { animation: it-rise .5s ease both; }
.hero h1 { animation: it-rise .55s ease .08s both; }
.hero p.sub { animation: it-rise .55s ease .16s both; }
.hero .btn { animation: it-rise .55s ease .24s both; }

.post-card { transition: transform .25s ease, border-color .25s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--it-accent); }
.post-card .thumb { overflow: hidden; }
.post-card .thumb img { transition: transform .45s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.btn { transition: background .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.main-nav a { background: linear-gradient(var(--it-accent), var(--it-accent)) left bottom / 0 1px no-repeat; transition: background-size .25s ease, color .2s ease; padding-bottom: 3px; }
.main-nav a:hover { background-size: 100% 1px; }
.author-card, .widget { transition: border-color .25s ease; }
.author-card:hover, .widget:hover { border-color: #D9CBB8; }

.it-palette .pal-sub { font-size: .82rem; color: var(--it-muted); margin: -6px 0 12px; }
.it-palette .swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.it-palette .swatch { position: relative; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; height: 88px; cursor: pointer; padding: 0; display: flex; align-items: flex-end; justify-content: center; transition: transform .2s ease; }
.it-palette .swatch:hover { transform: translateY(-3px); }
.it-palette .swatch span { font-size: .6rem; background: rgba(255,255,255,.88); color: #2B2622; border-radius: 5px; padding: 2px 3px; margin-bottom: 6px; font-family: var(--it-sans); }
.it-palette:not(.ready) .swatches { min-height: 88px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .kicker, .hero h1, .hero p.sub, .hero .btn { animation: none; }
  .post-card, .post-card .thumb img, .btn, .it-palette .swatch { transition: none; }
  .hp { animation: none; opacity: 1; transform: none; }
  .lamp-glow { animation: none; opacity: .45; }
  .scroll-cue { animation: none; }
  .hero-x-inner { transform: none !important; opacity: 1 !important; }
}

@media (max-width: 960px) {
  .single-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .authors { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--it-bg); border-bottom: 1px solid var(--it-line); padding: 12px 24px 20px; }
  .main-nav.open ul { flex-direction: column; gap: 12px; }
  .nav-toggle { display: block; }
  .intro-card { padding: 26px 24px; }
  .page-single .entry-content { padding: 26px 22px; }
}
