.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: #7fbe41;
	--bs-btn-border-color: #94c83f;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #94c83f;
	--bs-btn-hover-border-color: #94c83f;
	--bs-btn-focus-shadow-rgb: 246, 122, 88;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #94c83f;
	--bs-btn-active-border-color: #94c83f;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #f4623a;
	--bs-btn-disabled-border-color: #f4623a;
}

hr.divider {
	background-color: #7fbe41;
}

.under-divider {
	background-color: #000000 !important;
}

.bg-primary {
	background-color: #87ad4a !important;
}

hr {
	border: 0;
	border-top: 0px;
}

.big-icon {
	color: #7fbe41 !important;
}

#mainNav .navbar-nav .nav-item .nav-link.active {
	color: #7fbe41 !important;
}

#mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover {
	color: #7fbe41;
}

header.masthead {
	position: relative;
	overflow: hidden;
}

header.masthead .masthead-video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translateX(-50%) translateY(-50%);
	z-index: -2;
	object-fit: cover;
}

header.masthead .masthead-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(92, 92, 92, 0.5) 0%,
		rgba(92, 92, 92, 0.5) 100%
	);
	z-index: -1;
}

#portfolio .container-fluid .portfolio-box .portfolio-box-caption,
#portfolio .container-sm .portfolio-box .portfolio-box-caption,
#portfolio .container-md .portfolio-box .portfolio-box-caption,
#portfolio .container-lg .portfolio-box .portfolio-box-caption,
#portfolio .container-xl .portfolio-box .portfolio-box-caption,
#portfolio .container-xxl .portfolio-box .portfolio-box-caption {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	height: 100%;
	position: absolute;
	bottom: 0;
	text-align: center;
	opacity: 0;
	color: #fff;
	background: #7fbe41cc;
	transition: opacity 0.25s ease;
	text-align: center;
}

#mainNav.navbar-shrink .navbar-brand:hover {
	color: #7fbe41;
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
	background-color: #7fbe41;
	border-color: #7fbe41;
}

/* ============================
   MODERN FONT IMPROVEMENTS
   ============================*/

/* Font Family Definitions */
:root {
	--font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-headings: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-accent: "Source Sans Pro", -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Body Font */
body {
	font-family: var(--font-primary) !important;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.01em;
}

/* All Heading Elements */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
	font-family: var(--font-headings) !important;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

/* Large Display Headings */
h1,
.h1 {
	font-weight: 700;
	letter-spacing: -0.03em;
}

h2,
.h2 {
	font-weight: 600;
}

/* Navigation Font */
.navbar-nav .nav-link,
.navbar-brand {
	font-family: var(--font-accent) !important;
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* Button Font */
.btn {
	font-family: var(--font-accent) !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}

/* Masthead/Hero Section */
header.masthead h1,
header.masthead .h1 {
	font-family: var(--font-headings) !important;
	font-weight: 800;
	letter-spacing: -0.04em;
}

header.masthead p,
header.masthead .lead {
	font-family: var(--font-primary) !important;
	font-weight: 400;
	line-height: 1.7;
}

/* Section Text Improvements */
.text-muted {
	font-family: var(--font-primary) !important;
	font-weight: 400;
}

/* Card and Content Areas */
.card-body,
.card-text {
	font-family: var(--font-primary) !important;
	line-height: 1.65;
}

/* Portfolio and Image Captions */
.portfolio-box-caption h3,
.portfolio-box-caption h4 {
	font-family: var(--font-headings) !important;
	font-weight: 600;
}

/* Service/Feature Sections */
.service-heading,
.feature-heading {
	font-family: var(--font-headings) !important;
	font-weight: 600;
}

/* Contact and Form Elements */
.form-control,
.form-select {
	font-family: var(--font-primary) !important;
	font-weight: 400;
}

.form-label {
	font-family: var(--font-accent) !important;
	font-weight: 500;
}

/* Footer Font */
footer {
	font-family: var(--font-primary) !important;
}

footer h5,
footer h6 {
	font-family: var(--font-headings) !important;
	font-weight: 600;
}

/* Responsive Font Scaling */
@media (max-width: 768px) {
	body {
		font-size: 0.95rem;
		line-height: 1.55;
	}

	h1,
	.h1 {
		font-size: 2.2rem;
	}

	h2,
	.h2 {
		font-size: 1.8rem;
	}

	header.masthead .masthead-video {
		/* On mobile, prioritize width to avoid black bars */
		width: 100%;
		height: auto;
		min-height: 100%;
	}
}

/* Ensure video is behind all content */
header.masthead .container {
	position: relative;
	z-index: 1;
}

/* Improved Text Rendering */
* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ============================
   END FONT IMPROVEMENTS
   ============================*/

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
	background-color: #f8f9fa;
	color: #7fbe41 !important;
	transform: none !important;
}

.navbar-nav .dropdown-item {
	padding: 0.35rem 0.75rem !important;
}

@media (max-width: 991.98px) {
	.navbar-nav .dropdown-item {
		color: #212529 !important;
		padding: 0.5rem 0 !important;
		font-size: 0.9rem !important;
	}
}

.dropdown-item.active,
.dropdown-item:active {
	background-color: #7fbe4100 !important;
}

.copyright-text {
	color: #bdc3c7;
	font-size: 0.95rem;
}

#mainNav .navbar-nav .nav-item .nav-link:hover, #mainNav .navbar-nav .nav-item .nav-link:active {
	color: #7fbe41 !important;
}