/* ------------------Global Styles---------------- */
body {
	margin: 0;
	font-family: "Montserrat", sans-serif;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

/* Disable scrolling when the menu is open */
body.no-scroll {
	overflow: hidden;
	height: 100%;
}

/* ------------------Header & Navbar---------------- */

/* ------------------Defaults = Mobile ------------------ */

/* Navbar hidden on mobile */
.navbar {
	display: none;
}

/* Hamburger visible on mobile */
#hamburger {
	width: 50px;
	height: 50px;
	cursor: pointer;
	padding-right: 0.5em;
}

/* Mobile menu off-canvas */
.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100vh;
	background-color: white;
	display: flex;
	flex-direction: column;
	padding: 40px 20px;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease;
	z-index: 1000;
	overflow-y: auto; /* allows scrolling if content is taller than viewport */
}

.mobile-menu .footer-icons {
	justify-content: center;
}

/* Prevent scroll when menu is open */
body.no-scroll {
	overflow: hidden;
	height: 100%;
}

.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	z-index: 100;
}

/* ------------------Mobile Menu---------------- */
/* Mobile Hamburger menu styling - UPDATED */

.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%; /* starts off-screen */
	width: 100%;
	height: 100vh;
	background-color: white;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px 20px 60px 20px; /* Added bottom padding for breathing room */
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease;
	z-index: 1000;
	box-sizing: border-box; /* Ensures padding is included in height calculation */
	overflow-y: auto; /* Allow scrolling if needed */
}

/* Active state slides it in */
.mobile-menu.active {
	right: 0;
}

/* Close button */
.close-menu {
	font-size: 50px;
	cursor: pointer;
	align-self: flex-end;
	margin-top: 0.3em;
	margin-right: 0.3em;
	flex-shrink: 0; /* Prevent shrinking */
}

/* Nav links inside mobile menu */
.mobile-menu ul {
	list-style: none;
	padding: 0;
	margin: 1em 2em 0 2em; /* Removed bottom margin */
	display: flex;
	flex-direction: column;
	gap: 1.5em; /* Slightly reduced spacing between links */
	flex-grow: 1; /* Take up available space */
}

.mobile-menu ul li a {
	text-decoration: none;
	font-size: 1em;
	color: black;
}

/* Contact/social icons at bottom - UPDATED */
.mobile-menu .footer-icons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 0; /* Remove top margin to close gap */
	padding-bottom: 20px; /* Extra space at bottom */
}

.mobile-menu .footer-icons svg,
.mobile-menu .footer-icons i {
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-size: 24px; /* Ensure consistent size */
}
/* ------------------Homepage---------------- */
.homepage-gallery {
	margin-top: 8em;

	display: flex;
	flex-direction: column; /* stack vertically */
	align-items: center; /* center horizontally */
	gap: 20px; /* space between boxes */
	padding: 40px 0;
}

.homepage-gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem; /* optional overall padding */
}

.homepage-gallery a {
	margin: 1rem 0; /* vertical spacing between links */
	width: 100%; /* full width on mobile */
	max-width: 400px; /* optional: limit image size */
	height: 400px; /* Fixed height for mobile */
	display: block;
	overflow: hidden; /* Crop overflow */
}

.homepage-gallery img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover; /* Crop and center the image */
	object-position: center; /* Center the crop */
	min-width: 100%; /* Ensure image fills width */
	min-height: 100%; /* Ensure image fills height */
}
/* ------------------About---------------- */

.about-paragraph {
	text-align: center; /* center all text */
	max-width: 800px; /* optional: limits paragraph width for readability */
	margin: 0 2em 0 2em;
}

.about-paragraph h2 {
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	text-align: center; /* center all text */
	text-transform: uppercase; /* All caps */
	margin-top: 4em;

	font-size: 3rem; /* bigger than normal text */
	margin-bottom: 20px;
}

.about-paragraph p {
	font-size: 1rem;
	line-height: 2; /* improves readability */
	margin-bottom: 1.5em;
}

.taylor-image {
	display: block; /* ensures it behaves like a block element */
	margin: 0; /* removes all margins */
	margin-bottom: 2em;
	padding: 0; /* optional: remove padding too */
	max-width: 100%; /* keeps image responsive */
	height: auto; /* maintains aspect ratio */
}

/* ------------------Painting Gallery---------------- */

.gallery-title {
	text-align: center;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	text-transform: uppercase;
	font-size: 1.5rem;
	margin-top: 2.5em;
	grid-column: 1 / -1; /* Spans all columns in desktop grid */
}

/* ------------------Individual Painting---------------- */

.painting-image {
	margin-top: 3em;
}

.art-details {
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	text-align: center;
	line-height: 2;
	margin-top: 2em;
	margin-bottom: 4em;
	padding: 0;
	list-style: none;
}

.painting-title {
	margin-bottom: 2em;
	font-weight: bold;
}

.sold {
	color: red;
}

/* ------------------Design------------------- */

.pdf-viewer {
	margin-top: 100px; /* adjust to your header height */
	width: 100%;
	height: calc(100vh - 100px);
	border: none;
}

/* ------------------Footer---------------- */
.site-footer {
	background: #ffffff;
	padding: 15px 0;
	margin-bottom: 1em;
	width: 100%;
	text-align: center; /* center text inside footer */
	box-sizing: border-box;
}

.footer-icons {
	display: flex;
	justify-content: center; /* center horizontally */
	gap: 15px; /* spacing between icons */
	padding: 0 10px;
	flex-wrap: nowrap; /* prevents icons from wrapping to a new line */
}

.footer-icons i {
	font-size: clamp(20px, 5vw, 30px); /* responsive size, min 20px, max 30px */
	color: #000;
	margin: 0 5px;
	transition:
		transform 0.2s ease,
		color 0.2s ease;
	cursor: pointer;
}

.footer-icons i:hover {
	transform: scale(1.2);
	color: #5c5c5c;
}

/* ------------------Desktop Overrides ------------------ */

@media (min-width: 769px) {
	/* Show full navbar */
	.navbar {
		display: block;
	}

	/* Center navbar and make horizontal */
	.navbar ul {
		display: flex;
		justify-content: center;
		align-items: center;
		list-style: none;
		margin: 0;
		padding: 0;
		gap: 20px; /* Space between nav items */
	}

	.navbar ul li {
		margin: 0;
	}

	.navbar ul li a {
		display: inline-block;
		padding: 0.5rem 1rem; /* Adjust padding as needed */
		text-decoration: none;
		color: #333; /* Base text color */
		transition:
			background-color 0.3s ease,
			color 0.3s ease;
	}

	/* Hover and Focus States */
	.navbar ul li a:hover,
	.navbar ul li a:focus {
		color: #7b7b7b; /* Blue text color on hover */
	}

	/* Active State */
	.navbar ul li a:active {
		color: #4f4f4f; /* White text when active */
	}

	/* Show full navbar */
	.navbar {
		display: block;
	}

	/* Hide hamburger */
	#hamburger {
		display: none;
	}

	/* Hide mobile menu completely on desktop */
	.mobile-menu {
		display: none;
	}

	/* Desktop Homepage Gallery */
	.homepage-gallery {
		display: grid;
		grid-template-columns: repeat(3, 1fr); /* 3 columns */
		gap: 30px; /* space between items */
		max-width: 1200px; /* limit overall width */
		margin: 8em auto 0; /* center the grid */
		padding: 40px 20px;
	}

	.homepage-gallery a {
		margin: 0; /* remove mobile margins */
		width: 100%; /* fill grid cell */
		max-width: none; /* remove mobile max-width constraint */
	}

	.homepage-gallery img {
		width: 100%;
		height: auto;
		display: block;
		transition:
			transform 0.3s ease,
			box-shadow 0.3s ease; /* smooth hover effect */
	}

	.homepage-gallery a:hover img {
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* subtle shadow */
	}

	@media (min-width: 769px) {
		.homepage-gallery {
			margin-top: 10em;
		}

		.header {
			display: flex;
			flex-direction: column; /* stack logo + nav vertically */
			align-items: center; /* center both horizontally */
			padding: 20px 0; /* top/bottom spacing */
			background-color: white;
		}

		.Logo-typeface {
			text-align: center;
			margin-bottom: 1rem; /* space between logo and nav */
		}

		.navbar {
			display: block;
		}

		.navbar ul {
			display: flex;
			justify-content: center; /* center nav horizontally */
			align-items: center;
			gap: 20px;
			margin: 0;
			padding: 0;
		}
	}

	/* Desktop About Page Centering */
	.about-paragraph {
		text-align: center;
		max-width: 800px;
		margin: 0 auto; /* Center the about content */
		padding: 0 2em; /* Add horizontal padding */
	}

	.about-paragraph h2 {
		margin-top: 6em; /* Increase top margin for desktop */
	}

	.taylor-image {
		display: block;
		margin: 0 auto 2em; /* Center the image horizontally */
		max-width: 500px; /* Limit image size on desktop */
	}

	.painting-container {
		display: flex;
		justify-content: center;
		align-items: flex-start;
		gap: 60px; /* Space between image and details */
		max-width: 1200px;
		margin: 6em auto 4em; /* Center the container */
		padding: 0 2em;
	}

	.painting-image {
		margin-top: 0; /* Remove top margin since container handles spacing */
		flex: 0 0 auto; /* Don't grow or shrink */
		max-width: 500px; /* Limit image size */
	}

	.painting-image img {
		width: 100%;
		height: auto;
		display: block;
	}

	.art-details {
		flex: 0 0 auto; /* Don't grow or shrink */
		text-align: left; /* Left align the details for desktop */
		margin-top: 0;
		margin-bottom: 0;
		min-width: 200px; /* Minimum width for details */
		padding-top: 2em; /* Add some top padding to align better with image */
		padding-left: 6em;
		list-style: none;
	}
}
