/*
 * Global Styling for Banking Services Theme
 */

/* ==========================================
   1. Theme Variables & Reset
   ========================================== */
:root {
	--primary-color: #2342C8;
	--primary-glow: rgba(35, 66, 200, 0.4);
	--text-dark: #1E293B;
	--text-muted: #64748B;
	--bg-light: #F8FAFC;
	--white: #FFFFFF;
	--max-width: 1200px;
	--transition-fast: 0.25s ease;
	--transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	--font-nunito: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-nunito);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dark);
	background-color: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ==========================================
   2. Layout Container
   ========================================== */
.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	/* padding: 0 24px; */
}

/* ==========================================
   3. Header Styling
   ========================================== */
.site-header {
	background-color: transparent;
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
	padding: 0px 24px 0px 24px;
}

.site-header.scrolled {
	background-color: var(--white);
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.header-container {
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.header-container::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #D5D5D5 15%, #D5D5D5 85%, rgba(255, 255, 255, 0) 100%);
}

/* Logo Section */
.site-branding .custom-logo-link {
	display: inline-block;
}

.logo-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-icon {
	flex-shrink: 0;
}

.logo-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.logo-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.1;
	color: #000000;
}

.logo-subtitle {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 2px;
	line-height: 1.1;
	color: #475569;
	margin-top: 2px;
}

/* Navigation Section */
.main-navigation {
	display: flex;
	align-items: center;
}

.nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 30px;
	/* 30px spacing as requested */
}

.nav-menu li {
	position: relative;
}

.nav-menu li a {
	display: flex;
	align-items: center;
	font-family: var(--font-nunito);
	font-weight: 500;
	/* Nunito Medium */
	font-size: 16px;
	color: var(--text-dark);
	padding: 8px 0;
	position: relative;
	transition: color var(--transition-fast);
}

/* Underline effect */
.nav-menu li a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width var(--transition-smooth);
}

/* Hover state: color and underline change to 2342C8 */
.nav-menu li a:hover {
	color: var(--primary-color);
}

.nav-menu li a:hover::after {
	width: 100%;
}

/* Active state: color, underline, and dot color change to 2342C8 */
.nav-menu li.active a,
.nav-menu li.current-menu-item a {
	color: var(--primary-color);
}

.nav-menu li.active a::after,
.nav-menu li.current-menu-item a::after {
	width: 100%;
}

/* Animated active dot indicator */
.active-dot-wrapper {
	position: relative;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dot-main {
	width: 6px;
	height: 6px;
	background-color: var(--primary-color);
	border-radius: 50%;
	z-index: 2;
}

.dot-wave {
	position: absolute;
	width: 6px;
	height: 6px;
	background-color: var(--primary-color);
	border-radius: 50%;
	z-index: 1;
	transform: scale(1);
	opacity: 0.75;
}

.wave-1 {
	animation: ping-wave 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.wave-2 {
	animation: ping-wave 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
	animation-delay: 0.75s;
}

@keyframes ping-wave {
	0% {
		transform: scale(1);
		opacity: 0.75;
	}

	75%, 100% {
		transform: scale(2.5);
		opacity: 0;
	}
}

/* Mobile Toggle Hamburger tn */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1010;
}

.hamburger-bar {
	width: 100%;
	height: 2px;
	background-color: var(--text-dark);
	border-radius: 2px;
	transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

/* CTA Button Section */
.cta-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 5px 5px 5px 12px;
	border-radius: 100px;
	font-family: var(--font-nunito);
	/* font-weight: 700; */
	font-size: 16px;
	color: var(--white);

	/* Button Base: 2342C8
	   With linear gradient of white and black overlay at 15% visibility */
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), var(--primary-color);

	/* Smooth drop shadow */
	box-shadow: 0 4px 14px 0 rgba(35, 66, 200, 0.35);

	transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
	cursor: pointer;
}

.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(35, 66, 200, 0.45);
	filter: brightness(1.05);
}

.cta-button:active {
	transform: translateY(0);
	box-shadow: 0 3px 8px 0 rgba(35, 66, 200, 0.3);
}

.cta-arrow-circle {
	width: 28px;
	height: 28px;
	background-color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--transition-smooth);
}

.cta-button:hover .cta-arrow-circle {
	transform: translateX(2px);
}

/* ==========================================
   4. Footer Styling
   ========================================== */
.site-footer {
	background-color: var(--white);
	color: var(--text-muted);
	padding: 68px 24px; /* Padding is 68px top/bottom, 0 on sides */
	border-top: 1px solid #E8E8E8; /* Border top with colour E8E8E8 1px */
	font-family: var(--font-nunito); /* All text is Nunito */
	font-size: 16px;
	line-height: 1.6;
}

.footer-container {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 40px;
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	/* padding: 0 24px; */
	box-sizing: border-box;
}

.footer-col {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.footer-col-info {
	max-width: 320px;
}

.footer-logo {
	margin-bottom: 24px;
}

/* Sizing support for custom uploaded logo image */
.site-branding .custom-logo,
.footer-logo .custom-logo {
	max-width: 110px;
	height: auto;
	display: block;
}

.footer-tagline {
	font-size: 15px;
	line-height: 24px;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.footer-divider {
	width: 100%;
	height: 1px;
	background-color: #E2E8F0;
	margin-bottom: 20px;
}

.footer-copyright {
	font-size: 14px;
	color: var(--text-muted);
}

.footer-heading {
	font-family: var(--font-nunito) !important;
	font-size: 18px !important; /* Headings are 18px */
	font-weight: 700 !important;
	color: #1E293B !important;
	margin-bottom: 24px;
	line-height: 1.2;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-links a {
	color: var(--text-muted);
	transition: color var(--transition-fast);
	font-size: 16px;
}

.footer-links a:hover {
	color: var(--primary-color);
}

.footer-col-contact {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.contact-label {
	font-weight: 700;
	color: #1E293B;
	font-size: 15px;
}

.contact-item p {
	margin: 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--text-muted);
}

.contact-item a {
	color: var(--text-muted);
	transition: color var(--transition-fast);
}

.contact-item a:hover {
	color: var(--primary-color);
}

/* Responsive Footer styling */
@media (max-width: 900px) {
	.footer-container {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
	.footer-col-info {
		max-width: 100%;
		grid-column: span 2;
	}
}

@media (max-width: 500px) {
	.footer-container {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.footer-col-info {
		grid-column: span 1;
	}
}

/* ==========================================
   5. Responsive Navigation Drawer Styling
   ========================================== */
 
@media (max-width: 1024px) {
	/* Responsive Navigation (Mobile/Tablet) */
	.menu-toggle {
		display: flex;
	}

	.header-cta {
		display: none;
	}

	.nav-menu-container {
		position: fixed;
		top: 80px;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: var(--white);
		padding: 40px 24px;
		display: none;
		flex-direction: column;
		z-index: 1009;
		overflow-y: auto;
		border-top: 1px solid #F1F5F9;
		box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
	}

	.nav-menu-container.is-active {
		display: flex;
	}

	.nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		width: 100%;
	}

	.nav-menu li {
		width: 100%;
	}

	.nav-menu li a {
		font-size: 20px;
		width: 100%;
		padding: 12px 0;
	}

	.nav-menu li a::after {
		bottom: 0;
	}

	/* Hamburger Animation Active State */
	.menu-toggle.is-active .hamburger-bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.menu-toggle.is-active .hamburger-bar:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.is-active .hamburger-bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}
}

@media (max-width: 600px) {
	.header-cta {
		display: none;
	}
	
	.site-header {
		padding: 0 1rem;
	}
}

/* GSAP Scroll Reveal Initial States (Prevents flash when JS is active) */
.js-loaded .reveal-fade {
	opacity: 0;
	transform: translateY(45px);
	will-change: transform, opacity;
}

.js-loaded .reveal-fade-blur {
	opacity: 0;
	transform: translateY(30px);
	filter: blur(10px);
	will-change: transform, opacity, filter;
}

.js-loaded .reveal-blur {
	filter: blur(10px);
	will-change: filter;
}

.js-loaded .reveal-fade-fast {
	opacity: 0;
	transform: translateY(15px);
	will-change: transform, opacity;
}

