/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
	--primary-color: rgb(179 0 45);
	--accent-color: rgb(107 136 65);
	--text-color: var(--accent-color);
	--max-width: 1076px;
	--primary-font-family: 'Josefin Slab', Garamond, "Times New Roman", serif;
	--secondary-font-family: Verdana, Geneva, Tahoma, sans-serif;
	--font-size: 19px;
}

/* ===========================
   BASE STYLES & RESET
   =========================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	overflow-y: scroll;
}

body {
	font-family: var(--primary-font-family);
	color: var(--text-color);
	background-image: url("/static/images/background.avif");
	background-size: cover;
	background-position: left;
	background-attachment: fixed;

  
}

.bg-img {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-img img {
  position: absolute;
  height: 100%;
}



/* ===========================
   LAYOUT CONTAINERS
   =========================== */
.page-wrapper {
	max-width: var(--max-width);
	margin: 10px auto;
	overflow: hidden;
}

/* ===========================
   HEADER & BANNER - DESKTOP
   =========================== */
header {
	text-align: center;
}

.banner-container {
	position: relative;
	width: 100%;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	overflow: visible;
}

.banner {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	flex: 1;
	max-width: 100%;
	aspect-ratio: 7/1;
}

.banner-text {
	position: absolute;
	font-size: 26px;
	right: 3%;
	top: 50%;
	transform: translateY(-50%);
	color: var(--primary-color);
	font-weight: bold;
	line-height: 1.5;
	background: rgba(255, 255, 255, 0.85);
	padding: 10px 16px;
	margin-right: 36px;
	text-align: center;
	border-radius: 8px;
}

/* ===========================
   HAMBURGER MENU - DESKTOP (HIDDEN)
   =========================== */
.hamburger {
	display: none;
}

/* ===========================
   NAVIGATION - DESKTOP
   =========================== */
nav {
	background: var(--primary-color);
	text-align: center;
	position: relative;
}

.nav-links {
	display: flex;
	height: 50px;
}

.nav-links a {
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	flex: 1;
	width: 100%;
}

.line_on_left {
	border-left: 1px solid white;
}

nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	padding: 12px 24px;
	position: relative;
	transition: all 0.3s ease;
	z-index: 1;
	font-size: 14px;
	letter-spacing: 0.5px;
}

nav a::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(104 176 77);
	opacity: 0;
	transform: scale(0.95);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

nav a:hover::before {
	opacity: 1;
	transform: scale(1);
}

nav a:hover {
	color: black;
}

nav a.active {
	background: rgb(160 204 98);
}

/* Navigation subtle background pattern */
nav::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		linear-gradient(45deg, transparent 95%, rgba(255, 255, 255, 0.1) 95%),
		linear-gradient(-45deg, transparent 95%, rgba(255, 255, 255, 0.1) 95%);
	background-size: 20px 20px;
	opacity: 0.3;
	pointer-events: none;
}

/* Mobile contact info */
.mobile-contact {
	display: none;
	margin: 0 auto;
	color: var(--primary-color);
}

p {
	font-family: var(--secondary-font-family);
	font-size: var(--font-size);
}

.mobile-contact p {
	color: var(--primary-color);
}

/* ===========================
   MAIN CONTENT
   =========================== */
main {
	text-align: center;
	background-color: rgba(255, 255, 255, 0.8);
	padding: 30px;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1 {
	color: var(--primary-color);
}

h2 {
	font-size: 31px;
	color: #b89710;
	margin-bottom: 1rem;
}

h3 {
	color: var(--accent-color);
	font-size: 25px;
}

/* ===========================
   BUTTONS
   =========================== */
button {
	background: var(--accent-color);
	color: white;
	padding: 10px 23px;
	border: none;
	font-size: 16px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
	background-color: rgb(160, 204, 98);
}

button:active {
	transform: translateY(0);
}

button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

ul li {
	font-family: var(--secondary-font-family);
	font-size: var(--font-size);
}

/* ===========================
   FOOTER
   =========================== */
footer {
	text-align: center;
	background: var(--accent-color);
	color: white;
	padding: 1rem;
	border-top: 4px solid var(--accent-color);
	font-size: 12px;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet and Mobile Styles */
@media (max-width: 880px) {
	body {
		overflow-x: hidden;
		
		background-image:none; 
		background-color: #acb7b1;
	}

	.spacing {
		display: none;
	}

	.page-wrapper {
		width: 100%;
		box-shadow: none;
		min-height: 100vh;
		margin: 0;
	}

	/* MOBILE BANNER FIX - BACKGROUND IMAGE SOLUTION */
	.banner-container {
		border-radius: 0;
		padding: 10px 15px;
		height: 80px;
		display: flex;
		align-items: center;
		position: relative;
		justify-content: center;
		background-color: white;
		overflow: hidden;
		background-image: url("/static/images/banner.gif");
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}

	.banner {
		display: none !important;
	}

	/* MOBILE HAMBURGER MENU - PROPERLY POSITIONED */
	.hamburger {
		display: flex !important;
		position: absolute !important;
		right: 18px !important;
		top: 50% !important;
		transform: translateY(-50%) !important;
		width: 44px !important;
		height: 44px !important;
		background: white !important;
		border: 1px solid var(--accent-color) !important;
		border-radius: 8px !important;
		cursor: pointer;
		padding: 0 !important;
		z-index: 1001;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
		align-items: center;
		justify-content: center;
		margin-right: 10px;
	}

	.hamburger__inner {
		position: relative;
		width: 20px;
		height: 16px;
	}

	.hamburger span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background-color: var(--accent-color);
		border-radius: 1px;
		transition: all 0.3s ease;
		transform-origin: center;
	}

	.hamburger span:nth-child(1) {
		top: 0;
	}

	.hamburger span:nth-child(2) {
		top: 7px;
	}

	.hamburger span:nth-child(3) {
		top: 14px;
	}

	/* Hover and active states */
	.hamburger.active {
		background-color: var(--accent-color) !important;
		border-color: var(--accent-color) !important;
	}

	.hamburger.active span {
		background-color: white;
	}

	.hamburger.active span:nth-child(1) {
		transform: rotate(45deg);
		top: 7px;
	}

	.hamburger.active span:nth-child(2) {
		opacity: 0;
		transform: scale(0);
	}

	.hamburger.active span:nth-child(3) {
		transform: rotate(-45deg);
		top: 7px;
	}

	.banner-text {
		display: none;
	}

	nav {
		position: relative;
		background: none;
	}

	/* MOBILE NAV-LINKS - FULL SCREEN */
	.nav-links {
		display: none !important;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		background: var(--accent-color) !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
		align-items: stretch !important;
		padding: 80px 0 0 0 !important;
		margin: 0 !important;
		transition: transform 0.3s ease-in-out !important;
		z-index: 999 !important;
		transform: translateX(-100%) !important;
		overflow-y: auto !important;
	}

	.nav-links.active {
		transform: translateX(0) !important;
		display: flex !important;
	}

	/* MOBILE MENU LINKS - 100% WIDTH */
	.nav-links a {
		all: unset !important;
		display: block !important;
		width: 100% !important;
		flex: 0 0 auto !important;
		margin: 0 !important;
		padding: 20px 15px !important;
		font-family: Garamond, "Times New Roman", serif !important;
		font-size: 1.3rem !important;
		background: transparent !important;
		color: white !important;
		text-align: center !important;
		text-decoration: none !important;
		cursor: pointer !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
		transition: background-color 0.2s ease !important;
	}

	.nav-links a:hover {
		background: rgba(255, 255, 255, 0.1) !important;
		color: white !important;
	}

	.nav-links a.active {
		background: rgba(255, 255, 255, 0.2) !important;
		color: white !important;
	}

	/* Remove all desktop styles */
	.nav-links a::before {
		display: none !important;
	}

	/* MOBILE CONTACT INFO */
	.mobile-contact {
		display: block !important;
		width: 100% !important;
		flex: 0 0 auto !important;
		margin: 0 !important;
		padding: 25px 15px !important;
		text-align: center !important;
		background: transparent !important;
		color: white !important;
		font-family: Garamond, "Times New Roman", serif !important;
		font-size: 1.1rem !important;
		line-height: 1.5 !important;
		font-weight: bold !important;
		border-bottom: none !important;
	}

	#last_link {
		border-right: none;
	}

	nav a {
		border-left: none;
	}
}

/* Very small screens */
@media (max-width: 480px) {
	.banner-container {
		padding: 6px 10px;
		height: 80px;
	}

	.hamburger {
		right: 10px !important;
		width: 36px !important;
		height: 36px !important;
	}

	.hamburger__inner {
		width: 18px;
		height: 14px;
	}

	.hamburger span:nth-child(1) {
		top: 0;
	}

	.hamburger span:nth-child(2) {
		top: 6px;
	}

	.hamburger span:nth-child(3) {
		top: 12px;
	}

	.hamburger.active span:nth-child(1) {
		top: 6px;
	}

	.hamburger.active span:nth-child(3) {
		top: 6px;
	}

	.nav-links a {
		font-size: 1.1rem !important;
		padding: 16px 15px !important;
	}

	.mobile-contact {
		padding: 18px 15px !important;
		font-size: 0.95rem !important;
	}

	.nav-links {
		padding: 70px 0 0 0 !important;
	}
}

/* Desktop Styles - ensure contact info is hidden on desktop */
@media (min-width: 881px) {
	.mobile-contact {
		display: none !important;
	}
	
	/* Ensure banner image is visible on desktop */
	.banner-container {
		background-image: none !important;
	}
	
	.banner {
		display: block !important;
	}
}