/* Custom styles for the public website */

/* Layout */
html,
body {
	height: 100%;
	margin: 0;
	overflow-x: hidden;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: relative;
}

main {
	flex: 1 0 auto;
	position: relative;
	z-index: 1;
}

/* Top Bar */
.top-bar {
	font-size: 1.5rem;
}

.top-bar a {
	transition: opacity 0.3s ease;
}

.top-bar a:hover {
	opacity: 0.8;
	transform: translateY(-2px) !important;
}

/* Sticky header container */
.sticky-header-container {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #ffffff;
	width: 100%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* When a modal is open, remove main's stacking context so modals can layer above header */
.modal-open main {
	position: static !important;
	z-index: auto !important;
}

/* Ensure Bootstrap modal/backdrop layer above header (header z-index: 9999) */
.modal-backdrop {
	z-index: 10000 !important;
}

.modal {
	z-index: 10001 !important;
}

/* Header styles */
header {
	position: relative;
}

/* Ensure sticky header works properly */
.sticky-header-container .top-bar,
.sticky-header-container header {
	position: relative;
	z-index: inherit;
}

/* Navigation styles */
.navbar {
	padding: 0;
}

.nav-link {
	font-weight: 500;
	padding: 0.5rem 1rem !important;
	transition: all 0.3s ease;
	color: #333 !important;
}

.nav-link:hover {
	color: #0d6efd !important;
}

/* Main navigation white text styles */
.navbar-dark .nav-link.text-white {
	color: #ffffff !important;
	font-size: 1.1rem;
	padding: 0.75rem 1.2rem !important;
	position: relative;
}

.navbar-dark .nav-link.text-white:hover {
	color: #f8f9fa !important;
	transform: translateY(-1px);
}

.navbar-dark .nav-link.text-white::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	background-color: #ffffff;
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.navbar-dark .nav-link.text-white:hover::after {
	width: 80%;
}

/* Remove underline effect for dropdown toggle */
.navbar-dark .nav-link.dropdown-toggle.text-white::after {
	display: none;
}

/* Dropdown arrow styling */
.dropdown-arrow {
	display: inline-block;
	vertical-align: middle;
	margin-left: 0.25rem;
}

/* Mobile navigation styles */
@media (max-width: 991.98px) {
	.navbar-dark .nav-link.text-white {
		padding: 0.5rem 0 !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.navbar-dark .nav-link.text-white:last-child {
		border-bottom: none;
	}

	.navbar-collapse {
		background: rgba(164, 106, 37, 0.95);
		padding: 1rem;
		border-radius: 8px;
		margin-top: 1rem;
	}

	/* Investment highlights image responsive border-radius */
	.investment-highlights-image {
		border-radius: 20px 20px 0 0 !important;
	}
}

/* Newsletter form placeholder styling */
.newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-form input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-form input::-moz-placeholder {
	color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-form input:-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.7) !important;
}

/* Remove focus outline and box-shadow from newsletter form input */
.newsletter-form input:focus {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

/* Footer link hover effects */
footer a:hover {
	color: #ffe4b5 !important;
	text-decoration: underline !important;
}

/* Footer social media hover effects */
footer .social-icon:hover {
	transform: scale(1.1);
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
	/* Company info section - full width on mobile */
	footer .col-lg-3:first-child {
		text-align: center;
		margin-bottom: 2rem;
	}

	/* Quick Links - maintain 2 column structure on mobile */
	footer .col-lg-2:nth-child(2),
	footer .col-lg-2:nth-child(3) {
		flex: 0 0 50%;
		max-width: 50%;
		text-align: center;
		margin-bottom: 2rem;
	}

	/* Company and Contact - side by side on mobile */
	footer .col-lg-2:nth-child(4),
	footer .col-lg-3:last-child {
		flex: 0 0 50%;
		max-width: 50%;
		text-align: center;
		margin-bottom: 2rem;
	}
}

/* Quick Links border spanning two columns on desktop */
@media (min-width: 992px) {
	.quick-links-heading {
		position: relative;
	}

	.quick-links-heading::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: -1px;
		width: calc(
			200% + 1.5rem
		); /* Span across both Quick Links columns plus gap */
		height: 1px;
		background-color: #ffffff;
		z-index: 1;
	}

	footer iframe {
		height: 120px;
	}

	footer .d-flex.gap-3 {
		justify-content: center;
	}

	/* Center align footer contact section on mobile */
	footer .col-lg-3 .d-flex.align-items-center {
		justify-content: center;
	}

	/* Remove the transparent heading fix since we're keeping 2-column structure */
	footer .col-lg-2:nth-child(3) h5 {
		margin-bottom: 1rem !important;
		height: auto !important;
		padding-bottom: 5px !important;
		color: transparent !important;
	}
}

/* Topbar responsive adjustments */
@media (max-width: 768px) {
	.top-bar .col-md-4 {
		text-align: center !important;
		margin-bottom: 0.5rem;
	}

	.top-bar .d-flex {
		justify-content: center !important;
	}
}

/* Slider responsive adjustments */
@media (max-width: 768px) {
	.slide-item .row {
		text-align: center;
	}

	.slide-item .col-lg-7 {
		text-align: center !important;
	}

	.slide-item .col-lg-5 {
		margin-bottom: 2rem;
	}
}

/* HR line styling - ensure full opacity and proper display */
hr {
	opacity: 1 !important;
}

/* Specific styling for homepage section divider lines */
section hr[style*="background-color: #B9742B"],
section hr[style*="background: linear-gradient"] {
	opacity: 1 !important;
	border: none !important;
	display: block !important;
	visibility: visible !important;
}

.dropdown-menu {
	border: none;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0;
}

.dropdown-item {
	padding: 0.5rem 1.5rem;
	transition: all 0.3s ease;
}

.dropdown-item:hover {
	background-color: #f8f9fa;
	transform: translateX(5px);
}

/* Footer styles */
footer {
	flex-shrink: 0;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
	text-decoration: none;
	transition: all 0.3s ease;
}

footer a:hover {
	color: #fff !important;
}

/* Button styles */
.btn {
	padding: 0.5rem 1.5rem;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: #0d6efd;
	border-color: #0d6efd;
	transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-outline-dark:hover {
	transform: translateY(-2px) !important;
	transition: all 0.3s ease;
}

.top-bar__text {
	transition: all 0.3s ease !important;
	transform: translateY(-2px);
}

.btn-outline-primary {
	color: #0d6efd;
	border-color: #0d6efd;
}

.btn-outline-primary:hover {
	background-color: #0d6efd;
	color: #fff;
	transform: translateY(-2px);
}

/* Newsletter section */
.newsletter-form .form-control {
	border: none;
	padding: 0.75rem 1rem;
}

.newsletter-form .btn {
	padding: 0.75rem 1.5rem;
}

/* Back to top button */
.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
}

/* Social links */
.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.social-links a:hover {
	background-color: #0d6efd;
	transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.navbar-nav {
		margin-top: 1rem;
	}

	.top-bar {
		text-align: center;
	}

	.top-bar .col-md-6:first-child {
		margin-bottom: 0.5rem;
	}
}

/* Animation classes */
.fade-in {
	animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Team member card styles are scoped within about.ejs to prevent global leakage */
