/*!
* Theme Name: Sassika
* Theme URI: https://sassika.nl
* Author: Rik Spreen
*/


/* Lettertypes */

@font-face {
	font-family: 'Oooh Baby';
	src: url('../fonts/oooh-baby-v4-latin-regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Zain V3';
	src: url('../fonts/zain-v3-latin-regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Zain V3';
	src: url('../fonts/zain-v3-latin-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Zain V3';
	src: url('../fonts/zain-v3-latin-italic.woff2') format('woff2');
	font-weight: normal;
	font-style: italic;
	font-display: swap;
}

/* Basisinstellingen */

:root {
	font-size: 16px;
	/* basis voor rem-eenheden */
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Typografie */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
}

h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
	font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

h3 {
	font-size: clamp(1.25rem, 1.5vw + 0.75rem, 2rem);
}

body,
p,
a {

	font-size: clamp(1rem, 2.5vw, 1.25rem);
}


.justify{
	text-align: justify;
	hyphens: auto;
	hyphenate-limit-chars: 10 3 4;
}

a {
	text-decoration: none;
	font-weight: 700;
}

/* Kleuren en achtergronden */

html,
body {
	background-color: #312458;
}

body {
	color: #ab98ff;
	background: url('../img/stof-paars-3.webp') top left repeat;
}

a {
	color: #ab98ff;
	transition: color 1s ease;
}

a:hover{
	color: #ccc1ff;
	
}


.wrapper {
	background: url('../img/stof-paars-2.webp') top left repeat;
	background-color: #4b3587;
}

.grid-blok,
.tekst-blok,
header,
.navigatie,
.footer-navigatie,
.footer-info {
	background: url('../img/stof-paars-1.webp') top left repeat;
	background-color: #3a2968;
}

/* Algemene layout */

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	position: relative;
	text-shadow: 0.0625rem 0.0625rem 0.0625rem black;
	font-family: 'Zain V3', sans-serif;
}

main {
	flex: 1;
	margin-bottom: 2rem;
	padding: 0 1.5rem;
}

.wrapper {
	max-width: 80rem;
	width: 95%;
	margin: 1rem auto;
	padding: 1.5rem;
}

.header {
	position: relative;
	padding: .8rem;
	margin: 1.5rem;
}

.header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header-overlay h1 {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-family: 'Oooh Baby', cursive;
	font-size: clamp(1.2rem, 3vw, 2.6rem);
	padding: 0.5rem 1rem;
	z-index: 2;
	text-align: right;
	max-width: 90%;
	text-shadow: 0.125rem 0.125rem 0.25rem black;
}

.navigatie {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.25rem;
  margin: 0 1.5rem 0;
  overflow: hidden;
}

.navigatie-tekst {
  font-weight: 600;
  color: inherit;
  width: 100%;
  text-align: center;
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.5s ease, text-align 0.5s ease, opacity 0.5s ease;
}

.navigatie-tekst.links-uitgelijnd {
  text-align: left;
  transform: translateX(0.5rem);
  width: 50%;
}

.navigatie-logo {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) scale(0.25);
  height: 3.75rem;
  width: auto;
  opacity: 0;
  filter: blur(2px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

.navigatie-logo.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  filter: blur(0);
}

/* Responsive */

@media (max-width: 37.5rem) /* 600px */
{
	.header-overlay h1 {
		top: 0;
		right: .5rem;
		font-size: clamp(.8rem, 2.5vw, 2rem);
	}

	.navigatie-logo {
		height: 2.5rem;
	}
}


@media (max-width: 48rem)/* 768px */
{ 

	.wrapper {
		padding: 0;
	}

  .grid-layout.grid-drie-gelijk,
  .grid-layout.grid-twee-gelijk,
  .grid-layout.grid-twee-links-smal,
  .grid-layout.grid-twee-rechts-smal {
		grid-template-columns: 1fr;
	}
	
	.footer-info{
    width: 100% !important;
}
}


/* Content */

.intro {
	transform: translateY(1rem);
	animation: fadeInUp 1.2s ease-out forwards;
}

.intro h1 {
	line-height: 1.3;
	margin-bottom: 1.25rem;
	font-weight: bold;
}

.intro p {
	text-align: center !important;
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

.grid-layout {
  display: grid;
  gap: 2rem;
  padding: 1.5rem 0 0;
}

.grid-blok {
	align-self: stretch;
}

.grid-blok,
.tekst-blok,
header,
.wrapper,
.footer-info {
	position: relative;
	box-shadow: var(--rand-schaduw, 0px 0px 0px rgba(0, 0, 0, 0));
	border-radius: 0.75rem;
	padding: 0;
	z-index: 0;
}

.grid-twee-gelijk {
  grid-template-columns: 1fr 1fr;
}

.grid-twee-links-smal {
  grid-template-columns: 1fr 2fr;
}

.grid-twee-rechts-smal {
  grid-template-columns: 2fr 1fr;
}


.grid-drie-gelijk {
  grid-template-columns: repeat(3, 1fr);
}





/* Basisstijl */
.navigatie,
.footer-navigatie {
	box-shadow: var(--rand-schaduw, 0px 0px 0px rgba(0, 0, 0, 0));
	border-radius: 0.75rem;
	padding: 1rem;
}

/* Navigatie bovenaan: bovenhoeken recht */
.navigatie.top-zero {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* Footer onderaan: onderhoeken recht */
.footer-navigatie.bottom-zero {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* Gestikte rand via ::before */
.grid-blok::before,
.tekst-blok::before,
header::before,
.wrapper::before,
.navigatie::before,
.footer-navigatie::before,
.footer-info::before {
	content: "";
	position: absolute;
	inset: 0.5rem;
	border: 1px dashed rgb(139 121 218);
	pointer-events: none;
	border-radius: 0.5rem;
	z-index: 1;
}

/* Schaduw via ::after, onder het hele blok */
.grid-blok::after,
.tekst-blok::after,
header::after,
.wrapper::after,
.navigatie::after,
.footer-navigatie::after,
.footer-info::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: var(--schaduw, 0px 2px 6px rgba(0, 0, 0, 0.3));
	border-radius: inherit;
	pointer-events: none;
	z-index: 0;
}


/* Inhoud bovenop */
.blok-inhoud {
	position: relative;
	z-index: 2;
	padding: 2rem;
	text-align: center;
}


.tekst-blok {
	padding: 1rem;
	margin: 1.5rem 0 0;
	text-align: center;
}


/* Footer */


.footer-navigatie {
	position: sticky;
	bottom: 0;
	z-index: 100;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 1.5rem 5rem;
	padding: 1rem 1rem 0;
}

.footer-tekst {
	padding: .5rem .5rem 1rem;
	font-weight: 600;
}

.footer {
	text-align: center;
	padding: 0 1.5rem;
	margin-bottom: 5rem;
}

.footer-info{
    width: fit-content;
    padding: 3rem;
    margin: 0 auto;
}

.footer-info,
.footer-info p {
	font-size: clamp(0.75rem, 1.2vw, 0.875rem);
	line-height: 1;
}


/* Toegankelijkheid */

.skip-link {
	position: absolute;
	top: -4rem;
	left: 1rem;
	background-color: #8b79db;
	color: #fff;
	padding: 0.5rem 1rem;
	text-decoration: none;
	font-weight: 600;
	border-radius: 0.3rem;
	z-index: 1000;
	transition: top 0.3s ease;
}

.skip-link:focus {
	top: 1rem;
}


/* Animaties */

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* Visuele scheiding */

.divider {
	border: none;
	margin: 3rem 0;
}

.hr-hart {
	border: none;
	height: 5rem;
	max-width: 25rem;
	background: url('../img/hr-hart.png') no-repeat center;
	background-size: contain;
	opacity: .6;
}