/**
 * ImIn site shell — header / logo / menu (entire site).
 * Loaded on every front-end page.
 */

body.imin-site-shell {
	/* Exact speech-bubble logo pink sampled from brand asset */
	--imin-pink: #fb496e;
	--imin-pink-hover: #e23a5f;
	--imin-ink: #141414;
	--imin-header-pad-y: 1.15rem;
	--imin-logo-h: 56px;
}

/* -------------------------------------------------------------------------- */
/* Larger header                                                              */
/* -------------------------------------------------------------------------- */
body.imin-site-shell .header-area .navbar,
body.imin-site-shell .appf-site-header .navbar {
	padding-top: var(--imin-header-pad-y) !important;
	padding-bottom: var(--imin-header-pad-y) !important;
}

body.imin-site-shell .header-area.sticky .navbar,
body.imin-site-shell .appf-site-header.sticky .navbar {
	padding-top: 0.95rem !important;
	padding-bottom: 0.95rem !important;
}

/* Logo size — brand speech bubble */
body.imin-site-shell .header-area .navbar-brand img.logo,
body.imin-site-shell .header-area .navbar-brand img.logo-white,
body.imin-site-shell .header-area .navbar-brand img,
body.imin-site-shell .appf-site-header .navbar-brand img,
body.imin-site-shell .appf-site-header img.logo,
body.imin-site-shell .appf-site-header img.logo-white {
	height: var(--imin-logo-h) !important;
	width: auto !important;
	max-height: var(--imin-logo-h) !important;
	object-fit: contain;
}

body.imin-site-shell .header-area .offcanvas-logo,
body.imin-site-shell .offcanvas-header .navbar-brand img {
	height: 64px !important;
	width: auto !important;
	max-height: 64px !important;
}

/* Nav links spacing for larger bar */
body.imin-site-shell .header-area .nav-link,
body.imin-site-shell .appf-site-header .nav-link {
	font-weight: 600;
	font-size: 1rem;
	padding-inline: 0.85rem !important;
}

/* App download CTA — logo pink */
body.imin-site-shell .imin-nav-app-btn,
body.imin-site-shell li.menu-item-app-download > a,
body.imin-site-shell li.menu-item-app-download .nav-link,
body.imin-site-shell a.imin-nav-app-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin-left: 0.35rem;
	padding: 0.55rem 1.15rem !important;
	border-radius: 999px !important;
	background: var(--imin-pink) !important;
	background-color: var(--imin-pink) !important;
	background-image: none !important;
	border: none !important;
	color: #fff !important;
	font-weight: 700 !important;
	line-height: 1.2;
	min-height: 44px;
	box-shadow: none !important;
	transition: transform 0.15s ease, background 0.15s ease;
}

body.imin-site-shell .imin-nav-app-btn:hover,
body.imin-site-shell .imin-nav-app-btn:focus-visible,
body.imin-site-shell li.menu-item-app-download > a:hover,
body.imin-site-shell li.menu-item-app-download .nav-link:hover,
body.imin-site-shell a.imin-nav-app-btn:hover {
	background: var(--imin-pink-hover) !important;
	background-color: var(--imin-pink-hover) !important;
	background-image: none !important;
	color: #fff !important;
	transform: translateY(-1px);
}

body.imin-site-shell .header-area .current-menu-item > .nav-link,
body.imin-site-shell .header-area .current_page_item > .nav-link,
body.imin-site-shell .appf-site-header .current-menu-item > .nav-link {
	color: var(--imin-pink) !important;
}

@media (max-width: 991.98px) {
	body.imin-site-shell {
		--imin-logo-h: 48px;
		--imin-header-pad-y: 0.85rem;
	}

	body.imin-site-shell .imin-nav-app-btn,
	body.imin-site-shell li.menu-item-app-download .nav-link {
		margin: 0.85rem 0 0;
		width: fit-content;
	}
}

/* Author / ImIn Team avatars — round brand mark */
body.imin-site-shell .card-post-meta img.rounded-circle,
body.imin-site-shell .post-info img.rounded-circle,
body.imin-site-shell .meta-author img,
body.imin-site-shell .item-author img,
body.imin-site-shell img.avatar {
	object-fit: cover;
	background: #ffe3ea;
	border: 1px solid rgba(248, 72, 108, 0.2);
}

body.imin-site-shell .card-post-meta img.rounded-circle,
body.imin-site-shell .item-author img {
	width: 32px !important;
	height: 32px !important;
}

/* -------------------------------------------------------------------------- */
/* Solid header shell — About, Blog, Contact, etc. (NOT front-page hero)      */
/* Matches the blog header: white bar, dark links, brand logo visible.        */
/* -------------------------------------------------------------------------- */
body.imin-solid-header .header-area.transparent-header,
body.imin-solid-header .header-area,
body.imin-solid-header .appf-site-header.header-area {
	position: sticky !important;
	top: var(--wp-admin--admin-bar--height, 0) !important;
	left: 0;
	right: 0;
	width: 100%;
	background: #ffffff !important;
	box-shadow: 0 1px 0 rgba(20, 20, 20, 0.08), 0 8px 24px rgba(20, 20, 20, 0.04) !important;
	z-index: 1000;
}

/* Dark logo always (both slots same brand asset) */
body.imin-solid-header .header-area .logo,
body.imin-solid-header .header-area.transparent-header .logo,
body.imin-solid-header .header-area.sticky .logo,
body.imin-solid-header .appf-site-header .logo {
	display: block !important;
}

body.imin-solid-header .header-area .logo-white,
body.imin-solid-header .header-area.transparent-header .logo-white,
body.imin-solid-header .header-area.sticky .logo-white,
body.imin-solid-header .appf-site-header .logo-white {
	display: none !important;
}

/* Dark menu links — never white-on-white */
body.imin-solid-header .header-area .nav-link,
body.imin-solid-header .header-area.transparent-header:not(.sticky) .nav-link,
body.imin-solid-header .header-area.transparent-header .nav-link,
body.imin-solid-header .appf-site-header .nav-link {
	color: var(--imin-ink) !important;
	font-weight: 600;
}

body.imin-solid-header .header-area .nav-link:hover,
body.imin-solid-header .header-area .nav-link:focus-visible,
body.imin-solid-header .header-area .current-menu-item > .nav-link,
body.imin-solid-header .header-area .current_page_item > .nav-link,
body.imin-solid-header .appf-site-header .current-menu-item > .nav-link {
	color: var(--imin-pink) !important;
}

body.imin-solid-header .imin-nav-app-btn,
body.imin-solid-header li.menu-item-app-download > a,
body.imin-solid-header li.menu-item-app-download .nav-link {
	color: #fff !important;
	background: var(--imin-pink) !important;
	background-image: none !important;
}

body.imin-solid-header .header-area .navbar-toggler {
	--bs-navbar-toggler-border-color: rgba(20, 20, 20, 0.2);
}

body.imin-solid-header .header-area .navbar-toggler-icon {
	--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2820, 20, 20, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Page content should clear the sticky bar on fullwidth Elementor pages */
body.imin-solid-header.page-template-fullwidth-page .site-content,
body.imin-solid-header.page-template-fullwidth-page .elementor-3125,
body.imin-solid-header.page .elementor.elementor-3125 {
	/* About page id 3125 — small top rhythm so content doesn't feel glued */
}

body.imin-solid-header.page-template-fullwidth-page {
	/* sticky header already in flow; no extra offset needed */
}

/* ==========================================================================
 * Footer — Finance-inspired light shell (ImIn content kept)
 * Demo ref: appfusion.ca/finance/ — soft lavender field, dark type, watermark
 * ========================================================================== */
body.imin-site-shell footer.footer,
body.imin-site-shell footer.footer.bg-gradient-primary {
	position: relative !important;
	overflow: hidden !important;
	background:
		radial-gradient(720px 360px at 12% 0%, rgba(251, 73, 110, 0.12), transparent 55%),
		radial-gradient(640px 320px at 92% 30%, rgba(167, 139, 250, 0.16), transparent 55%),
		linear-gradient(180deg, #fff9fb 0%, #f3eefc 55%, #ebe6ff 100%) !important;
	background-image:
		radial-gradient(720px 360px at 12% 0%, rgba(251, 73, 110, 0.12), transparent 55%),
		radial-gradient(640px 320px at 92% 30%, rgba(167, 139, 250, 0.16), transparent 55%),
		linear-gradient(180deg, #fff9fb 0%, #f3eefc 55%, #ebe6ff 100%) !important;
	color: #1a1a2e !important;
	padding-top: clamp(3.25rem, 6vw, 5rem) !important;
	padding-bottom: 0 !important;
	border-top: 0 !important;
}

body.imin-site-shell footer.footer .footer-overlay {
	display: none !important;
}

body.imin-site-shell .imin-footer-watermark {
	position: absolute;
	left: 50%;
	bottom: -0.15em;
	transform: translateX(-50%);
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.8;
	color: rgba(120, 100, 180, 0.12);
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
	z-index: 0;
}

body.imin-site-shell footer.footer > .container {
	position: relative;
	z-index: 1;
}

body.imin-site-shell footer.footer .footer-top {
	padding-bottom: 2rem !important;
	border-bottom: 1px solid rgba(26, 26, 46, 0.08) !important;
}

body.imin-site-shell .imin-footer-brand {
	display: inline-flex;
	margin-bottom: 0.85rem;
}

body.imin-site-shell .imin-footer-brand img {
	height: 48px;
	width: auto;
	object-fit: contain;
}

body.imin-site-shell footer.footer .footer-descirption,
body.imin-site-shell footer.footer .footer-description {
	color: #4b4b63 !important;
	font-size: 1rem !important;
	line-height: 1.65 !important;
	max-width: 28rem;
}

body.imin-site-shell footer.footer .footer-menu-title {
	color: #141422 !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.01em;
}

body.imin-site-shell footer.footer .footer-menu .nav-link,
body.imin-site-shell footer.footer .footer-menu .footer-address,
body.imin-site-shell footer.footer .footer-contact .nav-link {
	color: #2a2a3d !important;
	font-weight: 500 !important;
	opacity: 1 !important;
}

body.imin-site-shell footer.footer .footer-menu .nav-link:hover {
	color: var(--imin-pink) !important;
}

body.imin-site-shell footer.footer .footer-contact svg,
body.imin-site-shell footer.footer .footer-menu svg {
	color: var(--imin-pink) !important;
	stroke: var(--imin-pink) !important;
	fill: currentColor !important;
	opacity: 1 !important;
}

body.imin-site-shell .imin-footer-social {
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

body.imin-site-shell .imin-footer-tiktok {
	display: inline-flex !important;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.9rem !important;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(26, 26, 46, 0.1);
	color: #141422 !important;
	font-weight: 700 !important;
	box-shadow: 0 6px 16px rgba(26, 26, 46, 0.06);
	text-decoration: none !important;
}

body.imin-site-shell .imin-footer-tiktok:hover {
	color: #fff !important;
	background: var(--imin-pink) !important;
	border-color: var(--imin-pink) !important;
}

body.imin-site-shell .imin-footer-tt-icon {
	display: inline-flex;
	width: 1.35rem;
	height: 1.35rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(251, 73, 110, 0.12);
	color: var(--imin-pink);
	font-size: 0.85rem;
}

body.imin-site-shell .imin-footer-tiktok:hover .imin-footer-tt-icon {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Hide empty menu columns (no links) — keeps layout clean like Finance without inventing content */
body.imin-site-shell footer.footer .col-lg-2:has(.footer-menu:not(:has(a, .footer-menu-title))) {
	display: none;
}

body.imin-site-shell footer.footer .footer-bottom {
	padding: 1.25rem 0 1.75rem !important;
	border-top: 0 !important;
	position: relative;
	z-index: 1;
}

body.imin-site-shell footer.footer .copyright-text,
body.imin-site-shell footer.footer .copyright p {
	color: #5a5a72 !important;
	font-size: 0.9rem !important;
}

body.imin-site-shell footer.footer .footer-bottom-list .nav-link {
	color: #2a2a3d !important;
}

body.imin-site-shell footer.footer .footer-bottom-list .nav-link:hover {
	color: var(--imin-pink) !important;
}
