/*
Theme Name: Celebrate
Theme URI: https://celebrateleeuwarden.nl
Author: Richard van der Meer
Author URI: https://delaque.nl/
Description: Thema voor de website van Celebrate
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Version: 1.0
Text Domain: Celebrate

Celebrate, (C) 2025 deLaque.nl
*/

:root {
	--color-brand-1: rgb(248, 243, 239);
	--color-brand-2: rgb(216, 196, 179);
	--color-brand-3: rgb(181, 160, 145);
	--color-brand-4: rgb(229, 214, 197);
	--color-brand-5: rgb(237, 205, 210);
	--color-brand-6: rgb(245, 240, 235);
	--color-brand-7: rgb(58, 46, 40);
	--color-white: hsla(0,0%,100%,1);
	--color-black: hsla(0,0%,0%,1);

	--font-color: var(--color-brand-7);
	--font-default: 'Inter', sans-serif;
	--font-heading: 'Playfair Display', serif;
}

body {
	background-color: var(--color-brand-1);
	min-height: 200vh;
	background-attachment: fixed;
	background-size: cover;
	color: var(--font-color);
	font-family: var(--font-default);
}

body.block-editor-iframe__body,
.editor-styles-wrapper {
	color: var(--color-brand-7) !important;
}

body > .wp-site-blocks {
	max-width: 1920px;
	margin: 0 auto;
	box-shadow: 0 0 30px 10px rgba(0,0,0,.4);
}

body > .wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 10;
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

.header {
	position: relative;
	z-index: 2;
}

.mobile-menu-logo {
	width: min(75%, 400px);

	@media (width >= 600px) {
		display: none;
	}

	img {
		width: 100%;
	}
}

.header-navigation {
	background-color: var(--color-brand-7);
	color: var(--color-brand-6);
	left: 0;
	padding: 0 1rem;
	position: sticky;
	right: 0;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 10;

	@media (600px < width < 800px) {
		padding-bottom: 1rem;
	}

	.wp-block-navigation {
		gap: 2rem;
		color: var(--color-brand-2);

		&:hover {
			color: var(--color-brand-2);
		}

		> .wp-block-navigation-item {
			&:hover {
				color: var(--color-brand-5);
			}
		}

		.current-menu-item > .wp-block-navigation-item__content {
			color: var(--color-brand-3);
			text-decoration: underline;

			&:hover {
				color: var(--color-brand-3);
				text-decoration: underline;
			}

			.wp-block-navigation-item__content {
				&:hover {
					color: var(--color-brand-7);
					text-decoration: underline;
				}
			}
		}
	}
}

header.wp-block-template-part .header-navigation,
header.wp-block-template-part.header-navigation {
	z-index: 3;

	> * {
		z-index: 2;
		position: relative;
	}

	.wp-block-site-logo {
		margin-bottom: .5rem;
		margin-top: .5rem;
		max-width: 75vw;
		width: clamp(100px, 25vw, 200px);

		@media (width >= 800px) {
			max-width: 175px;
		}

		@media (width >= 1000px) {
			max-width: 25vw;
		}
	}

}

.wp-block-navigation__responsive-container-open svg {
	width: 2.5em;
	height: 2.5em;
}

.wp-block-navigation__responsive-container {
	background-color: var(--color-brand-7) !important;
}

.wp-block-navigation__responsive-dialog {
	padding: 1.5rem;
	background: var(--color-brand-7);
	color: var(--color-brand-1);
}

.wp-block-navigation__responsive-container-close {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-right: 1.5rem;
	margin-top: 1.5rem;
}


@keyframes solidHeaderBackgroundGradient {
	0% {
		border-bottom-color: transparent;
		opacity: .65;
	}

	90% {
		border-bottom-color: transparent;
	}

	100% {
		border-bottom-color: var(--color-gold);
		opacity: 0.95;
	}
}

.wp-block-media-text>.wp-block-media-text__content {
	padding-block: 2rem;
}

footer,
footer .wp-block-column {
	font-size: .875rem;
}

footer .wp-block-table table {
	border: 0;

	td,
	th {
		border: 0;
	}

	th {
		text-align: left;
	}
}

hgroup > * {
	margin-bottom: 0;
	margin-top: 0;

	&:last-child {
		margin-bottom: 1rem;
	}
}

.home-header {
	min-height: 55vh;
}

@media (width >= 800px) {
	.home-header {
		min-height: 75vh;
	}
}

@media (width >= 1200px) {
	.home-header {
		min-height: 90vh;
	}
}

/**
 * Wordpress overrides
 */

a {
	color: var(--color-brand-7);
}

:where(.wp-block-group.has-background) {
	padding-inline: 1rem;
}


main > .entry-content > .wp-block-group:not(.alignfull) {
	padding-inline: 1rem;
}


.wp-block-button__link {
	position: relative;
	overflow: hidden;

	&::before {
		background-color: var(--color-brand-3);
		bottom: 0;
		content: "";
		left: 0;
		opacity: 0;
		position: absolute;
		right: 0;
		top: 0;
		transition: opacity .3s ease-in-out;
		z-index: -1;
	}
}
.wp-block-button__link:hover {
	text-decoration: underline;
	&::before {
		opacity: .2;
		z-index: 1;
	}
}

.wp-block-image > a {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 1rem;

	img {
			transition: transform .3s ease-in-out;
	}

	&:hover {
		img {
			transform: scale(1.05);
		}
	}
}

@media (width <= 600px) {
	main > .wp-block-post-content > *:is(h1, h2, h3, h4, h5, h6, p) {
		padding-inline: 1rem;
	}
}
