/*
Theme Name: IF Support
Theme URI: https://internet-fabriek.nl
Author: Internet Fabriek
Author URI: https://internet-fabriek.nl
Description: Donker supportportaal in de stijl van Internet Fabriek. Homepage met inloggen en registreren. Na het inloggen alleen een ticket maken of bestaande tickets bekijken.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Requires Plugins: if-support-desk
Text Domain: if-support
*/

:root {
	--dark-primary: #111923;
	--dark-secondary: #172433;
	--dark-3: #1d2c3d;
	--blue: #5aa8d8;
	--blue-strong: #7cc0ea;
	--cyan: #39beea;
	--white: #ffffff;
	--muted: #9aa8b7;
	--muted-2: #6f7e8d;
	--border: rgba(255, 255, 255, 0.08);
	--radius: 16px;
	--radius-sm: 10px;
	--maxw: 1180px;
	--shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
	--shadow-blue: 0 0 50px -10px rgba(90, 168, 216, 0.45);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	background: var(--dark-primary);
	color: var(--white);
	line-height: 1.65;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

h1, h2, h3 {
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--muted); }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -40px;
	z-index: 100;
	padding: 8px 12px;
	background: var(--blue);
	color: #06121c;
	border-radius: 8px;
}

.skip-link:focus { top: 12px; }

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

.section { padding: 88px 0; }
.section-tight { padding: 56px 0 88px; }

.eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--blue);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--white);
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-primary {
	background: linear-gradient(135deg, var(--blue), #4a92c2);
	color: #06121c;
	box-shadow: var(--shadow-blue);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(17, 25, 35, 0.72);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(14px);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 78px;
	gap: 20px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover,
.nav-links a.is-active { color: var(--white); }
.nav-links .btn { color: #06121c; }
.nav-links .btn-ghost { color: var(--white); }

.nav-toggle {
	display: none;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--white);
	cursor: pointer;
}

.nav-toggle svg { display: block; width: 28px; height: 28px; }

.hero {
	position: relative;
	padding: 96px 0 72px;
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .accent {
	background: linear-gradient(120deg, var(--blue-strong), var(--cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-sub { font-size: 1.15rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
	position: relative;
	width: min(100%, 460px);
	aspect-ratio: 1;
	justify-self: end;
}

.hero-orb,
.hero-ring,
.hero-core { position: absolute; border-radius: 50%; }

.hero-orb {
	width: 78%;
	aspect-ratio: 1;
	background: radial-gradient(circle at 35% 30%, rgba(90, 168, 216, 0.55), rgba(90, 168, 216, 0.05) 60%, transparent 70%);
	filter: blur(6px);
	animation: ifsp-float 8s ease-in-out infinite;
}

.hero-ring { border: 1px solid rgba(90, 168, 216, 0.28); }
.hero-ring.r1 { width: 92%; aspect-ratio: 1; }
.hero-ring.r2 { width: 66%; aspect-ratio: 1; border-color: rgba(90, 168, 216, 0.42); }
.hero-ring.r3 { width: 40%; aspect-ratio: 1; border-color: rgba(124, 192, 234, 0.6); }

.hero-core {
	width: 26%;
	aspect-ratio: 1;
	background: linear-gradient(135deg, var(--blue-strong), #3d7ba8);
	box-shadow: 0 0 80px rgba(90, 168, 216, 0.6);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(90, 168, 216, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(90, 168, 216, 0.045) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(circle at 70% 40%, black, transparent 72%);
	pointer-events: none;
}

@keyframes ifsp-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-16px); }
}

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: linear-gradient(160deg, var(--dark-secondary), var(--dark-primary));
	transition: transform .25s ease, border-color .25s ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgba(90, 168, 216, 0.45);
}

.card-index {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 18px;
	border-radius: 12px;
	background: rgba(90, 168, 216, 0.12);
	color: var(--blue-strong);
	font-weight: 700;
}

.card p:last-child { margin-bottom: 0; }

.band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 36px 40px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--dark-secondary);
}

.band h2 { margin-bottom: 8px; }
.band p { margin: 0; }

.page-intro { max-width: 720px; margin-bottom: 28px; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-intro p { margin: 0; }

.auth-card {
	width: min(100%, 460px);
	padding: 32px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--dark-secondary);
}

.auth-card h1 { font-size: 2rem; }
.auth-switch { margin: 18px 0 0; font-size: 0.95rem; }
.auth-switch a { color: var(--blue-strong); }

.form-field { margin: 0 0 16px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 0.92rem; font-weight: 600; }

.form-field input {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--dark-primary);
	color: var(--white);
	font-size: 1rem;
}

.form-field input:focus { outline: none; border-color: var(--blue); }

.check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 0.95rem;
}

.check input { accent-color: var(--blue); }

.honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.flash {
	padding: 12px 14px;
	margin-bottom: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
}

.flash-success { background: rgba(60, 180, 120, 0.12); border-color: rgba(60, 180, 120, 0.4); color: #8be0b4; }
.flash-error { background: rgba(220, 80, 90, 0.12); border-color: rgba(220, 80, 90, 0.4); color: #f1a7ad; }

.portal-wrap { margin-top: 8px; }

.site-footer {
	padding: 48px 0 32px;
	border-top: 1px solid var(--border);
	background: var(--dark-secondary);
}

.footer-row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	align-items: end;
}

.footer-brand { height: 42px; width: auto; margin-bottom: 12px; }
.site-footer p { max-width: 360px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--white); }
.footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.85rem; }

@media (max-width: 900px) {
	.hero-grid,
	.grid-3,
	.band { grid-template-columns: 1fr; }
	.band { display: grid; }
	.hero-visual { width: min(100%, 320px); margin: 12px auto 0; justify-self: center; }
	.nav-toggle { display: block; }
	.nav-links {
		display: none;
		position: absolute;
		top: 78px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 18px 24px 22px;
		background: rgba(23, 36, 51, 0.98);
		border-bottom: 1px solid var(--border);
	}
	.nav-links.is-open { display: flex; }
	.nav-links .btn { width: 100%; }
}
