@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap");

:root {
	--primary-color: #d9292d; /* Red */
	--primary-dark: #a01e20; /* Darker Red */
	--secondary-color: #fca406; /* Orange/Yellow */
	--accent-color: #1a1a1a;
	--bg-light: #fef8f8;
	--text-dark: #1a1a1a;
	--text-muted: #6c757d;
	--white: #ffffff;
	--glass-bg: rgba(255, 255, 255, 0.8);
	--transition: all 0.3s ease;
}

body {
	font-family: "Outfit", sans-serif;
	color: var(--text-dark);
	line-height: 1.6;
	background-color: var(--white);
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
	font-family: "Playfair Display", serif;
	font-weight: 700;
}

/* ====================================================
   Navbar Styling & Modern Hover Effects
   ==================================================== */
.navbar {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 0.85rem 0;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(10, 25, 47, 0.06);
	z-index: 1030;
}

.navbar-brand {
	font-family: "Playfair Display", serif;
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--primary-color) !important;
	transition: transform 0.25s ease;
}

.navbar-brand:hover {
	transform: scale(1.02);
}

.navbar-brand img {
	transition: transform 0.25s ease;
}

/* Base Nav Link */
.nav-link {
	font-weight: 600;
	font-size: 0.92rem;
	color: #1e293b !important;
	padding: 0.5rem 0.75rem;
	margin: 0 0.1rem;
	border-radius: 12px;
	position: relative;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}

/* Desktop Hover & Dropdown Behavior (>= 992px) */
@media (min-width: 992px) {
	/* Refined subtle bottom indicator dot/dash */
	.nav-link::after {
		content: "";
		position: absolute;
		bottom: 3px;
		left: 50%;
		transform: translateX(-50%);
		width: 0;
		height: 3px;
		background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
		border-radius: 10px;
		transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.nav-link:hover {
		color: var(--primary-color) !important;
		background: rgba(217, 41, 45, 0.05);
	}

	.nav-link:hover::after,
	.nav-link.active::after {
		width: 24px;
	}

	.nav-link.active {
		color: var(--primary-color) !important;
		background: rgba(217, 41, 45, 0.07);
	}

	/* No Caret Arrow */
	.navbar .dropdown-toggle::after {
		display: none !important;
	}

	/* Desktop Dropdown Container */
	.navbar .dropdown {
		position: relative;
	}

	/* Invisible hover bridge between toggle and menu to prevent cursor drop */
	.navbar .dropdown-menu::before {
		content: "";
		position: absolute;
		top: -12px;
		left: 0;
		right: 0;
		height: 12px;
		background: transparent;
	}

	/* Instant hover - NO transition animation, NO sliding/transform */
	.navbar .dropdown-menu {
		display: none;
		margin-top: 4px;
		border: 1px solid rgba(15, 23, 42, 0.08);
		box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.14), 0 6px 14px -2px rgba(15, 23, 42, 0.06);
		border-radius: 14px;
		padding: 0.5rem;
		min-width: 290px;
		background: #ffffff;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}

	.navbar .dropdown:hover > .dropdown-menu,
	.navbar .dropdown-menu.show {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}

	/* Dropdown Item Micro-UI */
	.navbar .dropdown-item {
		padding: 0.65rem 0.85rem;
		border-radius: 12px;
		margin-bottom: 0.25rem;
		transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
		background: transparent;
	}

	.navbar .dropdown-item:last-child {
		margin-bottom: 0;
	}

	.dropdown-icon-box {
		width: 42px;
		height: 42px;
		border-radius: 10px;
		background: rgba(217, 41, 45, 0.08);
		color: var(--primary-color);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.05rem;
		flex-shrink: 0;
		transition: all 0.22s ease;
	}

	.dropdown-title {
		font-size: 0.95rem;
		color: #1e293b;
		line-height: 1.25;
		transition: color 0.2s ease;
	}

	.dropdown-desc {
		font-size: 0.75rem;
		color: #64748b !important;
		line-height: 1.2;
	}

	/* Dropdown Item Hover Effect */
	.navbar .dropdown-item:hover {
		background: #f8fafc;
		transform: translateX(4px);
	}

	.navbar .dropdown-item:hover .dropdown-icon-box {
		background: var(--primary-color);
		color: #ffffff;
		transform: scale(1.05);
		box-shadow: 0 4px 12px rgba(217, 41, 45, 0.25);
	}

	.navbar .dropdown-item:hover .dropdown-title {
		color: var(--primary-color);
	}

	.navbar .dropdown-item.active {
		background: rgba(217, 41, 45, 0.06);
	}

	.navbar .dropdown-item.active .dropdown-icon-box {
		background: var(--primary-color);
		color: #ffffff;
	}

	.navbar .dropdown-item.active .dropdown-title {
		color: var(--primary-color);
	}
}

/* Mobile Responsive Navbar (< 992px) */
@media (max-width: 991.98px) {
	.navbar-toggler {
		border: 2px solid rgba(219, 44, 46, 0.25);
		border-radius: 10px;
		padding: 0.45rem 0.65rem;
		background: rgba(219, 44, 46, 0.03);
		transition: all 0.2s ease;
	}

	.navbar-toggler:focus {
		box-shadow: 0 0 0 3px rgba(219, 44, 46, 0.15);
		outline: none;
	}

	.navbar-toggler:hover {
		background: rgba(219, 44, 46, 0.08);
		border-color: var(--primary-color);
	}

	.navbar-collapse {
		background: #ffffff;
		border-radius: 16px;
		margin-top: 1rem;
		padding: 1.25rem;
		box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
		border: 1px solid rgba(0, 0, 0, 0.06);
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}

	.navbar-nav .nav-item {
		width: 100%;
	}

	.nav-link {
		padding: 0.75rem 1rem !important;
		margin: 0.2rem 0;
		border-radius: 10px;
		font-size: 1.02rem;
		font-weight: 600;
		color: #1e293b !important;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1px solid rgba(0, 0, 0, 0.03);
	}

	.nav-link::after {
		display: none !important;
	}

	.nav-link:hover,
	.nav-link.active {
		background: rgba(219, 44, 46, 0.06);
		color: var(--primary-color) !important;
	}

	/* Mobile Dropdown Styling - ALWAYS VISIBLE */
	.navbar .dropdown-menu {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		position: static !important;
		float: none !important;
		transform: none !important;
		box-shadow: none !important;
		background: #f8fafc;
		border: none;
		border-left: 3px solid var(--secondary-color);
		border-radius: 12px;
		padding: 0.5rem;
		margin: 0.35rem 0.25rem 0.65rem 0.75rem;
	}

	.navbar .dropdown-item {
		padding: 0.65rem 0.85rem;
		font-size: 0.95rem;
		border-radius: 8px;
		margin-bottom: 0.35rem;
		color: #334155;
		font-weight: 500;
		transition: all 0.2s ease;
	}

	.dropdown-icon-box {
		width: 36px;
		height: 36px;
		border-radius: 8px;
		background: rgba(217, 41, 45, 0.08);
		color: var(--primary-color);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 0.95rem;
		flex-shrink: 0;
	}

	.dropdown-title {
		font-size: 0.92rem;
		color: #1e293b;
		line-height: 1.25;
	}

	.dropdown-desc {
		font-size: 0.74rem;
		color: #64748b !important;
		line-height: 1.2;
	}

	.navbar .dropdown-item:hover,
	.navbar .dropdown-item.active {
		background: rgba(219, 44, 46, 0.08);
		color: var(--primary-color) !important;
	}

	/* Mobile Apply Now Button */
	.navbar-nav .btn-primary {
		width: 100%;
		text-align: center;
		margin-top: 0.85rem;
		padding: 0.8rem 1.5rem !important;
		font-size: 1rem;
		display: block;
	}
}

/* Hero Section */
.hero {
	position: relative;
	height: 80vh;
	min-height: 500px;
	display: flex;
	align-items: center;
	background:
		linear-gradient(rgba(219, 44, 46, 0.8), rgba(219, 44, 46, 0.8)),
		url("https://images.unsplash.com/photo-1523050338292-915c8064939a?auto=format&fit=crop&q=80&w=1920");
	background-size: cover;
	background-position: center;
	color: var(--white);
}

.hero-content {
	max-width: 800px;
}

.hero h1 {
	font-size: 4rem;
	margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
	background-color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: var(--white) !important;
	padding: 0.8rem 2rem;
	font-weight: 600;
	border-radius: 5px;
	transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: #b02325 !important;
	border-color: #b02325 !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(219, 44, 46, 0.3);
}

.btn-outline-primary {
	color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
	background-color: var(--primary-color) !important;
	color: #fff !important;
}

.btn-link {
	color: var(--primary-color) !important;
}

.btn-outline-light {
	border-width: 2px;
}

.btn-outline-light:hover {
	background-color: var(--white);
	color: var(--primary-color);
}

/* Sections */
section {
	padding: 100px 0;
}

.section.pt-0 {
	padding-top: 0;
}
.py-100 {
	padding-top: 100px;
	padding-bottom: 100px;
}

.section-title {
	margin-bottom: 40px;
}

.section-title > span,
.section-title span.text-gold,
.section-title span.text-secondary {
	display: block;
	margin-bottom: 0.6rem;
}

.section-title h2 {
	font-size: 2.5rem;
	position: relative;
	display: inline-block;
	padding-bottom: 15px;
}

.section-title h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: var(--secondary-color);
}

.section-title.text-center h2::after,
.text-center .section-title h2::after {
	left: 50%;
	transform: translateX(-50%);
}

/* Footer */
.footer {
	background-color: var(--primary-color) !important;
	color: var(--white);
}

.footer h5 {
	font-family: "Outfit", sans-serif;
	font-size: 1.1rem;
	letter-spacing: 1px;
}

.footer a {
	color: rgba(255, 255, 255, 0.7) !important;
	text-decoration: none !important;
	transition: var(--transition);
}

.footer a:hover {
	color: var(--secondary-color) !important;
	padding-left: 5px;
}

.social-icon {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--white) !important;
	transition: var(--transition);
}

.social-icon:hover {
	background: var(--secondary-color);
	color: var(--primary-color) !important;
	transform: translateY(-3px);
}

/* Cards */
.card {
	border: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	transition: var(--transition);
}

.card:hover {
	transform: translateY(-10px);
}

/* Carousel / Slider Enhancement */
.carousel-item {
	transition:
		transform 1.2s ease-in-out,
		opacity 1.2s ease-in-out;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
	transition: opacity 1.2s ease-in-out;
}

#hero-slider h1 {
	font-size: 5rem;
	line-height: 1.1;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-indicators [data-bs-target] {
	width: 40px;
	height: 5px;
	border-radius: 5px;
}

.carousel-control-prev,
.carousel-control-next {
	width: 5%;
}

@media (max-width: 768px) {
	#hero-slider h1 {
		font-size: 2.8rem;
	}
	#hero-slider .carousel-item {
		height: 75vh !important;
	}
}

/* Call to Action Patterns */
.cta-pattern {
	position: absolute;
	width: 300px;
	height: 300px;
	background: radial-gradient(
		circle,
		var(--secondary-color) 0%,
		transparent 70%
	);
	filter: blur(80px);
	opacity: 0.2;
	z-index: 0;
}

/* Utilities */
.text-gold {
	color: var(--secondary-color) !important;
}
.bg-navy {
	background-color: var(--primary-color);
}
.bg-gold {
	background-color: var(--secondary-color);
}
.text-primary {
	color: var(--primary-color) !important;
}
.text-secondary {
	color: var(--secondary-color) !important;
}
.bg-primary {
	background-color: var(--primary-color) !important;
}
.bg-primary-dark {
	background-color: var(--primary-dark) !important;
}
.bg-secondary {
	background-color: var(--secondary-color) !important;
}

.ls-wide {
	letter-spacing: 2px;
}
.transition-hover:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Global Link & Color Reset */
a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: #b02325;
}

::selection {
	background: var(--primary-color);
	color: white;
}

/* Force colors on specific Bootstrap utilities */
.text-primary {
	color: var(--primary-color) !important;
}
.bg-primary {
	background-color: var(--primary-color) !important;
}
.border-primary {
	border-color: var(--primary-color) !important;
}

.alert-primary {
	background-color: rgba(219, 44, 46, 0.1);
	border-color: rgba(219, 44, 46, 0.2);
	color: var(--primary-color);
}
