/* Fonts */
@font-face {
	font-display: block;
	font-family: 'Helvetica Light';
	src:
		local('Helvetica'),
		local('Helvetica Light'),
		url('/assets/fonts/helvetica-w01-light.ttf') format('truetype');
}

/* Base styles */
:root {
	--accent: #8A7F6D;
	--cream: #f5ecd0;
	--light-accent: #C4BAA9;
	--text: #222;
	--transition: all 0.3s ease;
	--white: #f9f8f2;
	--lin-grad-cream: linear-gradient(to bottom, var(--white), var(--cream));
	--lin-grad-white: linear-gradient(to bottom, white, var(--white));
	--rad-grad-cream: radial-gradient(circle at center, var(--white), var(--cream));
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	min-height: 100vh;
	background: var(--rad-grad-cream);
	text-align: justify;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

body {
	color: var(--text);
	display: flex;
	font-family: 'Helvetica Light', Helvetica, Arial, sans-serif;
	height: 100%;
	line-height: 1.6;
	overflow-x: hidden;
}

ul {
	margin-bottom: 20px;
	padding-left: 20px;
}

ul li {
	margin-bottom: 10px;
}

/* Header and navigation */
header {
	border-right: 1px solid var(--light-accent);
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: 40px 30px;
	position: fixed;
	width: 280px;
	z-index: 100;
}

.logo {
	margin-bottom: 50px;
	cursor: pointer;
	transition: var(--transition);
}

.logo h1 {
	font-family: Orbitron, 'Helvetica Light', Helvetica, Arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 10px;
	line-height: 1.5;
	text-align: center;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
	transition: var(--transition);
}

.logo h1 span {
	display: block;
}

.logo:hover h1 {
	transform: translateX(5px) scale(-1, 1);
}

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

nav li {
	color: var(--text);
	display: block;
	font-size: 16px;
	margin-bottom: 5px;
	margin-top: 5px;
	padding: 8px 0;
	position: relative;
	position: relative;
	text-decoration: none;
}

nav li>.active-item {
	font-weight: bold;
}

nav li span:hover {
	color: var(--accent);
	cursor: pointer;
}

/* Small transition on first level menu items only. */
nav>ul>li {
	transition: var(--transition);
}

nav>ul>li:hover {
	transform: translateX(5px);
}

.submenu {
	max-height: 0;
	overflow: hidden;
	padding-left: 20px;
	transition: max-height 0.5s ease;
}

.submenu.active {
	max-height: 1000px;
}

.submenu a {
	font-size: 14px;
}

/* Mobile menu button */
#menu-button {
	align-items: center;
	border-radius: 4px;
	border: 1px solid var(--light-accent);
	cursor: pointer;
	display: none;
	flex-direction: column;
	height: 50px;
	justify-content: center;
	position: fixed;
	right: 20px;
	top: 20px;
	transition: var(--transition);
	width: 50px;
	z-index: 1000;
}

/* Main content */
main {
	flex: 1;
	margin-left: 280px;
	padding: 40px 60px;
	transition: var(--transition);
}

.content-section {
	animation: fadeIn 0.5s ease;
	display: none;
	width: 900px;
}

.content-section.active {
	display: block;
}

.welcome-content {
	margin: 0 auto;
	text-align: center;
	width: 100%;
}

.welcome-content img {
	border-radius: 8px;
	height: auto;
	margin-bottom: 30px;
	max-width: 100%;
}

.content-placeholder {
	max-width: 800px;
}

.content-placeholder img {
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	height: auto;
	margin: 20px 0;
	max-width: 100%;
}

h2 {
	color: var(--accent);
	font-size: 32px;
	font-weight: 400;
	margin-bottom: 20px;
	padding-bottom: 10px;
	position: relative;
}

h2:after {
	background-color: var(--accent);
	bottom: 0;
	content: '';
	height: 2px;
	left: 0;
	position: absolute;
	width: 60px;
}

p {
	font-size: 17px;
	line-height: 1.8;
	margin-bottom: 20px;
}

/* Collections grid */
.collections-grid {
	display: grid;
	gap: 25px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	margin-top: 30px;
}

.collection-item {
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: var(--transition);
}

.collection-item:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-5px);
}

.collection-item img {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: 1px solid var(--text);
	height: 180px;
	margin: 0;
	object-fit: cover;
	width: 100%;
}

.collection-item h3 {
	font-size: 18px;
	font-weight: 500;
	padding: 15px;
	text-align: center;
}

/* About */
#about img {
	box-shadow: none;
}

/* Contact form */
.contact-form {
	margin-top: 30px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
	background: var(--white);
	border-radius: 4px;
	border: 1px solid var(--light-accent);
	font-family: inherit;
	font-size: 16px;
	outline: none;
	padding: 12px 15px;
	width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
	border-color: var(--text);
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

.submit-btn {
	background: var(--accent);
	border-radius: 4px;
	border: none;
	color: var(--white);
	cursor: pointer;
	font-size: 16px;
	padding: 12px 25px;
	transition: var(--transition);
}

.submit-btn:hover {
	background: var(--text);
}

.contact-info {
	margin-top: 40px;
}

/* Footer */
footer {
	border-top: 1px solid var(--light-accent);
	color: var(--accent);
	font-size: 14px;
	margin-top: 60px;
	padding-top: 30px;
	text-align: center;
}

.social-links {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 15px;
}

.social-links a {
	color: var(--accent);
	font-size: 18px;
	transition: var(--transition);
}

.social-links a:hover {
	color: var(--text);
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {

	html {
		background: var(--lin-grad-cream);
	}

	body,
	header,
	main {
		width: 100%;
	}

	body {
		background-repeat: no-repeat;
		flex-direction: column;
		font-size: 16px;
	}

	header {
		border-bottom: 1px solid var(--light-accent);
		border-right: none;
		height: auto;
		padding: 10px;
		position: relative;
		transform: translateX(0);
		transition: var(--transition);
	}

	#menu-button {
		top: 15px;
	}

	#menu-button.visible {
		display: flex;
	}

	#menu-button.visible:active,
	#menu-button.visible:focus {
		background: var(--cream) !important;
	}

	#menu-button.visible #menu-close {
		display: none;
	}

	#menu-button.visible.active #menu-close {
		display: block;
	}

	#menu-button.visible.active #menu-open {
		display: none;
	}

	#main-nav {
		background: var(--lin-grad-white);
		height: 0;
		opacity: 0;
		pointer-events: none;
	}

	#main-nav.active {
		display: block;
		height: auto;
		left: 0;
		margin: 0;
		opacity: 1;
		padding: 20px;
		pointer-events: auto;
		position: fixed;
		top: 80px; /* Header height */
		transition: var(--transition);
		width: 100%;
	}

	main {
		margin-left: 0;
		padding: 30px;
	}

	.logo {
		margin-bottom: 0;
	}

	.logo h1 {
		font-size: 20px;
	}

	.logo:hover h1 {
		transform: none !important;
	}

	.content-section {
		width: 100%;
	}

	/* Sticky Nav */
	body.sticky-nav header {
		background: var(--lin-grad-white);
		position: fixed !important;
	}

	body.sticky-nav header .logo {
		margin-bottom: 0;
	}

	body.sticky-nav main {
		padding-top: 50px;
	}

}

@media (max-width: 600px) {
	main {
		padding: 20px 15px;
	}

	h2 {
		font-size: 26px;
	}

	p {
		font-size: 16px;
	}

	.collections-grid {
		grid-template-columns: 1fr;
	}
}