/* ============================================================
   P3MEDIA MASTER THEME — MAIN STYLES
   ============================================================
   Modern CSS reset + base styles + responsive foundation
   Mobile-first approach met progressive enhancement
   ============================================================ */

/* ============ MODERN RESET ============ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 100px; /* voor sticky header */
	tab-size: 4;
}

body {
	font-family: var(--p3-font-body);
	font-size: var(--p3-text-base);
	line-height: var(--p3-leading-normal);
	color: var(--p3-text);
	background-color: var(--p3-background);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	min-height: 100vh;
	min-height: 100dvh;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--p3-font-display);
	font-weight: 400;
	line-height: var(--p3-leading-tight);
	letter-spacing: var(--p3-tracking-tight);
	color: var(--p3-text);
	text-wrap: balance;
}

h1 { font-size: var(--p3-text-4xl); }
h2 { font-size: var(--p3-text-3xl); }
h3 { font-size: var(--p3-text-2xl); }
h4 { font-size: var(--p3-text-xl); }
h5 { font-size: var(--p3-text-lg); }
h6 { font-size: var(--p3-text-base); }

p {
	line-height: var(--p3-leading-relaxed);
	text-wrap: pretty;
	max-width: 70ch;
}

a {
	color: var(--p3-primary);
	text-decoration: none;
	transition: color var(--p3-transition);
}

a:hover, a:focus-visible {
	color: var(--p3-primary-dark);
}

/* ============ IMAGES & MEDIA ============ */
img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

img {
	font-style: italic; /* alt text styling als image niet laadt */
	background-repeat: no-repeat;
	background-size: cover;
	shape-margin: 1rem;
}

/* ============ FORM ELEMENTS ============ */
input, button, textarea, select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: none;
	cursor: pointer;
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
	outline: 2px solid var(--p3-primary);
	outline-offset: 4px;
	border-radius: var(--p3-radius-sm);
}

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

/* ============ LAYOUT — CONTAINER SYSTEM ============ */
.p3-container {
	width: 100%;
	max-width: var(--p3-container-xl);
	margin-inline: auto;
	padding-inline: var(--p3-section-x);
}

.p3-container--narrow { max-width: var(--p3-container-md); }
.p3-container--wide { max-width: var(--p3-container-2xl); }
.p3-container--full { max-width: 100%; }

/* ============ SECTION SPACING ============ */
.p3-section {
	padding-block: var(--p3-section-y);
}

.p3-section--sm { padding-block: clamp(2rem, 3vw, 4rem); }
.p3-section--lg { padding-block: clamp(4rem, 7vw, 10rem); }

/* ============ GRID UTILITIES ============ */
.p3-grid {
	display: grid;
	gap: var(--p3-grid-gap);
}

.p3-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.p3-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.p3-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* ============ FLEX UTILITIES ============ */
.p3-flex {
	display: flex;
	gap: var(--p3-space-4);
}

.p3-flex--center { align-items: center; justify-content: center; }
.p3-flex--between { justify-content: space-between; align-items: center; }
.p3-flex--col { flex-direction: column; }
.p3-flex--wrap { flex-wrap: wrap; }

/* ============ BUTTONS — CONVERSIE FOCUS ============ */
.p3-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--p3-space-2);
	padding: var(--p3-space-4) var(--p3-space-8);
	font-family: var(--p3-font-body);
	font-size: var(--p3-text-base);
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--p3-tracking-wide);
	text-transform: uppercase;
	border-radius: var(--p3-radius);
	cursor: pointer;
	transition: all var(--p3-transition);
	border: 2px solid transparent;
	min-height: 48px; /* touch target */
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.p3-btn--primary {
	background-color: var(--p3-primary);
	color: var(--p3-text-light);
	box-shadow: var(--p3-shadow-accent);
}

.p3-btn--primary:hover, .p3-btn--primary:focus-visible {
	background-color: var(--p3-primary-dark);
	transform: translateY(-2px);
	color: var(--p3-text-light);
	box-shadow: 0 15px 40px rgba(255, 157, 1, 0.4);
}

.p3-btn--secondary {
	background-color: var(--p3-secondary);
	color: var(--p3-text-light);
}

.p3-btn--secondary:hover {
	background-color: var(--p3-text);
	color: var(--p3-text-light);
	transform: translateY(-2px);
}

.p3-btn--outline {
	background-color: transparent;
	color: var(--p3-secondary);
	border-color: var(--p3-secondary);
}

.p3-btn--outline:hover {
	background-color: var(--p3-secondary);
	color: var(--p3-text-light);
}

.p3-btn--ghost {
	background-color: transparent;
	color: var(--p3-text);
}

.p3-btn--ghost:hover {
	background-color: var(--p3-border);
}

/* ============ CARDS ============ */
.p3-card {
	background-color: var(--p3-surface);
	border-radius: var(--p3-radius-lg);
	padding: var(--p3-space-6);
	box-shadow: var(--p3-shadow);
	transition: all var(--p3-transition);
}

.p3-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--p3-shadow-lg);
}

/* ============ HEADER ============ */
.p3-header {
	position: sticky;
	top: 0;
	z-index: var(--p3-z-sticky);
	background-color: var(--p3-surface);
	border-bottom: 1px solid var(--p3-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.p3-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--p3-space-4) 0;
	gap: var(--p3-space-6);
}

.p3-header__logo img {
	max-height: 50px;
	width: auto;
}

/* ============ NAVIGATION ============ */
.p3-nav {
	display: flex;
	gap: var(--p3-space-6);
	align-items: center;
}

.p3-nav a {
	color: var(--p3-text);
	font-weight: 500;
	font-size: var(--p3-text-sm);
	letter-spacing: var(--p3-tracking-wide);
	text-transform: uppercase;
	position: relative;
}

.p3-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background-color: var(--p3-primary);
	transition: width var(--p3-transition);
}

.p3-nav a:hover::after {
	width: 100%;
}

/* ============ HERO SECTION ============ */
.p3-hero {
	padding-block: clamp(4rem, 8vw, 10rem);
	position: relative;
	overflow: hidden;
}

.p3-hero__title {
	font-size: var(--p3-text-hero);
	line-height: 0.95;
	margin-bottom: var(--p3-space-6);
}

.p3-hero__subtitle {
	font-size: var(--p3-text-lg);
	color: var(--p3-text-muted);
	margin-bottom: var(--p3-space-8);
	max-width: 60ch;
}

/* ============ FOOTER ============ */
.p3-footer {
	background-color: var(--p3-secondary);
	color: var(--p3-text-light);
	padding-block: var(--p3-section-y);
}

.p3-footer a {
	color: var(--p3-text-light);
	opacity: 0.8;
}

.p3-footer a:hover {
	opacity: 1;
	color: var(--p3-primary);
}

/* ============ STICKY CONVERSION BAR (mobile) ============ */
.p3-sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--p3-primary);
	color: var(--p3-text-light);
	padding: var(--p3-space-3) var(--p3-space-4);
	z-index: var(--p3-z-sticky);
	display: none;
	box-shadow: var(--p3-shadow-lg);
}

/* ============ RESPONSIVE BREAKPOINTS ============ */

/* Mobile: < 480px - default styles */

/* Small tablets: 480px+ */
@media (min-width: 480px) {
	.p3-grid--mobile-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets: 768px+ */
@media (min-width: 768px) {
	.p3-section { padding-block: var(--p3-section-y); }
	.p3-grid--md-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Desktops: 1024px+ */
@media (min-width: 1024px) {
	.p3-hero__title { letter-spacing: var(--p3-tracking-tight); }
	.p3-sticky-cta { display: none !important; } /* alleen mobile */
}

/* Large desktops: 1440px+ */
@media (min-width: 1440px) {
	.p3-container { padding-inline: var(--p3-space-8); }
}

/* Mobile-only sticky CTA */
@media (max-width: 1023px) {
	.p3-sticky-cta.is-visible { display: flex; }
	body:has(.p3-sticky-cta.is-visible) { padding-bottom: 80px; }
}

/* ============ PRINT STYLES ============ */
@media print {
	.p3-header, .p3-footer, .p3-sticky-cta { display: none; }
	body { background: white; color: black; }
}
