/*
Theme Name: Ozz
Description: One-page portfolio theme for ozz.lu. Slider, portfolio, services, about and contact sections, with the content types from the "ozz-content" mu-plugin. Settings under Appearance → Customize → Ozz theme.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Author: Ozz Productions
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ozz
*/

/* Colors are set from the theme options as --ozz-* custom properties (functions.php). */
:root {
	/* Sizes follow the old "Me 3.5" theme with this site's settings. */
	--ozz-width: 960px;
	--ozz-gutter: 16px;
	--ozz-font-body: Georgia, serif;
	--ozz-font-heading: "Vollkorn", "Times New Roman", serif;
	--ozz-font-menu: "Brawler", Georgia, serif;
	--ozz-font-title: "Andika", "Helvetica Neue", Arial, sans-serif;
	--ozz-font-button: Arial, Verdana, sans-serif;
	--ozz-section-gap: 80px;
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 64px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ozz-bg);
	color: var(--ozz-text);
	font: 16px/23px var(--ozz-font-body);
	overflow-x: hidden;
}

img,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: var(--ozz-link);
}

a:hover,
a:focus {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--ozz-link);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	color: var(--ozz-heading);
	font-family: var(--ozz-font-heading);
	font-weight: 400;
	line-height: 1.3;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 8px 14px;
	background: var(--ozz-dark);
	color: #fff;
}

#wrapper {
	max-width: calc(var(--ozz-width) + 2 * var(--ozz-gutter));
	margin: 0 auto;
	padding: 0 var(--ozz-gutter);
}

/* Header ----------------------------------------------------------------- */

#header {
	text-align: center;
}

#logo {
	padding-top: 22px;
}

.logo {
	display: inline-block;
}

.logo img {
	width: var(--ozz-logo-w);
	margin: 0 auto;
}

.logo-text {
	font: 32px var(--ozz-font-heading);
	color: var(--ozz-heading);
}

.nav-holder {
	min-height: 52px;
	margin: 40px auto 0;
	max-width: 790px;
}

#navigation {
	border-top: 1px solid var(--ozz-line);
	border-bottom: 1px solid var(--ozz-line);
}

#navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#primary-menu {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

#primary-menu a {
	display: block;
	padding: 10px 0 9px;
	color: var(--ozz-menu);
	font: 20px/1.6 var(--ozz-font-menu);
	text-transform: uppercase;
	text-decoration: none;
}

#primary-menu a:hover,
#primary-menu a:focus,
#primary-menu .current-menu-item > a {
	color: var(--ozz-link);
}

#primary-menu .sub-menu {
	display: none;
}

.menu-toggle {
	display: none;
}

/* Menu bar fixed to the top after scrolling past the header (ozz.js). */
#navigation.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	border: 0;
	background: var(--ozz-sticky-bg);
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.18);
	animation: ozz-drop 0.25s ease-out;
}

#navigation.is-stuck #primary-menu {
	max-width: 790px;
	margin: 0 auto;
	padding: 0 var(--ozz-gutter);
}

#navigation.is-stuck #primary-menu a {
	color: var(--ozz-sticky-text);
	font-size: 16px;
	padding: 8px 0;
}

#navigation.is-stuck #primary-menu a:hover,
#navigation.is-stuck #primary-menu a:focus {
	color: #fff;
	text-decoration: underline;
}

@keyframes ozz-drop {
	from {
		transform: translateY(-100%);
	}
}

#intro {
	max-width: 675px;
	margin: 36px auto 0;
	color: var(--ozz-heading);
	font: 18px/30px var(--ozz-font-heading);
}

#intro p {
	margin: 0;
}

/* Sections --------------------------------------------------------------- */

.section {
	padding-top: var(--ozz-section-gap);
	text-align: center;
}

/* Title with a thin line running out to the page edges on both sides. */
.title {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0 calc(50% - 50vw) 87px;
}

.title::before,
.title::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--ozz-line);
}

.title h1,
.title h2 {
	margin: 0;
	color: var(--ozz-title);
	font: 28px/1.2 var(--ozz-font-title);
	text-transform: uppercase;
}

.scroll-down,
.scroll-top {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 60px auto var(--ozz-space);
	border-radius: 50%;
	background: var(--ozz-dark);
	color: #fff;
	transition: transform 0.2s;
}

.scroll-down:hover,
.scroll-top:hover {
	transform: translateY(2px);
}

.scroll-top {
	margin-bottom: 0;
}

.scroll-top:hover {
	transform: translateY(-2px);
}

/* Slider ----------------------------------------------------------------- */

.slider {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.slides {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.slides::-webkit-scrollbar {
	display: none;
}

.slides > li {
	flex: 0 0 100%;
	scroll-snap-align: center;
}

.slides img {
	width: 100%;
	margin: 0 auto;
}

/* Homepage slider: a fixed frame, slides stacked vertically and moved up (ozz.js). */
.slider-vertical {
	aspect-ratio: var(--ozz-ratio, 800 / 330);
	overflow: hidden;
}

.slider-vertical .slides {
	display: block;
	height: 100%;
	overflow: visible;
	scroll-snap-type: none;
}

.slider-vertical .slides > li {
	height: 100%;
}

.slider-vertical .slides img {
	height: 100%;
	object-fit: cover;
}

.slider-vertical .slider-arrow {
	margin-top: -19px;
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.slider-dots button {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 1px solid var(--ozz-dark);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.slider-dots button[aria-current="true"] {
	background: var(--ozz-dark);
}

.slider-arrow {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-top: -38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(39 39 39 / 0.65);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s;
}

.slider:hover .slider-arrow,
.slider-arrow:focus-visible {
	opacity: 1;
}

.slider-arrow.prev {
	left: 10px;
}

.slider-arrow.next {
	right: 10px;
}

/* Portfolio -------------------------------------------------------------- */

.filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 28px;
	margin: 0 0 45px;
	padding: 0;
	list-style: none;
}

.filter {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ozz-heading);
	font: 14px/250% var(--ozz-font-heading);
	text-transform: uppercase;
	cursor: pointer;
}

.filter:hover {
	color: var(--ozz-link);
}

.filter.is-active {
	color: #999;
}

.directional-text {
	margin: 0 auto 50px;
	max-width: 760px;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 40px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-items: center;
}

.project[hidden] {
	display: none;
}

.project-link {
	display: block;
	width: min(300px, 72vw);
	text-decoration: none;
}

.project-circle {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ozz-line);
	box-shadow: 0 0 0 5px var(--ozz-bg), 0 0 0 6px var(--ozz-line);
}

.project-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.project-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 18%;
	background: rgb(39 39 39 / 0.82);
	color: #fff;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-name {
	font-size: 15px;
	text-transform: uppercase;
}

.project-more {
	padding: 4px 14px;
	border: 1px solid rgb(255 255 255 / 0.7);
	border-radius: 20px;
	font-size: 13px;
	font-style: italic;
}

.project-link:hover .project-overlay,
.project-link:focus-visible .project-overlay {
	opacity: 1;
}

.project-link:hover img,
.project-link:focus-visible img {
	transform: scale(1.06);
}

/* Touch screens have no hover: show the title under the circle instead. */
@media (hover: none) {
	.project-overlay {
		display: none;
	}

	.project-link::after {
		content: attr(data-title);
		display: block;
		margin-top: 14px;
		color: var(--ozz-heading);
		font: 18px/1.3 var(--ozz-font-heading);
	}
}

/* Project detail panel above the grid, and on single project pages. */
.project-panel {
	position: relative;
	margin: 0 0 60px;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--ozz-line);
	text-align: left;
}

.project-close {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 14px;
	border: 1px solid var(--ozz-line);
	border-radius: 20px;
	background: var(--ozz-bg);
	color: var(--ozz-text);
	font: italic 13px var(--ozz-font-body);
	cursor: pointer;
}

.project-close:hover {
	color: var(--ozz-link);
	border-color: currentColor;
}

.project-detail {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 32px;
	text-align: left;
}

.project-detail.no-media {
	grid-template-columns: 1fr;
}

.project-title {
	margin: 0 0 12px;
	padding-right: 80px;
	font-size: 26px;
}

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.gallery .slides img {
	width: 100%;
}

/* Content keeps its own inline fonts, sizes and colors, as on the old site. */
.entry-content h3 {
	margin: 0 0 12px;
	font-size: 20px;
}

/* Services --------------------------------------------------------------- */

.services_intro {
	max-width: 800px;
	margin: 0 auto 60px;
	color: var(--ozz-heading);
	font: 18px/38px var(--ozz-font-heading);
}

.services_intro p {
	margin: 0;
}

.services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
	justify-content: space-between;
	gap: 50px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 210px circle, 4px gap, 1px ring (218px in total), as before. */
.icon {
	display: grid;
	place-items: center;
	width: 210px;
	height: 210px;
	margin: 5px auto 33px;
	border-radius: 50%;
	background: var(--ozz-dark);
	color: #fff;
	box-shadow: 0 0 0 4px var(--ozz-bg), 0 0 0 5px var(--ozz-dark);
}

.icon svg {
	width: 64px;
	height: 64px;
}

.service h3 {
	margin: 0 0 10px;
	font-size: 20px;
}

.service p {
	margin: 0 0 10px;
}

.more {
	color: var(--ozz-text);
	font-size: 13px;
	font-style: italic;
	font-weight: bold;
	text-decoration: none;
}

.more:hover,
.more:focus {
	color: var(--ozz-link);
}

/* About ------------------------------------------------------------------ */

.about-entry + .about-entry {
	margin-top: 70px;
}

.about-photo img {
	width: 260px;
	height: 260px;
	margin: 0 auto 28px;
	border-radius: 50%;
	object-fit: cover;
}

.about-entry h3 {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 38px;
}

/* Centered like before, also overriding align="LEFT" in the testimonials. */
.section-about .entry-content {
	color: var(--ozz-heading);
	font: 17px/30px var(--ozz-font-heading);
}

.section-about .entry-content p {
	margin: 0;
	text-align: center;
}

/* Contact ---------------------------------------------------------------- */

/* Form on the left, details on the right, 41% each, as before. */
.contact-columns {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	text-align: left;
}

.contact-columns > * {
	flex: 0 1 41%;
}

#contact_form p {
	margin: 0 0 14px;
	font-family: var(--ozz-font-heading);
}

#contact_form label {
	display: block;
	color: var(--ozz-heading);
	font: 15px/25px var(--ozz-font-heading);
}

/* Fields as before: no box, a dashed line underneath, the label inside. */
#contact_form input[type="text"],
#contact_form input[type="email"],
#contact_form textarea {
	width: 100%;
	padding: 4px 0;
	border: 0;
	border-bottom: 1px dashed var(--ozz-line);
	border-radius: 0;
	background: transparent;
	color: var(--ozz-heading);
	font: 15px/30px var(--ozz-font-heading);
}

#contact_form ::placeholder {
	color: var(--ozz-heading);
	opacity: 1;
}

#contact_form textarea {
	height: 150px;
	resize: vertical;
}

#contact_form input:focus,
#contact_form textarea:focus {
	border-bottom: 1px solid var(--ozz-dark);
	outline: none;
}

#contact_form input[type="submit"] {
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ozz-dark);
	color: #fff;
	font: 17px var(--ozz-font-button);
	cursor: pointer;
}

#contact_form .wpcf7-spinner {
	vertical-align: middle;
}

#contact_form input[type="submit"]:hover,
#contact_form input[type="submit"]:focus {
	background: var(--ozz-link);
}

#contact_form .wpcf7-not-valid-tip,
#contact_form .wpcf7-response-output {
	color: var(--ozz-error);
	font-size: 14px;
}

#contact_form .wpcf7 form.sent .wpcf7-response-output {
	color: var(--ozz-heading);
	border-color: var(--ozz-line);
}

#contact_info ul {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ozz-heading);
	font: 15px/28px var(--ozz-font-heading);
}

#contact_info strong {
	font-weight: 600;
}

#contact_info a {
	text-decoration: none;
}

#contact_info a[href^="tel:"] {
	color: inherit;
}

/* Footer ----------------------------------------------------------------- */

#footer {
	padding: 40px 0 50px;
	text-align: center;
}

#copyright_text {
	margin: 24px 0 0;
	font-size: 12px;
	text-align: center;
}

/* Single pages ----------------------------------------------------------- */

.page-section {
	text-align: left;
}

.page-section .entry-title {
	margin: 0 0 18px;
	text-align: center;
	font-size: 30px;
}

.page-section > .icon,
.page-section > .about-photo {
	margin-bottom: 28px;
}

.entry-meta {
	text-align: center;
	font-size: 14px;
}

.back-link {
	margin-top: 40px;
	text-align: center;
	font-style: italic;
}

.centered {
	text-align: center;
}

.post-list {
	padding: 0;
	list-style: none;
}

.post-list li {
	padding: 18px 0;
	border-bottom: 1px solid var(--ozz-line);
}

.post-list a {
	font: 20px var(--ozz-font-heading);
	text-decoration: none;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 760px) {
	body {
		font-size: 15px;
	}

	.nav-holder {
		margin-top: 24px;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 10px 4px;
		border: 0;
		background: none;
		color: var(--ozz-menu);
		font: 18px var(--ozz-font-menu);
		text-transform: uppercase;
		cursor: pointer;
	}

	.menu-toggle-bars,
	.menu-toggle-bars::before,
	.menu-toggle-bars::after {
		display: block;
		width: 20px;
		height: 2px;
		background: currentColor;
	}

	.menu-toggle-bars {
		position: relative;
	}

	.menu-toggle-bars::before,
	.menu-toggle-bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle-bars::before {
		top: -6px;
	}

	.menu-toggle-bars::after {
		top: 6px;
	}

	#primary-menu {
		display: none;
		flex-direction: column;
		padding-bottom: 8px;
	}

	#navigation.is-open #primary-menu {
		display: flex;
	}

	#primary-menu a {
		font-size: 18px;
		padding: 7px 0;
	}

	#navigation.is-stuck {
		text-align: center;
	}

	#navigation.is-stuck .menu-toggle {
		color: var(--ozz-sticky-text);
		font-size: 16px;
		padding: 6px 4px;
	}

	#intro {
		font-size: 16px;
	}

	.title {
		gap: 14px;
		margin-bottom: 32px;
	}

	.title h1,
	.title h2 {
		font-size: 22px;
	}

	.slider-arrow {
		display: none;
	}

	.project-panel {
		margin-left: calc(-1 * var(--ozz-gutter) + 0px);
		margin-right: calc(-1 * var(--ozz-gutter) + 0px);
		padding: 48px var(--ozz-gutter) 24px;
	}

	.project-detail,
	.contact-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.project-title {
		padding-right: 0;
		font-size: 22px;
	}

	.services {
		justify-content: center;
	}

	.icon {
		width: 180px;
		height: 180px;
	}

	.contact-columns {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html,
	.slides {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
