/*
Theme Name: Edwin Selij
Theme URI: https://edwinselij.nl
Author: Edwin Selij
Author URI: https://edwinselij.nl
Description: Persoonlijk site-theme van Edwin Selij — auteur, spreker, grondlegger van Ontgrijpen. In de brandfamilie van HIN & Ontgrijpen (HIN-oranje, Nunito). Editorial one-page layout met bio, boeken, spreken en uitspraken.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edwinselij
Tags: one-page, custom-menu, custom-colors, custom-logo, translation-ready
*/

:root {
  --orange: #F5A623;
  --deep-orange: #E8880A;
  --coral: #EF6C42;
  --warm-red: #E84D2E;
  --sage: #8BC48A;
  --sky: #6BB8D9;
  --cream: #FFF8F0;
  --bone: #FFFDF9;
  --white: #FFFFFF;
  --text: #2D2319;
  --text-soft: #7A6B5D;
  --border: #F0E6D8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bone); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
button { font-family: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* — NAV — */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(240, 230, 216, 0.6);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 0; }
.brand-name {
  font-weight: 900; font-size: 22px; color: var(--text); letter-spacing: -0.5px;
}
.brand-dot { color: var(--orange); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 20px; font-size: 14px; font-weight: 700;
  color: var(--text-soft); transition: all .15s;
}
.nav-links a:hover, .nav-links .current-menu-item a {
  background: var(--cream); color: var(--text);
}
.nav-cta, .nav-links a.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 10px 18px !important; border-radius: 24px; font-weight: 800;
}
.nav-cta:hover { background: var(--deep-orange) !important; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* — HERO — */
.hero { position: relative; overflow: hidden; padding: 100px 0 120px; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; z-index: 0;
}
.hero-blob-1 { width: 520px; height: 520px; background: var(--orange); opacity: 0.14; top: -160px; right: -120px; }
.hero-blob-2 { width: 360px; height: 360px; background: var(--coral); opacity: 0.10; bottom: -100px; left: -60px; }

.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-portrait { margin: 0 auto; }
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: var(--orange); text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 92px); font-weight: 900; line-height: 0.98;
  letter-spacing: -2px; color: var(--text); margin-bottom: 26px;
}
.hero h1 .lastname { color: var(--orange); }
.hero p.lead {
  font-size: clamp(17px, 1.4vw, 20px); font-weight: 400; color: var(--text);
  line-height: 1.6; max-width: 540px; margin-bottom: 36px;
}
@media (max-width: 880px) { .hero p.lead { margin-left: auto; margin-right: auto; } }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) { .cta-row { justify-content: center; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 28px; font-weight: 800; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform .12s ease, box-shadow .15s, background .15s, color .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35); }
.btn-primary:hover { background: var(--deep-orange); box-shadow: 0 6px 20px rgba(232, 136, 10, 0.42); }
.btn-secondary { background: var(--white); color: var(--text); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover { background: #000; }

.hero-portrait {
  width: 100%; max-width: 380px; aspect-ratio: 1/1; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: clamp(80px, 12vw, 140px); font-weight: 900;
  letter-spacing: -4px;
  box-shadow: 0 24px 60px rgba(232, 136, 10, 0.22);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.hero-portrait.has-photo { color: transparent; background-color: var(--text); }
.hero-portrait.has-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 -60px 80px -40px rgba(232, 136, 10, 0.35);
  pointer-events: none;
}

/* — SECTIONS — */
section.block { padding: 96px 0; position: relative; }
section.block.cream { background: var(--cream); }
section.block.dark { background: var(--text); color: var(--cream); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -1px;
  line-height: 1.05; color: inherit; margin-bottom: 14px;
}
.section-head p { font-size: 17px; color: var(--text-soft); max-width: 560px; margin: 0 auto; }
section.block.dark .section-head h2 { color: var(--cream); }
section.block.dark .section-head p { color: rgba(255, 248, 240, 0.7); }

/* — BIO (rich text block) — */
.bio { max-width: 720px; margin: 0 auto; }
.bio p {
  font-size: 18px; line-height: 1.8; color: var(--text); margin-bottom: 22px;
}
.bio p:last-child { margin-bottom: 0; }
.bio em { color: var(--orange); font-style: normal; font-weight: 800; }

/* — WAT IK DOE (3-up) — */
.threeup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .threeup { grid-template-columns: 1fr; } }
.threeup-card {
  background: var(--white); border-radius: 24px; padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.threeup-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(45, 35, 25, 0.08); }
.threeup-tag {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); padding: 4px 12px; border-radius: 14px;
  margin-bottom: 18px; background: var(--orange);
}
.threeup-tag.coral { background: var(--coral); }
.threeup-tag.deep { background: var(--deep-orange); }
.threeup-card h3 {
  font-size: 22px; font-weight: 900; letter-spacing: -0.4px;
  margin-bottom: 10px; line-height: 1.2;
}
.threeup-card p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 18px; }
.threeup-card .link {
  margin-top: auto; color: var(--orange); font-weight: 800; font-size: 14px;
  display: inline-flex; gap: 4px; align-items: center;
  transition: gap .15s ease;
}
.threeup-card .link:hover { gap: 8px; color: var(--deep-orange); }

/* — BOOKS — */
.books {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (min-width: 1100px) { .books { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 720px)  { .books { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .books { grid-template-columns: 1fr; } }
.book {
  background: var(--white); border-radius: 18px; padding: 0; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; position: relative;
}
.book:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(45, 35, 25, 0.14); }
.book-cover-img {
  aspect-ratio: 2/3; overflow: hidden;
  background: #f4ebd9;
  display: flex; align-items: center; justify-content: center;
}
.book-cover-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.book:hover .book-cover-img img { transform: scale(1.03); }
.book-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 900; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 14px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
  z-index: 2;
}
.book-badge.soon { background: var(--coral); }
.book-meta { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.book-meta .year {
  font-size: 11px; font-weight: 800; color: var(--orange); letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.book-meta h4 { font-size: 14px; font-weight: 900; line-height: 1.25; color: var(--text); margin-bottom: 4px; }
.book-meta p { font-size: 12px; color: var(--text-soft); line-height: 1.4; margin-top: auto; padding-top: 6px; }

/* Fallback mockup cover (for books without a real image yet — e.g. Ontgrijpen) */
.book-cover-mock {
  aspect-ratio: 2/3; background: linear-gradient(135deg, #1a0f06, var(--text));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 14px; text-align: center; position: relative; overflow: hidden;
}
.book-cover-mock .mock-blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.45; width: 130%; height: 70%; }
.book-cover-mock .mock-blob-1 { background: var(--coral); top: -30%; left: -30%; }
.book-cover-mock .mock-blob-2 { background: var(--deep-orange); bottom: -40%; right: -30%; }
.book-cover-mock .mock-author { color: var(--orange); font-size: 9px; letter-spacing: 2px; font-weight: 800; margin-bottom: 10px; position: relative; z-index: 1; }
.book-cover-mock .mock-title { color: var(--white); font-size: 19px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.05; position: relative; z-index: 1; }

/* — PULL QUOTES — */
.pull-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .pull-quotes { grid-template-columns: 1fr; } }
.pull-quote {
  background: var(--white); border-radius: 20px; padding: 28px;
  border: 1px solid var(--border); border-left: 5px solid var(--orange);
  font-size: 18px; font-weight: 800; line-height: 1.4; color: var(--text);
  font-style: italic; letter-spacing: -0.3px;
}
.pull-quote.coral { border-left-color: var(--coral); }
.pull-quote.deep { border-left-color: var(--deep-orange); }
.pull-quote.sage { border-left-color: var(--sage); }

/* — PODIUM GRID — */
.podium-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 640px) { .podium-grid { grid-template-columns: 1fr; } }
.podium-tile {
  position: relative; overflow: hidden; border-radius: 22px;
  aspect-ratio: 4/3; background: var(--text);
  box-shadow: 0 10px 30px rgba(45, 35, 25, 0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.podium-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(45, 35, 25, 0.16); }
.podium-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.podium-tile:hover img { transform: scale(1.04); }
.podium-tile .caption {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(45, 35, 25, 0.6); color: var(--white);
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 14px; backdrop-filter: blur(8px);
}

/* — SPEAKER CARD — */
.speaker-card {
  background: var(--text); color: var(--cream);
  border-radius: 32px; padding: 64px 56px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.speaker-card.with-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--speaker-bg, none);
  background-size: cover; background-position: center;
  opacity: 0.32;
}
.speaker-card.with-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(45, 35, 25, 0.92), rgba(45, 35, 25, 0.65));
}
@media (max-width: 880px) {
  .speaker-card { grid-template-columns: 1fr; padding: 48px 32px; text-align: center; }
}
.speaker-card .blob {
  position: absolute; border-radius: 50%; opacity: 0.18; pointer-events: none;
}
.speaker-card .blob-a { width: 320px; height: 320px; background: var(--orange); top: -100px; right: -80px; }
.speaker-card .blob-b { width: 200px; height: 200px; background: var(--coral); bottom: -60px; left: -40px; }
.speaker-card .eyebrow { color: var(--orange); margin-bottom: 18px; }
.speaker-card h2 {
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.speaker-card p {
  font-size: 16px; line-height: 1.65; opacity: 0.85; margin-bottom: 26px;
  position: relative; z-index: 1;
}
.speaker-card ul.topics {
  margin-bottom: 26px; position: relative; z-index: 1;
}
.speaker-card ul.topics li {
  font-size: 14px; padding: 6px 0; padding-left: 22px; position: relative;
  opacity: 0.9;
}
.speaker-card ul.topics li::before {
  content: "→"; position: absolute; left: 0; color: var(--orange); font-weight: 900;
}
.speaker-card .btn {
  background: var(--orange); color: var(--white); position: relative; z-index: 1;
}
.speaker-card .btn:hover { background: var(--deep-orange); }
.speaker-side {
  position: relative; z-index: 1;
}
.speaker-stat {
  background: rgba(245, 166, 35, 0.10); border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 18px; padding: 20px; margin-bottom: 12px; text-align: center;
}
.speaker-stat .n { font-size: 32px; font-weight: 900; color: var(--orange); letter-spacing: -0.5px; }
.speaker-stat .l { font-size: 12px; color: rgba(255, 248, 240, 0.7); font-weight: 700; }
.speaker-stat:last-child { margin-bottom: 0; }

/* — PERSOONLIJK (small bottom bio) — */
.personal {
  background: var(--white); border-radius: 24px; padding: 36px 32px;
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: center;
  max-width: 720px; margin: 0 auto;
}
@media (max-width: 540px) {
  .personal { grid-template-columns: 1fr; text-align: center; }
  .personal .icon { margin: 0 auto; }
}
.personal .icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.personal p {
  font-size: 16px; line-height: 1.65; color: var(--text);
}

/* — CONNECT GRID — */
.connect {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 720px; margin: 0 auto;
}
@media (max-width: 640px) { .connect { grid-template-columns: repeat(2, 1fr); } }
.connect a {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 18px; text-align: center; font-weight: 800; font-size: 14px;
  color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .15s;
}
.connect a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.connect a .ico { font-size: 28px; }

/* — FOOTER — */
.site-footer { background: var(--text); color: var(--cream); padding: 72px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand .brand .brand-name { color: var(--cream); }
.footer-brand .brand .brand-dot { color: var(--orange); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255, 248, 240, 0.7); margin-top: 14px; max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255, 248, 240, 0.75); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 248, 240, 0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(255, 248, 240, 0.55); }
.footer-bottom a { color: rgba(255, 248, 240, 0.55); }
.footer-bottom a:hover { color: var(--white); }

/* — SCROLL REVEAL — */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* — WP DEFAULTS (single posts / pages fallback) — */
.entry-wrap { max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.entry-wrap h1, .entry-wrap h2, .entry-wrap h3 { color: var(--text); font-weight: 900; letter-spacing: -0.5px; margin: 1.4em 0 0.5em; line-height: 1.2; }
.entry-wrap h1 { font-size: 40px; }
.entry-wrap h2 { font-size: 30px; }
.entry-wrap h3 { font-size: 22px; }
.entry-wrap p { font-size: 17px; line-height: 1.75; margin-bottom: 1em; color: var(--text); }
.entry-wrap a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-wrap blockquote { border-left: 4px solid var(--orange); padding: 4px 0 4px 20px; margin: 24px 0; font-style: italic; color: var(--text-soft); }
.entry-wrap img { border-radius: 16px; margin: 24px 0; }
.entry-meta { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }

/* — Admin bar fix — */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
