/* ==================================================
	 1. BASE STYLES
	 ================================================== */
body {
	font-family: sans-serif;
	margin: 0;
	padding: 0;
	line-height: 1.6;
	background: #f9f9f9;
	color: #333;
}

main {
	max-width: 960px;
	margin: 2rem auto;
	padding: 0 1rem;
	background: white;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Let body/viewport fill the height */
html, body { height: 100%; }

/* Home page: background image + white overlay via CSS variables */
body.home {
	/* configurable knobs */
	--hero-img: none;          /* url(...) will be injected per page */
	--hero-size: 50%;          /* override per page if needed */
	--hero-wash: 0.75;				 /* opacity of the white wash */

	/* actual rendering */
	background:
		linear-gradient(rgba(255,255,255,var(--hero-wash)), rgba(255,255,255,var(--hero-wash))),
		var(--hero-img) center / var(--hero-size) no-repeat;

	background-attachment: scroll;  /* or 'fixed' if you want parallax feel */
}

@media (max-width: 900px) { body.home { --hero-size: 80%; } }
@media (max-width: 600px) { body.home { --hero-size: 110%; } } /* fill a bit more on phones */

/* Remove the white card on the home page */
body.home main {
	background: transparent !important;
	box-shadow: none;
}

/* Optional: home page content spacing */
body.home main {
	text-align: center;
	padding: 50px 1rem;
}
/* ==================================================
	 2. LAYOUT COMPONENTS
	 ================================================== */
.content-block {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.content-block .photo,
.content-block .text {
	flex: 1 1 300px;
}

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

/* ==================================================
	 3. NAVIGATION (DESKTOP)
	 ================================================== */
.navbar {
	background-color: #222;
	color: #fff;
	padding: 0.75rem;
}

.container {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	font-size: 1.2rem;
	font-weight: bold;
	color: white;
	text-decoration: none;
}

.menu-toggle {
	background: none;
	border: none;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	display: none;
}

/* Main nav list */
.nav-links {
	list-style: none;
	display: flex;
	gap: 1rem;
}

.nav-links li {
	position: relative;
}

.nav-links li a {
	color: white;
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	transition: background 0.3s, color 0.3s;
	display: inline-flex;
	align-items: center;
	width: 100%;
}

/* Link states */
.nav-links li a:hover,
.nav-links li a:focus {
	background: #ffffff22;
	color: #ffd700;
}

.nav-links li a:active {
	background: #ffffff33;
	color: #ffa500;
}

/* Dropdown arrow icon */
.dropdown-toggle .arrow {
	font-size: 0.6rem;
	margin-left: 0.3rem;
	margin-top: 2px;
}

/* Dropdown menu */
.dropdown-menu {
	display: none;
	position: absolute;
	background-color: #333;
	top: 100%;
	left: 0;
	min-width: 160px;
	z-index: 1000;
	flex-direction: column;
	padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
	display: flex;
	margin-top: 0px;
}

.dropdown-menu li {
	margin-bottom: 4px;
}

.dropdown-menu li a {
	padding: 0.5rem 1rem;
	color: white;
	text-align: left;
}

/* ==================================================
	 4. MOBILE NAVIGATION
	 ================================================== */
@media (max-width: 800px) {		/* Original 768 */
	.menu-toggle {
		display: block;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		background: #333;
		position: absolute;
		top: 82px;		/* Was 39 */
		right: 0;
		padding: 1rem;
		width: 220px;
		z-index: 9999;
	}

	.nav-links.show {
		display: flex;
	}

	.nav-links .dropdown-menu {
		list-style: none;
		padding-left: 1rem;
	}

	.dropdown-menu {
		position: static;
		background-color: #444;
		margin-top: 0.5rem;
	}

	.dropdown-menu li {
		margin-bottom: 6px;
	}

	.dropdown-toggle {
		width: 100%;
	}
}

/* ==================================================
	 5. IMAGE STYLING
	 ================================================== */
img.hero {
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	margin-bottom: 2rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.hero:hover {
	transform: scale(1.02);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Optional alt hero style - disabled
img.hero {
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
img.hero:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}
*/

.hero-banner {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.background-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(75%);
}

.overlay-text {
	position: absolute;
	color: white;
	text-align: center;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
	padding: 1rem;
}

/* Default (centered) */
.overlay-text.position-center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

/* Upper Left */
.overlay-text.position-upper-left {
	top: 1rem;
	left: 1rem;
	transform: none;
	text-align: left;
}

/* Lower Left */
.overlay-text.position-lower-left {
	bottom: 1rem;
	left: 1rem;
	top: auto;
	transform: none;
	text-align: left;
}

/* Upper Right */
.overlay-text.position-upper-right {
	top: 1rem;
	right: 1rem;
	left: auto;
	transform: none;
	text-align: right;
}

/* Lower Right */
.overlay-text.position-lower-right {
	bottom: 1rem;
	right: 1rem;
	top: auto;
	left: auto;
	transform: none;
	text-align: right;
}

/* ==================================================
 6. FORMS
 ================================================== */
form {
	 display: flex;
	 flex-direction: column;
	 gap: 1rem;
 }

 input[type="text"],
 input[type="email"],
 input[type="password"],
 textarea {
	 width: 100%;
	 padding: 0.5rem;
	 font-size: 1rem;
	 border: 1px solid #ccc;
	 border-radius: 4px;
	 box-sizing: border-box;
 }

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

 button[type="submit"] {
	 padding: 0.75rem 1.5rem;
	 font-size: 1rem;
	 border: 1px solid #888;
	 border-radius: 4px;
	 background-color: #f8f8f8;
	 cursor: pointer;
	 width: fit-content;
 }

 button[type="submit"]:hover {
	 background-color: #e0e0e0;
 }
