/*
Theme Name: RopeMadnessBE
Theme URI: https://www.instagram.com/ropemadnessbe/
Author: RopeMadnessBE
Description: Donker one-page scrollthema voor RopeMadnessBE — "Nobody said it was a good idea, we just said it was possible." Logo, foto's en teksten aanpasbaar via de Customizer.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ropemadness
*/

:root {
	--bg: #0e0e0e;
	--bg-2: #151515;
	--surface: #1b1b1b;
	--ink: #f4f1ea;          /* gebroken wit zoals de letters op de badge */
	--muted: #a7a39b;
	--line: rgba(255, 255, 255, .1);
	--red: #ff2b2b;          /* rand van de badge */
	--red-dark: #d81f1f;
	--yellow: #f6d10a;       /* achtergrond van de badge */
	--radius: 10px;
	--max: 1200px;
	--font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--admin: 0px;
}
.admin-bar { --admin: 32px; }
@media (max-width: 782px) { .admin-bar { --admin: 46px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .55em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Elke sectie voelt als een "pagina" in de scroll */
.panel {
	min-height: calc(100vh - var(--admin));
	min-height: calc(100svh - var(--admin));
	display: flex; align-items: center;
	padding: 110px 0 90px;
	position: relative;
	scroll-margin-top: var(--admin);
}
.panel--alt { background: var(--bg-2); }

.eyebrow {
	display: inline-block;
	font-size: .78rem; font-weight: 700;
	letter-spacing: .2em; text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }

.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px;
	border-radius: 6px;
	background: var(--red); color: #fff;
	font-weight: 600; font-size: .92rem;
	letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none;
	border: 2px solid var(--red);
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 43, 43, .25); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--ink); box-shadow: none; }
.btn svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: var(--admin); left: 0; right: 0; z-index: 50;
	transition: background .3s ease, transform .3s ease;
}
.site-header.is-solid, body:not(.home) .site-header {
	background: rgba(14, 14, 14, .9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 1rem; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { color: var(--red); }
/* Op de startpagina verschijnt het kleine logo pas na het scrollen voorbij het grote logo */
.home .brand { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.home .site-header.is-solid .brand { opacity: 1; transform: none; pointer-events: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active { box-shadow: 0 2px 0 var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.nav { position: fixed; top: calc(70px + var(--admin)); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 8px 24px 20px; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
	.nav a.is-active { box-shadow: none; color: var(--red); }
}

/* ---------- Hero: logo + slogan ---------- */
.hero { overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at 72% 50%, rgba(246, 209, 10, .07) 0%, transparent 45%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--red); }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink); opacity: .85; max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__logo { display: flex; justify-content: center; }
.hero__logo img {
	width: min(100%, 500px); aspect-ratio: 1; object-fit: cover;
	filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6));
	animation: badge-in 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes badge-in { from { opacity: 0; transform: scale(.9) rotate(-8deg); } to { opacity: 1; transform: none; } }

.scroll-hint {
	position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
	color: var(--muted); text-decoration: none; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after { content: ""; width: 2px; height: 34px; background: linear-gradient(var(--red), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 860px) {
	.hero .wrap { grid-template-columns: 1fr; text-align: center; }
	.hero__logo { order: -1; }
	.hero__logo img { width: min(78vw, 360px); }
	.hero__sub { margin-left: auto; margin-right: auto; }
	.hero__actions { justify-content: center; }
	.scroll-hint { display: none; }
}

/* ---------- Over ons ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; background: var(--surface); position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 30px; }
.stat b { display: block; font-size: 2.6rem; line-height: 1; color: var(--red); font-weight: 800; }
.stat span { font-size: .9rem; color: var(--muted); }
.stat b svg { width: 2.8rem; height: 2.6rem; display: block; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Wat we doen ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--red);
	border-radius: var(--radius);
	padding: 32px 28px;
	transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--yellow); }
.card__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 26px; height: 26px; color: #111; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Galerij ---------- */
.panel--gallery .wrap { width: 100%; }
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.gallery a { border-radius: 8px; overflow: hidden; background: var(--surface); position: relative; }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(6) { grid-column: span 2; }
/* Bij precies 4 foto's: laatste foto breed, zodat er geen leeg vak overblijft */
.gallery a:nth-child(4):last-child { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: grayscale(.25); }
.gallery a:hover img { transform: scale(1.05); filter: none; }
.gallery-empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 56px 24px; text-align: center; color: var(--muted); }
.gallery-empty a { color: var(--yellow); }
@media (max-width: 820px) {
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
	.gallery a:nth-child(6) { grid-column: span 1; }
}

.lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(5,5,5,.95); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 6px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 10px 16px; line-height: 1; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-insta { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--yellow); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lightbox .lb-insta[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .wrap { display: flex; flex-direction: column; align-items: center; }
.contact__logo { width: 120px; margin-bottom: 26px; }
.contact .lead { margin: 0 auto 34px; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact .entry-content { max-width: 680px; margin: 40px auto 0; text-align: left; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #090909; color: var(--muted); padding: 40px 0; font-size: .92rem; border-top: 3px solid var(--red); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer q { font-style: italic; color: var(--ink); }
.site-footer a { color: var(--yellow); text-decoration: none; }

/* ---------- Scroll-animaties ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal, .hero__logo img { opacity: 1; transform: none; transition: none; animation: none; }
	.scroll-hint::after { animation: none; }
}

/* ---------- Gewone pagina's / berichten ---------- */
.page-main { padding: calc(140px + var(--admin)) 0 80px; }
.entry { max-width: 760px; margin: 0 auto 64px; }
.entry h1 { font-size: clamp(2rem, 5vw, 3rem); }
.entry h2 a { text-decoration: none; }
.entry-content a { color: var(--yellow); }
.entry-content img { border-radius: 8px; }
.alignwide { max-width: var(--max); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; top: 10px; left: 10px; }
