@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");
@import url("editor-style.css");

/* =========================================================
   GLOBAL FONT SETUP
   ========================================================= */

html {
	height: 100%;
	font-family: 'Playfair Display', serif;
	font-size: 62.5%;
	scroll-behavior: smooth;
}

body {
	background: linear-gradient(to bottom, #f7f6f5 0%, #f2efeb 100%);
	color: #222;
	font-size: 1.6em;
	letter-spacing: 0.02em;
	line-height: 1.7;
	overflow-x: hidden;
	margin: 0;
}

/* Generic wrapper */
.wrapper {
	width: min(1200px, 92%);
	margin: 0 auto;
	box-sizing: border-box;
}

/* Forms */
input,
textarea,
select,
input[type="submit"],
input[type="button"],
button,
.button {
	font-family: 'Playfair Display', serif;
	vertical-align: middle;
	box-sizing: border-box;
}

/* Keep navigation/buttons clean */
#header nav,
#header nav a,
#header nav ul li a,
.button,
button,
input[type=submit] {
	font-family: 'Josefin Sans', sans-serif;
}

/* =========================================================
   HEADER
   ========================================================= */

#header {
	width: 100%;
	z-index: 150;
	background: rgba(35, 35, 35, 0.88);
	position: fixed;
	top: 0;
	left: 0;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header .wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 100px;
	padding: 0.2em 1.8%;
	gap: 2.2em;
	box-sizing: border-box;
}

/* Logo */
.site-title {
	display: flex;
	align-items: center;
	height: 100%;
	flex-shrink: 0;
	padding-left: 0.8em;
}

.site-title a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-decoration: none;
}

.site-logo {
	display: block;
	height: 90px;
	width: auto;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	transform: translateY(2px);
}

/* Navigation */
#mainmenu {
	margin-left: auto;
	display: flex;
	align-items: center;
	height: 100%;
	padding-right: 0.8em;
}

#menu-burger {
	display: none !important;
}

#menu {
	display: flex;
	align-items: center;
}

#header nav ul {
	display: flex;
	align-items: center;
	gap: 2.6em;
	list-style: none;
	margin: 0;
	padding: 0;
}

#header nav ul li a {
	color: #ffffff;
	text-decoration: none;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	position: relative;
	padding: 0.4em 0;
	transition: color 0.3s ease, transform 0.3s ease;
}

#header nav ul li a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: #ff5f00;
	transition: width 0.3s ease;
}

#header nav ul li a:hover {
	color: #ffb27f;
	transform: translateY(-1px);
}

#header nav ul li a:hover::after,
#header nav ul li.current-menu-item a::after {
	width: 100%;
}

#header nav ul li.current-menu-item a {
	color: #ff5f00;
}

/* =========================================================
   CONTENT
   ========================================================= */

#content {
	width: 100%;
	padding-top: 180px;
	padding-bottom: 60px;
}

#content .wrapper {
	padding-top: 10px;
}

#content h2 {
	margin: 0 0 30px;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 2.1em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1f1f1f;
}

/* =========================================================
   PORTFOLIO FILTERS
   ========================================================= */

#gallery-filter {
	margin-bottom: 24px;
}

#gallery-filter ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#gallery-filter ul li {
	margin: 0;
	padding: 0;
}

#gallery-filter ul li a {
	display: inline-block;
	text-decoration: none;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 1.05em;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: #ad8b55;
	text-transform: uppercase;
	padding-bottom: 4px;
	transition: color 0.3s ease;
}

/* Hover */
#gallery-filter ul li a:hover {
	color: #ad8b55;
}

/* Active (selected) */
#gallery-filter ul li a.active {
	color: #ad8b55;
	font-weight: 700;
}

/* =========================================================
   GRID CHANGER
   ========================================================= */

#grid-changer {
	margin-bottom: 30px;
}

#grid-changer ul {
	display: flex;
	align-items: center;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#grid-changer ul li {
	margin: 0;
	padding: 0;
}

#grid-changer ul li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

#grid-changer ul li a:hover,
#grid-changer ul li a.active {
	transform: translateY(-1px);
	border-color: #ff5f00;
}

#grid-changer svg {
	display: block;
	fill: #111;
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
	width: 100%;
	clear: both;
}

.gallery:after {
	content: "";
	display: block;
	clear: both;
}

.gallery-item {
	margin-bottom: 18px;
	box-sizing: border-box;
}

.gallery-icon {
	margin: 0;
}

.gallery-icon a {
	display: block;
	text-decoration: none;
}

.gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

/* =========================================================
   TEAM SECTION
   ========================================================= */

.team-gallery {
	display: flex;
	justify-content: center;
	gap: 2em;
	margin: 2em 0 0;
	flex-wrap: wrap;
}

.team-card {
	background: rgba(255, 255, 255, 0.85);
	border-radius: 18px;
	padding: 0.8em;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
	max-width: 265px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
	transform: translateY(-4px);
}

.team-image-wrap {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
}

.team-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Name label */
.team-label {
	position: absolute;
	left: 8px;
	bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.32em 0.85em;
	min-height: 28px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(210, 210, 210, 0.85);
	backdrop-filter: blur(8px);
	color: #ffffff;
	font-family: 'Great Vibes', cursive;
	font-size: 1.25em;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =========================================================
   FOOTER
   ========================================================= */

#footer {
	padding: 16px 30px;
	background: #f5f3f1;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#footer .footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	width: min(1200px, 92%);
	margin: 0 auto;
}

#footer p {
	margin: 0;
}

#footer a {
	text-decoration: none;
	color: #222;
}

#footer a:hover {
	color: #ff5f00;
}

.social-icons {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.social-icons li {
	margin: 0;
	padding: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
	#header .wrapper {
		min-height: 90px;
		padding: 0.4em 1.2em;
		gap: 1.2em;
	}

	.site-logo {
		height: 76px;
	}

	#header nav ul {
		gap: 1.4em;
	}

	#content {
		padding-top: 155px;
	}

	#gallery-filter ul {
		gap: 12px 18px;
	}

	.team-card {
		max-width: 240px;
	}

	.team-label {
		font-size: 1.1em;
	}
}

@media (max-width: 480px) {
	#header .wrapper {
		flex-direction: column;
		justify-content: center;
		padding: 0.8em 1em;
	}

	.site-title {
		padding-left: 0;
	}

	#mainmenu {
		margin-left: 0;
		padding-right: 0;
	}

	#header nav ul {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.9em 1.2em;
	}

	#content {
		padding-top: 190px;
	}

	#content h2 {
		font-size: 1.8em;
		margin-bottom: 22px;
	}

	#gallery-filter ul {
		justify-content: flex-start;
		gap: 10px 14px;
	}

	#gallery-filter ul li a {
		font-size: 0.98em;
	}

	.team-card {
		max-width: 215px;
	}

	.team-label {
		font-size: 1em;
	}

	#footer .footer-inner {
		flex-direction: column;
		text-align: center;
	}
}

/* =========================================================
   HOMEPAGE HERO IMAGE BEHIND HEADER
   ========================================================= */

body.home #content {
	padding-top: 0;
	padding-bottom: 0;
}

body.home .gallery.fullscreen-gallery {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	overflow: hidden;
}

body.home .gallery.fullscreen-gallery .gallery-item,
body.home .gallery.fullscreen-gallery .gallery-icon {
	width: 100%;
	height: 100%;
	margin: 0;
}

body.home .gallery.fullscreen-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Keep header above the homepage image only */
body.home #header {
	z-index: 200;
}