/*
 * WebAdis — Shared Layout CSS
 * Navbar + Footer — exact clone of blog section
 * Include on every page: <link rel="stylesheet" href="/assets/css/layout.css">
 */

/* ============================================================
   RESET (minimal — only what navbar/footer need)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.wa-site-nav {
	position: sticky;
	top: 0;
	z-index: 99999;
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(8,14,65,0.09);
	width: 100%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wa-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 24px;
	height: 72px;
	gap: 16px;
}

/* Logo */
.wa-nav-logo {
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none;
}
.wa-nav-logo img {
	height: 44px;
	width: auto;
	display: block;
	object-fit: contain;
}

/* Nav menu wrapper */
.wa-nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	justify-content: flex-start;
}

/* Nav list */
.wa-nav-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.wa-nav-list > li {
	position: relative;
	margin: 0;
}

.wa-nav-list > li > a {
	display: block;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 500;
	color: #080e41;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
	line-height: 1.4;
}

.wa-nav-list > li > a:hover,
.wa-nav-list > li.active > a {
	color: #0d6efd;
}

/* Dropdown caret */
.wa-nav-list > li.menu-item-has-children > a::after {
	content: '\25BE';
	margin-left: 4px;
	font-size: 11px;
	opacity: 0.7;
	vertical-align: middle;
}

/* Dropdown menu */
.wa-nav-list .sub-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 210px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(8,14,65,0.13);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 100000;
}

.wa-nav-list > li:hover > .sub-menu,
.wa-nav-list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wa-nav-list .sub-menu li { margin: 0; }

.wa-nav-list .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 400;
	color: #080e41;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.18s ease;
}

.wa-nav-list .sub-menu a:hover {
	background: #f0f4ff;
	color: #0d6efd;
	padding-left: 26px;
}

/* Phone CTA */
.wa-nav-cta {
	display: inline-block;
	margin-left: auto;
	padding: 9px 20px;
	background: #080e41;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(255,255,255,0.25);
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.wa-nav-cta:hover {
	background: #0d6efd;
	transform: translateY(-1px);
	color: #ffffff;
}

/* Hamburger */
.wa-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
}

.wa-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #080e41;
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

.wa-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wa-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.wa-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 991px) {
	.wa-hamburger { display: flex; }

	.wa-nav-menu {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: #ffffff;
		flex-direction: column;
		align-items: flex-start;
		padding: 12px 20px 20px;
		box-shadow: 0 10px 24px rgba(8,14,65,0.12);
		gap: 0;
		z-index: 99998;
	}

	.wa-nav-menu.open { display: flex; }

	.wa-nav-list {
		flex-direction: column;
		width: 100%;
		gap: 0;
	}

	.wa-nav-list > li > a {
		padding: 11px 6px;
		border-bottom: 1px solid #f0f0f5;
		display: block;
		width: 100%;
	}

	.wa-nav-list .sub-menu {
		position: static;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		box-shadow: none;
		border-radius: 0;
		padding: 0 0 4px 16px;
		border-left: 3px solid #0d6efd;
		display: none;
	}

	.wa-nav-list > li.open > .sub-menu { display: block; }

	.wa-nav-list .sub-menu a { padding: 8px 12px; font-size: 13px; }
	.wa-nav-list .sub-menu a:hover { padding-left: 18px; }

	.wa-nav-cta {
		margin: 12px 0 0 0;
		width: 100%;
		text-align: center;
		display: block;
	}
}

/* ============================================================
   FOOTER
   ============================================================ */
.wa-footer {
	background-color: #080e41;
	color: #ffffff;
	padding-top: 5vw;
	padding-bottom: 1vw;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wa-footer-inner {
	width: 80%;
	margin: 0 auto;
}

.wa-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.6fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}

.wa-footer-logo {
	display: block;
	margin-bottom: 18px;
	line-height: 0;
}
.wa-footer-logo img {
	height: 40px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.wa-footer-about p {
	font-size: 14px;
	line-height: 1.85;
	color: rgba(255,255,255,0.72);
	margin: 0 0 20px;
}

.wa-footer-social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.wa-footer-social a {
	display: inline-block;
	transition: transform 0.2s ease, opacity 0.2s ease;
	line-height: 0;
}

.wa-footer-social a:hover {
	transform: translateY(-4px);
	opacity: 0.85;
}

.wa-footer-social img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	display: block;
	filter: brightness(0) invert(1);
}

.wa-footer-col h4 {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #0d6efd;
}

.wa-footer-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wa-footer-links ul li { margin-bottom: 10px; }

.wa-footer-links ul li a {
	color: rgba(255,255,255,0.72);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.wa-footer-links ul li a:hover {
	color: #0d6efd;
	padding-left: 6px;
}

.wa-footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.wa-footer-contact-item img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
	margin-top: 3px;
	filter: brightness(0) invert(1);
}

.wa-footer-contact-item span {
	font-size: 14px;
	color: rgba(255,255,255,0.72);
	line-height: 1.65;
}

.wa-footer-contact-item a {
	color: rgba(255,255,255,0.72);
	text-decoration: none;
	transition: color 0.2s;
}

.wa-footer-contact-item a:hover { color: #0d6efd; }

.wa-footer-gstin {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	margin: 14px 0 0;
}

.wa-footer-badge a {
	display: inline-block;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.wa-footer-badge a:hover { transform: translateY(-3px); }

.wa-footer-badge img {
	max-width: 160px;
	height: auto;
	display: block;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.15);
	padding: 8px;
	background: rgba(255,255,255,0.05);
}

.wa-footer-copyright {
	text-align: center;
	padding-top: 20px;
}

.wa-footer-copyright p {
	font-size: 14px;
	color: rgba(255,255,255,0.55);
	margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
	.wa-footer-inner { width: 90%; }
	.wa-footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
	.wa-footer-inner { width: 95%; }
	.wa-footer-grid  { grid-template-columns: 1fr; gap: 28px; }
	.wa-footer       { padding-top: 40px; padding-bottom: 10px; }
}
